What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.
Authorization: Bearer <key>. Sandbox keys start with mgw_test_ and live keys start with mgw_live_. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.
Headers
webhook-id
string
required
The event's id. It's the same on every attempt, so use it to drop repeats.
Pattern: ^msg_[0-9a-f]{24}$
webhook-timestamp
string
required
When we sent this attempt, in seconds since 1970-01-01 UTC. Refuse one too far from your own clock: see Webhooks.
Pattern: ^[0-9]+$
webhook-signature
string
required
v1, and the base64 HMAC-SHA256 of webhook-id, webhook-timestamp and the body, joined by full stops, keyed with your signing secret. More than one, separated by spaces, while a secret is being rotated.
Body
application/json
The event.
One change to one of your orders, applications or allocations, or to your accounts' or your partner account's controls. A webhook carries the same body.
object
string
required
Allowed value: "event"
id
string
required
Unique identifier for the event. Starts with msg_. Matches the webhook-id header the event was sent with.
Pattern: ^msg_[0-9a-f]{24}$
type
enum<string>
required
What changed, followed by the state the change moved it to. New types can appear: ignore any you don't handle.
Available options:
account.restriction_changed,
allocation.booked,
allocation.refused,
allocation.rejected,
allocation.uncertain,
application.documents_required,
application.opened,
application.refused,
application.rejected,
application.submitted,
application.uncertain,
application.unplaced,
order.cancelled,
order.expired,
order.filled,
order.partially_filled,
order.pending,
order.refused,
order.rejected,
order.uncertain,
partner.status_changed,
security.restriction_changed
timestamp
string<date-time>
required
The updated_at of the order, application or allocation, or when we changed the controls.
version
integer<int64>
required
Increases with each of your events and is never reused. Other partners' events never move it. Compare it per object: ignore an event whose version is lower than the last you applied to that object.
data
object
required
The order, application or allocation as the change left it, exactly as its GET returned it then; or, for account.restriction_changed, partner.status_changed and security.restriction_changed, the controls as the change left them. Its object field says which.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Show child attributes
Response
200
Any 2xx tells us you have the event. Anything else, or no answer in time, and we send it again later.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Matamba Gateway","description":"Trade Nigerian equities for your customers through one API: accounts, funding, orders and positions at a licensed broker.","colors":{"primary":"#0A3D2E","light":"#C8960C","dark":"#0F5C44"},"logo":{"light":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-light.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=7255112e296a0116626af645d9d94b0b","dark":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-dark.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=bbb9ac582fa51c28ceea7f84114185ca"},"favicon":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/favicon.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=0dca95b27c12ee7c41bd60b272709a6c","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","javascript","python","go"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#060F0B"}},"fonts":{"family":"Inter"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"matamba","hasAudioNarration":false,"actualSubdomain":"matamba","customDomains":["docs.matambaintelligence.com"],"gitSource":{"type":"github","owner":"max-nvs","repo":"matamba-gateway","deployBranch":"main","contentDirectory":"docs/partner","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aeb63e2635e0e88d9ac05b5","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":27},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Reference","count":10},{"language":"default","tag":"How-to","count":8},{"language":"default","tag":"Accounts","count":6},{"language":"default","tag":"Orders","count":5},{"language":"default","tag":"Wallet","count":5},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Applications","count":4},{"language":"default","tag":"Get started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area p,#content-area .mdx-content>span,#header p{max-width:70ch}.nav-logo{height:34px}.method-nav-pill{width:auto;min-width:2.5rem}.method-nav-pill>span{font-size:11px}html:not(.dark) [data-component-part=\"field-required-pill\"]{color:#b91c1c}"}]}
{"page":{"pagePath":"api-reference/events/receive-an-event","slug":"/api-reference/events/receive-an-event","pageMetadata":{"title":"Receive an event","description":"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as `GET /v1/events` lists it. Check `webhook-signature` before you trust it, and answer with any 2xx. See [Webhooks](/webhooks) for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.","version":null,"deprecated":null,"openapi":"/openapi.json webhook event","href":"/api-reference/events/receive-an-event","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as \", _jsx(_components.code, {\n children: \"GET /v1/events\"\n }), \" lists it. Check \", _jsx(_components.code, {\n children: \"webhook-signature\"\n }), \" before you trust it, and answer with any 2xx. See \", _jsx(_components.a, {\n href: \"/webhooks\",\n children: \"Webhooks\"\n }), \" for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Receive an event","description":"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as `GET /v1/events` lists it. Check `webhook-signature` before you trust it, and answer with any 2xx. See [Webhooks](/webhooks) for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.","version":null,"deprecated":null,"openapi":"/openapi.json webhook event","href":"/api-reference/events/receive-an-event","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"receiveEvent","summary":"Receive an event","description":"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as `GET /v1/events` lists it. Check `webhook-signature` before you trust it, and answer with any 2xx. See [Webhooks](/webhooks) for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.","tags":["Events"],"parameters":["000093cc-b752-4271-a103-df5b88db75fc","817f3071-2e83-4e30-84b1-61fb3e8342c5","2f3eef95-9e7c-44ff-9b20-839f3a741a26"],"requestBody":"73125fad-78c0-40c7-b8ce-c765b02e2363","responses":{"200":"c30791b6-39ec-4f9b-bcf9-6bf89ab72daf"},"method":"post","type":"webhook","servers":["8baecbeb-5e25-45c3-aeab-7872ddbc2ec2"],"security":["86b2568b-6de1-4099-b256-faa60e25a4a7"],"path":"event","baseUrlOptions":["https://gateway-sandbox.matambaintelligence.com"],"title":"Receive an event","codeSamples":[],"requestExampleLanguages":["bash","javascript","python","go"],"requiredOnlyExamples":false,"requestExamples":[{"language":"json","filename":"Example","code":"{\n \"object\": \"event\",\n \"id\": \"msg_5f0c2a9e7b1d4c3a8e6f0b12\",\n \"type\": \"order.filled\",\n \"timestamp\": \"2026-09-25T06:13:02Z\",\n \"version\": 2,\n \"data\": {\n \"object\": \"order\",\n \"id\": \"ord_62jxryztxctob7uopekg\",\n \"state\": \"filled\",\n \"account\": \"1000000001\",\n \"symbol\": \"DANGCEM\",\n \"side\": \"buy\",\n \"quantity\": 10,\n \"type\": \"market\",\n \"time_in_force\": \"day\",\n \"price_kobo\": null,\n \"filled_quantity\": 10,\n \"exchange_order_id\": \"1790316754123\",\n \"reason\": null,\n \"reject_reason\": null,\n \"created_at\": \"2026-09-25T06:12:34Z\",\n \"updated_at\": \"2026-09-25T06:13:02Z\",\n \"filled_at\": \"2026-09-25T06:13:02Z\",\n \"average_fill_price_kobo_decimal\": \"47500\",\n \"client_reference\": null\n }\n}"}],"requestExampleType":"webhook","responseExampleType":"generated"},"dependencies":{"parameters":{"000093cc-b752-4271-a103-df5b88db75fc":{"name":"webhook-id","in":"header","required":true,"description":"The event's `id`. It's the same on every attempt, so use it to drop repeats.","schema":{"type":"string","pattern":"^msg_[0-9a-f]{24}$","isRequired":true,"description":"The event's `id`. It's the same on every attempt, so use it to drop repeats.","uniqueKey":"","typeLabel":"string"},"example":"msg_5f0c2a9e7b1d4c3a8e6f0b12"},"817f3071-2e83-4e30-84b1-61fb3e8342c5":{"name":"webhook-timestamp","in":"header","required":true,"description":"When we sent this attempt, in seconds since 1970-01-01 UTC. Refuse one too far from your own clock: see [Webhooks](/webhooks).","schema":{"type":"string","pattern":"^[0-9]+$","isRequired":true,"description":"When we sent this attempt, in seconds since 1970-01-01 UTC. Refuse one too far from your own clock: see [Webhooks](/webhooks).","uniqueKey":"","typeLabel":"string"},"example":"1790316785"},"2f3eef95-9e7c-44ff-9b20-839f3a741a26":{"name":"webhook-signature","in":"header","required":true,"description":"`v1,` and the base64 HMAC-SHA256 of `webhook-id`, `webhook-timestamp` and the body, joined by full stops, keyed with your signing secret. More than one, separated by spaces, while a secret is being rotated.","schema":{"type":"string","isRequired":true,"description":"`v1,` and the base64 HMAC-SHA256 of `webhook-id`, `webhook-timestamp` and the body, joined by full stops, keyed with your signing secret. More than one, separated by spaces, while a secret is being rotated.","uniqueKey":"","typeLabel":"string"},"example":"v1,F77xehg2itrdq7wVGgmMAgoJhpOEHpNYcqI3er4ySoA="}},"requestBody":{"description":"The event.","required":true,"content":{"application/json":{"schema":{"type":"object","description":"One change to one of your orders, applications or allocations, or to your accounts' or your partner account's controls. A webhook carries the same body.","required":["object","id","type","timestamp","version","data"],"properties":{"object":{"type":"string","const":"event","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"id":{"type":"string","description":"Unique identifier for the event. Starts with `msg_`. Matches the `webhook-id` header the event was sent with.","pattern":"^msg_[0-9a-f]{24}$","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"title":"EventType","type":"string","description":"What changed, followed by the state the change moved it to. New types can appear: ignore any you don't handle.","enum":["account.restriction_changed","allocation.booked","allocation.refused","allocation.rejected","allocation.uncertain","application.documents_required","application.opened","application.refused","application.rejected","application.submitted","application.uncertain","application.unplaced","order.cancelled","order.expired","order.filled","order.partially_filled","order.pending","order.refused","order.rejected","order.uncertain","partner.status_changed","security.restriction_changed"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"timestamp":{"type":"string","format":"date-time","description":"The `updated_at` of the order, application or allocation, or when we changed the controls.","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"version":{"type":"integer","format":"int64","description":"Increases with each of your events and is never reused. Other partners' events never move it. Compare it per object: ignore an event whose `version` is lower than the last you applied to that object.","isRequired":true,"uniqueKey":"version","typeLabel":"integer\u003cint64>"},"data":{"oneOf":[{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","id","state","account","symbol","side","quantity","type","time_in_force","price_kobo","filled_quantity","exchange_order_id","reason","reject_reason","created_at","updated_at","filled_at","average_fill_price_kobo_decimal","client_reference"],"properties":{"object":{"type":"string","const":"order","isRequired":true,"uniqueKey":"data.oneOf.0.object","typeLabel":"string"},"id":{"type":"string","description":"Unique identifier for the order. Starts with `ord_`.","pattern":"^ord_[a-z2-7]{20}$","isRequired":true,"uniqueKey":"data.oneOf.0.id","typeLabel":"string"},"state":{"type":"string","description":"`sending`: stored, and the send is in progress. If it still reads `sending` after its request has ended, its outcome was not recorded: it resolves as an `uncertain` order does, and an identical order is refused with `409 similar_order_unresolved` until then. `pending`: the exchange has the order. `partially_filled`, `filled`: some or all of the order has traded. `uncertain`: the exchange did not confirm receipt. The gateway does not resubmit it, and our operations team reconciles it against the exchange's records. Until it resolves, an identical order on the same account is refused with `409 similar_order_unresolved`. `rejected`: the broker or the exchange rejected it; see `reject_reason`. `refused`: it never reached the exchange: we refused it before sending, or our operations team confirmed the exchange never received it. `cancelled`: the exchange confirmed the cancel. `expired`: its time in force ran out. New values can be added: handle an unrecognised value with a safe default.","enum":["sending","pending","partially_filled","filled","uncertain","rejected","refused","cancelled","expired"],"isRequired":true,"uniqueKey":"data.oneOf.0.state","typeLabel":"enum\u003cstring>"},"account":{"type":"string","description":"The account code, in uppercase.","isRequired":true,"uniqueKey":"data.oneOf.0.account","typeLabel":"string"},"symbol":{"type":"string","description":"The symbol, in uppercase.","isRequired":true,"uniqueKey":"data.oneOf.0.symbol","typeLabel":"string"},"side":{"type":"string","enum":["buy","sell"],"description":"`buy` or `sell`. New values can be added: handle an unrecognised value with a safe default.","isRequired":true,"uniqueKey":"data.oneOf.0.side","typeLabel":"enum\u003cstring>"},"quantity":{"type":"integer","format":"int64","description":"The number of shares ordered.","isRequired":true,"uniqueKey":"data.oneOf.0.quantity","typeLabel":"integer\u003cint64>"},"type":{"type":"string","enum":["limit","market"],"description":"`limit` or `market`. New values can be added: handle an unrecognised value with a safe default.","isRequired":true,"uniqueKey":"data.oneOf.0.type","typeLabel":"enum\u003cstring>"},"time_in_force":{"type":"string","enum":["day","gtc","ioc","fok"],"description":"How long the order stays open, as sent. New values can be added: handle an unrecognised value with a safe default.","isRequired":true,"uniqueKey":"data.oneOf.0.time_in_force","typeLabel":"enum\u003cstring>"},"price_kobo":{"oneOf":[{"type":"integer","format":"int64","description":"The limit price in kobo. Null for a market order.","isRequired":true,"uniqueKey":"data.oneOf.0.price_kobo.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The limit price in kobo. Null for a market order.","isRequired":true,"uniqueKey":"data.oneOf.0.price_kobo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.price_kobo","typeLabel":"integer\u003cint64> | null"},"filled_quantity":{"type":"integer","format":"int64","description":"The total number of shares traded so far.","isRequired":true,"uniqueKey":"data.oneOf.0.filled_quantity","typeLabel":"integer\u003cint64>"},"exchange_order_id":{"oneOf":[{"type":"string","description":"The exchange's identifier for the order, once it has one.","isRequired":true,"uniqueKey":"data.oneOf.0.exchange_order_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The exchange's identifier for the order, once it has one.","isRequired":true,"uniqueKey":"data.oneOf.0.exchange_order_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.exchange_order_id","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","description":"A sentence explaining the order's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.0.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"A sentence explaining the order's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.0.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.reason","typeLabel":"string | null"},"reject_reason":{"oneOf":[{"title":"OrderRejectReason","type":"string","description":"Why the broker or the exchange rejected the order. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["insufficient_funds","market_closed","settlement_lockout","etf_limit_orders_only","limit_orders_etf_only","unknown_symbol","symbol_not_tradable","account_not_at_broker","rejected_by_exchange",null],"isRequired":true,"uniqueKey":"data.oneOf.0.reject_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"OrderRejectReason","type":"null","description":"Why the broker or the exchange rejected the order. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["insufficient_funds","market_closed","settlement_lockout","etf_limit_orders_only","limit_orders_etf_only","unknown_symbol","symbol_not_tradable","account_not_at_broker","rejected_by_exchange",null],"isRequired":true,"uniqueKey":"data.oneOf.0.reject_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.reject_reason","typeLabel":"enum\u003cstring> | null"},"created_at":{"type":"string","format":"date-time","description":"In UTC, to the second.","isRequired":true,"uniqueKey":"data.oneOf.0.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"In UTC, to the second.","isRequired":true,"uniqueKey":"data.oneOf.0.updated_at","typeLabel":"string\u003cdate-time>"},"filled_at":{"oneOf":[{"type":"string","format":"date-time","description":"When we recorded the order as `filled`, in UTC, to the second. We check the broker about every 30 seconds, so this can be later than the fill at the exchange. The exchange's own times are on trades. Null until the order is filled.","isRequired":true,"uniqueKey":"data.oneOf.0.filled_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"When we recorded the order as `filled`, in UTC, to the second. We check the broker about every 30 seconds, so this can be later than the fill at the exchange. The exchange's own times are on trades. Null until the order is filled.","isRequired":true,"uniqueKey":"data.oneOf.0.filled_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.filled_at","typeLabel":"string\u003cdate-time> | null"},"average_fill_price_kobo_decimal":{"oneOf":[{"type":"string","pattern":"^[0-9]+(\\.[0-9]{1,12})?$","description":"The average price the filled shares traded at, in kobo, as a decimal string, before charges. It's exact when it has 12 decimal places or fewer, and otherwise rounded to 12. Null until a share has traded, or when we don't have the exchange's prices for the fills.","example":"47512.5","isRequired":true,"uniqueKey":"data.oneOf.0.average_fill_price_kobo_decimal.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9]+(\\.[0-9]{1,12})?$","description":"The average price the filled shares traded at, in kobo, as a decimal string, before charges. It's exact when it has 12 decimal places or fewer, and otherwise rounded to 12. Null until a share has traded, or when we don't have the exchange's prices for the fills.","example":"47512.5","isRequired":true,"uniqueKey":"data.oneOf.0.average_fill_price_kobo_decimal.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.average_fill_price_kobo_decimal","typeLabel":"string | null"},"client_reference":{"oneOf":[{"type":"string","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.0.client_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.0.client_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.client_reference","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","id","state","reference","account","reason","reject_reason","param","created_at","updated_at","client_reference"],"properties":{"object":{"type":"string","const":"application","isRequired":true,"uniqueKey":"data.oneOf.1.object","typeLabel":"string"},"id":{"type":"string","description":"Unique identifier for the application. Starts with `app_`.","pattern":"^app_[a-z2-7]{20}$","isRequired":true,"uniqueKey":"data.oneOf.1.id","typeLabel":"string"},"state":{"title":"ApplicationState","type":"string","description":"`sending`: being stored, while your request is in progress. If it still reads `sending` after its request has ended, its outcome was not recorded, and our operations team reconciles it. `documents_required`: we have it, and need the customer's four documents. `submitted`: we have its four documents, and are checking the customer's identity and opening the account. `opened`: `account` is the new account, and you can trade for it. `uncertain`: we couldn't read an answer from a registry, the depository or the broker, or couldn't confirm a step, or we hadn't asked the depository to open the account within 7 days of when you sent it, or another answer needs a person; `reason` says which. Our operations team settles it: it becomes `submitted` again, and opens or ends as any other application does, or it ends `unplaced`. One that becomes `uncertain` before we've asked the depository can only end `unplaced`. `rejected`: see `reject_reason` and `param`. `refused`: we couldn't take it, and sent nothing. `unplaced`: our operations team found that no account was opened for it. You can send it again under a new key. New values can be added: handle an unrecognised value with a safe default.","enum":["sending","documents_required","submitted","opened","uncertain","rejected","refused","unplaced"],"isRequired":true,"uniqueKey":"data.oneOf.1.state","typeLabel":"enum\u003cstring>"},"reference":{"oneOf":[{"type":"string","description":"Our reference for the account at the broker, once we've added the account to the broker. `null` until then.","isRequired":true,"uniqueKey":"data.oneOf.1.reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Our reference for the account at the broker, once we've added the account to the broker. `null` until then.","isRequired":true,"uniqueKey":"data.oneOf.1.reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.reference","typeLabel":"string | null"},"account":{"oneOf":[{"type":"string","description":"The account code, once the account is opened.","isRequired":true,"uniqueKey":"data.oneOf.1.account.oneOf.0","typeLabel":"string"},{"type":"null","description":"The account code, once the account is opened.","isRequired":true,"uniqueKey":"data.oneOf.1.account.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.account","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","description":"A sentence explaining the application's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.1.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"A sentence explaining the application's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.1.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.reason","typeLabel":"string | null"},"reject_reason":{"oneOf":[{"title":"ApplicationRejectReason","type":"string","description":"Why the application was rejected. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["invalid_field","already_at_broker","rejected_by_broker","declined_by_broker","identity_mismatch","bank_account_mismatch","identity_unverified","declined_by_depository",null],"isRequired":true,"uniqueKey":"data.oneOf.1.reject_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"ApplicationRejectReason","type":"null","description":"Why the application was rejected. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["invalid_field","already_at_broker","rejected_by_broker","declined_by_broker","identity_mismatch","bank_account_mismatch","identity_unverified","declined_by_depository",null],"isRequired":true,"uniqueKey":"data.oneOf.1.reject_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.reject_reason","typeLabel":"enum\u003cstring> | null"},"param":{"oneOf":[{"type":"string","description":"The field that caused the rejection, when the rejection names one. Never includes the field's value.","isRequired":true,"uniqueKey":"data.oneOf.1.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The field that caused the rejection, when the rejection names one. Never includes the field's value.","isRequired":true,"uniqueKey":"data.oneOf.1.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.param","typeLabel":"string | null"},"created_at":{"type":"string","format":"date-time","description":"When we recorded the application.","isRequired":true,"uniqueKey":"data.oneOf.1.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the application last changed state.","isRequired":true,"uniqueKey":"data.oneOf.1.updated_at","typeLabel":"string\u003cdate-time>"},"client_reference":{"oneOf":[{"type":"string","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.1.client_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.1.client_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.client_reference","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"object"},{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","id","account","amount_kobo","state","reason","reject_reason","created_at","updated_at","client_reference"],"properties":{"object":{"type":"string","const":"allocation","isRequired":true,"uniqueKey":"data.oneOf.2.object","typeLabel":"string"},"id":{"type":"string","description":"Unique identifier for the allocation, also used as the broker's reference for the deposit. Starts with `alc_`.","pattern":"^alc_[a-z2-7]{20}$","isRequired":true,"uniqueKey":"data.oneOf.2.id","typeLabel":"string"},"account":{"type":"string","description":"The account the allocation funds.","isRequired":true,"uniqueKey":"data.oneOf.2.account","typeLabel":"string"},"amount_kobo":{"type":"integer","format":"int64","description":"The amount, in kobo.","isRequired":true,"uniqueKey":"data.oneOf.2.amount_kobo","typeLabel":"integer\u003cint64>"},"state":{"title":"AllocationState","type":"string","description":"`sending`: reserved, and the send is in progress. If it still reads `sending` after its request has ended, its outcome was not recorded. Our operations team reconciles it with the broker as it does an `uncertain` one, and it becomes `booked`, or `rejected` with `reject_reason` `not_booked` and the amount returned to your wallet. Until then, another allocation to the same account for the same amount is refused with `409 similar_allocation_unresolved`. `booked`: the broker booked it into the account's balance. `uncertain`: the broker did not confirm whether it booked it. The amount stays reserved, the gateway does not resubmit it, and our operations team reconciles it with the broker. Until it resolves, another allocation to the same account for the same amount is refused with `409 similar_allocation_unresolved`. `rejected`: the broker rejected it, or our operations team confirmed it didn't book it (`reject_reason` says which), and the amount is returned to your wallet. `refused`: it never reached the broker, and the amount is returned to your wallet. New values can be added: handle an unrecognised value with a safe default.","enum":["sending","booked","uncertain","rejected","refused"],"isRequired":true,"uniqueKey":"data.oneOf.2.state","typeLabel":"enum\u003cstring>"},"reason":{"oneOf":[{"type":"string","description":"A sentence explaining the allocation's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.2.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"A sentence explaining the allocation's current state. It's for people to read, so don't use it in your logic.","isRequired":true,"uniqueKey":"data.oneOf.2.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.reason","typeLabel":"string | null"},"reject_reason":{"oneOf":[{"title":"AllocationRejectReason","type":"string","description":"Why the allocation was rejected. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["invalid_amount","closed_financial_year","account_not_at_broker","rejected_by_broker","settlement_lockout","not_booked",null],"isRequired":true,"uniqueKey":"data.oneOf.2.reject_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"AllocationRejectReason","type":"null","description":"Why the allocation was rejected. Set only when `state` is `rejected`. New values can be added: handle an unrecognised value with a safe default.","enum":["invalid_amount","closed_financial_year","account_not_at_broker","rejected_by_broker","settlement_lockout","not_booked",null],"isRequired":true,"uniqueKey":"data.oneOf.2.reject_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.reject_reason","typeLabel":"enum\u003cstring> | null"},"created_at":{"type":"string","format":"date-time","description":"When we recorded the allocation.","isRequired":true,"uniqueKey":"data.oneOf.2.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"When the allocation last changed state.","isRequired":true,"uniqueKey":"data.oneOf.2.updated_at","typeLabel":"string\u003cdate-time>"},"client_reference":{"oneOf":[{"type":"string","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.2.client_reference.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own reference, as you sent it. Null if you didn't send one.","isRequired":true,"uniqueKey":"data.oneOf.2.client_reference.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.client_reference","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.2","typeLabel":"object"},{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","account","trading_blocked","trading_blocked_reason","money_blocked","money_blocked_reason","blocked","blocked_reason","at"],"properties":{"object":{"type":"string","const":"account_restrictions","isRequired":true,"uniqueKey":"data.oneOf.3.object","typeLabel":"string"},"account":{"type":"string","description":"The account's code.","isRequired":true,"uniqueKey":"data.oneOf.3.account","typeLabel":"string"},"trading_blocked":{"type":"boolean","description":"New orders on this account are refused with `403 account_trading_blocked`.","isRequired":true,"uniqueKey":"data.oneOf.3.trading_blocked","typeLabel":"boolean"},"trading_blocked_reason":{"oneOf":[{"type":"string","description":"Why we blocked new orders on this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.trading_blocked_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why we blocked new orders on this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.trading_blocked_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.trading_blocked_reason","typeLabel":"string | null"},"money_blocked":{"type":"boolean","description":"New allocations to this account are refused with `403 account_money_blocked`.","isRequired":true,"uniqueKey":"data.oneOf.3.money_blocked","typeLabel":"boolean"},"money_blocked_reason":{"oneOf":[{"type":"string","description":"Why we blocked new allocations to this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.money_blocked_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why we blocked new allocations to this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.money_blocked_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.money_blocked_reason","typeLabel":"string | null"},"blocked":{"type":"boolean","description":"New orders and allocations for this account are refused with `403 account_blocked`.","isRequired":true,"uniqueKey":"data.oneOf.3.blocked","typeLabel":"boolean"},"blocked_reason":{"oneOf":[{"type":"string","description":"Why we blocked this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.blocked_reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why we blocked this account, in our words, while it's on; `null` once it's lifted. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.3.blocked_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.blocked_reason","typeLabel":"string | null"},"at":{"type":"string","format":"date-time","description":"When we made the change.","isRequired":true,"uniqueKey":"data.oneOf.3.at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data.oneOf.3","typeLabel":"object"},{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","trading_paused","money_paused","suspended","closed","reason","at"],"properties":{"object":{"type":"string","const":"partner_status","isRequired":true,"uniqueKey":"data.oneOf.4.object","typeLabel":"string"},"trading_paused":{"type":"boolean","description":"New orders, applications and documents are refused with `403 partner_trading_paused`.","isRequired":true,"uniqueKey":"data.oneOf.4.trading_paused","typeLabel":"boolean"},"money_paused":{"type":"boolean","description":"New allocations are refused with `403 partner_money_paused`.","isRequired":true,"uniqueKey":"data.oneOf.4.money_paused","typeLabel":"boolean"},"suspended":{"type":"boolean","description":"Every request with your keys is refused with `403 partner_suspended`.","isRequired":true,"uniqueKey":"data.oneOf.4.suspended","typeLabel":"boolean"},"closed":{"type":"boolean","description":"Your partner account is closed.","isRequired":true,"uniqueKey":"data.oneOf.4.closed","typeLabel":"boolean"},"reason":{"oneOf":[{"type":"string","description":"Why we made the change, in our words. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.4.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why we made the change, in our words. Never a person's name.","isRequired":true,"uniqueKey":"data.oneOf.4.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.reason","typeLabel":"string | null"},"at":{"type":"string","format":"date-time","description":"When we made the change.","isRequired":true,"uniqueKey":"data.oneOf.4.at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data.oneOf.4","typeLabel":"object"},{"type":"object","description":"The order, application or allocation as the change left it, exactly as its `GET` returned it then; or, for `account.restriction_changed`, `partner.status_changed` and `security.restriction_changed`, the controls as the change left them. Its `object` field says which.","required":["object","symbol","state","at"],"properties":{"object":{"type":"string","const":"security_restriction","isRequired":true,"uniqueKey":"data.oneOf.5.object","typeLabel":"string"},"symbol":{"type":"string","description":"The symbol, in capitals.","isRequired":true,"uniqueKey":"data.oneOf.5.symbol","typeLabel":"string"},"state":{"oneOf":[{"title":"SecurityRestrictionState","type":"string","enum":["close_only","blocked",null],"description":"`close_only`: buys and buy estimates are refused with `403 security_close_only`, and sells are taken. `blocked`: every new order and estimate is refused with `403 security_blocked`. `null`: we lifted the restriction. New values can be added: handle an unrecognised value with a safe default.","isRequired":true,"uniqueKey":"data.oneOf.5.state.oneOf.0","typeLabel":"enum\u003cstring>"},{"title":"SecurityRestrictionState","type":"null","enum":["close_only","blocked",null],"description":"`close_only`: buys and buy estimates are refused with `403 security_close_only`, and sells are taken. `blocked`: every new order and estimate is refused with `403 security_blocked`. `null`: we lifted the restriction. New values can be added: handle an unrecognised value with a safe default.","isRequired":true,"uniqueKey":"data.oneOf.5.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.5.state","typeLabel":"enum\u003cstring> | null"},"at":{"type":"string","format":"date-time","description":"When we made the change.","isRequired":true,"uniqueKey":"data.oneOf.5.at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"object":"event","id":"msg_5f0c2a9e7b1d4c3a8e6f0b12","type":"order.filled","timestamp":"2026-09-25T06:13:02Z","version":2,"data":{"object":"order","id":"ord_62jxryztxctob7uopekg","state":"filled","account":"1000000001","symbol":"DANGCEM","side":"buy","quantity":10,"type":"market","time_in_force":"day","price_kobo":null,"filled_quantity":10,"exchange_order_id":"1790316754123","reason":null,"reject_reason":null,"created_at":"2026-09-25T06:12:34Z","updated_at":"2026-09-25T06:13:02Z","filled_at":"2026-09-25T06:13:02Z","average_fill_price_kobo_decimal":"47500","client_reference":null}},"examples":{"Example":{"title":"Example","value":{"object":"event","id":"msg_5f0c2a9e7b1d4c3a8e6f0b12","type":"order.filled","timestamp":"2026-09-25T06:13:02Z","version":2,"data":{"object":"order","id":"ord_62jxryztxctob7uopekg","state":"filled","account":"1000000001","symbol":"DANGCEM","side":"buy","quantity":10,"type":"market","time_in_force":"day","price_kobo":null,"filled_quantity":10,"exchange_order_id":"1790316754123","reason":null,"reject_reason":null,"created_at":"2026-09-25T06:12:34Z","updated_at":"2026-09-25T06:13:02Z","filled_at":"2026-09-25T06:13:02Z","average_fill_price_kobo_decimal":"47500","client_reference":null}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"c30791b6-39ec-4f9b-bcf9-6bf89ab72daf":{"description":"Any 2xx tells us you have the event. Anything else, or no answer in time, and we send it again later.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"86b2568b-6de1-4099-b256-faa60e25a4a7":{"bearer":{"type":"http","scheme":"bearer","description":"`Authorization: Bearer \u003ckey>`. Sandbox keys start with `mgw_test_` and live keys start with `mgw_live_`. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.","scopes":[],"schemeName":"bearer"}}},"servers":{"8baecbeb-5e25-45c3-aeab-7872ddbc2ec2":{"url":"https://gateway-sandbox.matambaintelligence.com","description":"Sandbox"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"`Authorization: Bearer \u003ckey>`. Sandbox keys start with `mgw_test_` and live keys start with `mgw_live_`. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"`Authorization: Bearer \u003ckey>`. Sandbox keys start with `mgw_test_` and live keys start with `mgw_live_`. Each key works only in its own environment, and a live key works only from the IP addresses or ranges registered for it.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"openapi.json"},"subdomain":"matamba","siteName":"Matamba Gateway","title":"Receive an event - Matamba Gateway","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T16:57:17.633Z","originalFileLocation":"api-reference/events/receive-an-event.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Matamba Gateway\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Receive an event - Matamba Gateway\">\u003cmeta data-mint-head property=\"og:description\" content=\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Matamba Gateway\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://matamba.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Receive+an+event\u0026amp;description=What+we+send+to+your+webhook+endpoint+when+one+of+your+orders%2C+applications+or+allocations+changes%3A+the+event+exactly+as+%60GET+%2Fv1%2Fevents%60+lists+it.+Check+%60webho\u0026amp;theme=f9488778c2f498e369638a5d\u0026amp;signature=6205ed8a9664cdc9afeb2523b3eec79422a081512821daa8d530340a9fa5fbff\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Receive an event - Matamba Gateway\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://matamba.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Receive+an+event\u0026amp;description=What+we+send+to+your+webhook+endpoint+when+one+of+your+orders%2C+applications+or+allocations+changes%3A+the+event+exactly+as+%60GET+%2Fv1%2Fevents%60+lists+it.+Check+%60webho\u0026amp;theme=f9488778c2f498e369638a5d\u0026amp;signature=6205ed8a9664cdc9afeb2523b3eec79422a081512821daa8d530340a9fa5fbff\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Matamba Gateway\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A3D2E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/events/receive-an-event.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.matambaintelligence.com/#organization\",\"name\":\"Matamba Gateway\",\"url\":\"https://docs.matambaintelligence.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-light.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=7255112e296a0116626af645d9d94b0b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.matambaintelligence.com#website\",\"name\":\"Matamba Gateway\",\"url\":\"https://docs.matambaintelligence.com\",\"publisher\":{\"@id\":\"https://docs.matambaintelligence.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event#webpage\",\"url\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event\",\"name\":\"Receive an event\",\"description\":\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\",\"dateModified\":\"2026-11-04T16:57:17.633Z\",\"isPartOf\":{\"@id\":\"https://docs.matambaintelligence.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Events\",\"item\":\"https://docs.matambaintelligence.com/api-reference/events/list-your-events\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Receive an event\",\"item\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event#apireference\",\"headline\":\"Receive an event\",\"name\":\"Receive an event\",\"description\":\"What we send to your webhook endpoint when one of your orders, applications or allocations changes: the event exactly as GET /v1/events lists it. Check webhook-signature before you trust it, and answer with any 2xx. See Webhooks for how to verify it and when we send it again. The example is the test vector on that page: it verifies with the secret shown there.\",\"url\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event\",\"mainEntityOfPage\":{\"@id\":\"https://docs.matambaintelligence.com/api-reference/events/receive-an-event#webpage\"},\"dateModified\":\"2026-11-04T16:57:17.633Z\",\"publisher\":{\"@id\":\"https://docs.matambaintelligence.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.matambaintelligence.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Matamba Gateway\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Matamba Gateway\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/events/receive-an-event.md","siteName":"Matamba Gateway","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Accounts","pages":[{"title":"List your accounts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts","href":"/api-reference/accounts/list-your-accounts"},{"title":"Retrieve an account","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts/{account}","href":"/api-reference/accounts/retrieve-an-account"},{"title":"Retrieve an account's balance","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts/{account}/balance","href":"/api-reference/accounts/retrieve-an-accounts-balance"},{"title":"List an account's positions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts/{account}/positions","href":"/api-reference/accounts/list-an-accounts-positions"},{"title":"List an account's trades","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts/{account}/trades","href":"/api-reference/accounts/list-an-accounts-trades"},{"title":"List an account's contract notes","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/accounts/{account}/contract-notes","href":"/api-reference/accounts/list-an-accounts-contract-notes"}]},{"group":"Orders","pages":[{"title":"List your orders","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/orders","href":"/api-reference/orders/list-your-orders"},{"title":"Place an order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/orders","href":"/api-reference/orders/place-an-order"},{"title":"Estimate an order","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/orders/estimate","href":"/api-reference/orders/estimate-an-order"},{"title":"Retrieve an order","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/orders/{id}","href":"/api-reference/orders/retrieve-an-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/orders/{id}","href":"/api-reference/orders/cancel-an-order"}]},{"group":"Events","pages":[{"title":"List your events","description":"Returns every change to your orders, applications and allocations, oldest first, whether or not your webhook endpoint accepted it. We keep events for 30 days. Store the last `next_cursor` and pass it as `cursor` next time. Requires the `read` [scope](/keys-and-security#scopes).","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/events","href":"/api-reference/events/list-your-events"},{"title":"Receive an event","version":null,"deprecated":null,"openapi":"/openapi.json webhook event","href":"/api-reference/events/receive-an-event"}]},{"group":"Applications","pages":[{"title":"List your applications","description":"Returns your applications, newest first. Requires the `read` [scope](/keys-and-security#scopes).","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/applications","href":"/api-reference/applications/list-your-applications"},{"title":"Apply for an account","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/applications","href":"/api-reference/applications/apply-for-an-account"},{"title":"Retrieve an application","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/applications/{id}","href":"/api-reference/applications/retrieve-an-application"},{"title":"Send a document","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/applications/{id}/documents/{type}","href":"/api-reference/applications/send-a-document"}]},{"group":"Wallet","pages":[{"title":"Retrieve your wallet","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallet","href":"/api-reference/wallet/retrieve-your-wallet"},{"title":"List your wallet's ledger","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/wallet/transfers","href":"/api-reference/wallet/list-your-wallets-ledger"},{"title":"List your allocations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/allocations","href":"/api-reference/wallet/list-your-allocations"},{"title":"Allocate from your wallet","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/allocations","href":"/api-reference/wallet/allocate-from-your-wallet"},{"title":"Retrieve an allocation","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/allocations/{id}","href":"/api-reference/wallet/retrieve-an-allocation"}]},{"group":"Reference","pages":[{"title":"List banks","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/reference/banks","href":"/api-reference/reference/list-banks"},{"title":"List states","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/reference/states","href":"/api-reference/reference/list-states"},{"title":"List a state's LGAs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/reference/states/{state}/lgas","href":"/api-reference/reference/list-a-states-lgas"}]},{"group":"Limits","pages":[{"title":"Retrieve your limits","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/limits","href":"/api-reference/limits/retrieve-your-limits"}]},{"group":"Keys","pages":[{"title":"Revoke this key","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/keys/revoke","href":"/api-reference/keys/revoke-this-key"}]}]}]},"basePath":"","title":"Receive an event - Matamba Gateway","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}