Delete a Customer Shipping Address

This section describes how to delete a customer shipping address.

Endpoint

Test:
DELETE
https://apitest.cybersource.com
/tms/v2/customers/
{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}
Production:
DELETE
https://api.cybersource.com
/tms/v2/customers/
{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}
Production in India:
DELETE
https://api.in.cybersource.com
/tms/v2/customers/
{customerTokenId}
/shipping-addresses/{shippingAddressTokenId}
The
{customerTokenId}
is the customer token ID returned in the
id
field when you created the customer token. In the
{shippingAddressTokenId}
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.
IMPORTANT
If you have more than one shipping address, the default shipping address cannot be deleted without first selecting a new default shipping address.