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
Was this page helpful?