FILTER BY TAG

REST Example: Requesting an Authorization with Least-Cost Routing

Request
{ "clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "leastCostRouting": "true" }, "paymentInformation": { "card": { "number": "4111111111111111", "expirationMonth": "12", "expirationYear": "2031" } }, "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": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/6843757345116021304951/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/6843757345116021304951" }, "capture": { "method": "POST", "href": "/pts/v2/payments/6843757345116021304951/captures" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6843757345116021304951", "orderInformation": { "amountDetails": { "authorizedAmount": "102.21", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "accountFeatures": { "category": "A" }, "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "processorInformation": { "approvalCode": "831000", "networkTransactionId": "558196000003814", "transactionId": "558196000003814", "responseCode": "000", "avs": { "code": "Y", "codeRaw": "Y" } }, "status": "AUTHORIZED", "submitTimeUtc": "2023-05-18T02:08:54Z" }