On This Page
REST API | Visa Platform Connect
Example: Dual-Message AFT Request Using the REST API
Request: Authorization Service for a dual-message AFT
{ "merchantInformation": { "vatRegistrationNumber": "15426476537657", "merchantDescriptor": { "name": "utf8_merchant_descriptor" } }, "orderInformation": { "amountDetails": { "anticipatedAmount": "123.45", "currency": "USD", "surcharge": { "amount": "9.99" }, "totalAmount": "102.21" }, "billTo": { "address1": "1 Market St", "administrativeArea": "CA", "country": "US", "email": "johnd@test.com", "firstName": "John", "lastName": "Doe", "locality": "San Francisco", "postalCode": "94105" } }, "paymentInformation": { "card": { "expirationMonth": "12", "expirationYear": "2031", "number": "4111111111111111", "securityCode": "123" } }, "processingInformation": { "authorizationOptions": { "aftIndicator": "true", "fundingOptions": { "initiator": { "type": "S" } } }, "businessApplicationId": "Bit Widgets", "firstName": "Shannon", "lastName": "O'Hara", "middleName": "Annabel", "postalCode": "571216", "streetName": "Alpine eco road" }, "senderInformation": { "account": { "number": "154264765376576126571652675176", "fundsSource": "02" }, "address1": "123 Highland Road", "administrativeArea": "KA", "countryCode": "GBR", "firstName": "Katherine", "identificationNumber": "12345678910111213223", "lastName": "Smith", "locality": "Leeds", "middleName": "Elizabeth", "personalIdType": "TXIN", "referenceNumber": "15426476537657", "type": "B" } }
Response: Authorization Service for a dual-message AFT
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/7169254233156744703955/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/7169254233156744703955" }, "capture": { "method": "POST", "href": "/pts/v2/payments/7169254233156744703955/captures" } }, "clientReferenceInformation": { "code": "1716925423354" }, "id": "7169254233156744703955", "orderInformation": { "amountDetails": { "authorizedAmount": "102.21", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "pointOfSaleInformation": { "terminalId": "123456" }, "processorInformation": { "approvalCode": "888888", "networkTransactionId": "123456789619999", "transactionId": "123456789619999", "responseCode": "100", "avs": { "code": "X", "codeRaw": "I1" } }, "reconciliationId": "66697798TWQ1OITL", "status": "AUTHORIZED", "submitTimeUtc": "2024-05-28T19:43:43Z" }