Biftpaydocs

API reference

Every endpoint you can call with a secret key, generated from the same specification the API is built from.

OpenAPI specification

Base URL#

text
https://sandbox.api.biftpay.com

Authentication#

Send your secret key as a bearer token. Test keys start bp_test_, live keys bp_live_; create them in the dashboard under Developers → API keys.

bash
curl https://sandbox.api.biftpay.com/v1/balance -H "Authorization: Bearer bp_test_..."

Conventions#

  • Amounts are integers in the smallest unit (kobo, cents).
  • Every POST needs an Idempotency-Key header. See Errors, retries and lists.
  • Lists are newest first, up to limit (default 20, at most 100), and page with starting_after.
  • Errors have one shape: { "error": { "type", "code", "message", "param" } }.