REST Example: Processing a Sale with Multiple Tax Rates with Level III Data

Light Dark
Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
{"clientReferenceInformation": { "code": "Simple Invoice" }, "processingInformation": { "capture": true, "purchaseLevel": "3" }, "paymentInformation": { "card": { "number": "4715320629000001", "expirationMonth": "03", "expirationYear": "2025" } }, "orderInformation": { "amountDetails": { "totalAmount": "180.88", "currency": "GBP", "taxAmount": "17.24" }, "billTo": { "firstName": "Buyer", "lastName": "OfGoods", "company": { "name": "Acme Inc" }, "address1": "1 High Street", "locality": "Belfast", "postalCode": "BT1 2AB", "country": "UK", "email": "a@b.com" }, "lineItems": [ { "productName": "Widgets", "productSku": "WID1", "quantity": "3", "unitPrice": "23.23", "unitOfMeasure": "EA", "totalAmount": "69.69", "taxAmount": "13.94", "taxRate": "20.00", "taxTypeCode": "S" }, { "productName": "Children's Clothes", "productSku": "ABC123", "quantity": "6", "unitPrice": "10.99", "unitOfMeasure": "EA", "totalAmount": "65.94", "taxAmount": "3.30", "taxRate": "5.00", "taxTypeCode": "AA" }, { "productName": "Spanner", "productSku": "XYZ123", "quantity": "5", "unitPrice": "4.99", "unitOfMeasure": "EA", "totalAmount": "24.95", "taxAmount": "0.00", "taxRate": "0.00", "taxTypeCode": "E" }, { "productName": "Wrech", "productSku": "DEF321", "quantity": "3", "unitPrice": "1.02", "unitOfMeasure": "EA", "totalAmount": "3.06", "taxAmount": "0.00", "taxRate": "0.00", "taxTypeCode": "Z" }, { "productName": "Freestuff", "productSku": "GHI456", "quantity": "4", "unitPrice": "0.00", "unitOfMeasure": "FOC", "totalAmount": "0.00", "taxAmount": "0.00", "taxRate": "0.00", "taxTypeCode": "E" } ], "invoiceDetails": { "purchaseOrderNumber": "PO21122", "purchaseOrderDate": "20220601", "costCenter": "WE21122", "invoiceDate": "20220601000000", "supplierOrderReference": "ACME1234" } }, "buyerInformation": { "merchantCustomerId": "TESTBBREFACD21122", "vatRegistrationNumber": "GB123421100" }, "merchantInformation": { "merchantDescriptor": { "name": "Widgets Inc", "contact": "02890491491", "address1": "1 Main Street", "locality": "Belfast", "country": "UK", "postalCode": "BT1 2AB" }, "vatRegistrationNumber": "GB987654321" }}
Successful Response
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
{"_links": { "void": { "method": "POST", "href": "/pts/v2/payments/6796055429906230103954/voids" }, "self": { "method": "GET", "href": "/pts/v2/payments/6796055429906230103954" } }, "clientReferenceInformation": { "code": "Simple Invoice" }, "id": "6796055429906230103954", "orderInformation": { "amountDetails": { "totalAmount": "180.88", "authorizedAmount": "180.88", "currency": "GBP" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "pointOfSaleInformation": { "terminalId": "123456" }, "processorInformation": { "approvalCode": "888888", "networkTransactionId": "123456789619999", "transactionId": "123456789619999", "responseCode": "100", "avs": { "code": "X", "codeRaw": "I1" } }, "reconciliationId": "64152053IFJYCCU7", "status": "AUTHORIZED", "submitTimeUtc": "2023-03-23T21:05:43Z"}