Create a One-time Token
One-time token represents payment source information including Credit cards or Direct Debit account details. It is a disposable token for creating charges/subscriptions/customers or updating customers. One-time tokens expire after 3 hours.
ENDPOINT | METHOD | HEADERS |
---|---|---|
/payment_sources/tokens | POST | x-access-token: An Access Token generated in the Paydock dashboard Content-Type: application/json |
Schema Attributes
Property | Type | Required |
---|---|---|
first_name | string | No |
last_name | string | No |
string | No | |
phone | string | No |
type | string | Yes |
account_name | string | Yes |
account_number | string | Yes |
account_bsb | string | Yes |
account_routing | string | No |
gateway_id | string | No |
Examples
Bank Account
Request
{ "first_name": "Wanda", "last_name": "Mertz", "email": "wanda.mertz@example.com", "phone": "+1234567890", "type": "bank_account", "account_name": "Wanda Mertz", "account_number": "12345678", "account_bsb": "064000", "gateway_id": "5d1df20be205944082f778b8" }
Response
{ "status": 201, "error": null, "resource": { "type": "token", "data": "f6301700-dcfe-4640-aabf-eff4ee3d96a6" } }