Collect Payment
Collect a payment for an agreement
POST
/v3/customers/me/agreements/{agreementId}/transactions/payment
Request
The details below help you form your HTTP requests to this endpoint.
Headers
You may need to provide specific headers.
customer-token
string
Customer's authentication token
x-version-override
string
N/A
Body
You must provide a JSON payload.
paymentMethodId
string
Payment Method Id
amount
number
Amount
collectorId
string
Collector Id
Response
The details below help you understand the responses you could get from this endpoint.
Samples
Below are samples of responses, with tabs corresponding to returned status code.
Schema
The response's schema is outlined below.
data
array
N/A
data[].paymentId
string
Payment ID
data[].amount
number
Amount
data[].processor
string
Processor
data[].outcome
string
Outcome
data[].failureReason
string
Failure Reason
data[].failureCode
string
Failure Code
Last updated
Was this helpful?