Transaction
Making a payment
POST https://api.vendex.app/api/transaction/payment/
API call from a sender to make a payment. Transaction signature given in the API will determine who the recipient is.
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login.
Content-Type
string
Content-type need to be set as application/json
{
"status": "success",
"detail": "Payment successful",
"data": {
"transaction_id": 1029,
"recipient_name": "John Doe",
"amount": "500.00",
"currency_code": "USD",
"created": "2020-09-09T07:14:39.660639Z",
"description": "Payment Pizza hut - Airport, Vegas.",
}
}Example of POST data (JSON)
Authorize payment
POST https://api.vendex.app/api/transaction/authorize/
This method is to allow merchant to charge account. When user scan a QR with type "sale_point", app will give authorization to the merchant so that it can charge later with any amount (limited to account balance and charge limit). It can be used for a vending, taxi or any suitable application. Transaction signature is required for this call.
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login.
Content-Type
string
Content type need to be set as application/json
Example of POST data(JSON)
Cancel previous payment authorization
GET https://api.vendex.app/api/transaction/authorize_cancel/
This method is to cancel all open authorization.
Headers
Api-Client-Token
string
Client token obtained from client authentication method
Api-User-Token
string
User token obtained from user login
Conducting a refund
POST https://api.vendex.app/api/transaction/refund/
To conduct refund on previous transaction. Refund amount can be partial or full. One transaction can have multiple refunds as long as the total refund amount is no greater than the original transaction amount.
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login.
Content-Type
string
Content-type need to be set as application/json.
Example of POST data (JSON)
Set transaction signature
POST https://api.vendex.app/api/signature/set/
To set signature with the payment request amount. If signature is not set, sender has the capability to enter amount when making a payment.
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login.
Content-Type
string
Content-type need to be set as application/json
Example of POST data (JSON)
Get transaction signature
GET https://api.vendex.app/api/signature/get/?account_number=1234567812345678
To get transaction signature before making a transaction. Result can include amount if it is set by the recipient.
Query Parameters
account_number
integer
Account number can retrieved from QR code/Barcode
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login method.
Cancel transaction signature
GET https://api.vendex.app/api/signature/cancel/
To cancel signature where signature is set while request a payment.
Headers
Api-Client-Token
string
Client token obtained from client authentication method.
Api-User-Token
string
User token obtained from user login method.
Last updated
Was this helpful?