Create an Authorize
Changed onThis endpoint authorizes a transaction.
Request
- Base URLhttps://api.tap.company/v2/authorize
- URLhttps://api.tap.company/v2/authorize/
- AuthAPI key in header Authorization
Headers
change the language in the redirection page to "en" or "ar"
Request body
Response
200
Example response
{
"id": "auth_TS065220221533k5FK1505634",
"object": "authorize",
"api_version": "V2",
"method": "CREATE",
"status": "INITIATED",
"amount": 1,
"currency": "KWD",
"threeDSecure": true,
"statement_descriptor": "sample",
"transaction": {
"timezone": "UTC+03:00",
"created": "1652628832666",
"url": "https://sandbox.payments.tap.company/test_gosell/v2/payment/response.aspx?tap_auth=qU%2fYHoOr4blXyIfDLNpJrPnvbvtHyf4yqjGjChH5aTk%3d&sess=6mXrG%2fSKpa0%3d&token=qU%2fYHoOr4blXyIfDLNpJrPnvbvtHyf4yee5pNiSxqVQ28X2kDyKgPg%3d%3d",
"expiry": {
"period": 30,
"type": "MINUTE"
},
"amount": 1,
"currency": "KWD"
},
"reference": {
"transaction": "txn_0001",
"order": "ord_0001"
},
"response": {
"code": "100",
"message": "Initiated"
},
"receipt": {
"email": true,
"sms": true
},
"customer": {
"first_name": "Test",
"last_name": "Test",
"email": "test@test.com",
"phone": {
"country_code": "965",
"number": "50000000"
}
},
"source": {
"object": "source",
"id": "src_card"
},
"redirect": {
"status": "PENDING",
"url": "http://your_website.com/redirecturl"
},
"post": {
"status": "PENDING",
"url": "http://your_website.com/posturl"
},
"auto": {
"status": "PENDING",
"type": "VOID",
"time": 100
},
"metadata": {
"udf1": "test_data_1",
"udf2": "test_data_2",
"udf3": "test_data_3"
}
}Changes
- breaking
added
subschema #1subschema #2: initiated with payment agreementsubschema #3: authorized response with payment agreementto the response bodyoneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
api operation id
create-a-connect-urlremoved and replaced withcreate-an-authorize - info
added the new optional
headerrequest parameterlang_code - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
the request property
became optional - info
the request property
/became optional - info
the
request property default value changed fromhttp://example.com/postUrltohttp://your_website.com/posturl - info
the
request property default value changed fromhttp://example.com/redirectUrltohttp://your_website.com/redirecturl - info
added the optional property
to the response with the status
- breaking