Skip to main content
A customer can hold any number of cards and bank accounts, each referenced by the token you got from Tokens or the Create Token page. Attaching a token to a customer is what makes it persistent; one of them is the default, which Pay customer invoice and scheduled charges use when no token is specified.

Attach a card

The bank object has id, bank_token, name, bsb, number, customer_id, customer_guid and link. Attaching a bank account that is already attached to this or another customer returns 403.
These objects are the customer-scoped shape and differ from the token objects returned by /token and /bank_token: the token field is card_token / bank_token, card_type is lowercase, and customer_id / customer_guid are included.

Set the default

PATCH with no body. The response has object_type: "default_payment_method" with the card or bank object under that key.

Remove

DELETE returns the envelope with an empty card or bank object and message_text “The selected payment method has been deleted”.