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
name | value | description |
---|---|---|
path |
| This path is used for create action |
method |
| We are creating/updating resource, hence |
Request body:
field | length | type | required | description |
---|---|---|---|---|
type | enum |
|
| Possible values are: |
card | predefined |
|
| An object containing pan and expiration date |
metadata | predefined |
|
| An optional field for metadata in |
Card
field | length | type | required | description |
---|---|---|---|---|
pan | 12 or more |
|
| Card's primary account number |
expiration_date | 3-4 |
|
| Has to be in format |
Request Example
Response
field | length | type | description |
---|---|---|---|
token | 48 |
| A really long string |
status | predefined |
| Possible values are: |
keep_until | predefined |
| Date until token is valid |
maked_pan | 12 |
| Masked primary account number |
expiration_date | 4 |
| Card's expiration date |
Example of response:
Last updated