Skip to content

Quickstart

  1. 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":"••••"}'
  2. Send an authenticated request.

    Terminal window
    curl https://api.bdvoucher.com/api/v1/user/profile \
    -H "Authorization: Bearer $TOKEN"
  3. 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.