Create Token

Create Token

This API endpoint is used to create a card token.

URL: {{gtw-dev}}/locations/{{location_id}}/token
Method: POST

Request Headers:

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}
Content-TypeStringYesapplication/json

Request Parameters:

FieldTypeRequiredDescription
user_idStringYesUser ID
currency_isoStringNoCurrency
country_isoStringNoCountry Code
phone_numberStringNoPhone Number
orderidStringNoOrder Id
amountNumericNoAmount
card_dataObjectYesCard data
billing_addressObjectNoBilling Address

card_data

FieldTypeRequiredDescription
card_typeStringYesVisa, Mastercard, Amex
panStringYesCard Number
sadStringYesCVV
exp_monthStringYesCard Expiry Month
exp_yearStringYesCard Expiry Year
card_holderStringNoCard Holder Name

billing_address

FieldTypeRequiredDescription
streetStringNoStreet
street2StringNoStreet 2
zipStringNoZipcode
stateStringNoState
cityStringNoCity
country_isoStringNoCountry
Language
URL
Click Try It! to start a request and see the response here!