GET
/
payments
/
v2
/
get-intent
/
{xIntentId}
curl --request GET \
  --url https://api.xpaycheckout.com/payments/v2/get-intent/{xIntentId} \
  --header 'Authorization: Basic <encoded-value>'
{
  "amount": 100,
  "currency": "USD",
  "presentmentCurrency": "USD",
  "receiptId": "order123",
  "mode": "TEST",
  "customerDetails": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "contactNumber": "9123456789",
    "customerAddress": {
      "addressLine1": "123 Main St",
      "addressLine2": "Apt 101",
      "city": "Los Angeles",
      "state": "California",
      "country": "United States",
      "postalCode": "123456"
    }
  },
  "description": "Order for 2 items",
  "callbackUrl": "https://example.com/callback",
  "createdAt": "2024-09-26T10:41:50.472+00:00",
  "status": "CREATED",
  "xIntentId": "66f53a6e2097773e4f0112c8",
  "fwdUrl": "https://pay.xpaycheckout.com/?xpay_intent_id=67f53a6e2097773e4f0112c8"
}

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

xIntentId
string
required

Unique identifier of the intent

Response

200
application/json
Successful response with transaction status and related details
amount
integer

The amount in lowest count unit (e.g., cents for USD)

currency
string

Three-letter currency code

presentmentCurrency
string

The currency that the customer paid in

receiptId
string

Your identifier for the order

mode
string

The mode in which the transaction was made (e.g., TEST or LIVE)

customerDetails
object
description
string

Description of the order, if any

callbackUrl
string

Callback URL to notify order status

createdAt
string

Timestamp of when the intent was created

status
string

Current status of the intent.

xIntentId
string

Unique identifier of the intent

fwdUrl
string

The URL to redirect the customer to the xPay payment gateway for payment.