GET
/
customer
/
{customerId}
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": "9123456789",
    "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

200
application/json

Customer details retrieved successfully

The response is of type object.