Retrieve a Customer
This section shows you how to retrieve a customer token.
Endpoint
Test:
GET
https://apitest.cybersource.com
/tms/v2/customers/{customerTokenId}
Production:
GET
https://api.cybersource.com
/tms/v2/customers/{customerTokenId}
Production in India:
GET
https://api.in.cybersource.com
/tms/v2/customers/{customerTokenId}
The is the customer token ID returned in the
{customerTokenId}
id
field when you created the customer token. For more information, see Create a Customer.REST Example: Retrieving a Customer
Request
GEThttps://apitest.cybersource.com/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078
Response to a Successful Request
{ "_links": { "self": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078" }, "paymentInstruments": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/payment-instruments" }, "shippingAddresses": { "href": "/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/shipping-addresses" } }, "id": "F2F3ADA770102B51E053A2598D0A9078", "buyerInformation": { "merchantCustomerID": "Your customer identifier", "email": "test@cybs.com" }, "clientReferenceInformation": { "code": "TC50171_3" }, "merchantDefinedInformation": [ { "name": "data1", "value": "Your customer data" } ], "metadata": { "creator": "testrest" } }