Quickstart
-
Obtain an access token.
Terminal window curl -X POST https://api.bdvoucher.com/api/v1/auth/sign-in \-H 'Content-Type: application/json' \-d '{"msisdn":"8801712345678","password":"••••"}'const res = await fetch('https://api.bdvoucher.com/api/v1/auth/sign-in', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({ msisdn: '8801712345678', password: '••••' }),});const { data } = await res.json();const token = data.accessToken;import requestsr = requests.post('https://api.bdvoucher.com/api/v1/auth/sign-in',json={'msisdn': '8801712345678', 'password': '••••'},)token = r.json()['data']['accessToken'] -
Send an authenticated request.
Terminal window curl https://api.bdvoucher.com/api/v1/user/profile \-H "Authorization: Bearer $TOKEN" -
Explore interactively. Open the Client API reference or Admin API reference — every endpoint has a Try-It button and auto-generated snippets in 6 languages.
Response shape
Every JSON response uses the same envelope:
{ "success": true, "message": "OK", "data": { /* resource or list */ }, "errorCode": null, "meta": { "pagination": { "total": 120, "page": 1, "limit": 20 } }}See Response envelope for more details.