{"info": {"name": "Conduit API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": "Generated from the live registry \u00b7 API 2026-11-01"}, "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{secret_key}}"}]}, "variable": [{"key": "base", "value": "http://localhost:8000"}, {"key": "secret_key", "value": "sk_test_\u2026"}, {"key": "publishable_key", "value": "pk_test_\u2026"}], "item": [{"name": "Account & keys", "item": [{"name": "Liveness & version", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/health", "host": ["{{base}}"], "path": ["api", "v1", "health"], "query": []}, "description": "Liveness & version", "auth": {"type": "noauth"}}}, {"name": "OpenAPI 3.1 spec (generated)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/openapi.json", "host": ["{{base}}"], "path": ["api", "v1", "openapi.json"], "query": []}, "description": "OpenAPI 3.1 spec (generated)", "auth": {"type": "noauth"}}}, {"name": "Postman collection (generated)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/postman.json", "host": ["{{base}}"], "path": ["api", "v1", "postman.json"], "query": []}, "description": "Postman collection (generated)", "auth": {"type": "noauth"}}}, {"name": "All scopes and what they grant", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/scopes", "host": ["{{base}}"], "path": ["api", "v1", "scopes"], "query": []}, "description": "All scopes and what they grant", "auth": {"type": "noauth"}}}, {"name": "Who am I \u2014 key, account, websites, scopes", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/me", "host": ["{{base}}"], "path": ["api", "v1", "me"], "query": []}, "description": "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."}}]}, {"name": "Checkout sessions", "item": [{"name": "Create a checkout session", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/checkout/sessions", "host": ["{{base}}"], "path": ["api", "v1", "checkout", "sessions"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Returns a hosted `url` (redirect) \u2014 or pass the id to `Conduit.pay({session})` in the browser for the in-page modal. Use `Idempotency-Key` for safe retries.", "body": {"mode": "raw", "raw": "{\n  \"amount\": 150,\n  \"external_id\": \"order_1042\",\n  \"customer\": {\n    \"reference\": \"user_88\",\n    \"phone\": \"0241234567\"\n  },\n  \"referral\": \"KOFI10\",\n  \"attribution\": {\n    \"staff\": [\n      {\n        \"reference\": \"agent_7\",\n        \"share\": 60\n      },\n      {\n        \"reference\": \"agent_9\",\n        \"share\": 40\n      }\n    ]\n  },\n  \"metadata\": {\n    \"cart\": \"c_77\"\n  }\n}"}}}, {"name": "List checkout sessions", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/checkout/sessions", "host": ["{{base}}"], "path": ["api", "v1", "checkout", "sessions"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "customer_reference", "value": "", "disabled": true}, {"key": "external_id", "value": "", "disabled": true}]}, "description": "List checkout sessions"}}, {"name": "Retrieve a session (by id or your external_id)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/checkout/sessions/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "checkout", "sessions", "{{id}}"], "query": []}, "description": "Retrieve a session (by id or your external_id)"}}, {"name": "Expire an unpaid session now", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/checkout/sessions/{{id}}/expire", "host": ["{{base}}"], "path": ["api", "v1", "checkout", "sessions", "{{id}}", "expire"], "query": []}, "description": "Expire an unpaid session now"}}]}, {"name": "Payments", "item": [{"name": "List & search payments", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments", "host": ["{{base}}"], "path": ["api", "v1", "payments"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "channel", "value": "", "disabled": true}, {"key": "referral", "value": "", "disabled": true}, {"key": "customer", "value": "", "disabled": true}, {"key": "partner", "value": "", "disabled": true}, {"key": "staff", "value": "", "disabled": true}, {"key": "external_id", "value": "", "disabled": true}, {"key": "tag", "value": "", "disabled": true}, {"key": "refund_status", "value": "", "disabled": true}, {"key": "q", "value": "", "disabled": true}, {"key": "min", "value": "", "disabled": true}, {"key": "max", "value": "", "disabled": true}, {"key": "include_summary", "value": "", "disabled": true}, {"key": "expand[]", "value": "", "disabled": true}]}, "description": "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>`."}}, {"name": "Retrieve a payment (id, reference or external_id)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}"], "query": [{"key": "expand[]", "value": "", "disabled": true}]}, "description": "Retrieve a payment (id, reference or external_id)"}}, {"name": "Update a payment", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}"], "query": []}, "description": "Update a payment", "body": {"mode": "raw", "raw": "{\n  \"metadata\": {\n    \"fulfilled\": true\n  },\n  \"tags\": [\n    \"vip\",\n    \"promo-nov\"\n  ]\n}"}}}, {"name": "Credit a settled payment after the fact", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/attribution", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "attribution"], "query": []}, "description": "For when the agent/partner was entered late. Runs the commission engine for this payment. Refused while live commissions exist \u2014 void them first.", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Re-check status with the processor now", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/verify", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "verify"], "query": []}, "description": "Re-check status with the processor now"}}, {"name": "Payment timeline (every status change, note and check)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/events", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "events"], "query": []}, "description": "Payment timeline (every status change, note and check)"}}, {"name": "Add an internal note (staff collaboration)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/notes", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "notes"], "query": []}, "description": "Notes land on the payment timeline, visible to every staff member in the console and API.", "body": {"mode": "raw", "raw": "{\n  \"note\": null\n}"}}}]}, {"name": "Refunds", "item": [{"name": "Refund a payment (full or partial)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/refunds", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "refunds"], "query": []}, "description": "Paystack refunds go through the API; bridge payments become `requires_action` (finish manually, then confirm). Commissions are clawed back proportionally.", "body": {"mode": "raw", "raw": "{\n  \"amount\": 20,\n  \"reason\": \"duplicate\"\n}"}}}, {"name": "Create a refund", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/refunds", "host": ["{{base}}"], "path": ["api", "v1", "refunds"], "query": []}, "description": "Create a refund", "body": {"mode": "raw", "raw": "{\n  \"payment\": null\n}"}}}, {"name": "List refunds", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/refunds", "host": ["{{base}}"], "path": ["api", "v1", "refunds"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "payment", "value": "", "disabled": true}]}, "description": "List refunds"}}, {"name": "Refunds of a payment", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payments/{{id}}/refunds", "host": ["{{base}}"], "path": ["api", "v1", "payments", "{{id}}", "refunds"], "query": []}, "description": "Refunds of a payment"}}, {"name": "Retrieve a refund", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/refunds/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "refunds", "{{id}}"], "query": []}, "description": "Retrieve a refund"}}, {"name": "Confirm a manual refund was sent", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/refunds/{{id}}/confirm", "host": ["{{base}}"], "path": ["api", "v1", "refunds", "{{id}}", "confirm"], "query": []}, "description": "Confirm a manual refund was sent", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Cancel a pending refund", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/refunds/{{id}}/cancel", "host": ["{{base}}"], "path": ["api", "v1", "refunds", "{{id}}", "cancel"], "query": []}, "description": "Cancel a pending refund"}}]}, {"name": "Customers", "item": [{"name": "Create (or upsert) a customer", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers", "host": ["{{base}}"], "path": ["api", "v1", "customers"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "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.", "body": {"mode": "raw", "raw": "{\n  \"reference\": \"user_88\",\n  \"name\": \"Ama Mensah\",\n  \"phone\": \"0241234567\",\n  \"partner\": \"user_kofi\"\n}"}}}, {"name": "List & search customers", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers", "host": ["{{base}}"], "path": ["api", "v1", "customers"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "q", "value": "", "disabled": true}, {"key": "partner", "value": "", "disabled": true}, {"key": "blocked", "value": "", "disabled": true}, {"key": "tag", "value": "", "disabled": true}, {"key": "min_ltv", "value": "", "disabled": true}, {"key": "has_paid", "value": "", "disabled": true}]}, "description": "List & search customers"}}, {"name": "Retrieve a customer (cus_\u2026 or your reference)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}"], "query": []}, "description": "Retrieve a customer (cus_\u2026 or your reference)"}}, {"name": "Update a customer", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}"], "query": []}, "description": "Update a customer", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Delete a customer with no payments", "request": {"method": "DELETE", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}"], "query": []}, "description": "Delete a customer with no payments"}}, {"name": "Block a customer from paying", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}/block", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}", "block"], "query": []}, "description": "Blocked customers get a 403 `customer_blocked` at checkout on every website.", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Unblock a customer", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}/unblock", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}", "unblock"], "query": []}, "description": "Unblock a customer"}}, {"name": "A customer's payments", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/customers/{{id}}/payments", "host": ["{{base}}"], "path": ["api", "v1", "customers", "{{id}}", "payments"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}]}, "description": "A customer's payments"}}]}, {"name": "Partners", "item": [{"name": "Create (or upsert) a partner", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners", "host": ["{{base}}"], "path": ["api", "v1", "partners"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "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.", "body": {"mode": "raw", "raw": "{\n  \"reference\": \"user_kofi\",\n  \"name\": \"Kofi Boateng\",\n  \"kind\": \"agent\",\n  \"parent\": \"user_ama\",\n  \"code\": \"KOFI10\"\n}"}}}, {"name": "List partners", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners", "host": ["{{base}}"], "path": ["api", "v1", "partners"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "kind", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "parent", "value": "", "disabled": true}, {"key": "q", "value": "", "disabled": true}, {"key": "with_balance", "value": "", "disabled": true}]}, "description": "List partners"}}, {"name": "Retrieve a partner with balance", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}"], "query": []}, "description": "Retrieve a partner with balance"}}, {"name": "Update a partner", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}"], "query": []}, "description": "Update a partner", "body": {"mode": "raw", "raw": "{\n  \"name\": null\n}"}}}, {"name": "Pending / available / paid commission balance", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}/balance", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}", "balance"], "query": []}, "description": "Pending / available / paid commission balance"}}, {"name": "Partner tree below this partner", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}/downline", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}", "downline"], "query": [{"key": "depth", "value": "", "disabled": true}]}, "description": "Partner tree below this partner"}}, {"name": "Referred volume, customers and earnings", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}/stats", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}", "stats"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}]}, "description": "Referred volume, customers and earnings"}}, {"name": "Issue a referral code for this partner", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}/codes", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}", "codes"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Issue a referral code for this partner", "body": {"mode": "raw", "raw": "{\n  \"code\": null\n}"}}}]}, {"name": "Commissions", "item": [{"name": "Pay a partner's available commissions", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/partners/{{id}}/payouts", "host": ["{{base}}"], "path": ["api", "v1", "partners", "{{id}}", "payouts"], "query": []}, "description": "Records that YOU paid the partner (bank, MoMo, wallet credit on your platform). Marks the lines paid and emits `commission.paid`.", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Create a commission rule", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_rules", "host": ["{{base}}"], "path": ["api", "v1", "commission_rules"], "query": []}, "description": "Create a commission rule", "body": {"mode": "raw", "raw": "{\n  \"name\": \"Agents 3-tier\",\n  \"levels\": [\n    10,\n    3,\n    1\n  ],\n  \"trigger\": \"every\",\n  \"hold_days\": 7,\n  \"is_default\": true\n}"}}}, {"name": "List commission rules", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_rules", "host": ["{{base}}"], "path": ["api", "v1", "commission_rules"], "query": []}, "description": "List commission rules"}}, {"name": "Retrieve a rule", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_rules/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "commission_rules", "{{id}}"], "query": []}, "description": "Retrieve a rule"}}, {"name": "Update a rule (applies to future payments)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_rules/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "commission_rules", "{{id}}"], "query": []}, "description": "Update a rule (applies to future payments)", "body": {"mode": "raw", "raw": "{\n  \"name\": null\n}"}}}, {"name": "Delete a rule (ledger lines keep their history)", "request": {"method": "DELETE", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_rules/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "commission_rules", "{{id}}"], "query": []}, "description": "Delete a rule (ledger lines keep their history)"}}, {"name": "Dry-run: who would earn what", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions/simulate", "host": ["{{base}}"], "path": ["api", "v1", "commissions", "simulate"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Show partners their earnings before they sell, or test a rule change. Nothing is written.", "body": {"mode": "raw", "raw": "{\n  \"amount\": 200,\n  \"partner\": \"user_kofi\",\n  \"staff\": [\n    {\n      \"reference\": \"agent_7\",\n      \"share\": 50\n    },\n    {\n      \"reference\": \"agent_9\",\n      \"share\": 50\n    }\n  ]\n}"}}}, {"name": "Commission ledger", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions", "host": ["{{base}}"], "path": ["api", "v1", "commissions"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "partner", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "role", "value": "", "disabled": true}, {"key": "payment", "value": "", "disabled": true}, {"key": "customer", "value": "", "disabled": true}, {"key": "include_summary", "value": "", "disabled": true}]}, "description": "Commission ledger"}}, {"name": "Retrieve a commission line", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "commissions", "{{id}}"], "query": []}, "description": "Retrieve a commission line"}}, {"name": "Manual adjustment (bonus or deduction)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions", "host": ["{{base}}"], "path": ["api", "v1", "commissions"], "query": []}, "description": "Manual adjustment (bonus or deduction)", "body": {"mode": "raw", "raw": "{\n  \"partner\": \"user_kofi\",\n  \"amount\": 50,\n  \"reason\": \"November target bonus\"\n}"}}}, {"name": "Release a held (pending) line now", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions/{{id}}/approve", "host": ["{{base}}"], "path": ["api", "v1", "commissions", "{{id}}", "approve"], "query": []}, "description": "Release a held (pending) line now"}}, {"name": "Void an unpaid line", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commissions/{{id}}/void", "host": ["{{base}}"], "path": ["api", "v1", "commissions", "{{id}}", "void"], "query": []}, "description": "Void an unpaid line", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Partner payouts", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_payouts", "host": ["{{base}}"], "path": ["api", "v1", "commission_payouts"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "partner", "value": "", "disabled": true}]}, "description": "Partner payouts"}}, {"name": "Retrieve a partner payout with its lines", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/commission_payouts/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "commission_payouts", "{{id}}"], "query": []}, "description": "Retrieve a partner payout with its lines"}}]}, {"name": "Referral codes", "item": [{"name": "Create a referral code", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/referrals", "host": ["{{base}}"], "path": ["api", "v1", "referrals"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Create a referral code", "body": {"mode": "raw", "raw": "{\n  \"code\": \"KOFI10\",\n  \"partner\": \"user_kofi\",\n  \"min_amount\": 20\n}"}}}, {"name": "List referral codes", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/referrals", "host": ["{{base}}"], "path": ["api", "v1", "referrals"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "partner", "value": "", "disabled": true}, {"key": "active", "value": "", "disabled": true}]}, "description": "List referral codes"}}, {"name": "Retrieve a referral code", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/referrals/{{code}}", "host": ["{{base}}"], "path": ["api", "v1", "referrals", "{{code}}"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Retrieve a referral code"}}, {"name": "Update a referral code", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/referrals/{{code}}", "host": ["{{base}}"], "path": ["api", "v1", "referrals", "{{code}}"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Update a referral code", "body": {"mode": "raw", "raw": "{}"}}}]}, {"name": "Payment links", "item": [{"name": "Create a payment link", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/links", "host": ["{{base}}"], "path": ["api", "v1", "links"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Create a payment link", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "List payment links", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/links", "host": ["{{base}}"], "path": ["api", "v1", "links"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}]}, "description": "List payment links"}}, {"name": "Retrieve a payment link", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/links/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "links", "{{id}}"], "query": []}, "description": "Retrieve a payment link"}}, {"name": "Update a payment link", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/links/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "links", "{{id}}"], "query": []}, "description": "Update a payment link", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Build a signed, pre-filled link", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/links/sign", "host": ["{{base}}"], "path": ["api", "v1", "links", "sign"], "query": []}, "description": "Pre-fill and lock amount/customer/referral. Signed links also work from emails and apps (no Referer needed).", "body": {"mode": "raw", "raw": "{\n  \"link\": null\n}"}}}]}, {"name": "Websites", "item": [{"name": "This key's website (site keys)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/site", "host": ["{{base}}"], "path": ["api", "v1", "site"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "This key's website (site keys)"}}, {"name": "List websites", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/sites", "host": ["{{base}}"], "path": ["api", "v1", "sites"], "query": []}, "description": "List websites"}}, {"name": "Retrieve a website", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/sites/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "sites", "{{id}}"], "query": []}, "description": "Retrieve a website"}}, {"name": "Pause / resume a website, tune limits", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/sites/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "sites", "{{id}}"], "query": []}, "description": "Pause from your own admin (e.g. during maintenance). The customer sees your paused message.", "body": {"mode": "raw", "raw": "{\n  \"status\": \"paused\",\n  \"paused_reason\": \"Maintenance until 14:00\"\n}"}}}]}, {"name": "Webhooks", "item": [{"name": "Create a webhook endpoint", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints"], "query": []}, "description": "The signing secret (`whsec_\u2026`) is returned ONCE in this response.", "body": {"mode": "raw", "raw": "{\n  \"url\": \"https://admin.example.com/hooks/conduit\",\n  \"events\": [\n    \"payment.*\",\n    \"commission.*\"\n  ]\n}"}}}, {"name": "List webhook endpoints", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints"], "query": []}, "description": "List webhook endpoints"}}, {"name": "Retrieve an endpoint", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints", "{{id}}"], "query": []}, "description": "Retrieve an endpoint"}}, {"name": "Update an endpoint", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints", "{{id}}"], "query": []}, "description": "Update an endpoint", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Delete an endpoint", "request": {"method": "DELETE", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints", "{{id}}"], "query": []}, "description": "Delete an endpoint"}}, {"name": "Rotate the signing secret (returned once)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints/{{id}}/roll_secret", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints", "{{id}}", "roll_secret"], "query": []}, "description": "Rotate the signing secret (returned once)"}}, {"name": "Send a sample event to this endpoint now", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_endpoints/{{id}}/test", "host": ["{{base}}"], "path": ["api", "v1", "webhook_endpoints", "{{id}}", "test"], "query": []}, "description": "Delivers a realistic sample (marked `\"test\": true`) synchronously and returns the result.", "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Ping every active endpoint", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhooks/test", "host": ["{{base}}"], "path": ["api", "v1", "webhooks", "test"], "query": []}, "description": "Ping every active endpoint"}}, {"name": "Delivery log", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_deliveries", "host": ["{{base}}"], "path": ["api", "v1", "webhook_deliveries"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "endpoint", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}, {"key": "event", "value": "", "disabled": true}, {"key": "type", "value": "", "disabled": true}]}, "description": "Delivery log"}}, {"name": "A delivery with payload and response", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_deliveries/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "webhook_deliveries", "{{id}}"], "query": []}, "description": "A delivery with payload and response"}}, {"name": "Retry a delivery now", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/webhook_deliveries/{{id}}/retry", "host": ["{{base}}"], "path": ["api", "v1", "webhook_deliveries", "{{id}}", "retry"], "query": []}, "description": "Retry a delivery now"}}]}, {"name": "Events", "item": [{"name": "Event log (catch up on missed webhooks)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/events", "host": ["{{base}}"], "path": ["api", "v1", "events"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "type", "value": "", "disabled": true}, {"key": "types[]", "value": "", "disabled": true}, {"key": "object", "value": "", "disabled": true}]}, "description": "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."}}, {"name": "Retrieve an event", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/events/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "events", "{{id}}"], "query": []}, "description": "Retrieve an event"}}, {"name": "Re-send an event to your endpoints", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/events/{{id}}/redeliver", "host": ["{{base}}"], "path": ["api", "v1", "events", "{{id}}", "redeliver"], "query": []}, "description": "Re-send an event to your endpoints", "body": {"mode": "raw", "raw": "{}"}}}]}, {"name": "Balance & payouts", "item": [{"name": "What the platform owes you (platform-collected payments)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/balance", "host": ["{{base}}"], "path": ["api", "v1", "balance"], "query": []}, "description": "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."}}, {"name": "Payroll payouts to you", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payouts", "host": ["{{base}}"], "path": ["api", "v1", "payouts"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}]}, "description": "Payroll payouts to you"}}, {"name": "A payout with its payments", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/payouts/{{id}}", "host": ["{{base}}"], "path": ["api", "v1", "payouts", "{{id}}"], "query": []}, "description": "A payout with its payments"}}]}, {"name": "Reports & exports", "item": [{"name": "KPIs with period-over-period change", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/summary", "host": ["{{base}}"], "path": ["api", "v1", "reports", "summary"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}]}, "description": "KPIs with period-over-period change"}}, {"name": "Volume & counts per bucket", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/timeseries", "host": ["{{base}}"], "path": ["api", "v1", "reports", "timeseries"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}]}, "description": "Buckets are hourly/daily/weekly/monthly depending on the range; gaps are zero-filled."}}, {"name": "Volume split by a dimension", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/breakdown", "host": ["{{base}}"], "path": ["api", "v1", "reports", "breakdown"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "by", "value": "", "disabled": true}, {"key": "limit", "value": "", "disabled": true}]}, "description": "Volume split by a dimension"}}, {"name": "Checkout conversion funnel", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/funnel", "host": ["{{base}}"], "path": ["api", "v1", "reports", "funnel"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}]}, "description": "Checkout conversion funnel"}}, {"name": "Partner leaderboard (volume referred & commission)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/partners", "host": ["{{base}}"], "path": ["api", "v1", "reports", "partners"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "limit", "value": "", "disabled": true}, {"key": "kind", "value": "", "disabled": true}]}, "description": "Partner leaderboard (volume referred & commission)"}}, {"name": "New vs returning customers and top payers", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/reports/customers", "host": ["{{base}}"], "path": ["api", "v1", "reports", "customers"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "limit", "value": "", "disabled": true}]}, "description": "New vs returning customers and top payers"}}, {"name": "CSV export (payments, refunds, customers, commissions)", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/exports/{{resource}}", "host": ["{{base}}"], "path": ["api", "v1", "exports", "{{resource}}"], "query": [{"key": "timeframe", "value": "", "disabled": true}, {"key": "from", "value": "", "disabled": true}, {"key": "to", "value": "", "disabled": true}, {"key": "site", "value": "", "disabled": true}, {"key": "status", "value": "", "disabled": true}]}, "description": "Up to 50,000 rows. Needs the read scope of the exported resource."}}]}, {"name": "Embedded dashboard", "item": [{"name": "Mint a dashboard session for one of your staff", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/dashboard_sessions", "host": ["{{base}}"], "path": ["api", "v1", "embed", "dashboard_sessions"], "query": []}, "description": "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 \u2014 never log it or send it to anyone else.", "body": {"mode": "raw", "raw": "{\n  \"user\": {\n    \"id\": \"staff_42\",\n    \"name\": \"Esi Owusu\",\n    \"email\": \"esi@shop.example\"\n  },\n  \"role\": \"Support\",\n  \"expires_in\": 3600\n}"}}}, {"name": "List dashboard sessions", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/dashboard_sessions", "host": ["{{base}}"], "path": ["api", "v1", "embed", "dashboard_sessions"], "query": [{"key": "limit", "value": "", "disabled": true}, {"key": "starting_after", "value": "", "disabled": true}, {"key": "ending_before", "value": "", "disabled": true}, {"key": "created[gte]", "value": "", "disabled": true}, {"key": "created[lte]", "value": "", "disabled": true}, {"key": "updated[gte]", "value": "", "disabled": true}, {"key": "sort", "value": "", "disabled": true}, {"key": "include_total", "value": "", "disabled": true}, {"key": "active", "value": "", "disabled": true}, {"key": "user", "value": "", "disabled": true}]}, "description": "List dashboard sessions"}}, {"name": "End a session now (e.g. the staff member left)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/dashboard_sessions/{{id}}/revoke", "host": ["{{base}}"], "path": ["api", "v1", "embed", "dashboard_sessions", "{{id}}", "revoke"], "query": []}, "description": "End a session now (e.g. the staff member left)"}}, {"name": "End every session of one staff member", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/dashboard_sessions/revoke_user", "host": ["{{base}}"], "path": ["api", "v1", "embed", "dashboard_sessions", "revoke_user"], "query": []}, "description": "End every session of one staff member", "body": {"mode": "raw", "raw": "{\n  \"user\": null\n}"}}}, {"name": "Embed roles you defined", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/roles", "host": ["{{base}}"], "path": ["api", "v1", "embed", "roles"], "query": []}, "description": "Embed roles you defined"}}]}, {"name": "Test helpers", "item": [{"name": "Simulate a full payment (test mode)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/test/payments", "host": ["{{base}}"], "path": ["api", "v1", "test", "payments"], "query": [{"key": "site", "value": "", "disabled": true}]}, "description": "Creates a session and drives a payment to the outcome instantly \u2014 customers, commissions and webhooks run exactly as in production. Ideal for CI.", "body": {"mode": "raw", "raw": "{\n  \"amount\": 100,\n  \"customer\": {\n    \"reference\": \"user_88\"\n  },\n  \"referral\": \"KOFI10\",\n  \"attribution\": {\n    \"staff\": [\n      {\n        \"reference\": \"agent_7\",\n        \"share\": 100\n      }\n    ]\n  }\n}"}}}, {"name": "Fire a sample event to your test endpoints", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/test/events", "host": ["{{base}}"], "path": ["api", "v1", "test", "events"], "query": []}, "description": "Fire a sample event to your test endpoints", "body": {"mode": "raw", "raw": "{\n  \"type\": null\n}"}}}]}, {"name": "Browser (publishable key)", "item": [{"name": "Website config for your UI", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/public/site", "host": ["{{base}}"], "path": ["api", "v1", "public", "site"], "query": []}, "description": "Website config for your UI", "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{publishable_key}}"}]}}}, {"name": "Create a hosted session from the browser", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/public/sessions", "host": ["{{base}}"], "path": ["api", "v1", "public", "sessions"], "query": []}, "description": "Create a hosted session from the browser", "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{publishable_key}}"}]}, "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Open the in-page modal (used by conduit.js)", "request": {"method": "POST", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/embed/sessions", "host": ["{{base}}"], "path": ["api", "v1", "embed", "sessions"], "query": []}, "description": "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 \u2014 set it server-side.", "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{publishable_key}}"}]}, "body": {"mode": "raw", "raw": "{}"}}}, {"name": "Minimal payment status for the browser", "request": {"method": "GET", "header": [{"key": "Content-Type", "value": "application/json"}], "url": {"raw": "{{base}}/api/v1/public/payments/{{reference}}", "host": ["{{base}}"], "path": ["api", "v1", "public", "payments", "{{reference}}"], "query": []}, "description": "Minimal payment status for the browser", "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{publishable_key}}"}]}}}]}]}