Sale (Using Token)

Sale

This API endpoint is used to process a sale transaction providing the full card information.

URL: {{gtw_url}}/locations/{{location_id}}/sale
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
orderObjectNoOrder Details
reconciliation_idStringNoReconciliation identifier for transaction tracking
inv_numberStringNoInvoice number associated with the transaction
ignoreAvsResutBooleanNoWhen set to true, the transaction will continue processing even if AVS validation fails.

Object Type Parameters

card_data

FieldTypeRequiredDescription
card_typeStringWhen token is not presentVisa, Mastercard, Amex
tokenStringWhen Card Number is not presentCard Token
panStringWhen Card token is not presentCard Number
sadStringWhen Card token is not presentCVV
exp_monthStringWhen Card token is not presentCard Expiry Month
exp_yearStringWhen Card token is not presentCard Expiry Year
card_holderStringCard Holder Name

billing_address

FieldTypeRequiredDescription
streetStringNoStreet
street2StringNoStreet 2
zipStringNoZipcode
stateStringNoState
cityStringNoCity
country_isoStringNoCountry

order

FieldTypeRequiredDescription
itemsArrayNoOrder items
discountsArrayNoOrder Discounts

items

FieldTypeRequiredDescription
idStringNoItem Id
nameStringNoItem Name
quantityNumericNoItem Quantity
priceNumericNoItem Price
taxNumericNoItem Tax
typeStringNoItem Type
sales_categoryStringNoSales Category
phone_numberStringNoPhone Number

discounts

FieldTypeRequiredDescription
idStringNoDiscount Id
nameStringNoDiscount Name
valueNumericNoDiscount Value
item_idStringNoItem Id

Customer:

TypeRequiredDescription
customer_nameStringNoName of the customer or guest for the transaction.
customer_emailStringNoEmail of the customer or guest for the transaction.
Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!