REST API | Visa Platform Connect

REST Example: Processing a Sale with Level III Data

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments
Request
{ "clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "capture": true, "purchaseLevel": "3" }, "paymentInformation": { "card": { "number": "41111111XXXXXXXX", "expirationMonth": "12", "expirationYear": "2031", "securityCode": "999" } }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD" }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "1 Market St", "locality": "san francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": "
test@cybs.com
", "phoneNumber": "4158880000" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/payments/6847868492196261203954/voids" }, "self": { "method": "GET", "href": "/pts/v2/payments/6847868492196261203954" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6847868492196261203954", "orderInformation": { "amountDetails": { "totalAmount": "102.21", "authorizedAmount": "102.21", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "systemTraceAuditNumber": "152662", "approvalCode": "831000", "cardVerification": { "resultCodeRaw": "M", "resultCode": "M" }, "merchantAdvice": { "code": "01", "codeRaw": "M001" }, "responseDetails": "ABC", "networkTransactionId": "016153570198200", "retrievalReferenceNumber": "314220152662", "consumerAuthenticationResponse": { "code": "2", "codeRaw": "2" }, "transactionId": "016153570198200", "responseCode": "00", "avs": { "code": "Y", "codeRaw": "Y" } }, "reconciliationId": "6847868492196261203954", "status": "AUTHORIZED", "submitTimeUtc": "2023-05-22T20:20:49Z" }