API referencePayments
Create a payment
Records a request for money. Nothing is held until the payer approves.
Choose a TEST app to send requests from the playground.
post
/paymentsRecords a request for money. Nothing is held until the payer approves.
BearerAuthheader
AuthorizationBearer <token>An access token from POST /oauth/token: client_credentials for your own app, or authorization_code for a user who connected it.
Idempotency-Key?stringOne value per action, resent unchanged on every retry. Will become required (400 IDEMPOTENCY_KEY_REQUIRED without it)
Payment
application/json- body
amount*stringcapture_method?models.CaptureMethodValue in
"AUTOMATIC""MANUAL"currency?stringdescription?stringmerchant_reference?stringmetadata?stringreturn_url?stringCreated
application/json- response
data?error?message?stringmeta?success?booleancurl -X POST "https://example.com/payments" \ -H "Content-Type: application/json" \ -d '{ "amount": "1500.00" }'{ "error": { "code": "string", "details": { "property1": "string", "property2": "string" }, "message": "string" }, "message": "string", "meta": { "pagination": { "next_cursor": "string", "page": 0, "per_page": 0, "total_items": 0, "total_pages": 0 } }, "success": true, "data": { "amount": "1500.00", "authorized_at": "string", "cancellation_reason": "string", "cancelled_at": "string", "capture_method": "AUTOMATIC", "captured_at": "string", "checkout_url": "string", "created_at": "string", "currency": "string", "description": "string", "environment": "LIVE", "expires_at": "string", "fee": "1500.00", "merchant_reference": "string", "metadata": "string", "net_amount": "1500.00", "reference": "string", "refundable_amount": "1500.00", "refunded_amount": "1500.00", "status": "CREATED" }}