CheckoutPayment Intent

Retrieve a Payment Intent

GET
/openapi/v1/payment-intents/{paymentIntentId}

Retrieves the payment details of a Payment Intent by its ID.

Authorization

bearerAuth
headerAuthorizationBearer <token>

The access_token obtained from POST /oauth2/token. Header format: Authorization: Bearer {accessToken}.

Path Parameters

paymentIntentId*string

Payment Intent ID, such as pi_MNOL0POUV8IDPXCD

Response Body

Returns the Payment Intent object.

application/json
  1. response
code?integer

Business status code

message?string
traceId?string

Request trace ID. Provide it when you contact technical support

data?

The Payment Intent object. All amount fields are decimal strings in standard units, formatted to the currency precision. All time fields are in ISO 8601 with a time zone offset. Fields with empty values are omitted.

Example Request
curl -X GET 'https://api.test.stabofx.com/openapi/v1/payment-intents/string'
Example Response
{  "code": 200,  "message": "OK",  "traceId": "6a017ba1e60f91cdbe14e4f0697b3dc2",  "data": {    "paymentIntentId": "pi_MNOL0POUV8IDPXCD",    "status": "COMPLETED",    "clientSecret": "v1.xxx",    "checkoutUrl": "https://app.test.stabofx.com/en/checkout/pi_MNOL0POUV8IDPXCD?secret=v1.xxx",    "amount": "20.00",    "currency": "USD",    "usdAmount": "20.00",    "fxRate": "1",    "referenceNo": "ORD-20260511-0001",    "description": "Order #20260511-0001",    "customer": "cus_123456",    "brand": "Acme Coffee",    "payments": [      {        "network": "Polygon",        "currency": "USDT",        "amount": "20.08",        "txHash": "0x5f2c...a91e",        "fromAddress": "0x97535e309484738738877fa6f9a3bb8c62eae19a",        "confirmations": 12,        "requiredConfirmations": 12,        "status": "CONFIRMED",        "confirmedAt": "2026-05-11T14:18:02+08:00"      }    ],    "receivedAmount": "20.00",    "receivedUsdAmount": "20.00",    "feeAmount": "0.30",    "refundedAmount": "0.00",    "hasRefund": false,    "expiresAt": "2026-05-11T14:42:34+08:00",    "completedAt": "2026-05-11T14:25:10+08:00",    "createdAt": "2026-05-11T14:12:34+08:00",    "metadata": {      "orderId": "ORD-20260511-0001"    },    "paymentOptions": [      {        "currency": "USDT",        "network": "Polygon"      }    ]  }}