GET
/
payment-method-token
/
{paymentMethodTokenId}
curl --request GET \
  --url https://api.xpaycheckout.com/payment-method-token/{paymentMethodTokenId} \
  --header 'Authorization: Basic <encoded-value>'
{
  "paymentMethodId": "pmt_ftoeKIYGC3f43frT",
  "currencies": [
    "USD",
    "EUR"
  ],
  "paymentMethod": "CARD",
  "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "status": "LIVE"
}

This API allows you to retrieve the details of a payment method token, including its status and associated information.

Status Values

The payment method token can have one of the following statuses:

  • LIVE: The payment method token is active and can be used for transactions
  • DELETED: The payment method token has been deleted and cannot be used for transactions

Authorizations

Authorization
string
header
required

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

Path Parameters

paymentMethodTokenId
string
required

Unique identifier of the payment method token

Response

200
application/json

Payment method token details retrieved successfully

The response is of type object.