# Authentication Source: https://docs.bullring.finance/01-authentication Authenticate with a registered RSA public key. THE IDENTITY # One key, one integration Partners authenticate with a registered RSA public key. The matching private key stays in your infrastructure. Bullring stores the public key and maps it to your team and store. ## Required headers ```http theme={null} X-Key-Id: prod-2026-02 X-Timestamp: 1795300000 X-Idempotency-Id: 0f0e0d0c-0b0a-4908-8706-050403020100 X-Digital-Signature: ``` `X-Key-Id` is public metadata. It selects the public key used for verification. ## Store scope The key is associated with an existing Bullring store integration. Your requests cannot access another store or an unrelated subaccount. ## Optional IP allowlisting When registering a partner integration in the dashboard, you can provide exact IPv4 or IPv6 addresses allowed to send requests for that integration. * Leave the list empty to allow requests from any source IP. * Separate multiple addresses with commas or new lines. * A request from an address that is not on the list returns `403` with code `IP_NOT_ALLOWED`. * The allowlist applies to the partner integration and its signing keys. * CIDR ranges are not accepted; add each exact source address. Make sure the configured address is the public egress IP seen by Bullring, not an internal container or workstation address. ## Key rotation Register a new public key before retiring the old one. Both keys may be active during the overlap. Revoke the old key only after all workers use the new key. ## Keep private material private Do not send the PEM private key in an HTTP header, commit it, or log it. The only signature header value sent over HTTP is the Base64-encoded signature for that request. # Quickstart Source: https://docs.bullring.finance/02-quickstart Make your first signed NGN request. THE FIRST CALL # Create a virtual account The following example signs a bodyless GET request. For a bodyless request, the body component is zero bytes. ```bash cURL theme={null} STORE_ID="76909781-c483-48f4-8b9e-a887557b8ccc" KEY_ID="prod-2026-02" PRIVATE_KEY="./partner-private-key.pem" TIMESTAMP="$(date +%s)" IDEMPOTENCY_ID="$(uuidgen | tr '[:upper:]' '[:lower:]')" METHOD="GET" PATH="/v2/ramp/${STORE_ID}/banking/deposits" CANONICAL="v1.${TIMESTAMP}.${IDEMPOTENCY_ID}.${METHOD}.${PATH}." SIGNATURE="$( printf '%s' "$CANONICAL" | openssl dgst -sha256 -sign "$PRIVATE_KEY" | openssl base64 -A )" curl "https://sandbox-api.bullring.finance${PATH}" \ -H "X-Key-Id: ${KEY_ID}" \ -H "X-Timestamp: ${TIMESTAMP}" \ -H "X-Idempotency-Id: ${IDEMPOTENCY_ID}" \ -H "X-Digital-Signature: ${SIGNATURE}" ``` ```javascript Node.js theme={null} import { createSign, randomUUID } from "node:crypto"; import fs from "node:fs"; const path = "/v2/ramp/76909781-c483-48f4-8b9e-a887557b8ccc/banking/deposits"; const timestamp = Math.floor(Date.now() / 1000).toString(); const idempotency = randomUUID(); const canonical = `v1.${timestamp}.${idempotency}.GET.${path}.`; const signer = createSign("RSA-SHA256"); signer.update(canonical); const signature = signer.sign(fs.readFileSync("./partner-private-key.pem"), "base64"); const response = await fetch(`https://sandbox-api.bullring.finance${path}`, { headers: { "X-Key-Id": "prod-2026-02", "X-Timestamp": timestamp, "X-Idempotency-Id": idempotency, "X-Digital-Signature": signature } }); console.log(await response.json()); ``` ```python Python theme={null} import base64 import time import uuid import requests from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding path = "/v2/ramp/76909781-c483-48f4-8b9e-a887557b8ccc/banking/deposits" timestamp = str(int(time.time())) idempotency = str(uuid.uuid4()) canonical = f"v1.{timestamp}.{idempotency}.GET.{path}.".encode() with open("./partner-private-key.pem", "rb") as key_file: private_key = serialization.load_pem_private_key(key_file.read(), password=None) signature = base64.b64encode( private_key.sign(canonical, padding.PKCS1v15(), hashes.SHA256()) ).decode() response = requests.get( f"https://sandbox-api.bullring.finance{path}", headers={ "X-Key-Id": "prod-2026-02", "X-Timestamp": timestamp, "X-Idempotency-Id": idempotency, "X-Digital-Signature": signature, }, ) print(response.json()) ``` ```go Go theme={null} // Sign the UTF-8 bytes of: // v1...GET.. // with RSA-SHA256/PKCS#1 v1.5, then Base64 encode the result. // Send the result in X-Digital-Signature with the other three headers. ``` ```bash cURL theme={null} curl "https://sandbox-api.bullring.finance/v2/ramp/76909781-c483-48f4-8b9e-a887557b8ccc/banking/deposits" \ -H "X-Key-Id: prod-2026-02" \ -H "X-Timestamp: ${TIMESTAMP}" \ -H "X-Idempotency-Id: ${IDEMPOTENCY_ID}" \ -H "X-Digital-Signature: ${SIGNATURE}" ``` Expected response shape: ```json theme={null} { "currency": "NGN", "bankInfo": { "bankAccountNumber": "4000005216", "bankBeneficiaryName": "Partner NGN" }, "channelId": "ngn-channel-id-bullring-finance" } ``` ## Important The signature must be generated from the exact path and exact body bytes sent. Do not serialize JSON twice. # Request signing Source: https://docs.bullring.finance/03-signing Sign the exact request bytes with RSA-SHA256. THE PROOF # Sign bytes, not objects The canonical signing input is: ```text theme={null} v1..... ``` The prefix and body are UTF-8 bytes. For a GET with no body, `` is empty. ## Example POST ```text theme={null} v1.1795300000.0f0e0d0c-0b0a-4908-8706-050403020100.POST./v1/ramp/store-uuid/banking/conversions/quote.{"fromCurrency":"USD","toCurrency":"NGN","amount":1000} ``` Sign that exact byte sequence with: ```text theme={null} RSA-SHA256 PKCS#1 v1.5 padding Base64 output ``` ## Signing examples The following examples use the same canonical request and show the common implementation languages. ```javascript Node.js theme={null} import { createSign, randomUUID } from "node:crypto"; import fs from "node:fs"; const timestamp = Math.floor(Date.now() / 1000).toString(); const idempotency = randomUUID(); const method = "POST"; const path = "/v1/ramp/store-uuid/banking/conversions/quote"; const body = JSON.stringify({ fromCurrency: "USD", toCurrency: "NGN", amount: 1000 }); const canonical = `v1.${timestamp}.${idempotency}.${method}.${path}.${body}`; const signer = createSign("RSA-SHA256"); signer.update(Buffer.from(canonical, "utf8")); const signature = signer.sign(fs.readFileSync("./partner-private-key.pem"), "base64"); console.log({ timestamp, idempotency, signature }); ``` ```python Python theme={null} import base64 import time import uuid from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding timestamp = str(int(time.time())) idempotency = str(uuid.uuid4()) method = "POST" path = "/v1/ramp/store-uuid/banking/conversions/quote" body = '{"fromCurrency":"USD","toCurrency":"NGN","amount":1000}' canonical = f"v1.{timestamp}.{idempotency}.{method}.{path}.{body}".encode() with open("./partner-private-key.pem", "rb") as key_file: private_key = serialization.load_pem_private_key(key_file.read(), password=None) signature = base64.b64encode( private_key.sign(canonical, padding.PKCS1v15(), hashes.SHA256()) ).decode() print({"timestamp": timestamp, "idempotency": idempotency, "signature": signature}) ``` ```go Go theme={null} package main import ( "crypto" "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/x509" "encoding/base64" "encoding/pem" "fmt" "os" "time" ) func main() { timestamp := fmt.Sprint(time.Now().Unix()) idempotency := "replace-with-a-uuid" method := "POST" path := "/v1/ramp/store-uuid/banking/conversions/quote" body := `{"fromCurrency":"USD","toCurrency":"NGN","amount":1000}` canonical := []byte("v1." + timestamp + "." + idempotency + "." + method + "." + path + "." + body) pemBytes, _ := os.ReadFile("./partner-private-key.pem") block, _ := pem.Decode(pemBytes) key, _ := x509.ParsePKCS8PrivateKey(block.Bytes) digest := sha256.Sum256(canonical) signature, _ := rsa.SignPKCS1v15(rand.Reader, key.(*rsa.PrivateKey), crypto.SHA256, digest[:]) fmt.Println(base64.StdEncoding.EncodeToString(signature)) } ``` ```bash cURL theme={null} timestamp="$(date +%s)" idempotency="$(uuidgen | tr '[:upper:]' '[:lower:]')" method="POST" path="/v1/ramp/store-uuid/banking/conversions/quote" body='{"fromCurrency":"USD","toCurrency":"NGN","amount":1000}' canonical="v1.${timestamp}.${idempotency}.${method}.${path}.${body}" signature="$( printf '%s' "$canonical" | openssl dgst -sha256 -sign ./partner-private-key.pem | openssl base64 -A )" curl "https://sandbox-api.bullring.finance${path}" \ -H "Content-Type: application/json" \ -H "X-Key-Id: prod-2026-02" \ -H "X-Timestamp: ${timestamp}" \ -H "X-Idempotency-Id: ${idempotency}" \ -H "X-Digital-Signature: ${signature}" \ --data "$body" ``` ## Five-minute window `X-Timestamp` is Unix time in seconds. Bullring accepts timestamps within five minutes of its clock, in either direction. ## Common mistakes * Signing pretty JSON and sending compact JSON. * Reordering JSON keys after signing. * Including a query string in the canonical path when the request path differs. * Reusing an idempotency ID for a different body. * Sending the PEM key instead of the Base64 signature. # Idempotency Source: https://docs.bullring.finance/08-idempotency Retry safely without duplicate money movement. THE RETRY All partner writes require: ```http theme={null} X-Idempotency-Id: ``` The same integration and idempotency ID with the same method, path and body returns the original response without reprocessing. Reusing an ID with a different request returns: ```text theme={null} IDEMPOTENCY_CONFLICT ``` Use a new ID for a new operation. If a request times out, retry the same signed request with the same ID. # Errors Source: https://docs.bullring.finance/09-errors Stable partner error codes and retry behavior. THE SIGNAL Partner errors include a stable `code`: ```json theme={null} { "statusCode": 400, "message": "The idempotency ID was already used for a different request", "code": "IDEMPOTENCY_CONFLICT" } ``` Common codes: | Code | Meaning | | - | - | | `AUTHENTICATION_REQUIRED` | Missing key ID or signature credentials | | `SIGNATURE_INVALID` | Signature does not match the exact request | | `SIGNING_KEY_UNKNOWN` | Key ID is not active for a partner | | `TIMESTAMP_EXPIRED` | Timestamp is outside the five-minute window | | `IDEMPOTENCY_REQUIRED` | Write request omitted an idempotency ID | | `IDEMPOTENCY_CONFLICT` | ID was reused for a different request | Retry `5xx` responses and timeouts with the same idempotency ID. Fix `4xx` request errors before retrying. # Webhook verification Source: https://docs.bullring.finance/11-webhook-verification Verify Convoy Bullring webhook signatures with the endpoint secret. THE RECEIPT Bullring delivers webhooks through Convoy. Every request includes: ```http theme={null} X-BULLRING-SIGNATURE: t=,v1= ``` The endpoint secret is returned by the dashboard when the webhook endpoint is created. Store it securely. ## Verification algorithm 1. Read `X-BULLRING-SIGNATURE`. 2. Split the header by commas. 3. Extract the `t` timestamp and `v1` hash. 4. Serialize the request payload exactly as received by your webhook framework. 5. Compute: ```text theme={null} Base64(HMAC-SHA256(secret, `${timestamp},${payload}`)) ``` 6. Compare the generated value with `v1` using a constant-time comparison. 7. Reject stale timestamps according to your replay window. 8. Return a `2xx` only after verification and durable acceptance. Example header: ```text theme={null} X-BULLRING-SIGNATURE: t=1492774577,v1=ansdoj213e98jqd928u3eudh239eu2j9d2jd8ejd238eu23ei2d9j23e8u23eue3 ``` ## Node.js example ```javascript theme={null} import { createHmac, timingSafeEqual } from "crypto"; function verifyBullringWebhook(rawPayload, signatureHeader, secret) { const parts = Object.fromEntries( signatureHeader.split(",").map((part) => part.split("=")) ); const timestamp = parts.t; const receivedHash = parts.v1; const signedPayload = `${timestamp},${rawPayload}`; const expectedHash = createHmac("sha256", secret) .update(signedPayload) .digest("base64"); const received = Buffer.from(receivedHash, "utf8"); const expected = Buffer.from(expectedHash, "utf8"); return ( received.length === expected.length && timingSafeEqual(received, expected) ); } ``` Use the raw request body when possible. If your framework parses the body first, reproduce the exact serialization used by the request before calculating the HMAC. ## Delivery behavior * Convoy retries deliveries that do not receive a `2xx` response. * Deduplicate events using the event ID in the payload when available. * Do not process the event before signature verification. * Do not log the webhook secret or full signature header. # Integration testing Source: https://docs.bullring.finance/12-testing Test an NGN integration safely in sandbox. THE PROOF RUN # Test checklist Run these in order: 1. Sign `GET /v2/ramp/{storeId}/banking/deposits`. 2. Create or retrieve NGN virtual-account deposit details. 3. Register a test recipient. 4. Call the simulation endpoint with a unique reference. 5. Confirm the deposit appears in the list. 6. Submit a small withdrawal only when sandbox balance and recipient fixtures are ready. 7. Confirm webhook delivery and signature verification. 8. Retry the same write with the same idempotency ID. 9. Confirm it returns the original response without duplicate processing. Never use a production private key in sandbox. Keep test keys in a local secret file and never commit them. # Production checklist Source: https://docs.bullring.finance/13-production-checklist Final checks before enabling an NGN partner integration. THE HANDOFF # Production readiness * [ ] Production public key is registered. * [ ] Production private key is stored in a secret manager. * [ ] Clock synchronization is enabled. * [ ] Every write has a unique idempotency ID. * [ ] Withdrawal fee and balance checks are handled. * [ ] Webhook signatures are verified before processing. * [ ] Webhook IDs are deduplicated. * [ ] Key rotation runbook is tested. * [ ] Simulation endpoints are disabled in production. * [ ] API responses and request IDs are logged without private keys or signatures. ## Operational rule If a signature fails, do not retry with a modified body. Rebuild the canonical bytes from the exact request and generate a new signature only when the request itself changes. # Security model Source: https://docs.bullring.finance/14-security The short version of the Bullring partner security contract. THE BOUNDARY # Trust is byte-sized Bullring does not authenticate partners with API keys. The integration is identified by a registered public key ID, and every request proves possession of the matching private key. Four controls can work together: 1. **Timestamp** limits replay time. 2. **Signature** protects the exact method, path and body. 3. **Idempotency** prevents duplicate writes during retries. 4. **Optional IP allowlisting** restricts an integration to exact IPv4 or IPv6 addresses. The private key never leaves your infrastructure. The public key is safe to register and rotate. Treat webhook signing secrets and private keys as credentials. When an IP allowlist is configured, requests from any other source address are rejected with `403 IP_NOT_ALLOWED`. An empty allowlist permits requests from any source IP, subject to the other controls. ## If a key is exposed Revoke it immediately, register a replacement key, and inspect requests signed by the old key. Do not continue using the exposed key simply because it is a test key in a shared environment. # AI & agent tools Source: https://docs.bullring.finance/ai-skills Agent-ready capabilities and workflows for integrating with the Bullring Partner API. THE AGENT This section provides a downloadable, installable skill for AI coding agents. The skill packages Bullring’s authentication rules, API workflows, webhook contract, safety constraints, and reference links into one agent-readable file. [Download `skill.md`](https://docs.bullring.finance/skill.md) For installation instructions, harness-specific setup, and updates, see [Install Bullring agent tools](/ai-skills/install). ## Available skills ### Authenticate requests Configure a registered RSA public key and generate request signatures from the exact canonical request bytes. Relevant guides: * [Authentication](/01-authentication) * [Request signing](/03-signing) ### Create and monitor NGN deposits Create or retrieve a virtual account, list deposits, retrieve a deposit by ID, and simulate sandbox deposits. Relevant API pages: * [Create virtual account](/api-reference/deposits/create-virtual-account) * [List deposits](/api-reference/deposits/list) * [Get deposit](/api-reference/deposits/get) * [Simulate deposit](/api-reference/deposits/simulate) ### Manage recipients and withdrawals Create and retrieve NGN recipients, create withdrawals, and monitor withdrawal status. Relevant API pages: * [Recipients](/api-reference/recipients/list) * [Create withdrawal](/api-reference/withdrawals/create) * [Get withdrawal](/api-reference/withdrawals/get) ### Retrieve conversion quotes Request an exchange-rate and fee quote before initiating a conversion. Relevant API page: * [Conversion quote](/api-reference/quotes/conversion) ### Process webhook notifications Receive deposit and withdrawal events through Convoy, verify `X-BULLRING-SIGNATURE`, deduplicate deliveries, and handle retries safely. Relevant guides: * [Webhook notifications](/webhook-notifications) * [Webhook verification](/11-webhook-verification) ## Standard workflows ### Build a deposit integration 1. Register the partner public key in the dashboard. 2. Create or retrieve the NGN virtual account. 3. Store the account details and display them to the payer. 4. Receive and verify deposit webhook notifications. 5. Retrieve the deposit by ID when reconciliation requires a fresh status. ### Build a withdrawal integration 1. Create and validate an NGN recipient. 2. Request a withdrawal with an idempotency key. 3. Persist the returned withdrawal ID. 4. Process status notifications without assuming delivery order. 5. Retry only according to the documented error and idempotency rules. ## Constraints for agents * Never expose private keys, webhook secrets, or signature values in logs or source control. * Sign the exact method, path, headers, and raw body sent over the wire. * Keep store scope attached to the registered integration. * Do not use undocumented balance, Lightning deposit, or stablecoin withdrawal routes. * Treat money values as decimal strings. * Use sandbox simulation only for testing. ## Machine-readable resources * [`/llms.txt`](https://docs.bullring.finance/llms.txt) — page index for AI tools. * [`/llms-full.txt`](https://docs.bullring.finance/llms-full.txt) — complete documentation context. * [`/skill.md`](https://docs.bullring.finance/skill.md) — generated or custom agent skill. * [`/openapi.json`](https://docs.bullring.finance/openapi.json) — API schema. # What agents can do Source: https://docs.bullring.finance/ai-skills/capabilities Tasks and workflows supported by the Bullring Partner API skill. The Bullring Partner API skill helps an AI agent: * Configure RSA request authentication. * Configure optional exact-IP allowlisting for partner integrations. * List supported NGN banking institutions. * Validate NGN bank account details before creating a recipient. * Create and retrieve NGN virtual accounts. * List and retrieve deposits by ID. * Simulate sandbox deposits. * Create and retrieve NGN recipients. * Create and monitor NGN withdrawals. * Retrieve conversion quotes. * Verify Convoy webhook notifications. * Implement idempotent, retry-safe money movement. ## Standard workflows ### Deposit integration 1. Register the partner public key. 2. Create or retrieve the NGN virtual account. 3. Store and display the account details. 4. Verify deposit webhook notifications. 5. Retrieve deposits by ID for reconciliation. ### Withdrawal integration 1. Create and validate an NGN recipient. 2. Request a withdrawal with an idempotency key. 3. Persist the withdrawal ID. 4. Process status notifications without assuming delivery order. 5. Follow the documented retry and error rules. ## Safety constraints * Never expose private keys, webhook secrets, or signatures. * Sign the exact request bytes sent over the wire. * Keep requests scoped to the registered store. * Use sandbox simulation only in sandbox environments. * Treat monetary values as decimal strings. * Do not use undocumented balance, Lightning deposit, or stablecoin withdrawal routes. # Install Bullring agent tools Source: https://docs.bullring.finance/ai-skills/install Install the Bullring Partner API skill in your AI coding harness. Download the installable [`skill.md`](https://docs.bullring.finance/skill.md), or use the open agent-skills CLI. The skill is documentation-only. It does not contain credentials, call the Bullring API, or grant an agent access to your account. ## Requirements * Node.js with `npx`. * An installed AI coding harness. * A Bullring Partner API integration if the agent will implement or test requests. * The RSA private key available to your application through a secret manager; never put it in the skill directory. ## Recommended installation ```bash theme={null} npx skills add https://docs.bullring.finance/skill.md --yes ``` Install globally for a specific harness: ```bash OpenCode theme={null} npx skills add https://docs.bullring.finance/skill.md --agent opencode --global --yes ``` ```bash Claude Code theme={null} npx skills add https://docs.bullring.finance/skill.md --agent claude-code --global --yes ``` ```bash Codex theme={null} npx skills add https://docs.bullring.finance/skill.md --agent codex --global --yes ``` ```bash Cursor theme={null} npx skills add https://docs.bullring.finance/skill.md --agent cursor --global --yes ``` ```bash Windsurf theme={null} npx skills add https://docs.bullring.finance/skill.md --agent windsurf --global --yes ``` ```bash GitHub Copilot theme={null} npx skills add https://docs.bullring.finance/skill.md --agent github-copilot --global --yes ``` Remove `--global` to install into the current project. Restart the harness after installation. Install into several harnesses at once: ```bash theme={null} npx skills add https://docs.bullring.finance/skill.md \ --agent opencode \ --agent claude-code \ --agent codex \ --agent cursor \ --agent windsurf \ --yes ``` ## Installation scope | Scope | Use when | Command change | | - | - | - | | Project-local | The skill should be committed or shared with one repository | Omit `--global` | | Global | The skill should be available across your projects | Include `--global` | Use project-local installation for a team integration repository. Review the downloaded file before committing it. ## OpenCode manual installation ```bash theme={null} mkdir -p .opencode/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o .opencode/skills/bullring-partner-api/SKILL.md ``` For a global installation, use: ```bash theme={null} mkdir -p ~/.config/opencode/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o ~/.config/opencode/skills/bullring-partner-api/SKILL.md ``` Restart OpenCode after installation. It should discover the skill under the `bullring-partner-api` ID. Ask OpenCode to use that skill before implementing an integration. ## Claude Code manual installation Project-local: ```bash theme={null} mkdir -p .claude/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o .claude/skills/bullring-partner-api/SKILL.md ``` Global: ```bash theme={null} mkdir -p ~/.claude/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o ~/.claude/skills/bullring-partner-api/SKILL.md ``` Restart Claude Code and invoke the skill by asking it to use `bullring-partner-api`. ## Codex manual installation Project-local: ```bash theme={null} mkdir -p .agents/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o .agents/skills/bullring-partner-api/SKILL.md ``` Global: ```bash theme={null} mkdir -p ~/.agents/skills/bullring-partner-api curl -fsSL https://docs.bullring.finance/skill.md \ -o ~/.agents/skills/bullring-partner-api/SKILL.md ``` Restart Codex after installation and ask it to use the Bullring Partner API skill. ## Cursor, Windsurf, and GitHub Copilot Prefer the skills CLI because it places the skill in each harness’s native discovery directory. If manual installation is required, use the harness’s documented project skill directory and preserve this structure: ```text theme={null} /bullring-partner-api/SKILL.md ``` Do not rename `SKILL.md`, flatten the folder, or paste private credentials into the file. ## Verify installation After restarting the harness, use a prompt such as: ```text theme={null} Confirm that the bullring-partner-api skill is installed. Summarize its supported endpoints, signing algorithm, webhook verification algorithm, and safety constraints without requesting any credentials. ``` The agent should identify: * RSA-SHA256 / PKCS#1 v1.5 request signing. * NGN institutions and account validation. * Deposits, recipients, withdrawals, and conversion quotes. * Convoy `X-BULLRING-SIGNATURE` HMAC verification. * The rule never to expose private keys or webhook secrets. ## Update ```bash theme={null} npx skills update ``` To refresh only this source, reinstall it: ```bash theme={null} npx skills add https://docs.bullring.finance/skill.md --yes ``` For manual installations, download `skill.md` again and replace the existing `SKILL.md`. Review the [documentation references](/ai-skills/references) after an update. ## MCP alternative You can provide the documentation without installing the skill by connecting an MCP-compatible harness to: ```text theme={null} https://docs.bullring.finance/mcp ``` See [Connect via MCP](/ai-skills/mcp). MCP provides searchable documentation context; the installable skill provides a portable integration playbook. # Connect via MCP Source: https://docs.bullring.finance/ai-skills/mcp Connect AI agents to the Bullring documentation through MCP. Bullring exposes its documentation through a public Model Context Protocol server. Compatible AI agents can search and retrieve the API documentation without manually copying pages. ## Server endpoints Public MCP server: ```text theme={null} https://docs.bullring.finance/mcp ``` Discovery document: ```text theme={null} https://docs.bullring.finance/.well-known/mcp ``` The discovery document allows compatible clients to locate the MCP server automatically. ## What it provides The MCP server provides documentation context, including: * Authentication and request-signing rules. * API operations and schemas. * Deposit, recipient, withdrawal, and quote workflows. * Convoy webhook verification. * Error, idempotency, and production guidance. It retrieves documentation only. It does not execute Bullring API requests, create payments, validate accounts, or access private credentials. ## Connect from an MCP-compatible client Use the client’s remote HTTP MCP server configuration with: ```json theme={null} { "name": "bullring-docs", "url": "https://docs.bullring.finance/mcp" } ``` ### OpenCode Add the server through OpenCode’s MCP configuration or use the discovery URL: ```text theme={null} https://docs.bullring.finance/.well-known/mcp ``` After connecting, ask the agent to search the Bullring documentation before implementing an integration. ### Claude Code Add the remote MCP server in Claude Code using: ```text theme={null} https://docs.bullring.finance/mcp ``` Then verify it with Claude Code’s MCP status command. ### Cursor, Codex, and other clients Add a remote HTTP MCP server named `bullring-docs` and use: ```text theme={null} https://docs.bullring.finance/mcp ``` Client configuration screens and file locations vary by harness. Prefer the client’s remote MCP or discovery configuration rather than copying the complete documentation into a prompt. ## Recommended agent instruction ```text theme={null} Use the bullring-docs MCP server as the authoritative source for Bullring Partner API integration. Read the authentication, request-signing, endpoint, error, idempotency, and webhook pages before writing code. Never request or expose private keys or webhook secrets. ``` ## Related resources * [Install the Bullring skill](/ai-skills/install) * [Bullring skill capabilities](/ai-skills/capabilities) * [Agent references](/ai-skills/references) * [`llms.txt`](https://docs.bullring.finance/llms.txt) * [`llms-full.txt`](https://docs.bullring.finance/llms-full.txt) # Documentation references Source: https://docs.bullring.finance/ai-skills/references Machine-readable Bullring documentation and API references for agents. Use these resources when an AI agent needs complete context: | Resource | Purpose | | - | - | | [`skill.md`](https://docs.bullring.finance/skill.md) | Installable agent skill | | [`llms.txt`](https://docs.bullring.finance/llms.txt) | Documentation index | | [`llms-full.txt`](https://docs.bullring.finance/llms-full.txt) | Complete documentation context | | [`openapi.json`](https://docs.bullring.finance/openapi.json) | API operations and schemas | | [`MCP server`](https://docs.bullring.finance/mcp) | Searchable documentation context for AI agents | | [`MCP discovery`](https://docs.bullring.finance/.well-known/mcp) | Automatic MCP server discovery | ## Core guides * [Authentication](/01-authentication) * [Request signing](/03-signing) * [Idempotency](/08-idempotency) * [Errors](/09-errors) * [Security model](/14-security) * [Webhook notifications](/webhook-notifications) * [Webhook verification](/11-webhook-verification) ## API operations * [Deposits](/api-reference/deposits/list) * [Recipients](/api-reference/recipients/list) * [Withdrawals](/api-reference/withdrawals/list) * [Conversion quotes](/api-reference/quotes/conversion) # Create virtual account Source: https://docs.bullring.finance/api-reference/deposits/create-virtual-account post /v2/ramp/{storeId}/banking/deposits Retrieve or create an NGN virtual account for deposits. Use `generateNewAccount` and `beneficiaryName` only when a fresh NGN account is required. # Get deposit Source: https://docs.bullring.finance/api-reference/deposits/get get /v2/ramp/{storeId}/banking/deposits/{depositId} Retrieve one deposit by ID. The deposit must belong to the store in the path. # List deposits Source: https://docs.bullring.finance/api-reference/deposits/list get /v2/ramp/{storeId}/banking/deposits Retrieve NGN deposit activity for a store. Use the interactive request panel to supply the store ID and signed headers. # Simulate a deposit Source: https://docs.bullring.finance/api-reference/deposits/simulate post /v2/ramp/{storeId}/banking/deposits/simulate Create sandbox-only NGN deposit activity. This endpoint is disabled for partner authentication in production. # List NGN institutions Source: https://docs.bullring.finance/api-reference/ngn/institutions get /v2/ramp/{storeId}/banking/ngn/institutions List supported Nigerian banking institutions for NGN account workflows. Returns the NGN institutions available for recipient creation and account validation. # Validate NGN account Source: https://docs.bullring.finance/api-reference/ngn/validate-account post /v2/ramp/{storeId}/banking/ngn/validate Resolve and validate a Nigerian bank account before creating a recipient. Validate the account number with an institution code or institution name before creating an NGN recipient. Successful validation returns the resolved institution and account holder name: ```json theme={null} { "valid": true, "bank": { "name": "GTBank", "code": "058" }, "account_name": "SIMULATED HOLDER 1540" } ``` # Conversion quote Source: https://docs.bullring.finance/api-reference/quotes/conversion post /v1/ramp/{storeId}/banking/conversions/quote Get an NGN conversion quote without executing a conversion. Monetary response fields are decimal strings for partner clients. # Create recipient Source: https://docs.bullring.finance/api-reference/recipients/create post /v2/ramp/{storeId}/banking/recipients Register an NGN bank recipient. Recipient creation is idempotent and must use a unique request ID. # Get recipient Source: https://docs.bullring.finance/api-reference/recipients/get get /v2/ramp/{storeId}/banking/recipients/{recipientId} Retrieve one NGN recipient by ID. # List recipients Source: https://docs.bullring.finance/api-reference/recipients/list get /v2/ramp/{storeId}/banking/recipients List NGN bank recipients for a store. # Create withdrawal Source: https://docs.bullring.finance/api-reference/withdrawals/create post /v2/ramp/{storeId}/banking/withdrawals Submit an NGN withdrawal to a registered recipient. Withdrawals may enter `screening` before provider settlement. # Get withdrawal Source: https://docs.bullring.finance/api-reference/withdrawals/get get /v2/ramp/{storeId}/banking/withdrawals/{withdrawalId} Retrieve one NGN withdrawal by ID. # List withdrawals Source: https://docs.bullring.finance/api-reference/withdrawals/list get /v2/ramp/{storeId}/banking/withdrawals List NGN withdrawals for a store. # Introduction Source: https://docs.bullring.finance/index A practical guide to signed NGN deposits, recipients, withdrawals, simulations, and webhooks. THE START The Bullring Partner API is built for server-to-server integrations. Every partner request is signed with an RSA private key, replay-protected, and scoped to the store integration that owns the key. This guide assumes an NGN integration and uses: * `X-Key-Id` to identify the registered public key * `X-Timestamp` to bound replay * `X-Idempotency-Id` to make writes safe to retry * `X-Digital-Signature` to prove possession of the private key **Start with this sequence.** Read Authentication, then Signing, then the NGN Deposits and Recipients pages. Use Simulation only in sandbox. ## What you will build 1. Sign a request from your backend. 2. Create or retrieve an NGN deposit account. 3. Register an NGN recipient. 4. Submit and track an NGN withdrawal. 5. Verify Bullring's signed outbound webhook. ## Base URLs ```text theme={null} Sandbox: https://sandbox-api.bullring.finance Production: https://api.bullring.finance ``` Production URLs and credentials are issued separately. Never use a private key from one environment in another. # Webhook notifications Source: https://docs.bullring.finance/webhook-notifications Deposit and withdrawal event schemas, statuses and delivery behavior. THE NOTIFICATION # Deposit and withdrawal notifications Bullring sends outbound notifications through the webhook endpoint configured in the dashboard. Endpoint management is dashboard-only; partners use this page to implement the receiver. ## Delivery headers Every delivery includes: ```http theme={null} X-BULLRING-SIGNATURE: t=,v1= ``` The `v1` value is a Base64 HMAC-SHA256 signature created with the endpoint secret. See [Webhook verification](/11-webhook-verification) for the exact verification procedure. ## Event envelope Webhook bodies use this envelope: ```json theme={null} { "event": "deposit.status.paid", "data": {}, "id": "event-uuid", "timestamp": "2026-11-22T00:31:47.602Z" } ``` Treat `X-Bullring-Webhook-Id` as the delivery identity for deduplication. Do not use the payload timestamp as a deduplication key. ## Deposit events ### `deposit.status.paid` ```json theme={null} { "event": "deposit.status.paid", "data": { "id": "collection-uuid", "reference": "SIM179530723115565090046", "account_id": "store-uuid", "net_amount": { "value": "100.00", "currency": "NGN" }, "gross_amount": { "value": "100.00", "currency": "NGN" }, "fee": { "value": "0.00", "currency": "NGN" }, "status": "paid", "created_at": "2026-11-22T00:27:14.270Z", "updated_at": "2026-11-22T00:31:47.602Z", "payer": {}, "receiver": {}, "settlement": { "settlement_at": "2026-11-22T00:31:47.602Z", "transaction_hash": null } } } ``` ### `deposit.status.unpaid` The same deposit data shape is sent with: ```json theme={null} { "event": "deposit.status.unpaid", "data": { "status": "unpaid" } } ``` ## Withdrawal events Withdrawal status event names are: | Event | Meaning | | - | - | | `withdrawal.status.not_initiated` | Withdrawal has not started | | `withdrawal.status.in_progress` | Withdrawal is being processed | | `withdrawal.status.completed` | Provider settlement completed | | `withdrawal.status.failed` | Provider or validation failure | | `withdrawal.status.reversed` | A previously processed withdrawal was reversed | Example: ```json theme={null} { "event": "withdrawal.status.completed", "data": { "id": "withdrawal-uuid", "amount": "1000", "currency": "NGN", "status": "completed", "payment_rail": "BANK_TRANSFER", "externalAccountId": "recipient-uuid", "description": "Partner settlement", "createdAt": "2026-11-22T00:31:47.602Z" } } ``` ## Delivery and retry rules * Convoy performs delivery and retries. * Return a `2xx` only after the event is durably accepted. * Return a non-`2xx` response when the event was not accepted. * Deduplicate by webhook event ID. * Do not assume delivery order. * A retry may contain a new delivery attempt while representing the same business event. * Do not perform irreversible business work before signature verification and deduplication. ## Status handling Use the event name as the source of truth for the transition. Store the raw event, received timestamp and verification key ID for audit and replay diagnostics.