Update a Customer Shipping Address
This section shows you how to update a customer shipping address.
Endpoint
Test:
PATCH
https://apitest.cybersource.com
/tms/v2/customers/{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}Production:
PATCH
https://api.cybersource.com
/tms/v2/customers/{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}Production in India:
PATCH
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}
Required Fields for Updating a Customer Shipping Address
- shipTo.address1
- shipTo.address2
- shipTo.administrativeArea
- shipTo.company
- shipTo.country
- shipTo.email
- shipTo.firstName
- shipTo.lastName
- shipTo.locality
- shipTo.phoneNumber
- shipTo.postalCode
Related Information
REST Example: Updating a Customer Shipping Address
Request
{ "shipTo": { "firstName": "Jane", "lastName": "Smith", "company": "Lear Group, LLC", "address1": "123 Mountain Peaks Rd", "address2": "Unit B", "locality": "Mountain Peaks", "administrativeArea": "CA", "postalCode": "90212", "country": "US", "email": "jane.smith@leargroupllc.world", "phoneNumber": "123-456-7890" } }
Response to a Successful Request
{ "shipTo": { "firstName": "Jane", "lastName": "Smith", "company": "Lear Group, LLC", "address1": "123 Mountain Peaks Rd", "address2": "Unit B", "locality": "Mountain Peaks", "administrativeArea": "CA", "postalCode": "90212", "country": "US", "email": "jane.smith@leargroupllc.world", "phoneNumber": "123-456-7890" } }