{"info":{"_postman_id":"9ff096d2-310e-48f9-88ce-16bd5c20c621","name":"OmniPay API Reference","description":"<html><head></head><body><p>OmniPay verifies your customers, gives each one a wallet, and collects payment for your orders.</p>\n<h2 id=\"how-it-fits-together\">How it fits together</h2>\n<ol>\n<li><strong>Onboard.</strong> Create a KYC session and open the KYC SDK. When the customer is verified you receive <code>kyconboarding.completed</code> with their <code>customerRef</code> and <code>walletId</code>.</li>\n<li><strong>Show the wallet</strong> (optional). Open the Wallet SDK with the customer's <code>customerRef</code>.</li>\n<li><strong>Collect payment.</strong> Create an order that names the wallet receiving the money. The retailer pays in the OmniPay app or by bank transfer to a dynamic virtual account.</li>\n<li><strong>Confirm.</strong> You receive <code>orderpayment.successful</code>. Mark the order paid and post the payment to your ERP.</li>\n</ol>\n<h2 id=\"where-to-look\">Where to look</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>To</th>\n<th>Open</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get base URLs, test keys and request rules</td>\n<td><strong>Getting started</strong></td>\n</tr>\n<tr>\n<td>Verify a distributor or retailer</td>\n<td><strong>KYC onboarding</strong></td>\n</tr>\n<tr>\n<td>Show a customer's wallet in your app</td>\n<td><strong>Wallet SDK</strong></td>\n</tr>\n<tr>\n<td>Take payment for an order</td>\n<td><strong>Collect payment for an order</strong></td>\n</tr>\n<tr>\n<td>Receive and verify events</td>\n<td><strong>Webhooks</strong></td>\n</tr>\n<tr>\n<td>Record payments in SAP or another ERP</td>\n<td><strong>Post payments to your ERP</strong></td>\n</tr>\n</tbody>\n</table>\n</div><p>All API calls are made from your server with your <code>apiKey</code>. Amounts are in kobo.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"56708741","collectionId":"9ff096d2-310e-48f9-88ce-16bd5c20c621","publishedId":"2sBY4Tpctg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-07-31T18:56:55.000Z"},"item":[{"name":"Getting started","item":[],"id":"81f4d2e2-7b5e-43c5-9a84-e69f513d0140","description":"<h2 id=\"environments\">Environments</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>API base URL</th>\n<th>SDK <code>env</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Development</td>\n<td><code>https://api-dev.ompy.ng</code></td>\n<td><code>dev</code></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><code>https://api.ompy.ng</code></td>\n<td><code>prod</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Credentials and SDK sessions are specific to an environment.</p>\n<h2 id=\"test-credentials\">Test credentials</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Credential</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>API key</td>\n<td><code>xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6</code></td>\n</tr>\n<tr>\n<td>Wallet SDK public key</td>\n<td><code>OMNIPUBKEY_FLX4HPQKKX124QBVQIKAAKSUNX4FIIXC</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>These credentials are valid in the development environment. Production credentials are issued during go-live.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Authenticate API requests with the <code>apiKey</code> header. API keys are secret and must never be included in web or mobile applications. Requests that carry an <code>apiKey</code> from a browser or mobile app are rejected with HTTP <code>403</code>; call the API from your server.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">apiKey: xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6\n</code></pre>\n<h2 id=\"amounts\">Amounts</h2>\n<p>Amounts are integer values in kobo. For example, NGN 37,000.00 is <code>3700000</code>.</p>\n<h2 id=\"idempotent-requests\">Idempotent requests</h2>\n<p>Order and dynamic-account requests require an <code>IdempotencyKey</code> header. Generate a value between 8 and 80 characters for a new request, and retain it for retries of that request. A different operation requires a new value.</p>\n<p>A request that reuses a key returns the response stored for the first request with that key, even if the body is different.</p>\n<h2 id=\"go-live-checklist\">Go-live checklist</h2>\n<ol>\n<li>Get your production API key and Wallet SDK public key from OmniPay.</li>\n<li>Send OmniPay your production HTTPS webhook URL.</li>\n<li>Get npm access to the private <code>@omniretail</code> packages.</li>\n<li>Switch the API base URL to <code>https://api.ompy.ng</code> and the SDK <code>env</code> to <code>prod</code>.</li>\n</ol>\n","_postman_id":"81f4d2e2-7b5e-43c5-9a84-e69f513d0140"},{"name":"KYC onboarding","item":[{"name":"Create or resume KYC session","event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body.token) pm.collectionVariables.set('kycToken', body.token);","pm.test('Session is active, pending review or completed', () => pm.expect(['active', 'pendingReview', 'completed']).to.include(body.status));","if (body.status !== 'completed') pm.test('Restricted token returned', () => pm.expect(body.token).to.be.a('string').and.not.empty);"]}}],"id":"59139399-c708-487b-a8f0-ccaeef55e277","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"<p>Development API key. Keep it out of client code.</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"referenceId\": \"customer_1001\",\n  \"phoneNumber\": \"08012345678\",\n  \"profileType\": \"secondary\",\n  \"emailAddress\": \"customer@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/kycservice/session","description":"<p>Creates a KYC session or returns the state of an existing session. Call it from your server.</p>\n<p>A session is identified by your API key and <code>referenceId</code>. Supply the same <code>referenceId</code>, <code>phoneNumber</code>, <code>profileType</code> and <code>emailAddress</code> to resume an unfinished session.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>referenceId</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Unique, stable customer identifier. 1–100 characters: letters, digits, <code>.</code>, <code>_</code>, <code>:</code> and <code>-</code>.</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer's 11-digit phone number starting with <code>0</code>, for example <code>08012345678</code>.</td>\n</tr>\n<tr>\n<td><code>profileType</code></td>\n<td>string</td>\n<td>yes</td>\n<td><code>primary</code> for a distributor or <code>secondary</code> for a retailer.</td>\n</tr>\n<tr>\n<td><code>emailAddress</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer's email address. Stored in lowercase.</td>\n</tr>\n<tr>\n<td><code>accountType</code></td>\n<td>string</td>\n<td>no</td>\n<td><code>personal</code> or <code>corporate</code>. If you send it when resuming, it must match the original value.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"returns\">Returns</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>status</code></th>\n<th>Fields</th>\n<th>Next step</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>active</code></td>\n<td><code>token</code>, <code>expiresAt</code>, <code>profileType</code>, <code>accountType</code></td>\n<td>Pass <code>token</code> to <code>Kyc.Onboarding</code>.</td>\n</tr>\n<tr>\n<td><code>pendingReview</code></td>\n<td><code>token</code>, <code>expiresAt</code>, <code>reviewReference</code>, <code>profileType</code>, <code>accountType</code></td>\n<td>Verification is waiting for an OmniPay review. Pass <code>token</code> to <code>Kyc.Onboarding</code> to show the customer their status.</td>\n</tr>\n<tr>\n<td><code>completed</code></td>\n<td><code>identityNumber</code>, <code>profileType</code>, <code>accountType</code></td>\n<td>Wait for the completion webhook to obtain <code>customerRef</code> and <code>walletId</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The token is valid for 12 hours. Each call issues a new token and invalidates the previous one.</p>\n<h2 id=\"errors\">Errors</h2>\n<p>Errors return <code>{code, message, details, correlationId}</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>code</code></th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>validation code</td>\n<td>A field is missing or invalid. <code>message</code> names the problem.</td>\n</tr>\n<tr>\n<td>401</td>\n<td><code>client_unauthorized</code></td>\n<td>The <code>apiKey</code> header is missing or invalid.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>—</td>\n<td>The request was sent from a browser or mobile app.</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>session_conflict</code></td>\n<td>The <code>referenceId</code> belongs to a session with a different phone number, email address, profile type or account type, or the session is no longer active.</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>concurrency_conflict</code></td>\n<td>The session changed during the request. Retry.</td>\n</tr>\n<tr>\n<td>502</td>\n<td><code>providers_unavailable</code></td>\n<td>An identity provider is unavailable. Retry later.</td>\n</tr>\n<tr>\n<td>500</td>\n<td><code>internal_error</code></td>\n<td>Unexpected error. Quote <code>correlationId</code> to OmniPay support.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["kycservice","session"],"host":["https://api-dev.ompy.ng"],"query":[],"variable":[]}},"response":[{"id":"811ee057-4897-46ec-b30c-31f9a5c91bab","name":"200 - Active session","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"Development API key. Keep it out of client code."}],"body":{"mode":"raw","raw":"{\n  \"referenceId\": \"customer_1001\",\n  \"phoneNumber\": \"08012345678\",\n  \"profileType\": \"secondary\",\n  \"emailAddress\": \"customer@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/kycservice/session","description":"Creates a KYC session or returns the state of an existing session. Call it from your server.\n\nA session is identified by your API key and `referenceId`. Supply the same `referenceId`, `phoneNumber`, `profileType` and `emailAddress` to resume an unfinished session.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `referenceId` | string | yes | Unique, stable customer identifier. 1–100 characters: letters, digits, `.`, `_`, `:` and `-`. |\n| `phoneNumber` | string | yes | Customer's 11-digit phone number starting with `0`, for example `08012345678`. |\n| `profileType` | string | yes | `primary` for a distributor or `secondary` for a retailer. |\n| `emailAddress` | string | yes | Customer's email address. Stored in lowercase. |\n| `accountType` | string | no | `personal` or `corporate`. If you send it when resuming, it must match the original value. |\n\n## Returns\n\n| `status` | Fields | Next step |\n|---|---|---|\n| `active` | `token`, `expiresAt`, `profileType`, `accountType` | Pass `token` to `Kyc.Onboarding`. |\n| `pendingReview` | `token`, `expiresAt`, `reviewReference`, `profileType`, `accountType` | Verification is waiting for an OmniPay review. Pass `token` to `Kyc.Onboarding` to show the customer their status. |\n| `completed` | `identityNumber`, `profileType`, `accountType` | Wait for the completion webhook to obtain `customerRef` and `walletId`. |\n\nThe token is valid for 12 hours. Each call issues a new token and invalidates the previous one.\n\n## Errors\n\nErrors return `{code, message, details, correlationId}`.\n\n| HTTP | `code` | Cause |\n|---:|---|---|\n| 400 | validation code | A field is missing or invalid. `message` names the problem. |\n| 401 | `client_unauthorized` | The `apiKey` header is missing or invalid. |\n| 403 | — | The request was sent from a browser or mobile app. |\n| 409 | `session_conflict` | The `referenceId` belongs to a session with a different phone number, email address, profile type or account type, or the session is no longer active. |\n| 409 | `concurrency_conflict` | The session changed during the request. Retry. |\n| 502 | `providers_unavailable` | An identity provider is unavailable. Retry later. |\n| 500 | `internal_error` | Unexpected error. Quote `correlationId` to OmniPay support. |"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"active\",\n  \"token\": \"restricted-kyc-token\",\n  \"expiresAt\": \"2026-07-31T18:30:00Z\",\n  \"profileType\": \"secondary\",\n  \"accountType\": \"personal\"\n}"},{"id":"1d08e27e-3088-47dd-93e0-1fdf6b872994","name":"200 - KYC already completed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"Development API key. Keep it out of client code."}],"body":{"mode":"raw","raw":"{\n  \"referenceId\": \"customer_1001\",\n  \"phoneNumber\": \"08012345678\",\n  \"profileType\": \"secondary\",\n  \"emailAddress\": \"customer@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/kycservice/session","description":"Creates a KYC session or returns the state of an existing session. Call it from your server.\n\nA session is identified by your API key and `referenceId`. Supply the same `referenceId`, `phoneNumber`, `profileType` and `emailAddress` to resume an unfinished session.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `referenceId` | string | yes | Unique, stable customer identifier. 1–100 characters: letters, digits, `.`, `_`, `:` and `-`. |\n| `phoneNumber` | string | yes | Customer's 11-digit phone number starting with `0`, for example `08012345678`. |\n| `profileType` | string | yes | `primary` for a distributor or `secondary` for a retailer. |\n| `emailAddress` | string | yes | Customer's email address. Stored in lowercase. |\n| `accountType` | string | no | `personal` or `corporate`. If you send it when resuming, it must match the original value. |\n\n## Returns\n\n| `status` | Fields | Next step |\n|---|---|---|\n| `active` | `token`, `expiresAt`, `profileType`, `accountType` | Pass `token` to `Kyc.Onboarding`. |\n| `pendingReview` | `token`, `expiresAt`, `reviewReference`, `profileType`, `accountType` | Verification is waiting for an OmniPay review. Pass `token` to `Kyc.Onboarding` to show the customer their status. |\n| `completed` | `identityNumber`, `profileType`, `accountType` | Wait for the completion webhook to obtain `customerRef` and `walletId`. |\n\nThe token is valid for 12 hours. Each call issues a new token and invalidates the previous one.\n\n## Errors\n\nErrors return `{code, message, details, correlationId}`.\n\n| HTTP | `code` | Cause |\n|---:|---|---|\n| 400 | validation code | A field is missing or invalid. `message` names the problem. |\n| 401 | `client_unauthorized` | The `apiKey` header is missing or invalid. |\n| 403 | — | The request was sent from a browser or mobile app. |\n| 409 | `session_conflict` | The `referenceId` belongs to a session with a different phone number, email address, profile type or account type, or the session is no longer active. |\n| 409 | `concurrency_conflict` | The session changed during the request. Retry. |\n| 502 | `providers_unavailable` | An identity provider is unavailable. Retry later. |\n| 500 | `internal_error` | Unexpected error. Quote `correlationId` to OmniPay support. |"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"completed\",\n  \"identityNumber\": \"291fc12b5046c93dadc45d5eaa157624aa071b429a0d27ed8df6ce0b6cb9699e\",\n  \"profileType\": \"secondary\",\n  \"accountType\": \"personal\"\n}"},{"id":"88e85bc5-2a0d-48d9-b375-4f967443f5cd","name":"409 - Reference used with different details","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"Development API key. Keep it out of client code."}],"body":{"mode":"raw","raw":"{\n  \"referenceId\": \"customer_1001\",\n  \"phoneNumber\": \"08012345678\",\n  \"profileType\": \"secondary\",\n  \"emailAddress\": \"customer@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/kycservice/session","description":"Creates a KYC session or returns the state of an existing session. Call it from your server.\n\nA session is identified by your API key and `referenceId`. Supply the same `referenceId`, `phoneNumber`, `profileType` and `emailAddress` to resume an unfinished session.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `referenceId` | string | yes | Unique, stable customer identifier. 1–100 characters: letters, digits, `.`, `_`, `:` and `-`. |\n| `phoneNumber` | string | yes | Customer's 11-digit phone number starting with `0`, for example `08012345678`. |\n| `profileType` | string | yes | `primary` for a distributor or `secondary` for a retailer. |\n| `emailAddress` | string | yes | Customer's email address. Stored in lowercase. |\n| `accountType` | string | no | `personal` or `corporate`. If you send it when resuming, it must match the original value. |\n\n## Returns\n\n| `status` | Fields | Next step |\n|---|---|---|\n| `active` | `token`, `expiresAt`, `profileType`, `accountType` | Pass `token` to `Kyc.Onboarding`. |\n| `pendingReview` | `token`, `expiresAt`, `reviewReference`, `profileType`, `accountType` | Verification is waiting for an OmniPay review. Pass `token` to `Kyc.Onboarding` to show the customer their status. |\n| `completed` | `identityNumber`, `profileType`, `accountType` | Wait for the completion webhook to obtain `customerRef` and `walletId`. |\n\nThe token is valid for 12 hours. Each call issues a new token and invalidates the previous one.\n\n## Errors\n\nErrors return `{code, message, details, correlationId}`.\n\n| HTTP | `code` | Cause |\n|---:|---|---|\n| 400 | validation code | A field is missing or invalid. `message` names the problem. |\n| 401 | `client_unauthorized` | The `apiKey` header is missing or invalid. |\n| 403 | — | The request was sent from a browser or mobile app. |\n| 409 | `session_conflict` | The `referenceId` belongs to a session with a different phone number, email address, profile type or account type, or the session is no longer active. |\n| 409 | `concurrency_conflict` | The session changed during the request. Retry. |\n| 502 | `providers_unavailable` | An identity provider is unavailable. Retry later. |\n| 500 | `internal_error` | Unexpected error. Quote `correlationId` to OmniPay support. |"},"status":"Conflict","code":409,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"session_conflict\",\n  \"message\": \"The phone number cannot be changed for an existing KYC onboarding reference.\",\n  \"details\": null,\n  \"correlationId\": \"0HN8K2Q1M3ABC:00000001\"\n}"}],"_postman_id":"59139399-c708-487b-a8f0-ccaeef55e277"},{"name":"[WEBHOOK] KYC completed and wallet created","id":"5ee724a0-77ac-4113-8782-834181353710","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"signature","value":"<webhook-signature>","description":"<p>HMAC-SHA512 signature of the webhook payload, created with the OmniPay API key.</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"kyconboarding.completed\",\n  \"data\": {\n    \"referenceId\": \"customer_1001\",\n    \"profileType\": \"secondary\",\n    \"identityNumber\": \"291fc12b5046c93dadc45d5eaa157624aa071b429a0d27ed8df6ce0b6cb9699e\",\n    \"identityType\": \"bvn\",\n    \"accountType\": \"personal\",\n    \"createdAt\": \"2026-07-31T17:30:00Z\",\n    \"customerRef\": \"customer-ref-from-omnipay\",\n    \"walletId\": \"wallet-id-from-omnipay\",\n    \"companyRef\": null\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://example.com/webhooks/omnipay","description":"<p>Occurs after KYC is completed and the customer's wallet is ready. Verify the webhook signature before processing the payload.</p>\n<h2 id=\"event-data\">Event data</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.referenceId</code></td>\n<td>Customer identifier supplied when the KYC session was created.</td>\n</tr>\n<tr>\n<td><code>data.profileType</code></td>\n<td><code>primary</code> (distributor) or <code>secondary</code> (retailer).</td>\n</tr>\n<tr>\n<td><code>data.identityNumber</code></td>\n<td>OmniPay identity identifier.</td>\n</tr>\n<tr>\n<td><code>data.identityType</code></td>\n<td>Identity used for verification: <code>bvn</code> or <code>cac</code>.</td>\n</tr>\n<tr>\n<td><code>data.accountType</code></td>\n<td><code>personal</code> or <code>corporate</code>.</td>\n</tr>\n<tr>\n<td><code>data.createdAt</code></td>\n<td>Time the event was created.</td>\n</tr>\n<tr>\n<td><code>data.customerRef</code></td>\n<td>Customer reference used to create Wallet SDK sessions.</td>\n</tr>\n<tr>\n<td><code>data.walletId</code></td>\n<td>Wallet identifier used as the payment destination on an order.</td>\n</tr>\n<tr>\n<td><code>data.companyRef</code></td>\n<td>OmniPay company reference for a business customer; otherwise <code>null</code>.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Match the event to the customer using <code>data.referenceId</code>, store <code>customerRef</code> and <code>walletId</code>, then return HTTP <code>200</code>. Processing must be idempotent because the event can be delivered more than once.</p>\n","urlObject":{"host":["https://example.com/webhooks/omnipay"],"query":[],"variable":[]}},"response":[{"id":"f98e55d1-73b4-4b36-aa34-87754f124927","name":"200 - Acknowledged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"signature","value":"<webhook-signature>","description":"HMAC-SHA512 signature of the webhook payload, created with the OmniPay API key."}],"body":{"mode":"raw","raw":"{\n  \"event\": \"kyconboarding.completed\",\n  \"data\": {\n    \"referenceId\": \"customer_1001\",\n    \"profileType\": \"secondary\",\n    \"identityNumber\": \"291fc12b5046c93dadc45d5eaa157624aa071b429a0d27ed8df6ce0b6cb9699e\",\n    \"identityType\": \"bvn\",\n    \"accountType\": \"personal\",\n    \"createdAt\": \"2026-07-31T17:30:00Z\",\n    \"customerRef\": \"customer-ref-from-omnipay\",\n    \"walletId\": \"wallet-id-from-omnipay\",\n    \"companyRef\": null\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://example.com/webhooks/omnipay","description":"Occurs after KYC is completed and the customer's wallet is ready. Verify the webhook signature before processing the payload.\n\n## Event data\n\n| Field | Description |\n|---|---|\n| `data.referenceId` | Customer identifier supplied when the KYC session was created. |\n| `data.profileType` | `primary` (distributor) or `secondary` (retailer). |\n| `data.identityNumber` | OmniPay identity identifier. |\n| `data.identityType` | Identity used for verification: `bvn` or `cac`. |\n| `data.accountType` | `personal` or `corporate`. |\n| `data.createdAt` | Time the event was created. |\n| `data.customerRef` | Customer reference used to create Wallet SDK sessions. |\n| `data.walletId` | Wallet identifier used as the payment destination on an order. |\n| `data.companyRef` | OmniPay company reference for a business customer; otherwise `null`. |\n\nMatch the event to the customer using `data.referenceId`, store `customerRef` and `walletId`, then return HTTP `200`. Processing must be idempotent because the event can be delivered more than once."},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"message\": \"Success\"\n}"}],"_postman_id":"5ee724a0-77ac-4113-8782-834181353710"}],"id":"f8556093-a5ef-4071-8926-2688b10042c2","description":"<p>Verify a customer and create their OmniPay wallet.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>profileType</code></th>\n<th>Customer</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>primary</code></td>\n<td>Distributor</td>\n</tr>\n<tr>\n<td><code>secondary</code></td>\n<td>Retailer</td>\n</tr>\n</tbody>\n</table>\n</div><p>When verification finishes you receive <code>kyconboarding.completed</code>. Store its <code>customerRef</code> (used for Wallet SDK sessions and orders) and <code>walletId</code> (used as the receiving wallet on orders).</p>\n<p>OmniPay KYC is available for web and React Native.</p>\n<h2 id=\"create-a-kyc-session\">Create a KYC session</h2>\n<p>Call <strong>Create or resume KYC session</strong> from your server when the customer starts verification. If the response status is <code>active</code> or <code>pendingReview</code>, render <code>Kyc.Onboarding</code> with the returned <code>token</code>. Reuse the same customer details to resume an unfinished session.</p>\n<p>A token is valid for 12 hours. Each create-or-resume call issues a new token and invalidates the previous one. The SDK calls <code>getToken</code> once when a request is rejected as unauthorised; the callback must create or resume the same session and resolve with the new <code>token</code>. If the refreshed token is also rejected, the SDK calls <code>onTokenExpired</code>.</p>\n<p>The KYC packages are private npm packages. Request npm access from OmniPay before installing them.</p>\n<h2 id=\"react-web\">React web</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">npm install @omniretail/kyc-react-sdk\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-tsx\">import {Kyc} from '@omniretail/kyc-react-sdk';\nimport '@omniretail/kyc-react-sdk/styles.css';\n\n&lt;Kyc.Onboarding\n  env=\"dev\"\n  token={kycToken}\n  getToken={refreshKycToken}\n  primaryColor=\"#A682FF\"\n  onComplete={refreshCustomerStatus}\n  onClose={() =&gt; history.back()}\n  onTokenExpired={restartVerification}\n  onError={error =&gt; reportErrorCode(error.code)}\n/&gt;\n</code></pre>\n<h2 id=\"react-native\">React Native</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">npm install @omniretail/kyc-sdk \\\n  react-native-webview react-native-safe-area-context \\\n  react-native-image-picker react-native-geolocation-service react-native-device-info \\\n  @react-native-async-storage/async-storage @react-native-documents/picker \\\n  @react-native-community/datetimepicker\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-tsx\">import {Kyc} from '@omniretail/kyc-sdk';\n\n&lt;Kyc.Onboarding\n  env=\"dev\"\n  token={kycToken}\n  getToken={refreshKycToken}\n  primaryColor=\"#A682FF\"\n  onComplete={refreshCustomerStatus}\n  onClose={closeVerification}\n  onTokenExpired={restartVerification}\n  onError={error =&gt; reportErrorCode(error.code)}\n/&gt;\n</code></pre>\n<h2 id=\"session-props\">Session props</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Prop</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>env</code></td>\n<td>yes</td>\n<td><code>dev</code> or <code>prod</code>. Must match the KYC session environment.</td>\n</tr>\n<tr>\n<td><code>token</code></td>\n<td>yes</td>\n<td>Restricted token returned for an active KYC session.</td>\n</tr>\n<tr>\n<td><code>getToken</code></td>\n<td>no</td>\n<td>Async callback that resolves with a fresh token for the same session.</td>\n</tr>\n<tr>\n<td><code>primaryColor</code></td>\n<td>no</td>\n<td>Three- or six-digit hex colour. Defaults to <code>#A682FF</code>.</td>\n</tr>\n<tr>\n<td><code>onComplete</code></td>\n<td>yes</td>\n<td>Called when the customer reaches the end of the KYC journey. Receives <code>{accountType, status, reviewReference?}</code>, where <code>status</code> is <code>verified</code> or <code>pendingReview</code>.</td>\n</tr>\n<tr>\n<td><code>onClose</code></td>\n<td>yes</td>\n<td>Called when the customer closes KYC.</td>\n</tr>\n<tr>\n<td><code>onTokenExpired</code></td>\n<td>no</td>\n<td>Called when the SDK cannot refresh an expired token.</td>\n</tr>\n<tr>\n<td><code>onError</code></td>\n<td>no</td>\n<td>Receives <code>{code, message}</code>.</td>\n</tr>\n<tr>\n<td><code>onEvent</code></td>\n<td>no</td>\n<td>Receives journey analytics events: <code>{name, accountType, screen, errorCode}</code>.</td>\n</tr>\n<tr>\n<td><code>className</code></td>\n<td>no</td>\n<td>Web only. CSS class added to the SDK root element.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Treat the <code>kyconboarding.completed</code> webhook as the final confirmation of verification. <code>onComplete</code> with <code>pendingReview</code> means the verification is waiting for an OmniPay review.</p>\n<h2 id=\"sdk-error-codes\">SDK error codes</h2>\n<p><code>onError</code> passes through API error codes in addition to SDK codes. Common codes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Meaning</th>\n<th>Recoverable</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>network_error</code></td>\n<td>The device could not reach OmniPay.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td><code>request_timeout</code></td>\n<td>The request timed out.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td><code>providers_unavailable</code></td>\n<td>An identity provider is unavailable. Retry later.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td><code>unexpected_error</code></td>\n<td>Unexpected SDK or server error.</td>\n<td>yes</td>\n</tr>\n<tr>\n<td><code>token_missing</code></td>\n<td>No token was supplied.</td>\n<td>no</td>\n</tr>\n<tr>\n<td><code>token_expired</code></td>\n<td>The token expired and could not be refreshed.</td>\n<td>no</td>\n</tr>\n<tr>\n<td><code>session_unauthorized</code></td>\n<td>The token is not valid for this session.</td>\n<td>no</td>\n</tr>\n<tr>\n<td><code>session_conflict</code></td>\n<td>The session cannot continue with these details. Start a new session.</td>\n<td>no</td>\n</tr>\n</tbody>\n</table>\n</div><p>For a non-recoverable code, close the SDK and create or resume the session again.</p>\n<p>React Native applications must declare camera, photo-library, foreground-location, and internet permissions. Run CocoaPods on iOS and rebuild the application after installing the native dependencies.</p>\n","_postman_id":"f8556093-a5ef-4071-8926-2688b10042c2"},{"name":"Wallet SDK","item":[{"name":"Create Wallet SDK session","event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","if (body.data?.sessionId) pm.collectionVariables.set('walletSessionId', body.data.sessionId);","pm.test('Wallet SDK session created', () => {","  pm.expect(pm.response.code).to.eql(200);","  pm.expect(body.error).to.eql(false);","  pm.expect(body.data.sessionId).to.be.a('string').and.not.empty;","});"]}}],"id":"89fff49c-1387-4665-89bc-ab0de7ea26f8","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"<p>Development API key. Keep it out of client code.</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"customerRef\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/sdk/createSession","description":"<p>Creates a session for the React Native Wallet SDK. Call it from your server.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customerRef</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Value from <code>data.customerRef</code> in the KYC completion webhook.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"returns\">Returns</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.sessionId</code></td>\n<td>Session identifier passed to the <code>Wallet</code> component.</td>\n</tr>\n<tr>\n<td><code>data.expiresIn</code></td>\n<td>Number of seconds before the session expires. A new session lasts 3 days.</td>\n</tr>\n<tr>\n<td><code>data.sessionToken</code></td>\n<td>OmniPay session credential. Keep this value out of the mobile application.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <code>Wallet</code> component requires <code>data.sessionId</code> and <code>customerRef</code>.</p>\n<p>If the customer already has a session, the response returns it with <code>message</code> set to <code>Session Already Started</code> and the remaining <code>expiresIn</code>. When less than 1 day remains, a new session is issued with <code>message</code> set to <code>Session Renewed</code>. Always use the <code>sessionId</code> from the latest response.</p>\n<h2 id=\"errors\">Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>message</code></th>\n<th>Cause</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td><code>Invalid Customer Ref</code></td>\n<td><code>customerRef</code> does not exist.</td>\n</tr>\n<tr>\n<td>401</td>\n<td><code>Api key is required</code></td>\n<td>The <code>apiKey</code> header is missing.</td>\n</tr>\n<tr>\n<td>401</td>\n<td><code>Invalid API Key</code></td>\n<td>The <code>apiKey</code> header is invalid.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["sdk","createSession"],"host":["https://api-dev.ompy.ng"],"query":[],"variable":[]}},"response":[{"id":"59f7069b-bd8e-4cc4-a776-b9dae004a68c","name":"200 - Wallet SDK session created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"Development API key. Keep it out of client code."}],"body":{"mode":"raw","raw":"{\n  \"customerRef\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/sdk/createSession","description":"Creates a session for the React Native Wallet SDK. Call it from your server.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `customerRef` | string | yes | Value from `data.customerRef` in the KYC completion webhook. |\n\n## Returns\n\n| Field | Description |\n|---|---|\n| `data.sessionId` | Session identifier passed to the `Wallet` component. |\n| `data.expiresIn` | Number of seconds before the session expires. A new session lasts 3 days. |\n| `data.sessionToken` | OmniPay session credential. Keep this value out of the mobile application. |\n\nThe `Wallet` component requires `data.sessionId` and `customerRef`.\n\nIf the customer already has a session, the response returns it with `message` set to `Session Already Started` and the remaining `expiresIn`. When less than 1 day remains, a new session is issued with `message` set to `Session Renewed`. Always use the `sessionId` from the latest response.\n\n## Errors\n\n| HTTP | `message` | Cause |\n|---:|---|---|\n| 400 | `Invalid Customer Ref` | `customerRef` does not exist. |\n| 401 | `Api key is required` | The `apiKey` header is missing. |\n| 401 | `Invalid API Key` | The `apiKey` header is invalid. |"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": false,\n  \"message\": \"Session Started Successfully\",\n  \"data\": {\n    \"sessionId\": \"4354d26b1b5ac968e349ef25bad47dc63c622cc55955b18d0224f8ac804ac920\",\n    \"expiresIn\": 259200,\n    \"sessionToken\": \"wallet-sdk-session-token\"\n  }\n}"},{"id":"175a837d-4930-462e-99cc-3214fd616b89","name":"400 - Invalid customer reference","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","description":"Development API key. Keep it out of client code."}],"body":{"mode":"raw","raw":"{\n  \"customerRef\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/sdk/createSession","description":"Creates a session for the React Native Wallet SDK. Call it from your server.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `customerRef` | string | yes | Value from `data.customerRef` in the KYC completion webhook. |\n\n## Returns\n\n| Field | Description |\n|---|---|\n| `data.sessionId` | Session identifier passed to the `Wallet` component. |\n| `data.expiresIn` | Number of seconds before the session expires. A new session lasts 3 days. |\n| `data.sessionToken` | OmniPay session credential. Keep this value out of the mobile application. |\n\nThe `Wallet` component requires `data.sessionId` and `customerRef`.\n\nIf the customer already has a session, the response returns it with `message` set to `Session Already Started` and the remaining `expiresIn`. When less than 1 day remains, a new session is issued with `message` set to `Session Renewed`. Always use the `sessionId` from the latest response.\n\n## Errors\n\n| HTTP | `message` | Cause |\n|---:|---|---|\n| 400 | `Invalid Customer Ref` | `customerRef` does not exist. |\n| 401 | `Api key is required` | The `apiKey` header is missing. |\n| 401 | `Invalid API Key` | The `apiKey` header is invalid. |"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": true,\n  \"message\": \"Invalid Customer Ref\",\n  \"data\": {\n    \"sessionId\": null,\n    \"expiresIn\": 0,\n    \"sessionToken\": null\n  }\n}"}],"_postman_id":"89fff49c-1387-4665-89bc-ab0de7ea26f8"}],"id":"2126b51f-7179-46bf-bb79-a5931e82b0f5","description":"<p>Display a customer's OmniPay wallet in a React Native application. The <code>Wallet</code> component opens in a native modal.</p>\n<p><code>@omniretail/wallet-sdk</code> is a private npm package. Request npm access from OmniPay before installing it. It requires React 18 or later and React Native 0.72 or later.</p>\n<h2 id=\"create-a-session\">Create a session</h2>\n<p>Create a Wallet SDK session with the <code>customerRef</code> received in the KYC completion webhook. The response contains <code>data.sessionId</code>, which is passed to the component. Create a new session when it expires.</p>\n<h2 id=\"install\">Install</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">npm install @omniretail/wallet-sdk \\\n  react-native-webview react-native-device-info \\\n  react-native-select-contact react-native-share\n</code></pre>\n<p>Run CocoaPods on iOS, then rebuild the application.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">npx pod-install\n</code></pre>\n<h2 id=\"render-the-wallet\">Render the wallet</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-tsx\">import {useState} from 'react';\nimport {Button} from 'react-native';\nimport {Wallet} from '@omniretail/wallet-sdk';\n\nconst OMNIPAY_PUBLIC_KEY =\n  'OMNIPUBKEY_FLX4HPQKKX124QBVQIKAAKSUNX4FIIXC';\n\nexport function WalletScreen({customerRef, sessionId}) {\n  const [walletOpen, setWalletOpen] = useState(false);\n\n  return (\n    &lt;&gt;\n      &lt;Button title=\"Open wallet\" onPress={() =&gt; setWalletOpen(true)} /&gt;\n\n      {walletOpen ? (\n        &lt;Wallet\n          env=\"dev\"\n          publicKey={OMNIPAY_PUBLIC_KEY}\n          customerRef={customerRef}\n          sessionId={sessionId}\n          features={{\n            airtimeAndData: true,\n            bills: true,\n            paylater: true,\n            transfers: true,\n          }}\n          onClose={() =&gt; setWalletOpen(false)}\n        /&gt;\n      ) : null}\n    &lt;/&gt;\n  );\n}\n</code></pre>\n<h2 id=\"props\">Props</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Prop</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>env</code></td>\n<td>yes</td>\n<td><code>dev</code> or <code>prod</code>. Must match the session environment.</td>\n</tr>\n<tr>\n<td><code>publicKey</code></td>\n<td>yes</td>\n<td>Public key for the selected environment.</td>\n</tr>\n<tr>\n<td><code>customerRef</code></td>\n<td>yes</td>\n<td>Value from <code>data.customerRef</code> in the KYC completion webhook.</td>\n</tr>\n<tr>\n<td><code>sessionId</code></td>\n<td>yes</td>\n<td>Value from <code>data.sessionId</code> in the Wallet SDK session response.</td>\n</tr>\n<tr>\n<td><code>onClose</code></td>\n<td>yes</td>\n<td>Called after the wallet modal closes.</td>\n</tr>\n<tr>\n<td><code>primaryColor</code></td>\n<td>no</td>\n<td>Three- or six-digit hex colour. Defaults to <code>#A682FF</code>.</td>\n</tr>\n<tr>\n<td><code>features</code></td>\n<td>no</td>\n<td><code>{airtimeAndData, bills, paylater, transfers}</code>. Every feature defaults to <code>false</code>; enable each one you want to show.</td>\n</tr>\n<tr>\n<td><code>initialTab</code></td>\n<td>no</td>\n<td><code>Account</code>, <code>Paylater</code> or <code>Omoni</code>. Defaults to <code>Account</code>.</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td>no</td>\n<td>Object of string, number or boolean values passed to the wallet for analytics.</td>\n</tr>\n<tr>\n<td><code>onEvent</code></td>\n<td>no</td>\n<td>Receives <code>(eventName, properties)</code> for wallet analytics events.</td>\n</tr>\n<tr>\n<td><code>onError</code></td>\n<td>no</td>\n<td>Receives <code>{code, message}</code>. Codes: <code>webview_failed</code>, <code>invalid_message</code>, <code>device_identity_unavailable</code>, <code>link_open_failed</code>, <code>share_failed</code>.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"2126b51f-7179-46bf-bb79-a5931e82b0f5"},{"name":"Collect payment for an order","item":[{"name":"Create order","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!pm.collectionVariables.get('orderIdempotencyKey')) {","  pm.collectionVariables.set('orderIdempotencyKey', pm.variables.replaceIn('6bc1f0f2-dc59-41dd-babd-0b20efe257ec'));","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Order accepted', () => pm.expect(pm.response.code).to.eql(200));"]}}],"id":"c90bb225-b69c-421a-ac10-3458e708a54a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"orderId\": \"1001\",\n  \"orderAmount\": 3700000,\n  \"customerRef\": \"\",\n  \"metadata\": \"{\\\"receiverWalletId\\\":\\\"\\\"}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Order/CreateOrder","description":"<p>Creates an order for a payment to the receiving wallet. Use it for both payment options: paying in the OmniPay app and paying by dynamic virtual account.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>orderId</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Your order ID. Must be unique across your company's orders. If the retailer has no OmniPay account (no <code>customerRef</code>), prefix it with <code>SO_</code>; for example, order <code>1001</code> becomes <code>SO_1001</code>.</td>\n</tr>\n<tr>\n<td><code>orderAmount</code></td>\n<td>number</td>\n<td>yes</td>\n<td>Payment amount in kobo, as a whole number. For example, NGN 5,000.00 is <code>500000</code>. Must be greater than 0.</td>\n</tr>\n<tr>\n<td><code>customerRef</code></td>\n<td>string</td>\n<td>if the retailer has an account</td>\n<td><code>customerRef</code> of the paying retailer, from their <code>kyconboarding.completed</code> webhook. Required for OmniPay app payments. Leave it out only for a retailer without an OmniPay account.</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td>string</td>\n<td>yes</td>\n<td>JSON string containing <code>receiverWalletId</code>: the distributor's or manufacturer's wallet that receives the payment.</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>metadata</code> is JSON encoded as a string. Escape its quotation marks as shown in the request body.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Retailer</th>\n<th><code>customerRef</code></th>\n<th><code>orderId</code></th>\n<th>Payment options</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Has an OmniPay account</td>\n<td>Retailer's <code>customerRef</code></td>\n<td>Your order ID, for example <code>1001</code></td>\n<td>OmniPay app or dynamic virtual account</td>\n</tr>\n<tr>\n<td>No OmniPay account</td>\n<td>Leave out</td>\n<td><code>SO_</code> + your order ID, for example <code>SO_1001</code></td>\n<td>Dynamic virtual account only</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"returns\">Returns</h2>\n<p>Returns HTTP <code>200</code> when the order is created. Use the same <code>orderId</code> and <code>orderAmount</code> to create the dynamic virtual account.</p>\n<p>If an order with the same <code>orderId</code> already exists, the request returns HTTP <code>200</code> with <code>message</code> set to <code>Order has already been created</code> and the existing order is not changed. Use a new <code>orderId</code> when the amount or receiver changes.</p>\n<h2 id=\"errors\">Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>message</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td><code>Order Id is mandatory</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Order amount should be greater than 0</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>CustomerRef is mandatory</code> (no <code>customerRef</code> and <code>orderId</code> does not start with <code>SO_</code>)</td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Invalid customer ref</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Order has already been created for customer</code> (the retailer has already paid an order with this <code>orderId</code>)</td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Idempotency Key is required</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Idempotency Key must be equal to or greater than 8 characters and less than 80 characters!</code></td>\n</tr>\n<tr>\n<td>401</td>\n<td><code>Api key is required</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["Order","CreateOrder"],"host":["https://api-dev.ompy.ng"],"query":[],"variable":[]}},"response":[{"id":"80dcf7b4-dcb6-4ac2-8932-1ee51228b326","name":"200 - Order created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"orderId\": \"1001\",\n  \"orderAmount\": 3700000,\n  \"customerRef\": \"\",\n  \"metadata\": \"{\\\"receiverWalletId\\\":\\\"\\\"}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Order/CreateOrder","description":"Creates an order for a payment to the receiving wallet. Use it for both payment options: paying in the OmniPay app and paying by dynamic virtual account.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `orderId` | string | yes | Your order ID. Must be unique across your company's orders. If the retailer has no OmniPay account (no `customerRef`), prefix it with `SO_`; for example, order `1001` becomes `SO_1001`. |\n| `orderAmount` | number | yes | Payment amount in kobo, as a whole number. For example, NGN 5,000.00 is `500000`. Must be greater than 0. |\n| `customerRef` | string | if the retailer has an account | `customerRef` of the paying retailer, from their `kyconboarding.completed` webhook. Required for OmniPay app payments. Leave it out only for a retailer without an OmniPay account. |\n| `metadata` | string | yes | JSON string containing `receiverWalletId`: the distributor's or manufacturer's wallet that receives the payment. |\n\n`metadata` is JSON encoded as a string. Escape its quotation marks as shown in the request body.\n\n| Retailer | `customerRef` | `orderId` | Payment options |\n|---|---|---|---|\n| Has an OmniPay account | Retailer's `customerRef` | Your order ID, for example `1001` | OmniPay app or dynamic virtual account |\n| No OmniPay account | Leave out | `SO_` + your order ID, for example `SO_1001` | Dynamic virtual account only |\n\n## Returns\n\nReturns HTTP `200` when the order is created. Use the same `orderId` and `orderAmount` to create the dynamic virtual account.\n\nIf an order with the same `orderId` already exists, the request returns HTTP `200` with `message` set to `Order has already been created` and the existing order is not changed. Use a new `orderId` when the amount or receiver changes.\n\n## Errors\n\n| HTTP | `message` |\n|---:|---|\n| 400 | `Order Id is mandatory` |\n| 400 | `Order amount should be greater than 0` |\n| 400 | `CustomerRef is mandatory` (no `customerRef` and `orderId` does not start with `SO_`) |\n| 400 | `Invalid customer ref` |\n| 400 | `Order has already been created for customer` (the retailer has already paid an order with this `orderId`) |\n| 400 | `Idempotency Key is required` |\n| 400 | `Idempotency Key must be equal to or greater than 8 characters and less than 80 characters!` |\n| 401 | `Api key is required` |"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": false,\n  \"message\": \"Order created successfully\",\n  \"data\": null\n}"},{"id":"5e1250c5-432e-4b73-8e67-0176f622d873","name":"400 - Validation error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"orderId\": \"1001\",\n  \"orderAmount\": 3700000,\n  \"customerRef\": \"\",\n  \"metadata\": \"{\\\"receiverWalletId\\\":\\\"\\\"}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Order/CreateOrder","description":"Creates an order for a payment to the receiving wallet. Use it for both payment options: paying in the OmniPay app and paying by dynamic virtual account.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `orderId` | string | yes | Your order ID. Must be unique across your company's orders. If the retailer has no OmniPay account (no `customerRef`), prefix it with `SO_`; for example, order `1001` becomes `SO_1001`. |\n| `orderAmount` | number | yes | Payment amount in kobo, as a whole number. For example, NGN 5,000.00 is `500000`. Must be greater than 0. |\n| `customerRef` | string | if the retailer has an account | `customerRef` of the paying retailer, from their `kyconboarding.completed` webhook. Required for OmniPay app payments. Leave it out only for a retailer without an OmniPay account. |\n| `metadata` | string | yes | JSON string containing `receiverWalletId`: the distributor's or manufacturer's wallet that receives the payment. |\n\n`metadata` is JSON encoded as a string. Escape its quotation marks as shown in the request body.\n\n| Retailer | `customerRef` | `orderId` | Payment options |\n|---|---|---|---|\n| Has an OmniPay account | Retailer's `customerRef` | Your order ID, for example `1001` | OmniPay app or dynamic virtual account |\n| No OmniPay account | Leave out | `SO_` + your order ID, for example `SO_1001` | Dynamic virtual account only |\n\n## Returns\n\nReturns HTTP `200` when the order is created. Use the same `orderId` and `orderAmount` to create the dynamic virtual account.\n\nIf an order with the same `orderId` already exists, the request returns HTTP `200` with `message` set to `Order has already been created` and the existing order is not changed. Use a new `orderId` when the amount or receiver changes.\n\n## Errors\n\n| HTTP | `message` |\n|---:|---|\n| 400 | `Order Id is mandatory` |\n| 400 | `Order amount should be greater than 0` |\n| 400 | `CustomerRef is mandatory` (no `customerRef` and `orderId` does not start with `SO_`) |\n| 400 | `Invalid customer ref` |\n| 400 | `Order has already been created for customer` (the retailer has already paid an order with this `orderId`) |\n| 400 | `Idempotency Key is required` |\n| 400 | `Idempotency Key must be equal to or greater than 8 characters and less than 80 characters!` |\n| 401 | `Api key is required` |"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": true,\n  \"message\": \"Order amount should be greater than 0\",\n  \"data\": null\n}"}],"_postman_id":"c90bb225-b69c-421a-ac10-3458e708a54a"},{"name":"Create dynamic virtual account","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["if (!pm.collectionVariables.get('dynamicAccountIdempotencyKey')) {","  pm.collectionVariables.set('dynamicAccountIdempotencyKey', pm.variables.replaceIn('38c32d29-2650-4e71-bf76-24674c4a0332'));","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","pm.test('Dynamic account created', () => {","  pm.expect(pm.response.code).to.eql(200);","  pm.expect(body.error).to.eql(false);","  pm.expect(body.data.accountNumber).to.be.a('string').and.not.empty;","  pm.expect(body.data.bankCode).to.eql('090813');","});"]}}],"id":"a7d180de-6146-4c06-8c05-ab881bf21fab","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"amount\": 3700000,\n  \"orderId\": \"1001\",\n  \"accountName\": \"Ada Customer\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Wallet/CreateDynamicAccount","description":"<p>Creates a temporary bank account for an existing order. Only needed for Option B, paying by bank transfer.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>amount</code></td>\n<td>number</td>\n<td>yes</td>\n<td>Exact order amount in kobo. Must be greater than 0.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td>string</td>\n<td>yes</td>\n<td><code>orderId</code> of the existing order.</td>\n</tr>\n<tr>\n<td><code>accountName</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Account name shown to the customer. Letters, digits and spaces only.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Send the same <code>amount</code> as the order's <code>orderAmount</code>. The payment is applied to the order only when the transfer equals <code>orderAmount</code>.</p>\n<h2 id=\"returns\">Returns</h2>\n<p>The response contains <code>accountNumber</code>, <code>bankCode</code>, <code>accountName</code>, <code>referenceId</code> and <code>expiresIn</code>. The bank is Victory MFB (bank code <code>090813</code>).</p>\n<p><code>expiresIn</code> is the number of seconds until the account expires, typically about one hour. Calculate the expiry time from it when you create the account.</p>\n<p>Display the account number, account name, bank, your order amount and the expiry time. Stop accepting payment to the account after it expires. Account creation does not confirm that the order has been paid.</p>\n<p>Calling the request again with a new <code>IdempotencyKey</code> creates another account request for the same order and may return a different account number. Show only the latest account to the payer.</p>\n<h2 id=\"errors\">Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>message</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td><code>Order doesn't exist</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Order already paid for</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>order missing metadata</code> / <code>Invalid order metadata</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>order metadata missing receiver wallet id</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Order receiver wallet details not found</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Account Name is required</code> / <code>Amount must be greater than 0</code> / <code>Order Id is required</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Failed to create dynamic account</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["Wallet","CreateDynamicAccount"],"host":["https://api-dev.ompy.ng"],"query":[],"variable":[]}},"response":[{"id":"82b36098-5d8f-4e9e-88b3-04e320b57c92","name":"200 - Dynamic account ready","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"amount\": 3700000,\n  \"orderId\": \"1001\",\n  \"accountName\": \"Ada Customer\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Wallet/CreateDynamicAccount","description":"Creates a temporary bank account for an existing order. Only needed for Option B, paying by bank transfer.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `amount` | number | yes | Exact order amount in kobo. Must be greater than 0. |\n| `orderId` | string | yes | `orderId` of the existing order. |\n| `accountName` | string | yes | Account name shown to the customer. Letters, digits and spaces only. |\n\nSend the same `amount` as the order's `orderAmount`. The payment is applied to the order only when the transfer equals `orderAmount`.\n\n## Returns\n\nThe response contains `accountNumber`, `bankCode`, `accountName`, `referenceId` and `expiresIn`. The bank is Victory MFB (bank code `090813`).\n\n`expiresIn` is the number of seconds until the account expires, typically about one hour. Calculate the expiry time from it when you create the account.\n\nDisplay the account number, account name, bank, your order amount and the expiry time. Stop accepting payment to the account after it expires. Account creation does not confirm that the order has been paid.\n\nCalling the request again with a new `IdempotencyKey` creates another account request for the same order and may return a different account number. Show only the latest account to the payer.\n\n## Errors\n\n| HTTP | `message` |\n|---:|---|\n| 400 | `Order doesn't exist` |\n| 400 | `Order already paid for` |\n| 400 | `order missing metadata` / `Invalid order metadata` |\n| 400 | `order metadata missing receiver wallet id` |\n| 400 | `Order receiver wallet details not found` |\n| 400 | `Account Name is required` / `Amount must be greater than 0` / `Order Id is required` |\n| 400 | `Failed to create dynamic account` |"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": false,\n  \"message\": \"Dynamic account created successfully\",\n  \"data\": {\n    \"accountNumber\": \"0123456789\",\n    \"bankCode\": \"090813\",\n    \"referenceId\": \"orderId1001\",\n    \"accountName\": \"Ada Customer\",\n    \"expiresIn\": 3590.0\n  }\n}"},{"id":"1296f58d-5cc0-4575-899a-d182338d4734","name":"400 - Order missing or already paid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"},{"key":"IdempotencyKey","value":""}],"body":{"mode":"raw","raw":"{\n  \"amount\": 3700000,\n  \"orderId\": \"1001\",\n  \"accountName\": \"Ada Customer\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.ompy.ng/Wallet/CreateDynamicAccount","description":"Creates a temporary bank account for an existing order. Only needed for Option B, paying by bank transfer.\n\n## Parameters\n\n| Field | Type | Required | Description |\n|---|---|---:|---|\n| `amount` | number | yes | Exact order amount in kobo. Must be greater than 0. |\n| `orderId` | string | yes | `orderId` of the existing order. |\n| `accountName` | string | yes | Account name shown to the customer. Letters, digits and spaces only. |\n\nSend the same `amount` as the order's `orderAmount`. The payment is applied to the order only when the transfer equals `orderAmount`.\n\n## Returns\n\nThe response contains `accountNumber`, `bankCode`, `accountName`, `referenceId` and `expiresIn`. The bank is Victory MFB (bank code `090813`).\n\n`expiresIn` is the number of seconds until the account expires, typically about one hour. Calculate the expiry time from it when you create the account.\n\nDisplay the account number, account name, bank, your order amount and the expiry time. Stop accepting payment to the account after it expires. Account creation does not confirm that the order has been paid.\n\nCalling the request again with a new `IdempotencyKey` creates another account request for the same order and may return a different account number. Show only the latest account to the payer.\n\n## Errors\n\n| HTTP | `message` |\n|---:|---|\n| 400 | `Order doesn't exist` |\n| 400 | `Order already paid for` |\n| 400 | `order missing metadata` / `Invalid order metadata` |\n| 400 | `order metadata missing receiver wallet id` |\n| 400 | `Order receiver wallet details not found` |\n| 400 | `Account Name is required` / `Amount must be greater than 0` / `Order Id is required` |\n| 400 | `Failed to create dynamic account` |"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": true,\n  \"message\": \"Order already paid for\",\n  \"data\": null\n}"}],"_postman_id":"a7d180de-6146-4c06-8c05-ab881bf21fab"},{"name":"[WEBHOOK] Order payment successful","id":"e23c46a7-bd70-482e-98b3-77740c479d63","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"signature","value":"<webhook-signature>","description":"<p>HMAC-SHA512 signature of the webhook payload, created with the OmniPay API key.</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"event\": \"orderpayment.successful\",\n  \"data\": {\n    \"customerRef\": \"\",\n    \"userRef\": null,\n    \"walletBalance\": 0,\n    \"createdAt\": \"2026-07-31T18:00:00Z\",\n    \"walletPayment\": 3700000,\n    \"paylaterPayment\": 0,\n    \"promoPayment\": 0,\n    \"couponPayment\": 0,\n    \"orderValue\": 3700000,\n    \"orderId\": \"1001\",\n    \"loanId\": null,\n    \"loanType\": null,\n    \"loanDueDate\": \"\",\n    \"orderType\": null,\n    \"companyId\": \"your-company-id\",\n    \"transactionId\": \"TRX-OMN-2026-001234\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://example.com/webhooks/omnipay","description":"<p>Occurs after an order is paid, either in the OmniPay app or by bank transfer to a dynamic virtual account. It is sent to the webhook of the company whose API key created the order. Verify the webhook signature before processing the payload.</p>\n<h2 id=\"event-data\">Event data</h2>\n<p>Amounts are in kobo.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.orderId</code></td>\n<td>Order identifier. For an <code>SO_</code> order (retailer without an account), it arrives without the prefix, for example <code>1001</code> for <code>SO_1001</code>.</td>\n</tr>\n<tr>\n<td><code>data.orderValue</code></td>\n<td>Order amount, as sent in <code>orderAmount</code>.</td>\n</tr>\n<tr>\n<td><code>data.walletPayment</code></td>\n<td>Amount paid from a wallet. For a bank transfer it equals <code>orderValue</code>. For an app payment it is the part paid from the retailer's wallet balance.</td>\n</tr>\n<tr>\n<td><code>data.paylaterPayment</code></td>\n<td>Amount paid with Paylater in the OmniPay app. <code>0</code> for a bank transfer.</td>\n</tr>\n<tr>\n<td><code>data.promoPayment</code></td>\n<td>Amount paid from a promo balance. <code>0</code> for a bank transfer.</td>\n</tr>\n<tr>\n<td><code>data.couponPayment</code></td>\n<td>Amount paid with a coupon. <code>0</code> for a bank transfer.</td>\n</tr>\n<tr>\n<td><code>data.transactionId</code></td>\n<td>Unique OmniPay transaction identifier.</td>\n</tr>\n<tr>\n<td><code>data.companyId</code></td>\n<td>Your OmniPay company identifier.</td>\n</tr>\n<tr>\n<td><code>data.createdAt</code></td>\n<td>Time the event was created.</td>\n</tr>\n<tr>\n<td><code>data.customerRef</code></td>\n<td>The order's <code>customerRef</code> (the paying retailer) when the order was created with one. Otherwise <code>null</code> or <code>\"0\"</code>; do not use it to find the order.</td>\n</tr>\n<tr>\n<td><code>data.userRef</code></td>\n<td>Paying user reference, if any.</td>\n</tr>\n<tr>\n<td><code>data.walletBalance</code></td>\n<td>Balance of the paying wallet after the payment. Not the receiver's balance; ignore it for bank transfers.</td>\n</tr>\n<tr>\n<td><code>data.loanId</code>, <code>data.loanType</code>, <code>data.loanDueDate</code></td>\n<td>Paylater details when <code>paylaterPayment</code> is above <code>0</code>. Otherwise empty.</td>\n</tr>\n<tr>\n<td><code>data.orderType</code></td>\n<td>Internal order type.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Find the order by <code>data.orderId</code>, verify the amounts, store <code>data.transactionId</code>, and mark the order as paid. Return HTTP <code>200</code> after the update is committed. If <code>transactionId</code> has already been processed, return HTTP <code>200</code> without applying the payment again.</p>\n","urlObject":{"host":["https://example.com/webhooks/omnipay"],"query":[],"variable":[]}},"response":[{"id":"b0a9540b-b60d-49a9-8472-5c220a0f28cc","name":"200 - Acknowledged","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"signature","value":"<webhook-signature>","description":"HMAC-SHA512 signature of the webhook payload, created with the OmniPay API key."}],"body":{"mode":"raw","raw":"{\n  \"event\": \"orderpayment.successful\",\n  \"data\": {\n    \"customerRef\": \"\",\n    \"userRef\": null,\n    \"walletBalance\": 0,\n    \"createdAt\": \"2026-07-31T18:00:00Z\",\n    \"walletPayment\": 3700000,\n    \"paylaterPayment\": 0,\n    \"promoPayment\": 0,\n    \"couponPayment\": 0,\n    \"orderValue\": 3700000,\n    \"orderId\": \"1001\",\n    \"loanId\": null,\n    \"loanType\": null,\n    \"loanDueDate\": \"\",\n    \"orderType\": null,\n    \"companyId\": \"your-company-id\",\n    \"transactionId\": \"TRX-OMN-2026-001234\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://example.com/webhooks/omnipay","description":"Occurs after an order is paid, either in the OmniPay app or by bank transfer to a dynamic virtual account. It is sent to the webhook of the company whose API key created the order. Verify the webhook signature before processing the payload.\n\n## Event data\n\nAmounts are in kobo.\n\n| Field | Description |\n|---|---|\n| `data.orderId` | Order identifier. For an `SO_` order (retailer without an account), it arrives without the prefix, for example `1001` for `SO_1001`. |\n| `data.orderValue` | Order amount, as sent in `orderAmount`. |\n| `data.walletPayment` | Amount paid from a wallet. For a bank transfer it equals `orderValue`. For an app payment it is the part paid from the retailer's wallet balance. |\n| `data.paylaterPayment` | Amount paid with Paylater in the OmniPay app. `0` for a bank transfer. |\n| `data.promoPayment` | Amount paid from a promo balance. `0` for a bank transfer. |\n| `data.couponPayment` | Amount paid with a coupon. `0` for a bank transfer. |\n| `data.transactionId` | Unique OmniPay transaction identifier. |\n| `data.companyId` | Your OmniPay company identifier. |\n| `data.createdAt` | Time the event was created. |\n| `data.customerRef` | The order's `customerRef` (the paying retailer) when the order was created with one. Otherwise `null` or `\"0\"`; do not use it to find the order. |\n| `data.userRef` | Paying user reference, if any. |\n| `data.walletBalance` | Balance of the paying wallet after the payment. Not the receiver's balance; ignore it for bank transfers. |\n| `data.loanId`, `data.loanType`, `data.loanDueDate` | Paylater details when `paylaterPayment` is above `0`. Otherwise empty. |\n| `data.orderType` | Internal order type. |\n\nFind the order by `data.orderId`, verify the amounts, store `data.transactionId`, and mark the order as paid. Return HTTP `200` after the update is committed. If `transactionId` has already been processed, return HTTP `200` without applying the payment again."},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"message\": \"Success\"\n}"}],"_postman_id":"e23c46a7-bd70-482e-98b3-77740c479d63"},{"name":"Get order payment details","id":"27a34239-2918-4799-998d-b9e57fcf15bc","request":{"method":"GET","header":[{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6"}],"url":"https://api-dev.ompy.ng/Order/getPaymentDetails?OrderId=1001","description":"<p>Returns the payment for one of your orders. Use it to confirm a payment when a webhook was missed, or to check an order before releasing it.</p>\n<p>Only orders created with your API key are returned.</p>\n<h2 id=\"returns\">Returns</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.orderId</code></td>\n<td>Order identifier.</td>\n</tr>\n<tr>\n<td><code>data.amount</code></td>\n<td>Total amount paid, in <strong>naira</strong> (not kobo).</td>\n</tr>\n<tr>\n<td><code>data.status</code></td>\n<td>Payment status, for example <code>successful</code>.</td>\n</tr>\n<tr>\n<td><code>data.transactionId</code></td>\n<td>OmniPay transaction identifier. Same value as <code>transactionId</code> in <code>orderpayment.successful</code>.</td>\n</tr>\n<tr>\n<td><code>data.createdDate</code></td>\n<td>Time of the payment.</td>\n</tr>\n<tr>\n<td><code>data.walletId</code></td>\n<td>Receiving wallet.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"errors\">Errors</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>message</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td><code>Invalid Order Id</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>No payment details found for this order</code> (the order exists but is not paid)</td>\n</tr>\n<tr>\n<td>401</td>\n<td><code>Invalid api key</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["Order","getPaymentDetails"],"host":["https://api-dev.ompy.ng"],"query":[{"description":{"content":"<p>orderId used when the order was created.</p>\n","type":"text/plain"},"key":"OrderId","value":"1001"}],"variable":[]}},"response":[{"id":"c0960a0c-d893-4905-a690-eec4e735a08d","name":"200 - Order paid","originalRequest":{"method":"GET","header":[],"url":""},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": false,\n  \"message\": \"Payment details fetched successfully\",\n  \"data\": {\n    \"orderId\": \"1001\",\n    \"amount\": 37000.00,\n    \"status\": \"successful\",\n    \"transactionId\": \"TRX-OMN-2026-001234\",\n    \"createdDate\": \"2026-07-31T18:00:00Z\",\n    \"walletId\": \"receiver-wallet-id\"\n  }\n}"},{"id":"7703c789-10c6-4e92-8f89-fc1a06f802bc","name":"400 - Order not paid","originalRequest":{"method":"GET","header":[],"url":""},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": true,\n  \"message\": \"No payment details found for this order\"\n}"}],"_postman_id":"27a34239-2918-4799-998d-b9e57fcf15bc"}],"id":"155a6dee-7673-469e-b23b-3ce645f611e5","description":"<p>Every payment starts with an order. The order names the wallet that receives the payment and, optionally, the retailer who pays. The retailer then pays in one of two ways:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Option</th>\n<th>How the retailer pays</th>\n<th>Extra request</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>A. OmniPay app</td>\n<td>Wallet balance or Paylater in the OmniPay app</td>\n<td>None</td>\n</tr>\n<tr>\n<td>B. Dynamic virtual account</td>\n<td>Bank transfer to a single-use account</td>\n<td><strong>Create dynamic virtual account</strong></td>\n</tr>\n</tbody>\n</table>\n</div><p>Both options send <code>orderpayment.successful</code> to your webhook when the order is paid.</p>\n<h2 id=\"who-receives-the-payment\">Who receives the payment</h2>\n<p><code>metadata.receiverWalletId</code> decides where the money goes. OmniPay pays the full amount into that wallet.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Receiver</th>\n<th><code>receiverWalletId</code></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Distributor</td>\n<td><code>walletId</code> from the distributor's <code>kyconboarding.completed</code> webhook (<code>profileType</code> <code>primary</code>).</td>\n</tr>\n<tr>\n<td>Manufacturer</td>\n<td>The manufacturer's OmniPay wallet ID, shared by OmniPay during onboarding.</td>\n</tr>\n</tbody>\n</table>\n</div><p>To pay a manufacturer directly, set <code>receiverWalletId</code> to the manufacturer's wallet. The payment does not pass through a distributor's wallet. OmniPay does not split a payment or settle it onward to other parties; any settlement between a manufacturer and its distributors is handled outside OmniPay.</p>\n<h2 id=\"option-a-pay-in-the-omnipay-app\">Option A: Pay in the OmniPay app</h2>\n<ol>\n<li>Create an order with <code>customerRef</code> set to the paying retailer's <code>customerRef</code> and <code>metadata.receiverWalletId</code> set to the receiving wallet.</li>\n<li>The order appears in the retailer's OmniPay app under <strong>Pay</strong> &gt; <strong>Pay For Orders</strong>.</li>\n<li>The retailer pays with their wallet balance, Paylater, or both, and confirms with their PIN.</li>\n<li>Confirm payment only after receiving <code>orderpayment.successful</code>.</li>\n</ol>\n<p><code>customerRef</code> is required for this option, so the retailer must have an OmniPay account; without it the order does not appear under <strong>Pay For Orders</strong>. The retailer must have completed KYC and set a wallet PIN. Paylater is offered only when the retailer has an available limit.</p>\n<p>When an app payment lands in a receiving wallet with an instant-settlement bank account, OmniPay pays it out to that bank account immediately.</p>\n<h2 id=\"option-b-pay-by-dynamic-virtual-account\">Option B: Pay by dynamic virtual account</h2>\n<ol>\n<li>Create an order for the payment amount and set <code>metadata.receiverWalletId</code> to the receiving wallet. If the retailer has an OmniPay account, set <code>customerRef</code>. If not, leave <code>customerRef</code> out and prefix <code>orderId</code> with <code>SO_</code>.</li>\n<li>Create a dynamic virtual account with the same <code>orderId</code> and amount.</li>\n<li>Show the account number, account name, bank (Victory MFB), your order amount, and the expiry time calculated from <code>expiresIn</code>.</li>\n<li>Confirm payment only after receiving <code>orderpayment.successful</code>.</li>\n</ol>\n<p>The payer must transfer the exact order amount. A transfer for a different amount does not pay the order; contact OmniPay support to resolve it. A transfer payment stays in the receiving wallet.</p>\n<p>Amounts are sent in kobo. Order and dynamic-account requests require <code>apiKey</code> and <code>IdempotencyKey</code> headers. Use a new idempotency key for each operation and retain it when retrying that operation.</p>\n","_postman_id":"155a6dee-7673-469e-b23b-3ce645f611e5"},{"name":"Webhooks","item":[],"id":"a0fc067d-178b-4eec-8950-3ca6620e5fa7","description":"<p>OmniPay sends events to the HTTPS webhook URL you register with OmniPay.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event</th>\n<th>Sent when</th>\n<th>Details</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>kyconboarding.completed</code></td>\n<td>A customer finishes KYC and their wallet is ready</td>\n<td><strong>KYC onboarding</strong> &gt; <strong>[WEBHOOK] KYC completed and wallet created</strong></td>\n</tr>\n<tr>\n<td><code>orderpayment.successful</code></td>\n<td>An order is paid</td>\n<td><strong>Collect payment for an order</strong> &gt; <strong>[WEBHOOK] Order payment successful</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"verify-the-signature\">Verify the signature</h2>\n<p>Each webhook includes a <code>signature</code> header containing the lowercase hexadecimal HMAC-SHA512 signature of the raw request body. Compute the signature with the OmniPay API key over the exact bytes received, and compare it before parsing the JSON. Do not parse and re-serialise the body first: OmniPay escapes characters such as <code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code> and <code>'</code> as <code>\\u003C</code>, <code>\\u003E</code>, <code>\\u0026</code> and <code>\\u0027</code>, and writes decimals without trailing zeros, so re-serialised JSON will not match.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-js\">import crypto from 'node:crypto';\n\nfunction verifyOmniPaySignature(rawBody, signature, apiKey) {\n  if (!signature || !/^[0-9a-f]+$/i.test(signature)) return false;\n\n  const expected = crypto\n    .createHmac('sha512', apiKey)\n    .update(rawBody)\n    .digest();\n  const received = Buffer.from(signature, 'hex');\n\n  return received.length === expected.length &amp;&amp;\n    crypto.timingSafeEqual(received, expected);\n}\n\napp.post(\n  '/webhooks/omnipay',\n  express.raw({type: 'application/json'}),\n  async (req, res) =&gt; {\n    if (!verifyOmniPaySignature(\n      req.body,\n      req.get('signature'),\n      process.env.OMNIPAY_API_KEY,\n    )) {\n      return res.sendStatus(401);\n    }\n\n    const event = JSON.parse(req.body.toString('utf8'));\n    await processOmniPayEvent(event);\n    return res.sendStatus(200);\n  },\n);\n</code></pre>\n<p>A webhook can be delivered more than once. Store the event before returning HTTP <code>200</code>, and make processing idempotent using <code>referenceId</code> or <code>transactionId</code>.</p>\n<h2 id=\"delivery-and-retries\">Delivery and retries</h2>\n<p>Any HTTP <code>2xx</code> response acknowledges the event. OmniPay waits 20 seconds for a response; a timeout counts as a failure.</p>\n<p>After a failed delivery OmniPay retries after about 10 seconds, 100 seconds, 17 minutes and 2.8 hours, then every 2 hours. Retries stop 1 day after the first attempt for <code>orderpayment.successful</code> and 3 days after the first attempt for other events.</p>\n","_postman_id":"a0fc067d-178b-4eec-8950-3ca6620e5fa7"},{"name":"Post payments to your ERP","item":[],"id":"e2605c3b-546e-4131-a325-f0e609db3473","description":"<p>Use <code>orderpayment.successful</code> to record payments in your ERP, for example SAP:</p>\n<ol>\n<li>Verify the <code>signature</code> header against the raw body, then store the event.</li>\n<li>If <code>data.transactionId</code> is already recorded, return HTTP <code>200</code> and stop.</li>\n<li>Find the invoice or sales order using <code>data.orderId</code>. Use your ERP's invoice or sales order number as the <code>orderId</code> when you create the order.</li>\n<li>Check that <code>data.orderValue</code> matches the open amount. Amounts are in kobo; divide by 100 for naira.</li>\n<li>Post the receipt with <code>data.transactionId</code> as the payment reference, <code>data.createdAt</code> as the payment date and <code>data.customerRef</code> as the retailer, when present.</li>\n<li>Mark the invoice as paid and release the order, then return HTTP <code>200</code>.</li>\n</ol>\n<p>Return HTTP <code>200</code> only after the ERP update is committed, so OmniPay retries if your ERP is unavailable. If an event was missed after retries stopped, call <strong>Get order payment details</strong> with the <code>orderId</code> to confirm the payment.</p>\n","_postman_id":"e2605c3b-546e-4131-a325-f0e609db3473"}],"variable":[{"key":"omniPayApiBaseUrl","value":"https://api-dev.ompy.ng","type":"string","description":"Use https://api.ompy.ng in production."},{"key":"apiKey","value":"xrcQVg90ujKbUwUBytlrrHwxyds17yPo8JbBmK52IOzuLkBZYR26mqW06ZstCTr6","type":"string","description":"Development API key for https://api-dev.ompy.ng."},{"key":"walletPublicKey","value":"OMNIPUBKEY_FLX4HPQKKX124QBVQIKAAKSUNX4FIIXC","type":"string","description":"Development public key for the React Native Wallet SDK."},{"key":"referenceId","value":"customer_1001","type":"string","description":"Stable unique identifier assigned to the customer. 1–100 characters: letters, digits, '.', '_', ':' and '-'."},{"key":"phoneNumber","value":"08012345678","type":"string","description":"11 digits starting with 0."},{"key":"emailAddress","value":"customer@example.com","type":"string"},{"key":"kycToken","value":"","type":"string","description":"Captured from the KYC session response; pass only this scoped token to Kyc.Onboarding."},{"key":"customerRef","value":"","type":"string","description":"OmniPay customer reference received in the KYC completion webhook."},{"key":"walletSessionId","value":"","type":"string","description":"Captured from the Wallet SDK session response and passed to the Wallet SDK."},{"key":"walletId","value":"","type":"string","description":"Wallet ID from the kyconboarding.completed webhook."},{"key":"receiverWalletId","value":"","type":"string","description":"Wallet that receives the order payment: a distributor's walletId or a manufacturer's OmniPay wallet ID."},{"key":"orderId","value":"1001","type":"string","description":"Your order ID. For a retailer without an OmniPay account (no customerRef), prefix it with SO_; for example, SO_1001."},{"key":"amountKobo","value":"3700000","type":"string","description":"NGN 37,000.00 expressed in kobo."},{"key":"payerDisplayName","value":"Ada Customer","type":"string","description":"Letters, digits and spaces only."},{"key":"orderIdempotencyKey","value":"","type":"string","description":"Idempotency key for order creation."},{"key":"dynamicAccountIdempotencyKey","value":"","type":"string","description":"Idempotency key for dynamic virtual account creation."},{"key":"yourWebhookUrl","value":"https://example.com/webhooks/omnipay","type":"string","description":"HTTPS webhook URL registered with OmniPay."}]}