Token API
Create Token
Request
To create a Token you'll need to provide:
Valid request with a defined
type
=card
Required fields (described below)
Request endpoint details
path
v2/tokens
This path is used for create action
method
POST
We are creating/updating resource, hence POST
method
Request body:
type
enum
String
YES
Possible values are: card
card
predefined
Card
YES
An object containing pan and expiration date
metadata
predefined
Map
NO
An optional field for metadata in key:value
pairs
Card
pan
12 or more
String
YES
Card's primary account number
expiration_date
3-4
String
YES
Has to be in format YYMM
e.g. if expiration date is in June 2022, the value is 2206
Request Example
Response
token
48
String
A really long string
status
predefined
String
Possible values are: approved
or invalid-request
keep_until
predefined
Date
Date until token is valid
maked_pan
12
String
Masked primary account number
expiration_date
4
String
Card's expiration date
Example of response:
Last updated