Skip to content
All providers

Bictorys

payment·🇸🇳🇨🇮🇲🇱🇹🇬🇧🇯🇧🇫·Sandbox available

Bictorys is a payment infrastructure provider serving West and Central Africa, supporting mobile money and card payments across multiple countries through a unified API.

Use with AI agents

After installing the plugin or adding the MCP server, prompt your agent:

“Capture, totally or partially, a Bictorys card payment that was only authorized (create_charge with authorization: true), once the order is ready to be charged.”
Install the plugin →

Who can open an account

Not stated by the provider

Bictorys’s pages don’t say. Before signing up, ask them:

“Can I open a merchant account without a registered business? With which documents, and up to what amount?”

Before you sign up

Bictorys says account validation depends on mandatory documents, but neither docs.bictorys.com, bictorys.com, its terms (https://infos.bictorys.com/termes-conditions/) nor the sign-up form (https://register.bictorys.com) lists them or says whether an individual without a registered business can open an account.

What the provider’s pages say (1)

Pages read on November 3, 2026.

Know the answer? Tell us on GitHub →

Capabilities

CapabilityTypeStatusiMethodExample
capture_chargesynchronousAvailablePOST
create_chargesynchronousVerifiedPOST
create_payoutsynchronousVerifiedPOST
verify_transactionsynchronousAvailableGET
webhook_payment_completedwebhookVerifiedPOST

Gotchas

capture_charge

  • ⚠transactionId goes in the QUERY STRING, not the path or the body: POST /pay/v1/captures?transactionId={uuid}, with { amount, currency } as the JSON body. The reference declares the parameter as "name": "transactionId", with "in": "query" and "required": true.
  • ⚠The capture applies to "a transaction previously authorized". The documented way to get one is authorization: true in the request body, accepted by POST /pay/v1/charges (create_charge) and by PATCH /pay/v1/charges/{chargeId} (completeCharges, which completes a charge started without a payment method). Both references describe it as: "request approval from card issuer to reserve an amount on the holder card to pay later the transaction. When set to true, an authorization request will be send to card issuer. If ignored or set to false, holder card will be charged immediately".
  • ⚠Bictorys' integration guide lists the transaction status "authorized" as "Payment authorized (card pre-capture)", and create_charge's Enum3DSState lists both "AUTHORIZED" and "CAPTURED" (which one an authorized charge carries is not stated). The same guide tells you to fulfil on it: "| `authorized` | Payment authorized (card pre-capture) | ✅ Treat as `succeeded`" (docs.bictorys.com/docs/intégration-en). That guide never mentions this capture endpoint, and no page says whether an authorization that is never captured gets collected — see open_questions before shipping goods on "authorized" without capturing.
  • ⚠The amount must not exceed what was authorized: "The amount of capture must not exceed authorized amount." A lower amount is a partial capture ("capture totally or partially a transaction previously authorized"). The error enum's only capture-related entry is "E400-50: Amount exceed available capture".
  • ⚠Success is HTTP 202 with no documented body: check the status code, do not parse a JSON body you were not promised. To read the transaction afterwards, call verify_transaction — what status it shows after a capture is not documented.
  • ⚠Bictorys' API key page (docs.bictorys.com/docs/get-your-api-key) says the public key "doit être utilisée lorsque vous voulez appeler l'API charges charges depuis votre interface frontale ou votre application mobile", and "La clé privée ne doit en aucun être utilisée pour appeler nos APIs depuis votre application front-end ou application mobile". Our recommendation, not Bictorys': a capture is a decision your backend takes once the order can be charged, never the browser — take the transactionId from your own records, not from a redirect or a client request.
  • ⚠A private key only works from the server IP addresses attached to it (docs.bictorys.com/docs/getting-your-private-ip-address): "Sans attachement de votre adresse IP de serveur à une clé, vous ne pourrez pas effectuer de requêtes vers nos points d'accès." Another IP gets HTTP 403 {"success": false, "error": "Your IP address is not allowed to access this service", "errorType": "ACCESS_DENIED"}. The sandbox will not catch it: "nous ne sommes pas stricts en ce qui concerne des adresses IP spécifiques en mode test". Attach your production server's public IP to the production private key before going live.
  • ⚠No idempotency header is documented for this endpoint (only transactionId and X-Amzn-Trace-Id). Do not blindly retry a capture that timed out: call verify_transaction first, since whether a second capture of the same transaction is rejected or charges again is not documented (see open_questions).
  • ⚠Sandbox base URL is https://api.test.bictorys.com — the production URL is https://api.bictorys.com. The capture reference lists only the test server (https://api.test.bictorys.com/pay/v1).

create_charge

  • ⚠payment_type is a query parameter, not a request body field. Append it to the URL: POST /pay/v1/charges?payment_type=wave_money. Omitting it returns HTTP 202 with a hosted-checkout link instead of a direct 201 response.
  • ⚠The response HTTP status determines the flow: 201 means the direct payment was initiated (use response.transactionId and response.redirectUrl); 202 means the customer must be sent to response.link on the Bictorys-hosted checkout page.
  • ⚠Store transactionId (201 flow) or chargeId (202 flow) before redirecting the customer — you'll need it to match the webhook_payment_completed event back to this order, and optionally to call verify_transaction if you need an immediate status for the redirect UX.
  • ⚠Nothing is fulfillable right after create_charge returns — the customer hasn't paid yet, they're only about to be redirected to complete payment. Never trust the browser redirect alone to mark an order paid (it's fully spoofable — a user can visit successRedirectUrl without paying). The source of truth for fulfillment is the signature-verified webhook_payment_completed event, not this response and not the redirect.
  • ⚠successRedirectUrl and errorRedirectUrl must start with https:// — HTTP URLs are rejected with E400-0: redirectUrl must start with https://.
  • ⚠Sandbox base URL is https://api.test.bictorys.com — the production base URL is https://api.bictorys.com. Sandbox and production use separate API keys obtained from the Bictorys dashboard.
  • ⚠Card payments via the direct API (payment_type=card with a cardObject in the body) require PCI-DSS certification. Mobile money payments have no certification requirement.
  • ⚠Card payments return E401-7: Card payment is not activated yet in production until Bictorys manually activates card payments for your merchant account — reproduces both with an explicit payment_type=card and via the hosted-checkout flow (no payment_type, customer picks card from Bictorys' page). Sandbox does not reproduce this — test cards work there with no activation step, so this will not surface until you go live. Contact Bictorys support to enable card payments on your production account before launch; mobile money has no such gate.
  • ⚠create_charge uses the PUBLIC API key (env BICTORYS_API_KEY, header X-Api-Key), and so does verify_transaction; create_payout uses the PRIVATE key (env BICTORYS_PRIVATE_KEY, header X-API-Key). The integration guide: "Status check (GET /pay/v1/transactions/{id}/status) | Clé publique (BICTORYS_API_KEY)", "Payouts (retraits) | Clé privée (BICTORYS_PRIVATE_KEY)", and "Utiliser la clé privée pour une charge fonctionne, mais ce n'est pas recommandé." A sandbox call measured 2026-09-14 also accepted the private key on verify_transaction.
  • ⚠Orange Money Côte d'Ivoire requires an OTP: the customer must dial #144*82# on their phone to generate a 6-8 digit code, then pass it as the 'otp' field in the request body. The OTP expires quickly — if the charge fails with an OTP error, ask the user to redial.
  • ⚠The request body field is 'errorRedirectUrl' (lowercase e) — Bictorys' own documentation example shows 'ErrorRedirectUrl' (capital E), which appears to be a doc typo; lowercase is confirmed working end-to-end in production (charge creation + successful webhook).
  • ⚠HTTP 403 with an HTML body (not JSON) means AWS WAF is rate-limiting your requests. Implement exponential backoff with at least 5-second spacing between retries.

create_payout

  • ⚠payment_type goes in the query string: POST /pay/v1/payouts?payment_type=wave_money. The API reference does not mark it required, but the integration guide always sends it (POST {BICTORYS_API_URL}/pay/v1/payouts?payment_type={type}). The reference enum has 10 values: wave_money, orange_money, maxit, mtn_money, free_money, moov, mobicash, togocell, bictorys, card.
  • ⚠transactionType is required — omitting it causes a 500. Use "payment" for standard disbursements.
  • ⚠idempotency-key header is effectively required — a missing idempotency-key is a known cause of 500 errors. Always send a UUID per request.
  • ⚠merchant.secretCode is the operator-issued merchant PIN (e.g. your Orange Money or MTN merchant code) registered in Bictorys Dashboard → Entreprise → Préférences. Required when configured on your account — omitting it returns E400-37: Secret code is missing.
  • ⚠customerObject.phone is a string with a + and country code prefix, no spaces. Example: "+221771234567" for Senegal. Using a numeric type causes a 400 phone error.
  • ⚠The response amount is a negative integer — money leaving the merchant account. Use Math.abs() if displaying to the user.
  • ⚠status is a string, not an integer: one of succeeded, failed, cancelled, pending, processing, reversed or authorized (PaymentStatus in the transactions reference). A completed sandbox payout returns "succeeded".
  • ⚠Money transfer must be explicitly enabled for your merchant account. If not, Bictorys returns E400-28: Money transfer is not authorized for this merchant. Contact Bictorys support.
  • ⚠A 400 error mentioning "balance" means Bictorys' own float is insufficient; a 400 error mentioning "plafond" or "limit" means the recipient's mobile money account hit its own operator-side ceiling — these are distinct failure modes and neither is retryable without merchant/recipient action.
  • ⚠Set your HTTP client timeout to at least 30 seconds — payout processing is slower than charge creation.
  • ⚠BICTORYS_PRIVATE_KEY only works from the server IP addresses attached to it (docs.bictorys.com/docs/getting-your-private-ip-address): "Sans attachement de votre adresse IP de serveur à une clé, vous ne pourrez pas effectuer de requêtes vers nos points d'accès." A payout from another IP gets HTTP 403 {"success": false, "error": "Your IP address is not allowed to access this service", "errorType": "ACCESS_DENIED"} — a different 403 from the wrong-key "Access right not sufficient". The sandbox will not catch it: "nous ne sommes pas stricts en ce qui concerne des adresses IP spécifiques en mode test". Attach your production server's public IP to the production private key before going live.
  • ⚠Sandbox base URL is https://api.test.bictorys.com — the production URL is https://api.bictorys.com. Sandbox payouts do not send real money.

verify_transaction

  • ⚠Redirect query parameters are fully spoofable — never fulfill an order from them alone; call this endpoint server-side (or wait for the webhook) before trusting a redirect. A signature-verified webhook_payment_completed event, on the other hand, does not need this endpoint to be trusted — its HMAC/secret verification already proves authenticity, and gating fulfillment on a live call here risks losing an already-successful payment if this endpoint is briefly down (see the 500 gotcha below).
  • ⚠Use the PUBLIC key here (env BICTORYS_API_KEY, same key as create_charge, header X-API-Key). Bictorys' integration guide (docs.bictorys.com/docs/integration) lists "Status check (GET /pay/v1/transactions/{id}/status) | Clé publique (BICTORYS_API_KEY)" and "BICTORYS_API_KEY (publique) — Header X-Api-Key pour créer des charges et vérifier des transactions." The sandbox also accepts the PRIVATE key (BICTORYS_PRIVATE_KEY) on this endpoint — a live sandbox call measured 2026-09-14 (afrotools PR #67): both keys return 200 — so a sandbox-only test will not catch a wrong key. Do not rely on that permissiveness in production, and never send the private key from a frontend or mobile app.
  • ⚠Bictorys' integration guide ("Statuts possibles" table) says: `succeeded` — "Paiement confirmé" — "✅ Valider la commande"; `authorized` — "Paiement autorisé (pré-capture carte)" — "✅ Traiter comme `succeeded`"; `pending` and `processing` — "⏳ En attente — le webhook confirmera le statut final"; `failed`, `cancelled`, `reversed` — "❌ Marquer FAILED". "authorized" means funds are reserved but not yet captured: the API reference describes create_charge's `authorization: true` as a request to "reserve an amount on the holder card to pay later the transaction", and has a separate endpoint to "capture totally or partially a transaction previously authorized" (the capture_charge spec: POST /pay/v1/captures?transactionId=…). Whether fulfilling on "authorized" without a capture is safe is not stated — see open_questions.
  • ⚠The transactionId to pass here is the id field from the webhook payload, or the transactionId / chargeId field from the create_charge response — they refer to the same transaction UUID.
  • ⚠id can be null: on 2026-10-29, in the sandbox, a status check on an unpaid hosted-checkout charge (create_charge HTTP 202, chargeId), made right after creation, returned HTTP 200 {"id":null,"status":"pending"} (integration report, afrotools issue #175). Do not take the transaction id from this response: use the id you put in the path.
  • ⚠Sandbox, to reach succeeded: Bictorys documents test cards (docs.bictorys.com/docs/cartes-bancaires-de-test): enter a first and last name of your choice, a future expiry date and a CVV; 2303779999000275 (frictionless) and 2303779999000408 (challenge, the OTP to enter on the challenge page is 1234) succeed; 2303779999000291, 2303779999000317, 2303779999000424 and 2303779999000432 fail (not authenticated, or unavailable). Mobile money in the sandbox runs on a simulator (docs.bictorys.com/docs/test-mobile-money): a QR code is shown, to scan with the phone's camera only, never with a real Wave, Orange Money or MTN app. In the sandbox, the success and error redirect URLs are not called after a mobile money payment: test a redirect with a card.
  • ⚠A transactionId taken from the redirect comes from the browser: prefer the one you stored, since unencoded, a visitor's "../…" would send this call, with your API key, to another endpoint. The docs type it as a uuid — create_charge: "transactionId": { "description": "Unique Id of the initiated transaction", "type": "string", "format": "uuid" }. The example passes it through encodeURIComponent: an empty value, "." or ".." still changes the path, and the value must be the decoded one (URLSearchParams.get decodes it), or it is encoded twice.
  • ⚠Sandbox base URL is https://api.test.bictorys.com — the production URL is https://api.bictorys.com.
  • ⚠On status 'succeeded', this endpoint returns NO amount and NO timestamp — observed live: {"id": "…", "status": "succeeded"} and nothing else. Reading status and amount from the same response therefore yields 0 for the amount ON THE SUCCESS PATH, which in a billing system means crediting nothing while everything reports success. Compare against the amount you expected (stored in your own order record and sent to create_charge); the amount actually paid is only available from a verified webhook_payment_completed payload. GET /pay/v1/transactions (undocumented list, match on paymentReference) is not a fallback with the public key: in the sandbox (test of 2026-11-26/27) it answered HTTP 403 {"status":403,"title":"FORBIDDEN","details":"E403-1: Access right not sufficient","source":"pay"} with the public key (integration report, afrotools issue #216). Whether the private key is accepted there is not known — see open_questions.
  • ⚠The list endpoint GET /pay/v1/transactions (undocumented; 403 with the public key, see above) only becomes non-empty once a transaction COMPLETES. In a sandbox test of 2026-09-14 (afrotools PR #67, when this spec still used the private key; the key sent was not recorded) it stayed [] while a charge is merely pending, which makes reference-based lookup look untestable in sandbox until the first successful payment.
  • ⚠In the Bictorys sandbox, GET /pay/v1/transactions/{id}/status is known to return HTTP 500 intermittently. For sandbox testing, rely on webhook events instead of polling this endpoint.
  • ⚠Bictorys recommends polling this endpoint for backend-less apps (e.g. static/mobile-only clients that can't expose a webhook endpoint). Apps with a backend server should treat webhook_payment_completed as the source of truth for fulfillment, and use this endpoint for the redirect-triggered UX check and for reconciliation (e.g. a periodic sweep of orders whose webhook never arrived) — not as a mandatory gate after every webhook.

webhook_payment_completed

  • ⚠Bictorys sends two validation headers: X-Secret-Key (raw shared secret, always present) and optionally X-Webhook-Signature (HMAC-SHA256 hex) + X-Webhook-Timestamp (Unix milliseconds). When X-Webhook-Signature is present, verify with HMAC-SHA256(BICTORYS_WEBHOOK_SECRET, '${timestamp}.${rawBody}') and reject payloads where Math.abs(Date.now() - timestamp) > 300_000.
  • ⚠The HMAC pair is ACCOUNT-GATED and off by default: docs.bictorys.com/docs/intégration-en marks both headers 'optional (if HMAC enabled)'. A live sandbox webhook captured 2026-09-14 carried only accept, content-length, content-type, host, user-agent and x-secret-key — no signature, no timestamp. Write both paths, but do not assume the HMAC will be there: on an account where it is not enabled, your fallback is what runs in production.
  • ⚠X-Secret-Key carries the secret in CLEAR on every delivery. Never point a Bictorys webhook at a public capture bin (webhook.site, requestbin) using your real secret — anyone holding the bin URL can read it. Use a throwaway secret for capture testing, then rotate.
  • ⚠WHEN THE HMAC IS NOT ENABLED on your account, X-Secret-Key proves only that the sender knows the secret — it says nothing about the body, and a tampered payload passes (measured: an amount rewritten from 100 to 100000 is accepted). In that configuration the amount/currency/status/paymentReference cross-check below is not a belt-and-braces extra: it is the only thing standing between you and a forged payload.
  • ⚠Always use crypto.timingSafeEqual() when comparing X-Secret-Key or HMAC values — never use === or ==. String equality comparison is vulnerable to timing attacks.
  • ⚠Bictorys retries the webhook up to 3 times if your endpoint returns a non-2xx status. Always respond HTTP 200 immediately, even if your internal processing fails — then handle errors asynchronously.
  • ⚠Express users: mount express.raw({ type: 'application/json' }) before express.json() on the webhook route, or keep req.rawBody. The raw body is required to compute the HMAC if it is enabled on your account — JSON.parse() loses it — and it is what you log for audit either way.
  • ⚠Don't gate fulfillment on an extra synchronous call to verify_transaction — a signature-verified webhook (HMAC or X-Secret-Key) combined with the anti-fraud amount/currency match below is already sufficient proof. verify_transaction's /status endpoint is known to be intermittently unavailable (see its own gotchas), so calling it here risks losing an already-successful payment to a transient outage on Bictorys' side. Reserve verify_transaction for the client-side redirect flow (which IS spoofable and needs it) and for reconciliation if a webhook never arrives.
  • ⚠Anti-fraud check: before fulfilling, verify that the webhook's amount and currency match your own order records — a forged or replayed payload could otherwise pass signature checks with tampered amounts.
  • ⚠Log the raw webhook payload to a persistent store (DB table) immediately after signature verification and before any business logic runs — this gives you an audit trail even if downstream processing fails, and is the natural place to implement the idempotency check above.
  • ⚠Implement idempotency using the transaction id field. Bictorys may deliver the same webhook event more than once; processing the same id twice must not double-fulfill an order.
  • ⚠Your webhook URL must be publicly reachable over HTTPS. Webhook configuration is separate for test vs. production environments in the Bictorys dashboard.
  • ⚠Bictorys recommends this webhook for apps with a backend server. For backend-less apps (e.g. static/mobile-only clients that can't expose a webhook endpoint), poll verify_transaction instead to check payment status.
  • ⚠The timestamp field is not strict ISO 8601 (space instead of 'T', no timezone, non-standard fractional-second precision — e.g. "2026-08-08 18:45:44.10254"). Don't rely on a strict ISO parser; use a lenient date library or normalize the string first.

Details

Category
payment
Sandbox
Yes

Who can open an account

Not stated by the provider

Details