POST
/
payments
/
charge-tokenised-pm
curl --request POST \
  --url https://api.xpaycheckout.com/payments/charge-tokenised-pm \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pmId": "pmt_ftoeKIYGC3f43frT",
  "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "currency": "USD",
  "amount": 1000
}'
{
  "intentId": "in_dHd3Jq1tZxPjYVhRQW2r3",
  "status": "SUCCESS",
  "errorCode": "card_declined"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Charge Tokenized Payment Method

The body is of type object.

Response

200
application/json

Payment charged successfully

The response is of type object.