Tokens

Request a token #

Exchange card details for a reference token that can be used later to request a card payment. Tokens are single use and expire after 15 minutes.

Authorizations

bearer

#
HTTP: bearer #

HTTP Authorization Scheme: bearer

Bearer format: JWT

header Parameters #
AuthorizationrequiredstringBearer token (API Public Key).
Request Body schema: application/json #

Request body for creating a card token.

type requiredstringThe type of card details to be tokenized.
number requiredstringThe card number.
expiry_month requirednumber [ 1 .. 12 ] The expiry month of the card.
expiry_year requirednumberThe expiry year of the card (4 digits).
namestringThe cardholder’s name.
cvvstringThe card verification value/code. 3 digits, except for American Express (4 digits).
billing_addressobjectThe payment source owner’s billing address.
phoneobjectThe payment source owner’s phone number.
Responses #
201 Reference token created successfully
Response Schema: application/json #
expiry_month requirednumberThe expiry month.
expiry_year requirednumberThe expiry year.
last4 requiredstringThe last four digits of the card number.
bin requiredstringThe card issuer BIN.
type requiredstringThe type of card details to be tokenized.
token requiredstringThe reference token.
expires_onrequiredstring <date-time> The date/time the token will expire.
schemestringThe card scheme.
scheme_localstringThe local co-branded card scheme.
card_typestring Enum:”CREDIT””DEBIT””PREPAID””CHARGE””DEFERRED DEBIT”The card type.
card_categorystring Enum:”CONSUMER””COMMERCIAL”The card category.
issuerstringThe name of the card issuer.
issuer_countrystring = 2 characters The card issuer country ISO-2 code.
product_idstringThe issuer/card scheme product identifier.
product_typestringThe issuer/card scheme product type.
billing_addressobjectThe payment source owner’s billing address.
phoneobjectThe payment source owner’s phone number.
namestringThe cardholder’s name.

401 Unauthorized

422 Invalid data was sent.
Response Schema: application/json #
request_id requiredstringThe unique request identifier.
error_type requiredstringThe error type.
error_codes requiredArray of stringsThe error codes.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top