Menu

REST Example: Processing a
DCC
Authorization

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments
Request
{ "clientReferenceInformation": { "code": "test_auth" }, "paymentInformation": { "card": { "number": "4111111111111111", "expirationMonth": "12", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "USD", "exchangeRate": "1.0221", "originalAmount": "100", "originalCurrency": "EUR", "currencyConversion": { "indicator": "1" } }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "1 Market St", "locality": "san francisco", "administrativeArea": "CA", "postalCode": "94105", "country": "US", "email": ", "phoneNumber": "4158880000" } } }
Response for a Successful Request
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/6848808151946385503955/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/6848808151946385503955" }, "capture": { "method": "POST", "href": "/pts/v2/payments/6848808151946385503955/captures" } }, "clientReferenceInformation": { "code": "test_auth" }, "id": "6848808151946385503955", "orderInformation": { "amountDetails": { "authorizedAmount": "102.21", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "systemTraceAuditNumber": "111623", "approvalCode": "831000", "merchantAdvice": { "code": "01", "codeRaw": "M001" }, "responseDetails": "ABC", "networkTransactionId": "016153570198200", "retrievalReferenceNumber": "314322111623", "consumerAuthenticationResponse": { "code": "2", "codeRaw": "2" }, "transactionId": "016153570198200", "responseCode": "00", "avs": { "code": "Y", "codeRaw": "Y" } }, "reconciliationId": "6848808151946385503955", "status": "AUTHORIZED", "submitTimeUtc": "2023-05-23T22:26:55Z" }
Back to top