Retrieve a Customer Shipping Address
This section shows you how to retrieve a customer shipping address.
Endpoint
Test:
GET
https://apitest.cybersource.com
/tms/v2/customers/{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}Production:
GET
https://api.cybersource.com
/tms/v2/customers/{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}Production in India:
GET
https://api.in.cybersource.com
/tms/v2/customers/{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}The is the customer token ID returned in
the path parameter, pass the
shipping address token ID response field returned when you created a shipping
address token. For more information, see Create a Customer and Create a Customer Shipping Address.
{customerTokenId}
id
field when you created the customer token. In the
{shippingAddressTokenId}
REST Example: Retrieving a Shipping Address
Request
GEThttps://apitest.cybersource.com/tms/v2/customers/F2F3ADA770102B51E053A2598D0A9078/shipping-addresses/F2F4C2D1B966D631E053A2598D0AB155
Response to a Successful Request
{ "shipTo": { "firstName": "Jane", "lastName": "Smith", "company": "Lear Group, LLC", "address1": "123 Mountain Peaks Rd", "address2": "", "locality": "Mountain Peaks", "administrativeArea": "CA", "postalCode": "90212", "country": "US", "email": "jane.smith@leargroupllc.world", "phoneNumber": "123-456-7890" } }