Skip to main content
GET
/
payments
/
intents
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/payments/intents \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "amount": 2000,
      "currency": "USD",
      "createdAt": 1727340330123,
      "status": "SUCCESS",
      "succeededAt": 1727340330123,
      "receiptId": "1234567890",
      "xIntentId": "in_fnXr3r2P1bEiiE1n"
    }
  ],
  "metadata": {
    "offset": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

startTime
integer

Start of range in epoch milliseconds. Fetches intents created after this timestamp.

endTime
integer

End of range in epoch milliseconds. Fetches intents created before this timestamp.

limit
integer

Max items per page (default 50, max 100)

Required range: 1 <= x <= 100
offset
string

Cursor for pagination. Use metadata.offset from previous response

statuses
string

Filter by current payment status. Multiple statuses can be comma-separated (e.g., SUCCESS,CANCELLED). Refer payment statuses here

Response

Successful response with payment intents and pagination cursor

data
object[]
required
metadata
object
required
I