REST API | Visa Platform Connect

REST Example: Processing a Stand-Alone Credit

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/credits/
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/credits/
Request
{ "clientReferenceInformation": { "code": "test123", "transactionId": "11223344", "partner": { "thirdPartyCertificationNumber": "testTPCN" } }, "processingInformation": { "commerceIndicator": "retail" }, "paymentInformation": { "card": { "type": "001" } }, "orderInformation": { "amountDetails": { "totalAmount": "9900.00", "currency": "USD" } }, "pointOfSaleInformation": { "terminalId": "87654321", "entryMode": "contactless", "terminalCapability": "4", "terminalPinCapability": "0", "emv": { "tags": "5F2A02084082025800950542800480009A032907259C01209F02060000009900009F10070601120 3A000009F1A0208409F1E08364B3335303633379F26084F674AF82F5566BD9F330360F0E89F36022 3019F370479E0A7B59F2701809F34030203005F340101", "cardSequenceNumber": "01" }, "trackData": ";4761739001010119=29122011758928889?" }, "merchantInformation": { "transactionLocalDateTime": "20230724085022" } }
Response for a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6663069906146706403954/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6663069906146706403954" } }, "clientReferenceInformation": { "code": "1666306990717" }, "creditAmountDetails": { "currency": "eur", "creditAmount": "100.00" }, "id": "6663069906146706403954", "orderInformation": { "amountDetails": { "currency": "eur" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "66490108K9CLFJPN", "status": "PENDING", "submitTimeUtc": "2022-10-20T23:03:10Z" }