Edit or Delete a Payment Method

Use the
API in your e-wallet app to retrieve a customer's payment method and allow the customer to delete or edit the payment method.
  1. To retrieve the customer's default payment method, call:
    GET /tms/v2/customers/{customerTokenId}/payment-instruments


    The first record is the default payment method. The remaining payment methods are the non-default payment methods.
  2. To delete a payment method, call:
    DELETE /tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}
  3. To edit a payment method, call:
    PATCH /tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}
  4. Include the updated payment method details in the call.
Back to top