On This Page
REST Example: AFT with Mastercard
Request
{ "clientReferenceInformation": { "code": "TC50171_3" }, "paymentInformation": { "card": { "number": "545454545454XXXX", "expirationMonth": "12", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "100.00", "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" } }, "processingInformation": { "authorizationOptions": { "aftIndicator": "y" }, "commerceIndicator": "internet", "businessApplicationId": "PP" }, "merchantInformation": { "merchantCategoryCode": "6540" }, "senderInformation": { "referenceNumber": "1234567890123456789", "firstName": "John", "middleName": "Joe", "lastName": "Smith", "address1": "1 Test Street", "locality": "Northampton", "countryCode": "GBR", "account": { "number": "545454545454XXXX" } }, "recipientInformation": { "firstName": "Joe", "middleName": "Bob", "lastName": "Bloggs", "accountType": "03", "accountId": "545454545454XXXX", "country": "GBR" } } }
Response
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/7345188576147159940121/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/7345188576147159940121" }, "capture": { "method": "POST", "href": "/pts/v2/payments/7345188576147159940121/captures" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "7345188576147159940121", "orderInformation": { "amountDetails": { "authorizedAmount": "100.00", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "002" } }, "paymentInformation": { "tokenizedCard": { "type": "002" }, "card": { "type": "002" } }, "processorInformation": { "approvalCode": "831000", "networkTransactionId": "MCC9999991231", "transactionId": "MCC9999991231", "responseCode": "00", "avs": { "code": "1" } }, "status": "AUTHORIZED", "submitTimeUtc": "2024-12-18T10:47:37Z"}