Add Level3 Item
POST
/v2/L3Data/AddLevel3ItemAdds a Level 3 line item to a transaction. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.
Body Parameters
Amount
numberTip
numberCashbackAmount
numberFrequency
stringCustomFee
numberAuthCode
stringTaxAmount
numberLocalTaxFlag
stringNationalTaxAmount
numberCustRef
stringDestZipCode
stringCustomerVatReg
stringSummaryCommodityCode
stringFreightAmount
numberDutyAmount
numberShipfromZipCode
stringDestCountryCode
stringLineItemCount
numberLevel3LineItems
objectPaymentType*
enumReferenceId*
stringPrintReceipt
enumGetReceipt
enumMerchantNumber
numberInvoiceNumber
stringCaptureSignature
booleanGetExtendedData
booleanIsReadyForIS
booleanCallbackInfo
objectReconId
stringIsvId
stringTpn
stringRegisterId
stringAuthkey*
stringSPInProxyTimeout
numberCustomFields
objectPOST/v2/L3Data/AddLevel3Item
1curl --location 'https://test.spinpos.net/v2/L3Data/AddLevel3Item' \
2--header 'Content-Type: application/json' \
3--data '{
4 "Amount": "",
5 "Tip": "",
6 "CashbackAmount": "",
7 "Frequency": "",
8 "CustomFee": "",
9 "AuthCode": "",
10 "TaxAmount": "",
11 "LocalTaxFlag": "",
12 "NationalTaxAmount": "",
13 "CustRef": "",
14 "DestZipCode": "",
15 "CustomerVatReg": "",
16 "SummaryCommodityCode": "",
17 "FreightAmount": "",
18 "DutyAmount": "",
19 "ShipfromZipCode": "",
20 "DestCountryCode": "",
21 "LineItemCount": "",
22 "Level3LineItems": {
23 "Group": [
24 {
25 "CommodityCode": "",
26 "Description": "",
27 "ProductCode": "",
28 "Quantity": "",
29 "UnitOfMeasure": "",
30 "UnitCost": "",
31 "VatTaxAmount": "",
32 "VatTaxRate": "",
33 "DiscountAmount": "",
34 "TotalAmount": ""
35 }
36 ]
37 },
38 "PaymentType": "Credit",
39 "ReferenceId": "",
40 "PrintReceipt": "No",
41 "GetReceipt": "No",
42 "MerchantNumber": "",
43 "InvoiceNumber": "",
44 "CaptureSignature": false,
45 "GetExtendedData": false,
46 "IsReadyForIS": false,
47 "CallbackInfo": {
48 "Url": ""
49 },
50 "ReconId": "",
51 "IsvId": "",
52 "Tpn": "",
53 "RegisterId": "",
54 "Authkey": "",
55 "SPInProxyTimeout": "",
56 "CustomFields": {}
57}'
Response
// Awaiting response…
Sample response
{
"AuthCode": "",
"ReferenceId": "",
"LineItemCount": null,
"GeneralResponse": {
"ResultCode": "0",
"StatusCode": "0000",
"Message": "",
"DetailedMessage": "",
"DelayBeforeNextRequest": null
}
}