Skip to main content
GET
/
customer
/
{customerId}
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/customer/{customerId} \
  --header 'Authorization: Basic <encoded-value>'
{
  "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3",
  "customerDetails": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "contactNumber": "+919123456789",
    "customerAddress": {
      "country": "US",
      "postalCode": "2424"
    }
  }
}

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

customerId
string
required

Unique identifier of the customer

Response

Customer details retrieved successfully

customerId
string

Unique identifier for the customer

Example:

"cus_Tfd3Jq1tZxPjYVhRQW2r3"

customerDetails
object
I