REST API | Visa Platform Connect

REST Example: Processing a Credit with Level II Data

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/credits/
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/credits/
Request
{ "paymentInformation": { "card": { "number": "41111111XXXXXXXX", "expirationMonth": "03", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "200", "currency": "USD" }, "billTo": { "firstName": "John", "lastName": "Deo", "address1": "900 Metro Center Blvd", "locality": "Foster City", "administrativeArea": "CA", "postalCode": "48104-2201", "country": "US", "email": "
test@cybs.com
", "phoneNumber": "9321499232" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6807043651016112003955/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6807043651016112003955" } }, "clientReferenceInformation": { "code": "1680704365197" }, "creditAmountDetails": { "currency": "USD", "creditAmount": "200.00" }, "id": "6807043651016112003955", "orderInformation": { "amountDetails": { "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "831000", "networkTransactionId": "016153570198200", "retrievalReferenceNumber": "309514100806", "responseCode": "00" }, "reconciliationId": "6807043651016112003955", "status": "PENDING", "submitTimeUtc": "2023-04-05T14:19:25Z" }