API Reference
post

/card/v1/tokens

Request a card token that can later be used to charge a customer using the charge endpoint.

Note: If you are using this method from your backend, be sure to comply with all the PCI requirements to handle card data on your servers.

Request Parameters

1 Header

Request Body

1 Example
Schema
object
card
object
required
name
string
1 validation + required
number
string
1 validation + required
expiryMonth
string
1 validation + required
expiryYear
string
1 validation + required
cvv
string
1 validation + required
totalAmount
number
required
format: double
minimum: 0
example: 19.99
currency
string
Allowed Values: USD, COP
default: USD

Responses

TokenCreated

1 Example
Schema
object
token
string
required
example: AbCDef123456Z7Ghi8901234jkLMNopQ

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.