GET
/
setup-method
/
{setupMethodId}
curl --request GET \
  --url https://api.xpaycheckout.com/setup-method/{setupMethodId} \
  --header 'Authorization: Basic <encoded-value>'
{
  "setupMethodId": "sm_sK8d3Jq1tZxPjYVhRQW2rf",
  "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "currency": "USD",
  "paymentMethods": [
    "CARD",
    "GOOGLE_PAY",
    "APPLE_PAY"
  ],
  "storeFrontId": "sf_sK8d3Jq1tZxPjYVhRQW2rf",
  "callbackUrl": "https://example.com/callback",
  "metadata": {
    "orderId": "12345",
    "customerNote": "Setup for recurring payments"
  },
  "status": "CREATED",
  "pmId": "pmt_ftoeKIYGC3f43frT"
}

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

setupMethodId
string
required

Unique identifier of the setup method

Response

200
application/json

Setup Method details retrieved successfully

The response is of type object.