REST Example: Processing a Sale with Level III Data
Request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{"clientReferenceInformation": { "code": "Simple Sale Invoice" }, "processingInformation": { "capture": true, "purchaseLevel": "3" }, "paymentInformation": { "card": { "number": "4715320629000001", "expirationMonth": "03", "expirationYear": "2025" } }, "orderInformation": { "amountDetails": { "totalAmount": "112.00", "currency": "GBP", "taxAmount": "18.67" }, "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": "7", "unitPrice": "10.00", "unitOfMeasure": "EA", "totalAmount": "70.00", "taxAmount": "14.00", "taxRate": "20.00", "taxTypeCode": "S" }, { "productName": "Freight", "productSku": "ABC123", "quantity": "1", "unitPrice": "23.33", "unitOfMeasure": "EA", "totalAmount": "23.33", "taxAmount": "4.67", "taxRate": "20.00", "taxTypeCode": "S" } ], "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/6799459940956367204951/voids" }, "self": { "method": "GET", "href": "/pts/v2/payments/6799459940956367204951" } }, "clientReferenceInformation": { "code": "Simple Sale Invoice" }, "id": "6799459940956367204951", "orderInformation": { "amountDetails": { "totalAmount": "112.00", "authorizedAmount": "112.00", "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": "703866398FM22CBS", "status": "AUTHORIZED", "submitTimeUtc": "2023-03-27T19:39:54Z"}