REST API | Visa Platform Connect

REST Example: Processing a Credit with Level III Data

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/credits/
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/credits/
Request
{ "processingInformation": { "purchaseLevel": "3" }, "paymentInformation": { "card": { "number": "411111111111XXXX", "expirationMonth": "12", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "100.00", "currency": "usd" }, "billTo": { "firstName": "RTS", "lastName": "VDP", "address1": "201 S. Division St.", "locality": "Ann Arbor", "administrativeArea": "MI", "postalCode": "48104-2201", "country": "US", "email": "
test@cybs.com
" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6807067080966508003954/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6807067080966508003954" } }, "clientReferenceInformation": { "code": "1680706708181" }, "creditAmountDetails": { "currency": "usd", "creditAmount": "100.00" }, "id": "6807067080966508003954", "orderInformation": { "amountDetails": { "currency": "usd" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "831000", "networkTransactionId": "016153570198200", "retrievalReferenceNumber": "309514102853", "responseCode": "00" }, "reconciliationId": "6807067080966508003954", "status": "PENDING", "submitTimeUtc": "2023-04-05T14:58:28Z" }