Apply marketplace-agnostic settlement lines to existing orders.
Authentication
Requires orders:write.
What this endpoint does
Stores every submitted line as marketplace financial evidence.
Projects settled rows into the order finance ledger.
Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey.
Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.
Order matching
Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines.
accountId is an exact store match, never a wildcard.
marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts.
If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it.
Ledger rows retain the platform of the matched order.
Zalora ITR parity
Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.
settlementStatus=settled is paid; pending is not.
Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P&L when settled but are excluded from that formula.
Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change.
Important limitations
This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived.
This endpoint does not replace ITR apply for:
Spreadsheet parsing
Updating paidPrice or unitPrice
Automatically marking returned or cancelled lines and restoring return inventory
SKU fallback matching
Rewriting order currency or totals
Rebasing COGS currency
Undo or redo
Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.
Settlement source marketplace slug (zalora, shopee, lazada, tiktok, shopify, agentic, …). Used to match orders and pick a payment-received formula. zalora matches both Seller Center orders (platform=zalora) and reconciliation-era agentic carts.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OmniCommerce","description":"Developer documentation for OmniCommerce REST APIs, MCP tools, and agent integrations.","colors":{"primary":"#0F766E","light":"#2DD4BF","dark":"#115E59"},"logo":{"light":"https://mintcdn.com/omnicommerce/B2cjFTJ7Zt2npdeV/logo/light.svg?fit=max\u0026auto=format\u0026n=B2cjFTJ7Zt2npdeV\u0026q=85\u0026s=e012509da06089923275e6b0415addf9","dark":"https://mintcdn.com/omnicommerce/B2cjFTJ7Zt2npdeV/logo/dark.svg?fit=max\u0026auto=format\u0026n=B2cjFTJ7Zt2npdeV\u0026q=85\u0026s=547bdf6cb0b483a43238304bc7679fa1","href":"https://omnicommerce.sg"},"favicon":"https://mintcdn.com/omnicommerce/B2cjFTJ7Zt2npdeV/favicon.svg?fit=max\u0026auto=format\u0026n=B2cjFTJ7Zt2npdeV\u0026q=85\u0026s=2951c661b72ccdfa6777f7594193113c","api":{"params":{"expanded":"closed"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","javascript","python"],"prefill":false}},"appearance":{"default":"dark"},"navbar":{"links":[{"href":"https://omnicommerce.sg","label":"App"},{"href":"https://omnicommerce.sg/login","label":"Log In"}],"primary":{"type":"button","label":"API Dashboard","href":"https://omnicommerce.sg/app"}},"footer":{"socials":{"website":"https://omnicommerce.sg"}},"seo":{"metatags":{"og:site_name":"OmniCommerce Docs","twitter:card":"summary_large_image"}},"contextual":{"options":["copy","view","chatgpt","claude","download-spec"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"omnicommerce","hasAudioNarration":false,"actualSubdomain":"omnicommerce","customDomains":["docs.omnicommerce.sg"],"gitSource":{"type":"github","owner":"rmdort","repo":"omnicommerce","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6adbd0b266dc5112c9cd1db7","collectionId":"5a8b52fa-144a-4ed2-99bb-c7d4439f5f99","liveDeploymentHistoryId":"6adbd0b266dc5112c9cd1db7","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adbd0b266dc5112c9cd1db7","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"API Reference","count":141},{"language":"default","tag":"Endpoints","count":119},{"language":"default","tag":"Documentation","count":39},{"language":"default","tag":"Webhooks","count":31},{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"Products","count":18},{"language":"default","tag":"Developer Platform","count":14},{"language":"default","tag":"Orders","count":11},{"language":"default","tag":"Analytics","count":11},{"language":"default","tag":"Promotions","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--docs-radius:6px;--docs-content-max:60rem;--docs-example-width:28rem}#navbar img[src*=logo],header img[src$=\"/logo/dark.svg\"],header img[src$=\"/logo/light.svg\"],header nav-logo img{height:32px!important;max-height:32px!important;width:auto!important}article p:not(.callout-title):not(.callout-body),main p:not(.callout-title):not(.callout-body){font-size:calc(1em - 1pt)}"}],"page":{"pagePath":"api-reference/settlements/apply-settlements","slug":"/api-reference/settlements/apply-settlements","pageMetadata":{"title":"Apply Settlements","description":"Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.\n- If the same `externalOrderId` exists in both groups, the line is ambiguous. Pass `accountId` to disambiguate it.\n- Ledger rows retain the platform of the matched order.\n\n### Zalora ITR parity\n\n- Send one `lines[]` entry per report row. `transactionType` can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\n- `settlementStatus=settled` is paid; `pending` is not.\n- Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula.\n- Item Price Credit updates Payment received without changing line `paidPrice` or `unitPrice`. Use `PATCH /api/v1/orders/{orderId}` when displayed prices must also change.\n\n### Important limitations\n\nThis is not an order-price API. Selling prices, COGS, and returns belong on `POST /api/v1/orders` or `PATCH /api/v1/orders/{orderId}`. Do not send `paymentReceived`.\n\nThis endpoint does not replace ITR apply for:\n\n- Spreadsheet parsing\n- Updating `paidPrice` or `unitPrice`\n- Automatically marking returned or cancelled lines and restoring return inventory\n- SKU fallback matching\n- Rewriting order currency or totals\n- Rebasing COGS currency\n- Undo or redo\n\nDo not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their `source_event_key` namespaces differ (`developer_api:…` and `zalora_report:…`), so Payment received would be counted twice.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/settlements","href":"/api-reference/settlements/apply-settlements","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n h3: \"h3\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Apply marketplace-agnostic settlement lines to existing orders.\"\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Authentication\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Requires \", _jsx(_components.code, {\n children: \"orders:write\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.h3, {\n children: \"What this endpoint does\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Stores every submitted line as marketplace financial evidence.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Projects \", _jsx(_components.strong, {\n children: \"settled\"\n }), \" rows into the order finance ledger.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same \", _jsx(_components.code, {\n children: \"sourceEventKey\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Order matching\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Orders are matched by organization, marketplace platform, and exact \", _jsx(_components.code, {\n children: \"externalOrderId\"\n }), \". Include \", _jsx(_components.code, {\n children: \"externalOrderItemId\"\n }), \" when an order has multiple lines.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"accountId\"\n }), \" is an exact store match, never a wildcard.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"marketplace=zalora\"\n }), \" can match Zalora Seller Center orders (\", _jsx(_components.code, {\n children: \"platform=zalora\"\n }), \") and reconciliation-era agentic carts.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"If the same \", _jsx(_components.code, {\n children: \"externalOrderId\"\n }), \" exists in both groups, the line is ambiguous. Pass \", _jsx(_components.code, {\n children: \"accountId\"\n }), \" to disambiguate it.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Ledger rows retain the platform of the matched order.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Zalora ITR parity\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Send one \", _jsx(_components.code, {\n children: \"lines[]\"\n }), \" entry per report row. \", _jsx(_components.code, {\n children: \"transactionType\"\n }), \" can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"settlementStatus=settled\"\n }), \" is paid; \", _jsx(_components.code, {\n children: \"pending\"\n }), \" is not.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Item Price Credit updates Payment received without changing line \", _jsx(_components.code, {\n children: \"paidPrice\"\n }), \" or \", _jsx(_components.code, {\n children: \"unitPrice\"\n }), \". Use \", _jsx(_components.code, {\n children: \"PATCH /api/v1/orders/{orderId}\"\n }), \" when displayed prices must also change.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.h3, {\n children: \"Important limitations\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This is not an order-price API. Selling prices, COGS, and returns belong on \", _jsx(_components.code, {\n children: \"POST /api/v1/orders\"\n }), \" or \", _jsx(_components.code, {\n children: \"PATCH /api/v1/orders/{orderId}\"\n }), \". Do not send \", _jsx(_components.code, {\n children: \"paymentReceived\"\n }), \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"This endpoint does not replace ITR apply for:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Spreadsheet parsing\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Updating \", _jsx(_components.code, {\n children: \"paidPrice\"\n }), \" or \", _jsx(_components.code, {\n children: \"unitPrice\"\n })]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Automatically marking returned or cancelled lines and restoring return inventory\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"SKU fallback matching\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Rewriting order currency or totals\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Rebasing COGS currency\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Undo or redo\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their \", _jsx(_components.code, {\n children: \"source_event_key\"\n }), \" namespaces differ (\", _jsx(_components.code, {\n children: \"developer_api:…\"\n }), \" and \", _jsx(_components.code, {\n children: \"zalora_report:…\"\n }), \"), so Payment received would be counted twice.\"]\n })]\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":{"config":{},"pageMetadata":{"title":"Apply Settlements","description":"Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.\n- If the same `externalOrderId` exists in both groups, the line is ambiguous. Pass `accountId` to disambiguate it.\n- Ledger rows retain the platform of the matched order.\n\n### Zalora ITR parity\n\n- Send one `lines[]` entry per report row. `transactionType` can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\n- `settlementStatus=settled` is paid; `pending` is not.\n- Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula.\n- Item Price Credit updates Payment received without changing line `paidPrice` or `unitPrice`. Use `PATCH /api/v1/orders/{orderId}` when displayed prices must also change.\n\n### Important limitations\n\nThis is not an order-price API. Selling prices, COGS, and returns belong on `POST /api/v1/orders` or `PATCH /api/v1/orders/{orderId}`. Do not send `paymentReceived`.\n\nThis endpoint does not replace ITR apply for:\n\n- Spreadsheet parsing\n- Updating `paidPrice` or `unitPrice`\n- Automatically marking returned or cancelled lines and restoring return inventory\n- SKU fallback matching\n- Rewriting order currency or totals\n- Rebasing COGS currency\n- Undo or redo\n\nDo not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their `source_event_key` namespaces differ (`developer_api:…` and `zalora_report:…`), so Payment received would be counted twice.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/settlements","href":"/api-reference/settlements/apply-settlements","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"post_v1_settlements","summary":"Apply Settlements","description":"Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.\n- If the same `externalOrderId` exists in both groups, the line is ambiguous. Pass `accountId` to disambiguate it.\n- Ledger rows retain the platform of the matched order.\n\n### Zalora ITR parity\n\n- Send one `lines[]` entry per report row. `transactionType` can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\n- `settlementStatus=settled` is paid; `pending` is not.\n- Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula.\n- Item Price Credit updates Payment received without changing line `paidPrice` or `unitPrice`. Use `PATCH /api/v1/orders/{orderId}` when displayed prices must also change.\n\n### Important limitations\n\nThis is not an order-price API. Selling prices, COGS, and returns belong on `POST /api/v1/orders` or `PATCH /api/v1/orders/{orderId}`. Do not send `paymentReceived`.\n\nThis endpoint does not replace ITR apply for:\n\n- Spreadsheet parsing\n- Updating `paidPrice` or `unitPrice`\n- Automatically marking returned or cancelled lines and restoring return inventory\n- SKU fallback matching\n- Rewriting order currency or totals\n- Rebasing COGS currency\n- Undo or redo\n\nDo not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their `source_event_key` namespaces differ (`developer_api:…` and `zalora_report:…`), so Payment received would be counted twice.","tags":["settlements"],"security":["c3884249-2d63-4b6b-867f-7817aea1fbdf"],"requestBody":"42ccd778-408b-454b-ae58-20b92252103b","responses":{"200":"071237b5-7522-46f4-9d5e-cc729841ce11","400":"ed283aeb-bd77-499a-b022-c853f3f870f9","401":"464066fc-fb57-4226-a0c5-ba6a7bdd0a3e","403":"82add353-ce7b-44d6-a0f9-6bfb5dc5f7f5","429":"feb3b0df-9c44-4bdf-9f8e-765358420d0f","500":"67dcc7b4-86d7-4e69-ad54-5f6ac345e5ac"},"method":"post","type":"path","servers":["39970a03-ff72-4559-a542-364a55d2e30f","1047c457-3777-4869-be4f-4e086fafbbca"],"path":"/api/v1/settlements","baseUrlOptions":["https://omnicommerce.sg","http://localhost:3000"],"title":"Apply Settlements","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["marketplace","lines"],"properties":{"marketplace":{"type":"string","minLength":2,"maxLength":32,"description":"Settlement source marketplace slug (zalora, shopee, lazada, tiktok, shopify, agentic, …). Used to match orders and pick a payment-received formula. `zalora` matches both Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.","isRequired":true,"uniqueKey":"marketplace","typeLabel":"string"},"lines":{"type":"array","minItems":1,"maxItems":200,"description":"Settlement lines. Plural even for one target. Each line is one fee/credit/reversal, not a net paymentReceived.","items":{"type":"object","additionalProperties":false,"required":["externalOrderId","amount","currency","settlementStatus"],"properties":{"externalOrderId":{"type":"string","maxLength":160,"description":"Exact order identifier stored on the Omni order.","isRequired":true,"uniqueKey":"lines.items.[INDEX].externalOrderId","typeLabel":"string"},"amount":{"type":"number","description":"Non-zero signed amount in line currency. Positive is seller credit unless direction is set.","isRequired":true,"uniqueKey":"lines.items.[INDEX].amount","typeLabel":"number"},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"ISO-4217. Must match the order/line currency.","isRequired":true,"uniqueKey":"lines.items.[INDEX].currency","typeLabel":"string"},"settlementStatus":{"type":"string","enum":["estimated","pending","settled","reversed","voided"],"description":"Only settled rows project into the finance ledger. Other statuses remain evidence.","isRequired":true,"uniqueKey":"lines.items.[INDEX].settlementStatus","typeLabel":"enum\u003cstring>"},"externalOrderItemId":{"type":"string","maxLength":160,"description":"Required when the order has more than one line. Exact marketplace/item id.","uniqueKey":"lines.items.[INDEX].externalOrderItemId","typeLabel":"string"},"sourceEventKey":{"type":"string","maxLength":240,"description":"Optional idempotency key. Omni namespaces it under developer_api:{marketplace}:…","uniqueKey":"lines.items.[INDEX].sourceEventKey","typeLabel":"string"},"externalTransactionId":{"type":"string","maxLength":240,"description":"Marketplace transaction number used to derive sourceEventKey when omitted.","uniqueKey":"lines.items.[INDEX].externalTransactionId","typeLabel":"string"},"transactionType":{"type":"string","maxLength":160,"description":"Source label (e.g. Commission). Used to derive feeType when feeType is omitted.","uniqueKey":"lines.items.[INDEX].transactionType","typeLabel":"string"},"feeType":{"type":"string","maxLength":160,"description":"Stored ledger fee_type. Prefer this when you already have a sanitized key.","uniqueKey":"lines.items.[INDEX].feeType","typeLabel":"string"},"direction":{"type":"string","enum":["credit","debit"],"description":"Optional. When omitted, a negative amount is debit and a positive amount is credit.","uniqueKey":"lines.items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"occurredAt":{"type":"string","format":"date-time","uniqueKey":"lines.items.[INDEX].occurredAt","typeLabel":"string\u003cdate-time>"},"settlementReference":{"type":"string","maxLength":240,"uniqueKey":"lines.items.[INDEX].settlementReference","typeLabel":"string"},"payoutReference":{"type":"string","maxLength":240,"uniqueKey":"lines.items.[INDEX].payoutReference","typeLabel":"string"}},"uniqueKey":"lines.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"lines","typeLabel":"object[]"},"organizationId":{"type":"string","maxLength":120,"description":"Optional for OAuth clients bound to one organization; required when the caller can access multiple organizations.","uniqueKey":"organizationId","typeLabel":"string"},"accountId":{"type":"string","maxLength":160,"description":"Exact store/account id. Never a wildcard. Omit only when org + marketplace + externalOrderId already identifies one order.","uniqueKey":"accountId","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"zaloraCommission":{"title":"zaloraCommission","value":{"organizationId":"org_123","marketplace":"zalora","lines":[{"externalOrderId":"MY-213127917","externalOrderItemId":"11476389","transactionType":"Commission","amount":-12.5,"currency":"MYR","settlementStatus":"settled"}]}},"shopeePending":{"title":"shopeePending","value":{"marketplace":"shopee","accountId":"shop-1","lines":[{"externalOrderId":"SO-1001","externalOrderItemId":"ITEM-1","feeType":"commission","amount":-3.2,"currency":"SGD","settlementStatus":"pending","externalTransactionId":"ESC-99"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"071237b5-7522-46f4-9d5e-cc729841ce11":{"description":"Batch accepted. Top-level success is true only when every requested line succeeds; partial failures remain in data.results.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","uniqueKey":"ok","typeLabel":"boolean"},"apiVersion":{"type":"string","uniqueKey":"apiVersion","typeLabel":"string"},"operationId":{"type":"string","format":"uuid","uniqueKey":"operationId","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["completed","failed"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"success":{"type":"boolean","description":"True only when every requested line succeeds.","uniqueKey":"data.success","typeLabel":"boolean"},"marketplace":{"type":"string","uniqueKey":"data.marketplace","typeLabel":"string"},"sourceEventKeys":{"type":"array","items":{"type":"string","uniqueKey":"data.sourceEventKeys.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.sourceEventKeys","typeLabel":"string[]"},"succeededCount":{"type":"integer","uniqueKey":"data.succeededCount","typeLabel":"integer"},"failedCount":{"type":"integer","uniqueKey":"data.failedCount","typeLabel":"integer"},"evidenceUpserted":{"type":"integer","uniqueKey":"data.evidenceUpserted","typeLabel":"integer"},"ledgerProjected":{"type":"integer","uniqueKey":"data.ledgerProjected","typeLabel":"integer"},"ledgerUnprojected":{"type":"integer","uniqueKey":"data.ledgerUnprojected","typeLabel":"integer"},"paymentReceivedRecomputed":{"type":"boolean","uniqueKey":"data.paymentReceivedRecomputed","typeLabel":"boolean"},"paymentReceivedFormulaId":{"oneOf":[{"type":"string","description":"Set when a marketplace formula exists (zalora_payment_received_v1 today).","uniqueKey":"data.paymentReceivedFormulaId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Set when a marketplace formula exists (zalora_payment_received_v1 today).","uniqueKey":"data.paymentReceivedFormulaId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.paymentReceivedFormulaId","typeLabel":"string | null"},"orderIds":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"data.orderIds.items.[INDEX]","typeLabel":"string\u003cuuid>"},"uniqueKey":"data.orderIds","typeLabel":"string\u003cuuid>[]"},"results":{"type":"array","items":{"type":"object","properties":{"success":{"type":"boolean","uniqueKey":"data.results.items.[INDEX].success","typeLabel":"boolean"},"sourceEventKey":{"type":"string","uniqueKey":"data.results.items.[INDEX].sourceEventKey","typeLabel":"string"},"externalOrderId":{"type":"string","uniqueKey":"data.results.items.[INDEX].externalOrderId","typeLabel":"string"},"externalOrderItemId":{"oneOf":[{"type":"string","uniqueKey":"data.results.items.[INDEX].externalOrderItemId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.results.items.[INDEX].externalOrderItemId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.results.items.[INDEX].externalOrderItemId","typeLabel":"string | null"},"orderId":{"type":"string","format":"uuid","uniqueKey":"data.results.items.[INDEX].orderId","typeLabel":"string\u003cuuid>"},"orderItemId":{"type":"string","format":"uuid","uniqueKey":"data.results.items.[INDEX].orderItemId","typeLabel":"string\u003cuuid>"},"feeType":{"oneOf":[{"type":"string","uniqueKey":"data.results.items.[INDEX].feeType.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.results.items.[INDEX].feeType.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.results.items.[INDEX].feeType","typeLabel":"string | null"},"settlementStatus":{"type":"string","enum":["estimated","pending","settled","reversed","voided"],"uniqueKey":"data.results.items.[INDEX].settlementStatus","typeLabel":"enum\u003cstring>"},"projected":{"type":"boolean","uniqueKey":"data.results.items.[INDEX].projected","typeLabel":"boolean"},"error":{"type":"string","uniqueKey":"data.results.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"data.results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.results","typeLabel":"object[]"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"ok":true,"apiVersion":"\u003cstring>","operationId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"completed","data":{"success":true,"marketplace":"\u003cstring>","sourceEventKeys":["\u003cstring>"],"succeededCount":123,"failedCount":123,"evidenceUpserted":123,"ledgerProjected":123,"ledgerUnprojected":123,"paymentReceivedRecomputed":true,"paymentReceivedFormulaId":"\u003cstring>","orderIds":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"results":[{"success":true,"sourceEventKey":"\u003cstring>","externalOrderId":"\u003cstring>","externalOrderItemId":"\u003cstring>","orderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","orderItemId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","feeType":"\u003cstring>","settlementStatus":"estimated","projected":true,"error":"\u003cstring>"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"ed283aeb-bd77-499a-b022-c853f3f870f9":{"description":"Bad Request — invalid payload","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"464066fc-fb57-4226-a0c5-ba6a7bdd0a3e":{"description":"Unauthorized","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"82add353-ce7b-44d6-a0f9-6bfb5dc5f7f5":{"description":"Forbidden or missing `orders:write` scope","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"feb3b0df-9c44-4bdf-9f8e-765358420d0f":{"description":"Rate limit exceeded","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"67dcc7b4-86d7-4e69-ad54-5f6ac345e5ac":{"description":"Internal Server Error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"c3884249-2d63-4b6b-867f-7817aea1fbdf":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"39970a03-ff72-4559-a542-364a55d2e30f":{"url":"https://omnicommerce.sg","description":"Production"},"1047c457-3777-4869-be4f-4e086fafbbca":{"url":"http://localhost:3000","description":"Local development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"omnicommerce","siteName":"OmniCommerce","title":"Apply Settlements - OmniCommerce","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-23T07:13:58.267Z","originalFileLocation":"api-reference/settlements/apply-settlements.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=\"dark\"}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=\"Apply marketplace-agnostic settlement lines to existing orders. ### Authentication Requires orders:write. ### What this endpoint does - Stores every submitted line as marketplace financial evidence. - Projects settled rows into the order finance ledger. - Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey. - Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported. ### Order matching Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines. - accountId is an exact store match, never a wildcard. - marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts. - If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it. - Ledger rows retain the platform of the matched order. ### Zalora ITR parity - Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits. - settlementStatus=settled is paid; pending is not. - Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026amp;L when settled but are excluded from that formula. - Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change. ### Important limitations This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived. This endpoint does not replace ITR apply for: - Spreadsheet parsing - Updating paidPrice or unitPrice - Automatically marking returned or cancelled lines and restoring return inventory - SKU fallback matching - Rewriting order currency or totals - Rebasing COGS currency - Undo or redo Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OmniCommerce\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_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/omnicommerce/20sPCJ3GohzNbY_P/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Apply Settlements - OmniCommerce\">\u003cmeta data-mint-head property=\"og:description\" content=\"Apply marketplace-agnostic settlement lines to existing orders. ### Authentication Requires orders:write. ### What this endpoint does - Stores every submitted line as marketplace financial evidence. - Projects settled rows into the order finance ledger. - Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey. - Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported. ### Order matching Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines. - accountId is an exact store match, never a wildcard. - marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts. - If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it. - Ledger rows retain the platform of the matched order. ### Zalora ITR parity - Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits. - settlementStatus=settled is paid; pending is not. - Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026amp;L when settled but are excluded from that formula. - Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change. ### Important limitations This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived. This endpoint does not replace ITR apply for: - Spreadsheet parsing - Updating paidPrice or unitPrice - Automatically marking returned or cancelled lines and restoring return inventory - SKU fallback matching - Rewriting order currency or totals - Rebasing COGS currency - Undo or redo Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OmniCommerce Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://omnicommerce.mintlify.app/_mintlify/api/og/v2?division=Settlements\u0026amp;title=Apply+Settlements\u0026amp;description=Apply+marketplace-agnostic+settlement+lines+to+existing+orders.%0A%0A%23%23%23+Authentication%0A%0ARequires+%60orders%3Awrite%60.%0A%0A%23%23%23+What+this+endpoint+does%0A%0A-+Stores+every+submi\u0026amp;theme=1a59a306fe3109e355163fa6\u0026amp;signature=92c605cda01e8b9c0d7932a64b38822bcf380bcb039b6cdc5953b14b4a39dfa2\">\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=\"Apply Settlements - OmniCommerce\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Apply marketplace-agnostic settlement lines to existing orders. ### Authentication Requires orders:write. ### What this endpoint does - Stores every submitted line as marketplace financial evidence. - Projects settled rows into the order finance ledger. - Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey. - Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported. ### Order matching Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines. - accountId is an exact store match, never a wildcard. - marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts. - If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it. - Ledger rows retain the platform of the matched order. ### Zalora ITR parity - Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits. - settlementStatus=settled is paid; pending is not. - Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026amp;L when settled but are excluded from that formula. - Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change. ### Important limitations This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived. This endpoint does not replace ITR apply for: - Spreadsheet parsing - Updating paidPrice or unitPrice - Automatically marking returned or cancelled lines and restoring return inventory - SKU fallback matching - Rewriting order currency or totals - Rebasing COGS currency - Undo or redo Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://omnicommerce.mintlify.app/_mintlify/api/og/v2?division=Settlements\u0026amp;title=Apply+Settlements\u0026amp;description=Apply+marketplace-agnostic+settlement+lines+to+existing+orders.%0A%0A%23%23%23+Authentication%0A%0ARequires+%60orders%3Awrite%60.%0A%0A%23%23%23+What+this+endpoint+does%0A%0A-+Stores+every+submi\u0026amp;theme=1a59a306fe3109e355163fa6\u0026amp;signature=92c605cda01e8b9c0d7932a64b38822bcf380bcb039b6cdc5953b14b4a39dfa2\">\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/omnicommerce/20sPCJ3GohzNbY_P/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OmniCommerce\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F766E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/settlements/apply-settlements.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.omnicommerce.sg/#organization\",\"name\":\"OmniCommerce\",\"url\":\"https://docs.omnicommerce.sg\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/omnicommerce/B2cjFTJ7Zt2npdeV/logo/light.svg?fit=max\u0026auto=format\u0026n=B2cjFTJ7Zt2npdeV\u0026q=85\u0026s=e012509da06089923275e6b0415addf9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.omnicommerce.sg#website\",\"name\":\"OmniCommerce\",\"url\":\"https://docs.omnicommerce.sg\",\"publisher\":{\"@id\":\"https://docs.omnicommerce.sg/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements#webpage\",\"url\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements\",\"name\":\"Apply Settlements\",\"description\":\"Apply marketplace-agnostic settlement lines to existing orders. ### Authentication Requires orders:write. ### What this endpoint does - Stores every submitted line as marketplace financial evidence. - Projects settled rows into the order finance ledger. - Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey. - Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported. ### Order matching Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines. - accountId is an exact store match, never a wildcard. - marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts. - If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it. - Ledger rows retain the platform of the matched order. ### Zalora ITR parity - Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits. - settlementStatus=settled is paid; pending is not. - Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula. - Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change. ### Important limitations This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived. This endpoint does not replace ITR apply for: - Spreadsheet parsing - Updating paidPrice or unitPrice - Automatically marking returned or cancelled lines and restoring return inventory - SKU fallback matching - Rewriting order currency or totals - Rebasing COGS currency - Undo or redo Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.\",\"dateModified\":\"2026-10-23T07:13:58.267Z\",\"isPartOf\":{\"@id\":\"https://docs.omnicommerce.sg#website\"},\"breadcrumb\":{\"@id\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.omnicommerce.sg/api-reference/agents/invoke-the-omni-agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Settlements\",\"item\":\"https://docs.omnicommerce.sg/api-reference/settlements/list-settlements\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Apply Settlements\",\"item\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements#apireference\",\"headline\":\"Apply Settlements\",\"name\":\"Apply Settlements\",\"description\":\"Apply marketplace-agnostic settlement lines to existing orders. ### Authentication Requires orders:write. ### What this endpoint does - Stores every submitted line as marketplace financial evidence. - Projects settled rows into the order finance ledger. - Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same sourceEventKey. - Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported. ### Order matching Orders are matched by organization, marketplace platform, and exact externalOrderId. Include externalOrderItemId when an order has multiple lines. - accountId is an exact store match, never a wildcard. - marketplace=zalora can match Zalora Seller Center orders (platform=zalora) and reconciliation-era agentic carts. - If the same externalOrderId exists in both groups, the line is ambiguous. Pass accountId to disambiguate it. - Ledger rows retain the platform of the matched order. ### Zalora ITR parity - Send one lines[] entry per report row. transactionType can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits. - settlementStatus=settled is paid; pending is not. - Payment received is calculated from Item Price Credit − ZAP − Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P\u0026L when settled but are excluded from that formula. - Item Price Credit updates Payment received without changing line paidPrice or unitPrice. Use PATCH /api/v1/orders/{orderId} when displayed prices must also change. ### Important limitations This is not an order-price API. Selling prices, COGS, and returns belong on POST /api/v1/orders or PATCH /api/v1/orders/{orderId}. Do not send paymentReceived. This endpoint does not replace ITR apply for: - Spreadsheet parsing - Updating paidPrice or unitPrice - Automatically marking returned or cancelled lines and restoring return inventory - SKU fallback matching - Rewriting order currency or totals - Rebasing COGS currency - Undo or redo Do not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their source_event_key namespaces differ (developer_api:… and zalora_report:…), so Payment received would be counted twice.\",\"url\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements\",\"mainEntityOfPage\":{\"@id\":\"https://docs.omnicommerce.sg/api-reference/settlements/apply-settlements#webpage\"},\"dateModified\":\"2026-10-23T07:13:58.267Z\",\"publisher\":{\"@id\":\"https://docs.omnicommerce.sg/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.omnicommerce.sg#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OmniCommerce\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OmniCommerce","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference"}]},{"group":"Endpoints","pages":[{"group":"Agents","pages":[{"title":"Invoke the Omni agent","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/agents/general/invoke","href":"/api-reference/agents/invoke-the-omni-agent"},{"title":"Start an Omni agent run","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/agents/general/runs","href":"/api-reference/agents/start-an-omni-agent-run"},{"title":"Get an Omni agent run","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/agents/general/runs/{runId}","href":"/api-reference/agents/get-an-omni-agent-run"}]},{"group":"Analytics","pages":[{"title":"Get Ads Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/ads","href":"/api-reference/analytics/get-ads-analytics"},{"title":"Get AI Traffic Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/ai-traffic","href":"/api-reference/analytics/get-ai-traffic-analytics"},{"title":"Get Video and LIVE Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/content","href":"/api-reference/analytics/get-video-and-live-analytics"},{"title":"Get Order Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/orders","href":"/api-reference/analytics/get-order-analytics"},{"title":"Get Growth Overview","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/overview","href":"/api-reference/analytics/get-growth-overview"},{"title":"Get Pricing Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/pricing","href":"/api-reference/analytics/get-pricing-analytics"},{"title":"Get Product Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/products","href":"/api-reference/analytics/get-product-analytics"},{"title":"Get Profit Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/profit","href":"/api-reference/analytics/get-profit-analytics"},{"title":"Get Business Report","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/reports","href":"/api-reference/analytics/get-business-report"},{"title":"Get Store Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/stores","href":"/api-reference/analytics/get-store-analytics"},{"title":"Get Traffic Analytics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/analytics/traffic","href":"/api-reference/analytics/get-traffic-analytics"}]},{"group":"AOPs","pages":[{"title":"Get AOP configuration","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/aop/{aopId}/config","href":"/api-reference/aops/get-aop-configuration"},{"title":"Overwrite AOP configuration","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/aop/{aopId}/config","href":"/api-reference/aops/overwrite-aop-configuration"},{"title":"Execute an AOP","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/aop/{aopId}/execute","href":"/api-reference/aops/execute-an-aop"},{"title":"Create AOP","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/aop/create","href":"/api-reference/aops/create-aop"},{"title":"Retry a failed AOP execution","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/aop/retry","href":"/api-reference/aops/retry-a-failed-aop-execution"},{"title":"Get Thread Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/threads/{thread_id}/status","href":"/api-reference/aops/get-thread-status"}]},{"group":"Developer Platform","pages":[{"title":"Import BrandsGateway Products","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/brandsgateway/import","href":"/api-reference/developer-platform/import-brandsgateway-products"},{"title":"Evaluate SKU Readiness","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/evaluate","href":"/api-reference/developer-platform/evaluate-sku-readiness"},{"title":"Generate Ghost Mannequin Image","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/images/ghost-mannequin","href":"/api-reference/developer-platform/generate-ghost-mannequin-image"},{"title":"Get Developer Job Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jobs/{jobId}","href":"/api-reference/developer-platform/get-developer-job-status"},{"title":"Cancel Developer Job","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/jobs/{jobId}/cancel","href":"/api-reference/developer-platform/cancel-developer-job"},{"title":"Recommend Marketplace Product Categories","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/manage-product-category/recommend","href":"/api-reference/developer-platform/recommend-marketplace-product-categories"},{"title":"List Connected Marketplaces","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marketplaces/connected","href":"/api-reference/developer-platform/list-connected-marketplaces"},{"title":"Run AI Shelf Share Monitor","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/monitor","href":"/api-reference/developer-platform/run-ai-shelf-share-monitor"},{"title":"Sync Product Commercial Fields","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/sync","href":"/api-reference/developer-platform/sync-product-commercial-fields"},{"title":"List Webhook Events","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/webhook-events","href":"/api-reference/developer-platform/list-webhook-events"},{"title":"List Developer Webhooks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/webhooks","href":"/api-reference/developer-platform/list-developer-webhooks"},{"title":"Create Developer Webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/webhooks","href":"/api-reference/developer-platform/create-developer-webhook"},{"title":"Get Selected Zalora Import Status","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/zalora/import","href":"/api-reference/developer-platform/get-selected-zalora-import-status"},{"title":"Import Selected Zalora Products","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/zalora/import","href":"/api-reference/developer-platform/import-selected-zalora-products"}]},{"group":"Campaigns","pages":[{"title":"List Campaigns","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns","href":"/api-reference/campaigns/list-campaigns"},{"title":"Create Campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns","href":"/api-reference/campaigns/create-campaign"},{"title":"Get Campaign","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{campaignId}","href":"/api-reference/campaigns/get-campaign"},{"title":"Update Campaign","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/campaigns/{campaignId}","href":"/api-reference/campaigns/update-campaign"},{"title":"Act on Campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/{campaignId}/actions","href":"/api-reference/campaigns/act-on-campaign"},{"title":"Archive Campaigns","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/archive","href":"/api-reference/campaigns/archive-campaigns"},{"title":"Delete Campaigns","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/delete","href":"/api-reference/campaigns/delete-campaigns"},{"title":"Get Campaign Options","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/options","href":"/api-reference/campaigns/get-campaign-options"}]},{"group":"Products","pages":[{"title":"Export Catalog Items","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/catalog/items","href":"/api-reference/products/export-catalog-items"},{"title":"List Products","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/products","href":"/api-reference/products/list-products"},{"title":"Create Product","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products","href":"/api-reference/products/create-product"},{"title":"Get Product","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/products/{productId}","href":"/api-reference/products/get-product"},{"title":"Delete Product","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/products/{productId}","href":"/api-reference/products/delete-product"},{"title":"Update Product","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/products/{productId}","href":"/api-reference/products/update-product"},{"title":"Update Product Cost","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/products/{productId}/cost","href":"/api-reference/products/update-product-cost"},{"title":"Delist Product","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/{productId}/delist","href":"/api-reference/products/delist-product"},{"title":"Upload Product Image","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/{productId}/images","href":"/api-reference/products/upload-product-image"},{"title":"Update Product Inventory","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/products/{productId}/inventory","href":"/api-reference/products/update-product-inventory"},{"title":"Get Product Listings","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/products/{productId}/listings","href":"/api-reference/products/get-product-listings"},{"title":"Update Product Price","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/products/{productId}/price","href":"/api-reference/products/update-product-price"},{"title":"Publish Product","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/{productId}/publish","href":"/api-reference/products/publish-product"},{"title":"Bulk Import Products from JSON or CSV","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/bulk-import","href":"/api-reference/products/bulk-import-products-from-json-or-csv"},{"title":"Compare Product Market Prices","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/compare-prices","href":"/api-reference/products/compare-product-market-prices"},{"title":"Get Product Price Comparison","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/products/compare-prices/jobs/{jobId}","href":"/api-reference/products/get-product-price-comparison"},{"title":"Batch Update Product Cost","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/cost","href":"/api-reference/products/batch-update-product-cost"},{"title":"Queue Product Enrichment","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/products/enrich","href":"/api-reference/products/queue-product-enrichment"}]},{"group":"Agentic Checkout","pages":[{"title":"Create Agentic Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/checkout-sessions","href":"/api-reference/agentic-checkout/create-agentic-checkout-session"},{"title":"Get Agentic Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/checkout-sessions/{sessionId}","href":"/api-reference/agentic-checkout/get-agentic-checkout-session"},{"title":"Replace Agentic Checkout Session Fields","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/checkout-sessions/{sessionId}","href":"/api-reference/agentic-checkout/replace-agentic-checkout-session-fields"},{"title":"Update Agentic Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/checkout-sessions/{sessionId}","href":"/api-reference/agentic-checkout/update-agentic-checkout-session"},{"title":"Cancel Agentic Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/checkout-sessions/{sessionId}/cancel","href":"/api-reference/agentic-checkout/cancel-agentic-checkout-session"},{"title":"Complete Agentic Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/checkout-sessions/{sessionId}/complete","href":"/api-reference/agentic-checkout/complete-agentic-checkout-session"}]},{"group":"Public Agent","pages":[{"title":"Compare Public Products","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/compare","href":"/api-reference/public-agent/compare-public-products"},{"title":"List Public Merchants","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/directory","href":"/api-reference/public-agent/list-public-merchants"},{"title":"Get Merchant LLM Feed","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/feed/{domain}/llms.txt","href":"/api-reference/public-agent/get-merchant-llm-feed"},{"title":"Get Public Merchant Manifest","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/merchants/{merchantId}/manifest","href":"/api-reference/public-agent/get-public-merchant-manifest"},{"title":"List Public Merchant Products","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/merchants/{merchantId}/products","href":"/api-reference/public-agent/list-public-merchant-products"},{"title":"Search Within Public Merchant Catalog","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/merchants/{merchantId}/search","href":"/api-reference/public-agent/search-within-public-merchant-catalog"},{"title":"Search Public Merchant Products","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/search","href":"/api-reference/public-agent/search-public-merchant-products"},{"title":"Search Public Merchant Products","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/search","href":"/api-reference/public-agent/search-public-merchant-products-1"}]},{"group":"Knowledge Base","pages":[{"title":"Upload Document","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/documents","href":"/api-reference/documents/upload-document"},{"title":"Get Document","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/documents/{documentId}","href":"/api-reference/documents/get-document"}]},{"group":"Looks","pages":[{"title":"List Looks","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/looks","href":"/api-reference/looks/list-looks"},{"title":"Create Look","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/looks","href":"/api-reference/looks/create-look"},{"title":"Get Look","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/looks/{lookId}","href":"/api-reference/looks/get-look"}]},{"group":"OAuth","pages":[{"title":"Revoke Access Token","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/oauth/revoke","href":"/api-reference/oauth/revoke-access-token"},{"title":"Get Access Token","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/oauth/token","href":"/api-reference/oauth/get-access-token"}]},{"group":"Orders","pages":[{"title":"List Orders","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders","href":"/api-reference/orders/list-orders"},{"title":"Create Order","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/orders","href":"/api-reference/orders/create-order"},{"title":"Get Order","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders/{orderId}","href":"/api-reference/orders/get-order"},{"title":"Update Order","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/orders/{orderId}","href":"/api-reference/orders/update-order"},{"title":"Get Order Action Options","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders/{orderId}/action-options","href":"/api-reference/orders/get-order-action-options"},{"title":"List Order Actions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/orders/{orderId}/actions","href":"/api-reference/orders/list-order-actions"},{"title":"Queue Order Action","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/orders/{orderId}/actions","href":"/api-reference/orders/queue-order-action"}]},{"group":"Organizations","pages":[{"title":"Create Organization","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/organizations","href":"/api-reference/organizations/create-organization"}]},{"group":"Price Books","pages":[{"title":"List Price Book Rules","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/price-books","href":"/api-reference/price-books/list-price-book-rules"},{"title":"Create Price Book Rule","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/price-books","href":"/api-reference/price-books/create-price-book-rule"},{"title":"Get Price Book Rule","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/price-books/{ruleId}","href":"/api-reference/price-books/get-price-book-rule"},{"title":"Delete Price Book Rule","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/price-books/{ruleId}","href":"/api-reference/price-books/delete-price-book-rule"},{"title":"Update Price Book Rule","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/price-books/{ruleId}","href":"/api-reference/price-books/update-price-book-rule"},{"title":"Preview Channel List Price","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/price-books/preview","href":"/api-reference/price-books/preview-channel-list-price"}]},{"group":"Promotions","pages":[{"title":"List Promotions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/promotions","href":"/api-reference/promotions/list-promotions"},{"title":"Create Promotion","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/promotions","href":"/api-reference/promotions/create-promotion"},{"title":"Get Promotion","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/promotions/{promotionId}","href":"/api-reference/promotions/get-promotion"},{"title":"Delete Promotion","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/promotions/{promotionId}","href":"/api-reference/promotions/delete-promotion"},{"title":"Update Promotion","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/promotions/{promotionId}","href":"/api-reference/promotions/update-promotion"},{"title":"List Promotion Assignments","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/promotions/{promotionId}/products","href":"/api-reference/promotions/list-promotion-assignments"},{"title":"Assign Products to Promotion","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/promotions/{promotionId}/products","href":"/api-reference/promotions/assign-products-to-promotion"},{"title":"Unassign Products from Promotion","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/promotions/{promotionId}/products","href":"/api-reference/promotions/unassign-products-from-promotion"},{"title":"Retry Marketplace Delivery","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/promotions/{promotionId}/retry","href":"/api-reference/promotions/retry-marketplace-delivery"}]},{"group":"Returns","pages":[{"title":"List Returns","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/returns","href":"/api-reference/returns/list-returns"},{"title":"Get Return","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/returns/{returnId}","href":"/api-reference/returns/get-return"}]},{"group":"Reviews","pages":[{"title":"List Reviews","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reviews","href":"/api-reference/reviews/list-reviews"},{"title":"Get Review","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reviews/{reviewId}","href":"/api-reference/reviews/get-review"},{"title":"Reply to Review","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/reviews/{reviewId}/reply","href":"/api-reference/reviews/reply-to-review"}]},{"group":"Settlements","pages":[{"title":"List Settlements","description":"List the latest normalized order-settlement snapshots created by finance ingestion. Requires `settlements:read`. Use updatedSince and cursor for recovery; money remains partitioned by currency.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/settlements","href":"/api-reference/settlements/list-settlements"},{"title":"Apply Settlements","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/settlements","href":"/api-reference/settlements/apply-settlements"},{"title":"Get Settlement","description":"Get the latest normalized settlement snapshot by stable settlement ID. Requires `settlements:read`.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/settlements/{settlementId}","href":"/api-reference/settlements/get-settlement"}]},{"group":"UCP","pages":[{"title":"Create UCP Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /ucp/v1/checkout-sessions","href":"/api-reference/ucp/create-ucp-checkout-session"},{"title":"Get UCP Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json get /ucp/v1/checkout-sessions/{sessionId}","href":"/api-reference/ucp/get-ucp-checkout-session"},{"title":"Replace UCP Checkout Session Fields","deprecated":null,"version":null,"openapi":"/openapi.json put /ucp/v1/checkout-sessions/{sessionId}","href":"/api-reference/ucp/replace-ucp-checkout-session-fields"},{"title":"Update UCP Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json patch /ucp/v1/checkout-sessions/{sessionId}","href":"/api-reference/ucp/update-ucp-checkout-session"},{"title":"Cancel UCP Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /ucp/v1/checkout-sessions/{sessionId}/cancel","href":"/api-reference/ucp/cancel-ucp-checkout-session"},{"title":"Complete UCP Checkout Session","deprecated":null,"version":null,"openapi":"/openapi.json post /ucp/v1/checkout-sessions/{sessionId}/complete","href":"/api-reference/ucp/complete-ucp-checkout-session"},{"title":"Get UCP Order","deprecated":null,"version":null,"openapi":"/openapi.json get /ucp/v1/orders/{orderId}","href":"/api-reference/ucp/get-ucp-order"}]},{"group":"product webhooks","pages":[]},{"group":"enrichment webhooks","pages":[]},{"group":"look webhooks","pages":[]},{"group":"review webhooks","pages":[]},{"group":"order webhooks","pages":[]},{"group":"settlement webhooks","pages":[]},{"group":"return webhooks","pages":[]},{"group":"account statement webhooks","pages":[]}]},{"group":"Webhooks","pages":[{"group":"Product","pages":[{"title":"Product created","openapi":"openapi.json webhook productCreated","href":"/webhooks/reference/product-created"},{"title":"Product updated","openapi":"openapi.json webhook productUpdated","href":"/webhooks/reference/product-updated"},{"title":"Product deleted","openapi":"openapi.json webhook productDeleted","href":"/webhooks/reference/product-deleted"},{"title":"Product delisted","openapi":"openapi.json webhook productDelisted","href":"/webhooks/reference/product-delisted"},{"title":"Product price changed","openapi":"openapi.json webhook productPriceChanged","href":"/webhooks/reference/product-price-changed"},{"title":"Product inventory changed","openapi":"openapi.json webhook productInventoryChanged","href":"/webhooks/reference/product-inventory-changed"}]},{"group":"Orders","pages":[{"title":"Order created","openapi":"openapi.json webhook orderCreated","href":"/webhooks/reference/order-created"},{"title":"Order updated","openapi":"openapi.json webhook orderUpdated","href":"/webhooks/reference/order-updated"},{"title":"Order status changed","openapi":"openapi.json webhook orderStatusChanged","href":"/webhooks/reference/order-status-changed"},{"title":"Order deleted","openapi":"openapi.json webhook orderDeleted","href":"/webhooks/reference/order-deleted"}]},{"group":"Looks","pages":[{"title":"Look created","openapi":"openapi.json webhook lookCreated","href":"/webhooks/reference/look-created"},{"title":"Look deleted","openapi":"openapi.json webhook lookDeleted","href":"/webhooks/reference/look-deleted"}]},{"group":"Review","pages":[{"title":"Review created","openapi":"openapi.json webhook reviewCreated","href":"/webhooks/reference/review-created"},{"title":"Review updated","openapi":"openapi.json webhook reviewUpdated","href":"/webhooks/reference/review-updated"},{"title":"Review status changed","openapi":"openapi.json webhook reviewStatusChanged","href":"/webhooks/reference/review-status-changed"}]},{"group":"Settlements","pages":[{"title":"Settlement created","openapi":"openapi.json webhook settlementCreated","href":"/webhooks/reference/settlement-created"},{"title":"Settlement updated","openapi":"openapi.json webhook settlementUpdated","href":"/webhooks/reference/settlement-updated"},{"title":"Settlement status changed","openapi":"openapi.json webhook settlementStatusChanged","href":"/webhooks/reference/settlement-status-changed"}]},{"group":"Returns","pages":[{"title":"Return created","openapi":"openapi.json webhook returnCreated","href":"/webhooks/reference/return-created"},{"title":"Return updated","openapi":"openapi.json webhook returnUpdated","href":"/webhooks/reference/return-updated"},{"title":"Return status changed","openapi":"openapi.json webhook returnStatusChanged","href":"/webhooks/reference/return-status-changed"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"title":"Apply Settlements - OmniCommerce","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}