Agreement Query URL
Querying Agreement Types
After the payment session is created in the Akifast, the data used to create this session, such as the selected address by the user, is sent to the merchant to query about the agreement as follows:
The Akifast application sends a POST
request to the address specified by the query_agreement_types_url
parameter sent when the payment session is created with the following parameters.
If the response from the merchant is null, the Akifast application sends a 500 Internal Server Error!
Query Parameters
basket_id
string
The basket ID sent when the payment session is created.
conversation_id
string
The boomerang value sent by the merchant when creating the payment session.
order_id
string
Order number on the merchant side.
language
string
The language option selected by the user.
Example Request
Response Parameters
agreements[0].code
string
Code of the agreement.
agreements[0].text
string
Name/description of the agreement.
Example Response
Querying Single Agreement
After the payment session is created in the Akifast application, the data used to create this session, such as the selected address by the user, is sent to the merchant to query about the agreements as follows:
The Akifast application sends a POST request to the address specified by the query_agreements_url
parameter sent when creating the payment session along with the ?code=
parameter and the following parameters.
If the response from the merchant is null, the Akifast application sends a 500 Internal Server Error!
Query Parameters
order_id
string
Order number on the merchant side.
session_token
string
Payment session key obtained by the merchant.
shipping_address
Address Object
The selected shipping address by the user.
billing_address
Address Object
The selected billing address by the user.
user
akipay_user object
Information of the user who initiated the transaction.
shipping_option_key
string
The shipping option selected by the user.
language
string
The language option selected by the user.
conversation_id
string
The boomerang value sent by the merchant when creating the payment session.
basket_id
string
The basket ID sent when the payment session is created.
Example Request
Response Parameters
code
string
Code of the agreement.
text
string
Name/description of the agreement.
agreement_body
string
HTML text of the agreement.
Example Response
Last updated
Was this helpful?