On This Page
REST Example: Processing a Credit with Level III
Data
Request
{ "clientReferenceInformation": { "code": "Standalone Credit" }, "processingInformation": { "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": "[email protected]" }, "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
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6799465991706322704953/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6799465991706322704953" } }, "clientReferenceInformation": { "code": "Standalone Credit" }, "creditAmountDetails": { "currency": "GBP", "creditAmount": "112.00" }, "id": "6799465991706322704953", "orderInformation": { "invoiceDetails": { "level3TransmissionStatus": "Y" }, "amountDetails": { "currency": "GBP" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "70359987ZFKZI54N", "status": "PENDING", "submitTimeUtc": "2023-03-27T19:49:59Z" }