On This Page
REST API
Edit or Delete a Payment Method
In your e-wallet app, use the
TMS
API to retrieve a customer's
payment method, and allow the customer to delete or edit the payment method.- To retrieve the customer's default payment method, call:GET /tms/v2/customers/{customerTokenId}/payment-instrumentsand read the first record, which is the default.
- Display the non-default payment instruments.
- To delete a payment method, call:DELETE /tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}
- To edit a payment method, call:PATCH /tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}Include the updated payment method details in the call.