REST Example: Processing a Healthcare Sale

Light Dark
Request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
{"clientReferenceInformation": { "code": "HC-sale" }, "processingInformation": { "capture": true }, "orderInformation": { "billTo": { "country": "US", "lastName": "VDP", "address2": "test", "address1": "201 S. Division St.", "postalCode": "48104-2201", "locality": "Ann Arbor", "administrativeArea": "MI", "firstName": "RTS", "phoneNumber": "999999999", "district": "MI", "buildingNumber": "123", "company": "Visa", "email": "test@cybs.com" }, "amountDetails": { "totalAmount": "100.00", "currency": "usd" } }, "paymentInformation": { "card": { "expirationYear": "2031", "number": "4111111111111111", "securityCode": "123", "expirationMonth": "12", "type": "001", "productSubtype": "HC" } }, "healthCareInformation": { "amountDetails": [ { "amountType": "healthcare", "amount": "100" }, { "amountType": "prescription", "amount": "50" }, { "amountType": "clinic", "amount": "20" }, { "amountType": "dental", "amount": "25" }, { "amountType": "vision", "amount": "5" } ] }}
Response to a Successful Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
{"_links" : { "void" : { "method" : "POST", "href" : "/pts/v2/payments/7338783664396669903091/voids" }, "self" : { "method" : "GET", "href" : "/pts/v2/payments/7338783664396669903091" } }, "clientReferenceInformation" : { "code" : "HC-sale" }, "id" : "7338783664396669903091", "orderInformation" : { "amountDetails" : { "totalAmount" : "100.00", "authorizedAmount" : "100.00", "currency" : "usd" } }, "paymentAccountInformation" : { "card" : { "type" : "001" } }, "paymentInformation" : { "tokenizedCard" : { "type" : "001" }, "card" : { "type" : "001" } }, "pointOfSaleInformation" : { "terminalId" : "261996" }, "processorInformation" : { "merchantNumber" : "000000092345678", "approvalCode" : "888888", "networkTransactionId" : "123456789619999", "transactionId" : "123456789619999", "responseCode" : "100", "avs" : { "code" : "X", "codeRaw" : "I1" } }, "reconciliationId" : "57223666D4F86E0S", "status" : "AUTHORIZED", "submitTimeUtc" : "2024-12-11T00:52:46Z"}