Pre-Authorization with a Token
China UnionPayREST API
This section describes how to process a pre-authorization.
Endpoint
Production:
POST
https://api.cybersource.com
/pts/v2/paymentsTest:
POST
https://apitest.cybersource.com
/pts/v2/paymentsRequired Fields for a Pre-Authorization with a Token Using the REST API
- Set this field value toTransitDA BAU nominal value auth.
- Cybersourceprovides the value for this field.
- Set this field to2.
- Set this field tocontactless.
- Set this field to5.
- Set this field to0.
- Set this field totrue.
- Set this field totrue.
- Set this field toretail.
- Set this field totransit.
Related Information
REST Example: Pre-Authorization with a Token Using the REST
API
Response to a Successful Request Under First Ride Risk Liability
{"_links": { "self": { "method": "GET", "href": "/pts/v2/payments/7012384708016080703137" } }, "clientReferenceInformation": { "code": "TransitDA BAU nominal value auth" }, "errorInformation": { "reason": "AUTH_DECLINE_CAPTURE_POSSIBLE", "message": "Authorization Declined. Follow-on Capture can be processed." }, "id": "7078109972977125857011", "paymentInsightsInformation": { "responseInsights": { "categoryCode": "97", "category": "PAYMENT_INSIGHTS_INTERNAL_ERROR" } }, "processorInformation": {"responseCode": "58","avs": { "code": "2" } }, "status": "AUTHORIZED"}
Request
1234567891011121314151617181920212223242526272829303132333435363738394041{"clientReferenceInformation": { "code": "TransitDA BAU nominal value auth", "transactionId": "12845679", "partner": { "thirdPartyCertificationNumber": "123456789012" } }, "pointOfSaleInformation": { "operatingEnvironment": "2", "terminalPinCapability": "0", "catLevel": "2", "terminalId": "12345678", "entryMode": "contactless", "terminalCapability": "5", "emv": { "cardSequenceNumber": "01" } }, "processingInformation": { "reconciliationId": "7866535268", "commerceIndicator": "retail", "industryDataType": "transit", "authorizationOptions": { "aggregatedAuthIndicator": "true", "deferredAuthIndicator": "true" } }, "orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "THB" } }, "tokenInformation": { "jti": "c76392f4-cde4-11aa-b8bc-0242ac14c074" }, "paymentInformation": { "card": { "type": "062" } }}
Response to a Successful Request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849{"_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/7012384708016080703137/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/7012384708016080703137" }, "capture": { "method": "POST", "href": "/pts/v2/payments/7012384708016080703137/captures" } }, "clientReferenceInformation": { "code": "TransitDA BAU nominal value auth", "transactionId": "12845679" }, "id": "7012384708016080703137", "orderInformation": { "amountDetails": { "authorizedAmount": "1.00", "currency": "THB" } }, "paymentAccountInformation": { "card": { "type": "062" } }, "paymentInformation": { "tokenizedCard": { "type": "062" }, "card": { "type": "062" } }, "processorInformation": { "approvalCode": "005290", "settlementDate": "0501", "responseCode": "00", "avs": { "code": "2" } }, "reconciliationId": "333306641171", "status": "AUTHORIZED", "submitTimeUtc": "2023-11-29T06:14:33Z"}