Conduit API
Base URL http://localhost:8000/api/v1. Authenticate with Authorization: Bearer <key>. Every list is cursor-paginated (limit, starting_after) and accepts created[gte], updated[gte] and timeframe. This page is generated from the same registry that routes requests, so it is always exact. New here? Start with the integration guide.
Account & keys
GET/healthLiveness & version
Example
curl http://localhost:8000/api/v1/health
GET/openapi.jsonOpenAPI 3.1 spec (generated)
Example
curl http://localhost:8000/api/v1/openapi.json
GET/postman.jsonPostman collection (generated)
Example
curl http://localhost:8000/api/v1/postman.json
GET/scopesAll scopes and what they grant
Example
curl http://localhost:8000/api/v1/scopes
GET/meWho am I — key, account, websites, scopes
Use on boot to discover what a key can do: its scopes, its website (or all websites for organisation keys), mode, plan features and the API version.
Example
curl http://localhost:8000/api/v1/me \ -H "Authorization: Bearer sk_test_…"
Checkout sessions
POST/checkout/sessionsCreate a checkout session
Returns a hosted url (redirect) — or pass the id to Conduit.pay({session}) in the browser for the in-page modal. Use Idempotency-Key for safe retries.
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| amount | number | Amount in major units (e.g. 50.00). Omit to let the customer choose within limits. |
| currency | string | ISO code; defaults to the website currency |
| external_id | string | YOUR order/invoice id. Unique per website: a second call returns the same open checkout; a paid one returns 409 external_id_already_paid. |
| customer | object | {reference, email, phone, name} — reference = your user id |
| referral | string | Referral code. Its partner is credited (and remembered on the customer). |
| attribution | object | {partner, staff:[{reference, name, share, kind}], campaign, source, medium, utm{}} — credit several people on one payment |
| line_items | array | [{name, quantity, unit_amount, sku}] — amount is computed when omitted |
| tags | array | Up to 20 short labels, filterable |
| metadata | object | Anything (≤ 4 KB); echoed in webhooks |
| description | string | |
| return_url | string | |
| cancel_url | string | |
| channels | array | Restrict to channel codes |
| expires_in | integer | Seconds (300 – 604800) |
Example
curl http://localhost:8000/api/v1/checkout/sessions \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 150,
"external_id": "order_1042",
"customer": {
"reference": "user_88",
"phone": "0241234567"
},
"referral": "KOFI10",
"attribution": {
"staff": [
{
"reference": "agent_7",
"share": 60
},
{
"reference": "agent_9",
"share": 40
}
]
},
"metadata": {
"cart": "c_77"
}
}'GET/checkout/sessionsList checkout sessions
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| status | string | (open, processing, completed, expired) |
| customer_reference | string | |
| external_id | string |
Example
curl http://localhost:8000/api/v1/checkout/sessions \ -H "Authorization: Bearer sk_test_…"
GET/checkout/sessions/{id}Retrieve a session (by id or your external_id)
Example
curl http://localhost:8000/api/v1/checkout/sessions/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/checkout/sessions/{id}/expireExpire an unpaid session now
Example
curl -X POST http://localhost:8000/api/v1/checkout/sessions/pay_…/expire \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Payments
GET/paymentsList & search payments
Everything your admin panel needs: filter by status, channel, customer, partner, staff, tag, timeframe. include_summary=1 adds totals for the filtered set. For incremental sync use sort=updated&updated[gte]=<last sync>.
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| status | string | succeeded, failed, open, pending, action_required, expired, initiated |
| channel | string | |
| referral | string | Referral code |
| customer | string | cus_… or your customer reference |
| partner | string | ptn_… or partner reference — payments credited to them |
| staff | string | Staff reference present in attribution.staff |
| external_id | string | |
| tag | string | |
| refund_status | string | (none, partial, full) |
| q | string | Search reference / phone / email / id |
| min | number | |
| max | number | |
| include_summary | boolean | |
| expand[] | string | customer, partner, commissions, refunds, events, session |
Example
curl http://localhost:8000/api/v1/payments \ -H "Authorization: Bearer sk_test_…"
GET/payments/{id}Retrieve a payment (id, reference or external_id)
Query parameters
| expand[] | string | customer, partner, commissions, refunds, events, session |
Example
curl http://localhost:8000/api/v1/payments/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/payments/{id}Update a payment
Body
| metadata | object | Merged; a null value deletes a key |
| tags | array | Replaces tags |
| attribution | object | Only before the payment succeeds — afterwards use /attribution |
Example
curl http://localhost:8000/api/v1/payments/pay_… \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"metadata": {
"fulfilled": true
},
"tags": [
"vip",
"promo-nov"
]
}'POST/payments/{id}/attributionCredit a settled payment after the fact
For when the agent/partner was entered late. Runs the commission engine for this payment. Refused while live commissions exist — void them first.
Body
| partner | string | ptn_… or partner reference |
| staff | array | [{reference, share}] |
| sticky | boolean | Also set as the customer's lifetime referrer (default true) |
Example
curl -X POST http://localhost:8000/api/v1/payments/pay_…/attribution \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/payments/{id}/verifyRe-check status with the processor now
Example
curl -X POST http://localhost:8000/api/v1/payments/pay_…/verify \ -H "Authorization: Bearer sk_test_…"
GET/payments/{id}/eventsPayment timeline (every status change, note and check)
Example
curl http://localhost:8000/api/v1/payments/pay_…/events \ -H "Authorization: Bearer sk_test_…"
POST/payments/{id}/notesAdd an internal note (staff collaboration)
Notes land on the payment timeline, visible to every staff member in the console and API.
Body
| note * | string | |
| author | string | Who wrote it (your staff user) |
Example
curl -X POST http://localhost:8000/api/v1/payments/pay_…/notes \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Refunds
POST/payments/{id}/refundsRefund a payment (full or partial)
Paystack refunds go through the API; bridge payments become requires_action (finish manually, then confirm). Commissions are clawed back proportionally.
Body
| amount | number | Defaults to the full refundable amount |
| reason | string | (requested_by_customer, duplicate, fraudulent, service_not_provided, other) |
| note | string | |
| metadata | object |
Example
curl http://localhost:8000/api/v1/payments/pay_…/refunds \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 20,
"reason": "duplicate"
}'POST/refundsCreate a refund
Body
| payment * | string | Payment id/reference |
| amount | number | Defaults to the full refundable amount |
| reason | string | (requested_by_customer, duplicate, fraudulent, service_not_provided, other) |
| note | string | |
| metadata | object |
Example
curl -X POST http://localhost:8000/api/v1/refunds \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/refundsList refunds
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| status | string | |
| payment | string |
Example
curl http://localhost:8000/api/v1/refunds \ -H "Authorization: Bearer sk_test_…"
GET/payments/{id}/refundsRefunds of a payment
Example
curl http://localhost:8000/api/v1/payments/pay_…/refunds \ -H "Authorization: Bearer sk_test_…"
GET/refunds/{id}Retrieve a refund
Example
curl http://localhost:8000/api/v1/refunds/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/refunds/{id}/confirmConfirm a manual refund was sent
Body
| gateway_reference | string | |
| note | string |
Example
curl -X POST http://localhost:8000/api/v1/refunds/pay_…/confirm \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/refunds/{id}/cancelCancel a pending refund
Example
curl -X POST http://localhost:8000/api/v1/refunds/pay_…/cancel \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Customers
POST/customersCreate (or upsert) a customer
Upsert by reference: an existing customer with that reference is updated and returned (200), otherwise created (201). Set partner to pre-register who referred them.
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| reference | string | Your user id — the stable key |
| name | string | |
| string | ||
| phone | string | |
| partner | string | Lifetime referrer (ptn_… or reference) |
| tags | array | |
| metadata | object |
Example
curl http://localhost:8000/api/v1/customers \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reference": "user_88",
"name": "Ama Mensah",
"phone": "0241234567",
"partner": "user_kofi"
}'GET/customersList & search customers
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| q | string | name / email / phone / reference |
| partner | string | |
| blocked | boolean | |
| tag | string | |
| min_ltv | number | |
| has_paid | boolean |
Example
curl http://localhost:8000/api/v1/customers \ -H "Authorization: Bearer sk_test_…"
GET/customers/{id}Retrieve a customer (cus_… or your reference)
Example
curl http://localhost:8000/api/v1/customers/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/customers/{id}Update a customer
Body
| name | string | |
| string | ||
| phone | string | |
| partner | string | Lifetime referrer (ptn_… or reference) |
| tags | array | |
| metadata | object |
Example
curl -X POST http://localhost:8000/api/v1/customers/pay_… \ -H "Authorization: Bearer sk_test_…"
DELETE/customers/{id}Delete a customer with no payments
Example
curl -X DELETE http://localhost:8000/api/v1/customers/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/customers/{id}/blockBlock a customer from paying
Blocked customers get a 403 customer_blocked at checkout on every website.
Body
| reason | string |
Example
curl -X POST http://localhost:8000/api/v1/customers/pay_…/block \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/customers/{id}/unblockUnblock a customer
Example
curl -X POST http://localhost:8000/api/v1/customers/pay_…/unblock \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/customers/{id}/paymentsA customer's payments
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
Example
curl http://localhost:8000/api/v1/customers/pay_…/payments \ -H "Authorization: Bearer sk_test_…"
Partners
POST/partnersCreate (or upsert) a partner
Partners are anyone who earns from payments: affiliates, agents, staff, influencers, resellers. Upserts by reference. Pass code to issue their referral code in the same call.
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| reference | string | Their user id on your platform |
| name * | string | |
| kind | string | (affiliate, agent, staff, influencer, reseller) |
| string | ||
| phone | string | |
| parent | string | Upline partner (multi-level) |
| rule | string | Override commission rule (cr_…) |
| status | string | (active, suspended) |
| payout_details | object | |
| metadata | object | |
| code | string | Also create this referral code (needs `site` with org keys) |
Example
curl http://localhost:8000/api/v1/partners \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reference": "user_kofi",
"name": "Kofi Boateng",
"kind": "agent",
"parent": "user_ama",
"code": "KOFI10"
}'GET/partnersList partners
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| kind | string | (affiliate, agent, staff, influencer, reseller) |
| status | string | |
| parent | string | |
| q | string | |
| with_balance | boolean |
Example
curl http://localhost:8000/api/v1/partners \ -H "Authorization: Bearer sk_test_…"
GET/partners/{id}Retrieve a partner with balance
Example
curl http://localhost:8000/api/v1/partners/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/partners/{id}Update a partner
Body
| name * | string | |
| kind | string | (affiliate, agent, staff, influencer, reseller) |
| string | ||
| phone | string | |
| parent | string | Upline partner (multi-level) |
| rule | string | Override commission rule (cr_…) |
| status | string | (active, suspended) |
| payout_details | object | |
| metadata | object |
Example
curl -X POST http://localhost:8000/api/v1/partners/pay_… \ -H "Authorization: Bearer sk_test_…"
GET/partners/{id}/balancePending / available / paid commission balance
Example
curl http://localhost:8000/api/v1/partners/pay_…/balance \ -H "Authorization: Bearer sk_test_…"
GET/partners/{id}/downlinePartner tree below this partner
Query parameters
| depth | integer | 1–5, default 3 |
Example
curl http://localhost:8000/api/v1/partners/pay_…/downline \ -H "Authorization: Bearer sk_test_…"
GET/partners/{id}/statsReferred volume, customers and earnings
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
Example
curl http://localhost:8000/api/v1/partners/pay_…/stats \ -H "Authorization: Bearer sk_test_…"
POST/partners/{id}/codesIssue a referral code for this partner
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| code * | string | |
| min_amount | number | |
| label | string |
Example
curl -X POST http://localhost:8000/api/v1/partners/pay_…/codes \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Commissions
POST/partners/{id}/payoutsPay a partner's available commissions
Records that YOU paid the partner (bank, MoMo, wallet credit on your platform). Marks the lines paid and emits commission.paid.
Body
| commissions | array | Specific com_ ids; default all available |
| reference | string | |
| method | string | |
| note | string |
Example
curl -X POST http://localhost:8000/api/v1/partners/pay_…/payouts \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/commission_rulesCreate a commission rule
Body
| name * | string | |
| applies_to | string | (referrer, staff, both) |
| levels | array | Percent per level: [10, 3, 1] = direct 10%, upline 3%, 1% |
| flat | number | Flat bonus to level 1 |
| trigger | string | (every, first, first_n) |
| first_n | integer | |
| attribution | string | (sticky, payment) |
| basis | string | (net, gross) |
| min_payment | number | |
| cap | number | Max per line |
| hold_days | integer | |
| site | string | Only this website |
| channels | array | |
| active | boolean | |
| is_default | boolean |
Example
curl http://localhost:8000/api/v1/commission_rules \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Agents 3-tier",
"levels": [
10,
3,
1
],
"trigger": "every",
"hold_days": 7,
"is_default": true
}'GET/commission_rulesList commission rules
Example
curl http://localhost:8000/api/v1/commission_rules \ -H "Authorization: Bearer sk_test_…"
GET/commission_rules/{id}Retrieve a rule
Example
curl http://localhost:8000/api/v1/commission_rules/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/commission_rules/{id}Update a rule (applies to future payments)
Body
| name * | string | |
| applies_to | string | (referrer, staff, both) |
| levels | array | Percent per level: [10, 3, 1] = direct 10%, upline 3%, 1% |
| flat | number | Flat bonus to level 1 |
| trigger | string | (every, first, first_n) |
| first_n | integer | |
| attribution | string | (sticky, payment) |
| basis | string | (net, gross) |
| min_payment | number | |
| cap | number | Max per line |
| hold_days | integer | |
| site | string | Only this website |
| channels | array | |
| active | boolean | |
| is_default | boolean |
Example
curl -X POST http://localhost:8000/api/v1/commission_rules/pay_… \ -H "Authorization: Bearer sk_test_…"
DELETE/commission_rules/{id}Delete a rule (ledger lines keep their history)
Example
curl -X DELETE http://localhost:8000/api/v1/commission_rules/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/commissions/simulateDry-run: who would earn what
Show partners their earnings before they sell, or test a rule change. Nothing is written.
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| amount * | number | |
| net | number | |
| partner | string | Referrer ptn_… / reference / referral code |
| staff | array | |
| prior_payments | integer | Customer's earlier successful payments (for first/first_n) |
| channel | string |
Example
curl http://localhost:8000/api/v1/commissions/simulate \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"amount": 200,
"partner": "user_kofi",
"staff": [
{
"reference": "agent_7",
"share": 50
},
{
"reference": "agent_9",
"share": 50
}
]
}'GET/commissionsCommission ledger
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| partner | string | |
| status | string | (pending, available, paid, reversed, void) |
| role | string | (referrer, staff, adjustment) |
| payment | string | |
| customer | string | |
| include_summary | boolean |
Example
curl http://localhost:8000/api/v1/commissions \ -H "Authorization: Bearer sk_test_…"
GET/commissions/{id}Retrieve a commission line
Example
curl http://localhost:8000/api/v1/commissions/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/commissionsManual adjustment (bonus or deduction)
Body
| partner * | string | |
| amount * | number | Negative for a deduction |
| reason * | string | |
| payment | string | Optional related payment |
| status | string | (available, pending) |
Example
curl http://localhost:8000/api/v1/commissions \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"partner": "user_kofi",
"amount": 50,
"reason": "November target bonus"
}'POST/commissions/{id}/approveRelease a held (pending) line now
Example
curl -X POST http://localhost:8000/api/v1/commissions/pay_…/approve \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/commissions/{id}/voidVoid an unpaid line
Body
| reason | string |
Example
curl -X POST http://localhost:8000/api/v1/commissions/pay_…/void \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/commission_payoutsPartner payouts
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| partner | string |
Example
curl http://localhost:8000/api/v1/commission_payouts \ -H "Authorization: Bearer sk_test_…"
GET/commission_payouts/{id}Retrieve a partner payout with its lines
Example
curl http://localhost:8000/api/v1/commission_payouts/pay_… \ -H "Authorization: Bearer sk_test_…"
Referral codes
POST/referralsCreate a referral code
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| code * | string | |
| label | string | |
| owner | string | |
| partner | string | ptn_… or partner reference — who gets credited |
| min_amount | number | Minimum deposit with this code |
| max_amount | number | |
| active | boolean | |
| expires_at | timestamp |
Example
curl http://localhost:8000/api/v1/referrals \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"code": "KOFI10",
"partner": "user_kofi",
"min_amount": 20
}'GET/referralsList referral codes
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| partner | string | |
| active | boolean |
Example
curl http://localhost:8000/api/v1/referrals \ -H "Authorization: Bearer sk_test_…"
GET/referrals/{code}Retrieve a referral code
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/referrals/KOFI10 \ -H "Authorization: Bearer sk_test_…"
POST/referrals/{code}Update a referral code
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| label | string | |
| owner | string | |
| partner | string | ptn_… or partner reference — who gets credited |
| min_amount | number | Minimum deposit with this code |
| max_amount | number | |
| active | boolean | |
| expires_at | timestamp |
Example
curl -X POST http://localhost:8000/api/v1/referrals/KOFI10 \ -H "Authorization: Bearer sk_test_…"
Payment links
POST/linksCreate a payment link
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| name | string | |
| description | string | |
| amount | number | Fixed amount; omit for customer-chosen |
| referral | string | Attach a referral code |
| max_uses | integer | |
| expires_at | timestamp | |
| active | boolean | |
| require_signature | boolean |
Example
curl -X POST http://localhost:8000/api/v1/links \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/linksList payment links
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/links \ -H "Authorization: Bearer sk_test_…"
GET/links/{id}Retrieve a payment link
Example
curl http://localhost:8000/api/v1/links/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/links/{id}Update a payment link
Body
| name | string | |
| description | string | |
| amount | number | Fixed amount; omit for customer-chosen |
| referral | string | Attach a referral code |
| max_uses | integer | |
| expires_at | timestamp | |
| active | boolean | |
| require_signature | boolean |
Example
curl -X POST http://localhost:8000/api/v1/links/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/links/signBuild a signed, pre-filled link
Pre-fill and lock amount/customer/referral. Signed links also work from emails and apps (no Referer needed).
Body
| link * | string | Payment link id (token) |
| amount | number | |
| customer_ref | string | |
| string | ||
| phone | string | |
| name | string | |
| ref | string | Referral code |
| expires_in | integer | Seconds, default 3600 |
Example
curl -X POST http://localhost:8000/api/v1/links/sign \ -H "Authorization: Bearer sk_test_…"
Websites
GET/siteThis key's website (site keys)
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/site \ -H "Authorization: Bearer sk_test_…"
GET/sitesList websites
Example
curl http://localhost:8000/api/v1/sites \ -H "Authorization: Bearer sk_test_…"
GET/sites/{id}Retrieve a website
Example
curl http://localhost:8000/api/v1/sites/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/sites/{id}Pause / resume a website, tune limits
Pause from your own admin (e.g. during maintenance). The customer sees your paused message.
Body
| status | string | (active, paused) |
| paused_reason | string | |
| min_amount | number | |
| max_amount | number | |
| quick_amounts | array |
Example
curl http://localhost:8000/api/v1/sites/pay_… \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{
"status": "paused",
"paused_reason": "Maintenance until 14:00"
}'Webhooks
POST/webhook_endpointsCreate a webhook endpoint
The signing secret (whsec_…) is returned ONCE in this response.
Body
| url * | string | |
| events | array | Types or wildcards like payment.*; empty = all |
| site | string | Omit with an organisation key for an organisation-wide endpoint |
| description | string |
Example
curl http://localhost:8000/api/v1/webhook_endpoints \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "https://admin.example.com/hooks/conduit",
"events": [
"payment.*",
"commission.*"
]
}'GET/webhook_endpointsList webhook endpoints
Example
curl http://localhost:8000/api/v1/webhook_endpoints \ -H "Authorization: Bearer sk_test_…"
GET/webhook_endpoints/{id}Retrieve an endpoint
Example
curl http://localhost:8000/api/v1/webhook_endpoints/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/webhook_endpoints/{id}Update an endpoint
Body
| url | string | |
| events | array | |
| description | string | |
| active | boolean |
Example
curl -X POST http://localhost:8000/api/v1/webhook_endpoints/pay_… \ -H "Authorization: Bearer sk_test_…"
DELETE/webhook_endpoints/{id}Delete an endpoint
Example
curl -X DELETE http://localhost:8000/api/v1/webhook_endpoints/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/webhook_endpoints/{id}/roll_secretRotate the signing secret (returned once)
Example
curl -X POST http://localhost:8000/api/v1/webhook_endpoints/pay_…/roll_secret \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/webhook_endpoints/{id}/testSend a sample event to this endpoint now
Delivers a realistic sample (marked "test": true) synchronously and returns the result.
Body
| type | string | (conduit.ping, payment.succeeded, payment.failed, refund.succeeded, commission.created, customer.created) |
Example
curl -X POST http://localhost:8000/api/v1/webhook_endpoints/pay_…/test \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/webhooks/testPing every active endpoint
Example
curl -X POST http://localhost:8000/api/v1/webhooks/test \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/webhook_deliveriesDelivery log
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| endpoint | string | |
| status | string | |
| event | string | |
| type | string |
Example
curl http://localhost:8000/api/v1/webhook_deliveries \ -H "Authorization: Bearer sk_test_…"
GET/webhook_deliveries/{id}A delivery with payload and response
Example
curl http://localhost:8000/api/v1/webhook_deliveries/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/webhook_deliveries/{id}/retryRetry a delivery now
Example
curl -X POST http://localhost:8000/api/v1/webhook_deliveries/pay_…/retry \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Events
GET/eventsEvent log (catch up on missed webhooks)
Every event is stored for 30+ days whether or not you have endpoints. Poll with created[gt]=<last seen> to never miss a state change.
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| type | string | Exact type or wildcard: payment.* |
| types[] | string | Several types |
| object | string | Object id, e.g. pay_… |
Example
curl http://localhost:8000/api/v1/events \ -H "Authorization: Bearer sk_test_…"
GET/events/{id}Retrieve an event
Example
curl http://localhost:8000/api/v1/events/pay_… \ -H "Authorization: Bearer sk_test_…"
POST/events/{id}/redeliverRe-send an event to your endpoints
Body
| endpoint | string | Only this endpoint |
Example
curl -X POST http://localhost:8000/api/v1/events/pay_…/redeliver \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Balance & payouts
GET/balanceWhat the platform owes you (platform-collected payments)
Only payments collected through the platform's gateways are settled by payroll. Payments on your own Paystack keys settle directly to you and are not included.
Example
curl http://localhost:8000/api/v1/balance \ -H "Authorization: Bearer sk_test_…"
GET/payoutsPayroll payouts to you
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| status | string |
Example
curl http://localhost:8000/api/v1/payouts \ -H "Authorization: Bearer sk_test_…"
GET/payouts/{id}A payout with its payments
Example
curl http://localhost:8000/api/v1/payouts/pay_… \ -H "Authorization: Bearer sk_test_…"
Reports & exports
GET/reports/summaryKPIs with period-over-period change
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/reports/summary \ -H "Authorization: Bearer sk_test_…"
GET/reports/timeseriesVolume & counts per bucket
Buckets are hourly/daily/weekly/monthly depending on the range; gaps are zero-filled.
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/reports/timeseries \ -H "Authorization: Bearer sk_test_…"
GET/reports/breakdownVolume split by a dimension
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| by * | string | (channel, site, referral, partner, network, status, via) |
| limit | integer |
Example
curl http://localhost:8000/api/v1/reports/breakdown \ -H "Authorization: Bearer sk_test_…"
GET/reports/funnelCheckout conversion funnel
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Example
curl http://localhost:8000/api/v1/reports/funnel \ -H "Authorization: Bearer sk_test_…"
GET/reports/partnersPartner leaderboard (volume referred & commission)
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| limit | integer | |
| kind | string |
Example
curl http://localhost:8000/api/v1/reports/partners \ -H "Authorization: Bearer sk_test_…"
GET/reports/customersNew vs returning customers and top payers
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| limit | integer |
Example
curl http://localhost:8000/api/v1/reports/customers \ -H "Authorization: Bearer sk_test_…"
GET/exports/{resource}CSV export (payments, refunds, customers, commissions)
Up to 50,000 rows. Needs the read scope of the exported resource.
Query parameters
| timeframe | string | today, yesterday, 3d, 7d, 14d, 30d, 90d, this_month, last_month, this_year, 1y, all, custom |
| from | timestamp | With timeframe=custom |
| to | timestamp | With timeframe=custom |
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
| status | string |
Example
curl http://localhost:8000/api/v1/exports/payments \ -H "Authorization: Bearer sk_test_…"
Embedded dashboard
POST/embed/dashboard_sessionsMint a dashboard session for one of your staff
Call this from YOUR server each time a staff member opens your admin page, then put the returned url in an iframe (or use Conduit.dashboard({url})). Nobody needs a Conduit account. The URL is a bearer credential — never log it or send it to anyone else.
Body
| user * | object | {id, name, email} — your staff member (id is required) |
| role | string | Embed role id (er_…) or name; default role if omitted |
| sites | array | Narrow to these websites (within the role) |
| mode | string | (live, test) |
| expires_in | integer | Seconds, 300 – policy max (default 3600) |
| theme | string | (auto, light, dark) |
| page | string | Open on: payments, customers… |
Example
curl http://localhost:8000/api/v1/embed/dashboard_sessions \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"user": {
"id": "staff_42",
"name": "Esi Owusu",
"email": "esi@shop.example"
},
"role": "Support",
"expires_in": 3600
}'GET/embed/dashboard_sessionsList dashboard sessions
Query parameters
| limit | integer | 1–100, default 25 |
| starting_after | string | Cursor: object id from the previous page's last item (next_cursor) |
| ending_before | string | Cursor for the previous page |
| created[gte] | timestamp | ISO-8601 or unix seconds |
| created[lte] | timestamp | |
| updated[gte] | timestamp | Incremental sync: everything changed since |
| sort | string | created (default) or updated (created, updated) |
| include_total | boolean | Add total count (slower) |
| active | boolean | |
| user | string |
Example
curl http://localhost:8000/api/v1/embed/dashboard_sessions \ -H "Authorization: Bearer sk_test_…"
POST/embed/dashboard_sessions/{id}/revokeEnd a session now (e.g. the staff member left)
Example
curl -X POST http://localhost:8000/api/v1/embed/dashboard_sessions/pay_…/revoke \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
POST/embed/dashboard_sessions/revoke_userEnd every session of one staff member
Body
| user * | string | Your staff member's id |
Example
curl -X POST http://localhost:8000/api/v1/embed/dashboard_sessions/revoke_user \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
GET/embed/rolesEmbed roles you defined
Example
curl http://localhost:8000/api/v1/embed/roles \ -H "Authorization: Bearer sk_test_…"
Test helpers
POST/test/paymentsSimulate a full payment (test mode)
Creates a session and drives a payment to the outcome instantly — customers, commissions and webhooks run exactly as in production. Ideal for CI.
Query parameters
| site | string | Website id (site_…). Required with organisation keys on site-specific calls. |
Body
| amount * | number | |
| outcome | string | Default succeeded (succeeded, failed) |
| customer | object | |
| referral | string | |
| attribution | object | |
| external_id | string | |
| metadata | object | |
| tags | array |
Example
curl http://localhost:8000/api/v1/test/payments \
-H "Authorization: Bearer sk_test_…" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": 100,
"customer": {
"reference": "user_88"
},
"referral": "KOFI10",
"attribution": {
"staff": [
{
"reference": "agent_7",
"share": 100
}
]
}
}'POST/test/eventsFire a sample event to your test endpoints
Body
| type * | string | (conduit.ping, payment.succeeded, payment.failed, refund.succeeded, commission.created, customer.created) |
Example
curl -X POST http://localhost:8000/api/v1/test/events \ -H "Authorization: Bearer sk_test_…" \ -H "Idempotency-Key: $(uuidgen)"
Browser (publishable key)
GET/public/siteWebsite config for your UI
Example
curl http://localhost:8000/api/v1/public/site \ -H "Authorization: Bearer pk_test_…"
POST/public/sessionsCreate a hosted session from the browser
Body
| amount | number | Amount in major units (e.g. 50.00). Omit to let the customer choose within limits. |
| currency | string | ISO code; defaults to the website currency |
| external_id | string | YOUR order/invoice id. Unique per website: a second call returns the same open checkout; a paid one returns 409 external_id_already_paid. |
| customer | object | {reference, email, phone, name} — reference = your user id |
| referral | string | Referral code. Its partner is credited (and remembered on the customer). |
| attribution | object | {partner, staff:[{reference, name, share, kind}], campaign, source, medium, utm{}} — credit several people on one payment |
| line_items | array | [{name, quantity, unit_amount, sku}] — amount is computed when omitted |
| tags | array | Up to 20 short labels, filterable |
| metadata | object | Anything (≤ 4 KB); echoed in webhooks |
| description | string | |
| return_url | string | |
| cancel_url | string | |
| channels | array | Restrict to channel codes |
| expires_in | integer | Seconds (300 – 604800) |
Example
curl -X POST http://localhost:8000/api/v1/public/sessions \ -H "Authorization: Bearer pk_test_…"
POST/embed/sessionsOpen the in-page modal (used by conduit.js)
The browser SDK calls this. An amount from the browser is a prefill the customer can change unless the website allows browser-set amounts. Staff attribution is ignored from browsers — set it server-side.
Body
| amount | number | Amount in major units (e.g. 50.00). Omit to let the customer choose within limits. |
| currency | string | ISO code; defaults to the website currency |
| external_id | string | YOUR order/invoice id. Unique per website: a second call returns the same open checkout; a paid one returns 409 external_id_already_paid. |
| customer | object | {reference, email, phone, name} — reference = your user id |
| referral | string | Referral code. Its partner is credited (and remembered on the customer). |
| attribution | object | {partner, staff:[{reference, name, share, kind}], campaign, source, medium, utm{}} — credit several people on one payment |
| line_items | array | [{name, quantity, unit_amount, sku}] — amount is computed when omitted |
| tags | array | Up to 20 short labels, filterable |
| metadata | object | Anything (≤ 4 KB); echoed in webhooks |
| description | string | |
| return_url | string | |
| cancel_url | string | |
| channels | array | Restrict to channel codes |
| expires_in | integer | Seconds (300 – 604800) |
Example
curl -X POST http://localhost:8000/api/v1/embed/sessions \ -H "Authorization: Bearer pk_test_…"
GET/public/payments/{reference}Minimal payment status for the browser
Example
curl http://localhost:8000/api/v1/public/payments/BX-… \ -H "Authorization: Bearer pk_test_…"
Scopes
Restricted keys (rk_…) carry scopes; :write implies :read. Secret keys have every scope.
| sessions:read | Read checkout sessions |
| sessions:write | Create & expire checkout sessions |
| payments:read | Read payments, timelines |
| payments:write | Update payments (metadata, tags, notes), verify |
| refunds:read | Read refunds |
| refunds:write | Create, confirm, cancel refunds |
| customers:read | Read customers |
| customers:write | Create, update, block customers |
| partners:read | Read partners, downlines, stats |
| partners:write | Create & update partners, referral codes |
| commissions:read | Read commission rules, ledger & payouts |
| commissions:write | Manage rules; approve, reverse & pay commissions |
| referrals:read | Read referral codes |
| referrals:write | Create & update referral codes |
| links:read | Read payment links |
| links:write | Create & update payment links, sign links |
| sites:read | Read websites & configuration |
| sites:write | Pause / resume websites, change limits |
| webhooks:read | Read endpoints & deliveries |
| webhooks:write | Manage endpoints, redeliver events |
| events:read | Read the event log |
| reports:read | Analytics & reports |
| balance:read | Platform balance & payouts |
| embed:read | List embedded-dashboard roles & sessions |
| embed:write | Mint & revoke embedded-dashboard sessions for your staff |
Errors
Body: {"error": {"type", "code", "message", "param", "doc_url"}, "request_id"}. Branch on code.
| missing_api_key | 401 | No Authorization header. |
| invalid_api_key | 401 | Key unknown, expired after a roll, or revoked. |
| secret_key_required | 403 | A pk_ key was used on a server endpoint. |
| origin_not_allowed | 403 | Browser request from a domain not registered on this website. |
| ip_not_allowed | 403 | Server IP not on the website's allow-list. |
| account_inactive | 403 | Organisation pending, suspended or closed. |
| site_removed | 410 | Website was removed; its keys no longer work. |
| site_paused | 423 | Website is paused — show your customer the paused message. |
| amount_below_minimum | 400 | Below the resolved minimum (referral → site → org → platform). |
| amount_above_maximum | 400 | Above the resolved maximum or plan cap. |
| referral_not_found | 400 | Unknown referral code for this website. |
| referral_inactive | 400 | Referral code disabled or expired. |
| url_not_allowed | 400 | return_url / cancel_url not on this website's domains. |
| idempotency_key_reused | 409 | Same Idempotency-Key, different body. |
| insufficient_scope | 403 | Restricted key (rk_) without the scope this endpoint needs. |
| site_required | 400 | Organisation key used on a site-specific call without `site`. |
| feature_disabled | 403 | The feature (refunds, partners, management API…) isn't on your plan. |
| external_id_already_paid | 409 | This external_id (your order id) was already paid on this website. |
| customer_blocked | 403 | The customer is blocked from paying. |
| invalid_refund_amount | 400 | More than the refundable amount. |
| already_commissioned | 409 | Re-attribution refused: void the existing commission lines first. |
| test_mode_only | 403 | Test helpers need a test key. |
| risk_blocked | 403 | Blocked by the risk engine or blocklist — show a neutral message. |
| route_blocked | 403 | A routing rule blocked this payment; message is customer-safe. |
| channel_unavailable | 400 | Unknown channel code for this website, or not allowed on this session. |
| channel_not_available_here | 403 | Location targeting: this method isn't offered where the payer is (or for their phone's country). |
| embed_disabled | 403 | The embedded dashboard isn't enabled for your account by the platform. |
| role_not_found | 404 | No such embed role — create roles in Developers › Embedded dashboard. |
| channel_closed | 400 | Channel closed now (schedule or a scheduled pause); message is customer-safe. |
| rate_limited | 429 | Too many requests per minute for this key. |
| platform_maintenance | 503 | Platform maintenance window. |
| no_gateway | 503 | No gateway available (none granted, all failing). |
Event types
| payment.succeeded | Money confirmed. Credit your customer (idempotently, by reference). |
| payment.failed | Declined or could not be completed. Nothing was taken. |
| payment.pending | Waiting for the customer to approve on their phone. |
| payment.action_required | OTP / PIN / redirect needed — checkout handles it. |
| payment.expired | No confirmation inside the pending window. |
| session.completed | A checkout session was paid. |
| session.expired | A checkout session closed unpaid. |
| payment.updated | Metadata, tags or attribution changed (API or console). |
| payment.held / payment.released | Risk review: money held out of payroll, then released after approval. |
| session.abandoned | Checkout left unpaid for a while — includes recovery_url to nudge the customer. |
| payment.refunded | A refund succeeded; amount_refunded / refund_status updated. |
| refund.created / refund.succeeded / refund.failed | Refund lifecycle. |
| customer.created / customer.updated | A customer was first seen, edited, blocked or re-assigned. |
| partner.created / partner.updated | Partner directory changes. |
| commission.created | A commission line was written (referrer level or staff share). |
| commission.available | A held line passed its hold period — payable now. |
| commission.paid | You recorded a partner payout. |
| commission.reversed | Clawed back (refund) or voided. |
| payout.paid | The platform paid your balance (payroll). |
| site.paused / site.resumed | Your website's payments were paused or resumed. |