cURL
curl --request GET \ --url https://api.xpaycheckout.com/customer/{customerId} \ --header 'Authorization: Basic <encoded-value>'
{ "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3", "customerDetails": { "name": "John Doe", "email": "[email protected]", "contactNumber": "+919123456789", "customerAddress": { "country": "US", "postalCode": "2424" } } }
Get customer details by customer ID
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Unique identifier of the customer
Customer details retrieved successfully
Unique identifier for the customer
"cus_Tfd3Jq1tZxPjYVhRQW2r3"
Show child attributes
Customer's name
"John Doe"
Customer's email address
"[email protected]"
Customer's contact number including country code
"+919123456789"
Two-letter country code of the customer (e.g., US, GB, IN)
"US"
Pincode of the customer
"2424"
Was this page helpful?