REST API
Add Level3 Item
POST/v2/L3Data/AddLevel3Item

Adds 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
number
Tip
number
CashbackAmount
number
Frequency
string
CustomFee
number
AuthCode
string
TaxAmount
number
LocalTaxFlag
string
NationalTaxAmount
number
CustRef
string
DestZipCode
string
CustomerVatReg
string
SummaryCommodityCode
string
FreightAmount
number
DutyAmount
number
ShipfromZipCode
string
DestCountryCode
string
LineItemCount
number
Level3LineItems
object
PaymentType*
enum
ReferenceId*
string
PrintReceipt
enum
GetReceipt
enum
MerchantNumber
number
InvoiceNumber
string
CaptureSignature
boolean
GetExtendedData
boolean
IsReadyForIS
boolean
CallbackInfo
object
ReconId
string
IsvId
string
Tpn
string
RegisterId
string
Authkey*
string
SPInProxyTimeout
number
CustomFields
object
POST/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
  }
}