Menu

REST Example: Authorizing a Payment with an Instrument Identifier

Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments
Request
{ "clientReferenceInformation": { "code": "RTS-Auth" }, "paymentInformation": { "card": { "expirationYear": "2031", "expirationMonth": "12", "type": "001" }, "instrumentIdentifier": { "id": "7010000000016241111" } }, "orderInformation": { "amountDetails": { "currency": "USD", "totalAmount": "1.00" } }, "processingInformation": { "capture": "false", "commerceIndicator": "internet" } }
Response for a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/credits/6764065889926478803955/voids" }, "self": { "method": "GET", "href": "/pts/v2/credits/6764065889926478803955" } }, "clientReferenceInformation": { "code": "RTS-Auth" }, "creditAmountDetails": { "currency": "USD", "creditAmount": "1.00" }, "id": "6764065889926478803955", "orderInformation": { "amountDetails": { "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "instrumentIdentifier": { "id": "7010000000016241111", "state": "ACTIVE" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "888888", "responseCode": "100" }, "reconciliationId": "600445691E3A4D4B", "status": "PENDING", "submitTimeUtc": "2023-02-14T20:29:49Z" }
Back to top