POST /v1/payment-requests/{paymentRequestId}/collect
POST
/v1/payment-requests/{paymentRequestId}/collectAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredPath parameters
paymentRequestIdstringrequiredmin length 1
Query parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaymentRequestIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaymentMethodIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullidempotencyKeystring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsourcestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfraudSessionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
200
Success
dataobjectrequiredShow propertiesHide properties
paymentRequestobjectrequiredShow propertiesHide properties
paymentRequestIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
openpaidcanceledexpiredcurrencystringrequiredmin length 1
amountRequestednumberrequiredamountPaidnumberrequiredamountRemainingnumberrequiredinvoiceCountnumberrequiredattemptCountnumberrequiredcreatedByTypestringrequiredAllowed:
systemoperatorcreatedByRefstringrequiredmin length 1
createdAtstringrequiredmin length 1
updatedAtstringrequiredmin length 1
metadataobjectrequiredlastAttemptStatusstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllastAttemptErrorstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllastPaymentIntentIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllastPaymentIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldueAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullexpiresAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllastAttemptedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullpaidAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcanceledAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinvoicesobject[]requiredShow propertiesHide properties
Array of
objectinvoiceIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftopenpaidpartially_paidpast_duevoiduncollectiblecurrencystringrequiredmin length 1
subtotalnumberrequireddiscountTotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequiredamountPaidnumberrequiredamountRemainingnumberrequiredmetadataobjectrequiredsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreditNoteTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullcustomerBalanceAppliedTotalnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullperiodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullperiodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullissuedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldueAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullfinalizedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullvoidedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullupdatedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulllinksobject[]requiredShow propertiesHide properties
Array of
objectpaymentRequestIdstringrequiredmin length 1
invoiceIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
currencystringrequiredmin length 1
amountRequestednumberrequiredamountRemainingAtCreationnumberrequiredappliedAtstringrequiredmin length 1
requestIdstringrequiredmin length 1