REST API | Visa Platform Connect

Example: Performing a Stand-Alone Credit with a Token Using the REST API

Endpoint:
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments
Request
{     "clientReferenceInformation": {         "transactionId": "43987654321",         "partner": {             "thirdPartyCertificationNumber": "123456789012"         }     },     "paymentInformation": {         "card": {             "expirationMonth": "03",             "expirationYear": "2031",             "type": "001"         },         "instrumentIdentifier": {             "id": "DCED1B858116F177E053AF598E0AA10A"         }     },     "orderInformation": {         "amountDetails": {             "totalAmount" : "200.00",             "currency": "THB"         }     } }
Response to a Successful Request
{     "_links": {         "void": {             "method": "POST",             "href": "/pts/v2/credits/6502828338426145304001/voids"         },         "self": {             "method": "GET",             "href": "/pts/v2/credits/6502828338426145304001"         }     },     "clientReferenceInformation": {         "code": "12345678",         "transactionId": "43987654321"     },     "creditAmountDetails": {         "currency": "THB",         "creditAmount": "200.00"     },     "id": "6502828338426145304001",     "orderInformation": {         "amountDetails": {             "currency": "THB"         }     },     "paymentAccountInformation": {         "card": {             "type": "001"         }     },     "paymentInformation": {         "tokenizedCard": {             "type": "001"         },         "instrumentIdentifier": {             "id": "DCED1B858116F177E053AF598E0AA10A",             "state": "ACTIVE"         },         "card": {             "type": "001"         }     },     "reconciliationId": "6502828338426145304001",     "status": "PENDING",     "submitTimeUtc": "2022-04-18T11:53:54Z" }