Level 2 Purchasing Data
Level 2 (Level II) purchasing data adds a tax amount, a tax-exempt flag and a purchase order number to a card transaction. On commercial and corporate cards this data can qualify the transaction for a lower interchange rate.
Available via the Cloud API. Level 2 data must be enabled on the merchant's agreement with the acquirer — contact your Handpoint relationship manager to confirm it is enabled.
Level II data needs Android SDK 7.1015 or later on the terminal. Terminals on 7.1014.x reject requests that carry it.
This applies to taxInformation and purchaseOrderNumber on POST /transactions, which the terminal processes. POST /moto/sale, POST /preauthorization/capture and POST /transactions/{guid}/tip-adjustment do not go through the terminal.
Supported endpoints
| Endpoint | Where | Amount format |
|---|---|---|
POST /transactions | operation = sale, moToSale, saleAndTokenizeCard, preAuthorizationCapture or tipAdjustment | String, minor units ("100" is 1.00) |
POST /moto/sale | Always | String, decimal major units ("1.00") |
POST /preauthorization/capture | Always | String, decimal major units ("1.00") |
POST /transactions/{guid}/tip-adjustment | Always | Number, major units (1.00) |
taxAmount always uses the same format as the amount of the request it belongs to.
Request fields
{
"taxInformation": {
"taxAmount": "100",
"taxExempt": false
},
"purchaseOrderNumber": "PO4711"
}
| Field | Rules |
|---|---|
taxInformation.taxAmount | Portion of the amount that is tax. For the Cloud API (POST /transactions), amount must already include the tax — taxAmount is reported as Level 2 data only, not added again. For the Android SDK 7.1014.5+, taxAmount is added to the amount by the SDK — send the base amount only. Required: 0 when taxExempt is true, greater than 0 otherwise, and never above the operation amount. |
taxInformation.taxExempt | Boolean, default false. true means the transaction is tax exempt, and requires taxAmount to be 0. |
purchaseOrderNumber | Must be sent together with taxInformation: one without the other is rejected. Alphanumeric only (A-Z a-z 0-9), 25 characters or fewer. null is treated as not sent. |
taxAmount is added to the amountThe top-level taxAmount of POST /transactions is deprecated: use taxInformation.taxAmount instead. It is kept for compatibility and will be removed in a future release.
It does not work like Cloud API taxInformation.taxAmount: the payment terminal adds it to amount. amount: "100" with taxAmount: "10" charges 1.10. If you still send it, send the amount before tax, and never send it together with taxInformation. An integration that sends a tax-inclusive amount plus taxAmount charges the tax twice.
taxInformation.taxAmount is added to the amountOn Android SDK 7.1014.5 and later, taxInformation.taxAmount is added to the amount by the SDK (like the deprecated top-level taxAmount). Send the base amount before tax; the SDK adds the tax before sending the IREQ.
This differs from the Cloud API, where amount must already include the tax. If you send both Cloud API and Android SDK requests, use different amount-assembly logic for each.
Tip adjustment
Tip adjustments accept taxInformation with relaxed rules, both on POST /transactions/{guid}/tip-adjustment and on operation: "tipAdjustment" of POST /transactions:
taxAmountis optional, so{ "taxExempt": true }on its own is valid. When sent withtaxExempt: true, it must be0.taxAmountcan be0when not exempt: that is how the tax of a tip adjustment is corrected to zero.taxAmountis not compared with the tip amount.purchaseOrderNumberis not supported.
Response fields
Level 2 data comes back in one of two shapes, depending on where the response comes from.
Transaction result (callback or GET /transaction-result): the payment terminal echoes taxInformation and purchaseOrderNumber as they were sent, with taxExempt:
{
"taxInformation": {
"taxAmount": "100",
"taxExempt": false
},
"purchaseOrderNumber": "PO4711"
}
Gateway responses (GET /transactions/{transactionReference}/status, POST /moto/sale and POST /preauthorization/capture): when the gateway returns Level 2 data, it carries the tax as the gateway recorded it, in decimal major units, with taxAmountIdentifier instead of taxExempt:
{
"taxInformation": {
"taxAmount": "1.00",
"taxAmountIdentifier": "1"
},
"purchaseOrderNumber": "PO4711"
}
taxAmountIdentifier | Meaning |
|---|---|
"1" | Local sales tax applies (taxExempt: false) |
"2" | Tax exempt (taxExempt: true) |
Tip adjustment response (POST /transactions/{guid}/tip-adjustment): only taxInformation, with taxAmount as a Number in major units and taxAmountIdentifier, when the gateway returns them. It never includes purchaseOrderNumber:
{
"statusMessage": "tip adjusted",
"taxInformation": {
"taxAmount": 0.50,
"taxAmountIdentifier": "1"
}
}
In every case, the fields are left out when they are not available.
Validation errors
Every rule below returns 400 Bad Request. A field with the wrong type, for example a non-boolean taxExempt, is rejected earlier with 422 Unprocessable Entity by schema validation.
{
"error": {
"statusCode": 400,
"name": "BadRequestError",
"message": "Missing purchaseOrderNumber, mandatory when taxInformation is present"
}
}
| Message | Cause |
|---|---|
taxInformation is not supported for operation [<operation>] | taxInformation sent on a POST /transactions operation that does not support it, for example refund |
purchaseOrderNumber is not supported for operation [<operation>] | purchaseOrderNumber sent on a POST /transactions operation that does not support it, including tipAdjustment |
Invalid purchaseOrderNumber, must be 25 characters or fewer | purchaseOrderNumber longer than 25 characters |
Invalid purchaseOrderNumber, must contain only alphanumeric characters | purchaseOrderNumber empty or with characters other than A-Z a-z 0-9 |
Missing purchaseOrderNumber, mandatory when taxInformation is present | taxInformation sent without purchaseOrderNumber (not on tip adjustments) |
Missing taxInformation, mandatory when purchaseOrderNumber is present | purchaseOrderNumber sent without taxInformation |
Missing taxInformation.taxAmount, mandatory when taxInformation.taxExempt is false | taxInformation sent without taxAmount and taxExempt not true (not on tip adjustments) |
Invalid taxInformation.taxAmount, must be in the minor unit of currency (1000 is 10.00 EUR) | POST /transactions: taxAmount is not 1 to 12 digits |
Invalid taxInformation.taxAmount, must be in the major unit of currency (20.50 is 20.50 EUR) | POST /moto/sale, POST /preauthorization/capture: taxAmount is not a decimal number such as "20.50", has leading zeros other than a single 0 before the decimal point, or is longer than 12 digits (13 characters with a decimal point) |
Invalid taxInformation.taxAmount, must be "0" when taxInformation.taxExempt is true | taxExempt is true and taxAmount is not 0 or is missing (on tip adjustments, only when taxAmount is sent) |
Invalid taxInformation.taxAmount, must be greater than "0" when taxInformation.taxExempt is false | taxAmount is 0 and taxExempt is false or missing (not on tip adjustments) |
Invalid taxInformation.taxAmount, must not exceed amount | POST /transactions, POST /moto/sale: taxAmount is greater than amount |
Invalid taxInformation.taxAmount, must not exceed capturedAmount | POST /preauthorization/capture: taxAmount is greater than capturedAmount |
POST /transactions/{guid}/tip-adjustment has two more messages of its own:
| Message | Cause |
|---|---|
taxInformation.<field> is not supported on tip adjustment | Any taxInformation field other than taxAmount and taxExempt |
Invalid taxInformation.taxAmount [<value>], must be 0 or more, with a maximum of 12 digits (not counting the decimal point) and no exponent | Negative, too long or exponent taxAmount |
Examples
Sale (POST /transactions)
{
"operation": "sale",
"amount": "10000",
"currency": "EUR",
"terminal_type": "PAXA920",
"serial_number": "1547854757",
"taxInformation": { "taxAmount": "500", "taxExempt": false },
"purchaseOrderNumber": "PO4711"
}
Tax-exempt MOTO sale (POST /moto/sale)
{
"amount": "20.00",
"currency": "EUR",
"cardToken": "665630867",
"taxInformation": { "taxAmount": "0", "taxExempt": true },
"purchaseOrderNumber": "PO12345"
}
Pre-authorization capture (POST /preauthorization/capture)
{
"originalGuid": "0c9d9df0-48ec-11eb-81a1-470a19c80d3a",
"capturedAmount": "120.00",
"taxInformation": { "taxAmount": "10.00", "taxExempt": false },
"purchaseOrderNumber": "PO4711"
}
Tip adjustment (POST /transactions/{guid}/tip-adjustment)
{
"amount": 5.25,
"taxInformation": { "taxAmount": 0.50 }
}