On This Page
REST API | Barclays
Example: AFT Request Using the REST API
Request: Authorization Service for an AFT
This example is a consumer funding an online wallet for their future use.
{ "clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "commerceIndicator": "vbv", "authorizationOptions": { "aftIndicator": "Y" } }, "paymentInformation": { "card": { "number": "4111111111111111", "expirationMonth": "12", "expirationYear": "2031" } }, "orderInformation": { "amountDetails": { "totalAmount": "102.21", "currency": "GBP" }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "1 Market St", "locality": "san francisco", "postalCode": "94105", "country": "US", "email": "[email protected]", "phoneNumber": "4158880000" } }, "consumerAuthenticationInformation": { "cavv": "EHuWW9PiBkWvqE5juRwDzAUFBAk=", "xid": "EHuWW9PiBkWvqE5juRwDzAUFBAk=" } }
Response: Authorization Service for an AFT
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/6687658068376806004951/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/6687658068376806004951" }, "capture": { "method": "POST", "href": "/pts/v2/payments/6687658068376806004951/captures" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6687658068376806004951", "orderInformation": { "amountDetails": { "authorizedAmount": "102.21", "currency": "GBP" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "pointOfSaleInformation": { "terminalId": "90011646" }, "processorInformation": { "merchantNumber": "1021653", "approvalCode": "102", "merchantAdvice": { "code": "00", "codeRaw": "0" }, "networkTransactionId": "123456789012345", "transactionId": "123456789012345", "responseCode": "0", "avs": { "code": "1" } }, "status": "AUTHORIZED", "submitTimeUtc": "2022-11-18T10:03:27Z" }