REST Example: Processing a Tax-Only Refund with Level III Data
Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{"clientReferenceInformation": { "code": "Tax Only Refund Invoice" }, "processingInformation": { "purchaseLevel": "3" }, "orderInformation": { "amountDetails": { "totalAmount": "72.87", "currency": "GBP", "taxAmount": "0.00" }, "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": "NET-ADJUST", "productSku": "XYZ123", "quantity": "1", "unitPrice": "72.87", "unitOfMeasure": "FOC", "totalAmount": "72.87", "taxAmount": "0.00", "taxRate": "0.00", "taxTypeCode": "Z" } ], "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
123456789101112131415161718192021222324252627282930313233{"_links": { "void": { "method": "POST", "href": "/pts/v2/refunds/6799464736446300004953/voids" }, "self": { "method": "GET", "href": "/pts/v2/refunds/6799464736446300004953" } }, "clientReferenceInformation": { "code": "Tax Only Refund Invoice" }, "id": "6799464736446300004953", "orderInformation": { "invoiceDetails": { "level3TransmissionStatus": "Y" }, "amountDetails": { "currency": "GBP" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "70383211IFKZFMTQ", "refundAmountDetails": { "currency": "GBP", "refundAmount": "72.87" }, "status": "PENDING", "submitTimeUtc": "2023-03-27T19:47:53Z"}