On This Page
REST API
Add a New Payment Method Address
In your e-wallet app, use the TMS API to list the customer's addresses or add a new address for a payment method.
- To list the customer's existing billing addresses, call:GET /tms/v2/customers/{customerTokenId}/payment-instrumentsThe call returns all of the payment methods for a customer, including their billing address details.Alternatively, to list the customer's existing shipping addresses, call:GET /tms/v2/customers/{customerTokenId}/payment-instrumentsThis call returns all the shipping address details for a customer.
- To add a new address, call:POST /tms/v2/customers/{customerTokenId}/shipping-addresses.
- To add an address to the payment method created in Add a New Payment Method, call:PATCH /tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}Also, pass the ID of the instrument identifier created when in Add a New Payment Method and the card expiration date.
![Add an address for a new payment method](/content/dam/new-documentation/transitional/en/dita-tms-best-practices/images/4-add-pymt-method-addr.png/_jcr_content/renditions/original)