API request code

The following code sample has the required data fields to send a sales transaction request for a single line-item order to the Transactions API endpoint.

{
“amount”:100.00,
“type”: “SALE”,
“card”:4111111111111111,
“exp-date”:1227,
“csc”:999,
“sales-tax-amount”:5.00,
“sales-tax-type”: “LOCAL_SALES_TAX”,
“billing”: {
“zip”:85284
},
“shipping”: {
“zip”:85284
},
“level3”: {
“discount-amount”:0.00,
“duty-amount”:0.00,
“freight-amount”:0.00,
“level3-items”: {
“level3-items”: [
{
“item-description”: “widgets”,
“item-line-total”:100.00,
“item-net-gross-ind”: “Y”,
“item-product-code”: “WIDGET123,
“item-quantity”:1,
“item-unit-cost”:100.00,
“item-unit-of-measure”: “EA”
}
]
}
}
}

The following code sample has the required data fields to send a sales transaction request for a multiple line-items order to the Transactions API endpoint.

Last updated

Was this helpful?