Payment API
Guidelines
Below are some of the points you must be aware of while calling Swipez APIs:
All API responses are in JSON format.
POST requests should include
ContentType: application/json
All API response have status, message, and data.
Swipez uses API keys to allow access to the API. Once you have signed up at our merchant site, you will be able to see your AccessKey and SecretKey.
Rate limiting
The API is rate limited per user. You will receive a 429 HTTP status code if you exceed the rate limit. The rate limit is 30 requests per minute per user and is subject to change.
Quick Reference
URL
HTTP Verb
Functionality
POST
To get list of payment transactions.
POST
To get status of payment.
Payment received
POST
/api/v1/merchant/payment/received
This endpoint allows you to get list of payment transactions.
Request Body
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
from_date
string
From date (in the format YYYY-mm-dd) from which you want the data.
to_date
string
To Date till you want the data
Sample code
Payment status
POST
/api/v1/merchant/payment/status
This endpoint allows you to get status of payment transaction.
Request Body
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
transaction_type
string
Transaction type MERCHANT_TRANS_ID : Merchant reference no. SWIPEZ_TRANS_ID: Swipez transaction ID. SWIPEZ_REQ_ID: Swipez invoice id.
id
string
Value for transaction type
Sample code
Last updated
Was this helpful?