Edit or Delete a Shipping Address
Use the
TMS
API in your e-wallet app to edit or delete a
customer's shipping address.- To get all addresses, call:GET /tms/v2/customers/{customerTokenId}/shipping-address.
ADDITIONAL INFORMATION
The first record is the default. - To add an address, call:POST /tms/v2/customers/.{customerTokenId}/shipping-addresses
ADDITIONAL INFORMATION
This adds a non-default shipping address. If it is the customer's first address, it becomes the default address. - To edit an address, call:PATCH /tms/v2/customers/.{customerTokenId}/shipping-addresses/{shippingAddressTokenId}
- To delete an address, call:DELETE /tms/v2/customers/{customerTokenId}/shipping-addresses/{shippingAddressTokenId}.
- To set an address as the default address, call:PATCH /tms/v2/customers/and set the value of the request field{customerTokenId}/shipping-addresses/{shippingAddressTokenId}defaulttotrue.