Introduction
This is a guide to help you to integrate with Slip Verify, We provided RESTful API which can be access via HTTP requests
- RESTful Endpoint
https://suba.rdcw.co.th/v2/inquiry
Authentication
The API uses base64 encoded clientId
and clientSecret
for authentication which you can create in your own application dashboard
Authorization: Basic base64(clientId:clientSecret)
Inquiry
You can start using th Inquiry API by sending a POST request with the following payload
POST https://suba.rdcw.co.th/v2/inquiry
JSON Body -> { "payload": "1231" }
Mulitpart -> file: [SLIP].(jpeg|png|jpg) , Content-Type: multipart/form-data
Raw File -> [SLIP].(jpeg|png|jpg) , Content-Type: image/(jpeg|png)
Debugging requests
There are several error codes that the API may return
Errors are always return with a 400
status code
Example response
{
"code": [ERROR_CODE],
"message": [ERROR_MESSAGE]
}
-
1000
- Missing headers (Authorization
orContent-Type
) -
1001-1002
- Invalid authorization header -
1003
- IP not whitelisted -
1004-1006
- Invalid payload -
1007
- Usage exceeded -
1008
- Subscription expired -
2001
- Internal error 1 -
2002-2004
- Bank API Error -
2005
- Internal error 2 -
2006
- Bank API return no data
Examples
cURL
Example
curl -u 'CLIENT_ID:CLIENT_SECRET' \
-H 'Content-Type: application/json' \
-d '{"payload":"PAYLOAD"}' \
https://suba.rdcw.co.th/v2/inquiry