REST Example: Processing a Credit with Level II Data

Light Dark
Request
1234567891011121314151617181920212223242526272829303132333435
{"paymentInformation": { "card": { "number": "4111111111111111", "expirationMonth": "03", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "7.77", "currency": "USD", "invoiceDetails": { "purchaseOrderNumber": "L2PurchaseOrderNo", "purchaseOrderDate": "2024-11-15", "taxable": true } }, "lineItems": [ { "unitPrice": "7.00", "taxAmount": ".77" } ] }, "billTo": { "firstName": "John", "lastName": "Deo", "address1": "900 Metro Center Blvd", "locality": "Foster City", "administrativeArea": "CA", "postalCode": "48104-2201", "country": "US", "email": "", "phoneNumber": "9321499232" }}
Response to a Successful Request
12345678910111213141516171819202122232425262728293031323334353637383940414243
{"_links": { "void": { "method": "POST", "href": "/pts/v2/credits/7320289208766957204951/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/7320289208766957204951" } }, "clientReferenceInformation": { "code": "1732028921016" }, "creditAmountDetails": { "currency": "USD", "creditAmount": "200.00" }, "id": "7320289208766957204951", "orderInformation": { "amountDetails": { "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "69002042N33YJ7AN", "status": "PENDING", "submitTimeUtc": "2024-11-19T15:08:41Z"}