Payouts
Learn more about payouts APIs and their usage.
Guidelines
Below are some of the points you must be aware of while calling Payouts APIs:
All API requests and responses are in JSON format.
POST requests should include
ContentType: application/jsonAll 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.
Quick Reference
URL
HTTP Verb
Functionality
Authentication
Calling the Authentication APIs allows you to get and verify bearer tokens returned by Swipez. Swipez require these token for all further communication.
Swipez libraries automatically call the Authorize API and internally store the token.
Do not store the token in an insecure manner. Regenerating a new token does not invalidate the already generated token. Token generated from one IP address cannot be used from a different IP address.
Token generated is valid for 60 Min . Please ensure that you get a new token by calling the authorize API once the token has expired.
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.
Get token
POST /api/token
This endpoint allows you to get API token.
Request Body
access_key_id
string
Your access key.
secret_access_key
string
Your secret key.
Sample code
Save beneficiary
POST /api/v1/beneficiary/save
This endpoint allows you to add beneficiary.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Request Body
name
string
Beneficiary name.
email_id
string
Beneficiary email id.
mobile
string
Beneficiary mobile.
account_number
string
Bank account number.
ifsc
string
Bank IFSC code.
address
string
Beneficiary address.
city
string
Beneficiary city.
state
string
Beneficiary state.
pincode
string
Beneficiary pincode.
Sample code
Transfer amount
POST /api/v1/beneficiary/transfer
This endpoint allows you to transfer amount to beneficiary.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Request Body
beneficiary_id
string
System generated beneficiary id.
amount
integer
Transfer amount.
reference_id
string
Your unique reference id.
narrative
string
Narrative for transaction.
Sample code
Withdraw amount
POST /api/v1/payout/withdraw
This endpoint allows you to withdraw amount to your bank account from nodal.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Request Body
amount
integer
Withdraw amount.
narrative
string
Narrative for withdraw transaction.
Sample code
Get balance
GET /api/v1/payout/balance
This endpoint allows you to get the ledger balance and available balance of your account.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Sample code
Get transfer status
GET /api/v1/payout/transferstatus/{type}/{id}
This endpoint allows you to status of transaction.
Path Parameters
type
string
Id type (transferid/referenceid) transferid: Transfer id which is return while transfer amount. referenceid: Reference id which is sent by merchant while transfer
id
number
Reference id or transfer id as per mentioned type.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Get beneficiary list
GET /api/v1/beneficiary/list
This endpoint allows you to fetch list of beneficiary.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Sample code
Beneficiary detail
POST /api/v1/beneficiary/detail
This endpoint allows you to fetch beneficiary details.
Headers
Authorization
string
Bearer auth token
Content-Type
string
application/json
Request Body
account_number
integer
Account number
ifsc
string
IFSC code
Sample code
Last updated
Was this helpful?