Create a new escrow payment session with multi-merchant fund allocations. The funds paid by the customer remain held in escrow by StarPay until you explicitly release each merchant allocation or cancel the escrow.Use this endpoint for marketplace transactions, multi-vendor checkouts, or service platforms where funds should be held securely until order fulfillment is confirmed.
Total payment amount to be collected from the customer. The sum of all merchant allocations should match this total amount.Type: number — RequiredExample:
Specifies whether escrow allocations are automatically released once the customer completes payment.When set to true, StarPay automatically releases the allocated funds to the destination merchants immediately after the initial customer transaction is paid. When set to false, funds are held securely in escrow until you explicitly release each allocation or cancel the order.Type: boolean — Optional (Default: false)Example:
Expiration timestamp in ISO 8601 format. After this timestamp, the payment link will no longer accept payments.Type: string (date-time) — OptionalExample:
Redirect Customer: Direct the customer to the payment_url returned in the response to complete payment.
Handle Webhook: Listen for the incoming payment callback to verify that the initial payment is completed.
Fulfill & Release:
If autoRelease is false (default): Funds remain held in escrow. Once fulfillment is confirmed, call Release Escrow Allocation with the respective merchantId and escrowId.
If autoRelease is true: Allocations release automatically to the destination merchants immediately after the initial transaction is paid.
Cancel if Needed: If the buyer cancels or an issue occurs before fulfillment or release, call Cancel Escrow to trigger a refund.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"starpay-dev","description":"StarPay API Developer Documentation and Sandbox testing environment.","colors":{"primary":"#166E3F","light":"#26BD6C","dark":"#166E3F"},"logo":{"light":"https://mintcdn.com/starpay-fa6403ea/aEePOSpb_e8BycOH/logo/light.svg?fit=max\u0026auto=format\u0026n=aEePOSpb_e8BycOH\u0026q=85\u0026s=51f17451ae350be2e3f7e047036f56d7","dark":"https://mintcdn.com/starpay-fa6403ea/aEePOSpb_e8BycOH/logo/dark.svg?fit=max\u0026auto=format\u0026n=aEePOSpb_e8BycOH\u0026q=85\u0026s=3428717b1289326096d0128ec31d1586","href":"/"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/favicon.ico","api":{"mdx":{}},"seo":{"metatags":{"canonical":"https://www.mintlify.com/docs","google-site-verification":"YRuJgIxsRnMkiRTYTo_tEsJSFyIE3AraEiukTbeV4Ag","og:locale":"en_US","twitter:site":"@mintlify"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-RCYWHL7EQ7"},"posthog":{"apiKey":"phc_eNuN6Ojnk9O7uWfC17z12AK85fNR0BY6IiGVy0Gfwzw"}},"contextual":{"options":["copy","chatgpt","claude","add-mcp","cursor","vscode"],"display":"header"},"thumbnails":{"background":"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/images/thumbnail/background.svg"},"interaction":{"drilldown":false},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"starpay-fa6403ea","hasAudioNarration":false,"actualSubdomain":"starpay-fa6403ea","customDomains":["developer.starpayethiopia.com"],"gitSource":{"type":"github","owner":"yeabsira-gashaw","repo":"starpay-api-collection-doc","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af37b11aea70e7e4341ea65","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"en","tag":"API reference","count":8},{"language":"en","tag":"Escrow Endpoints","count":4},{"language":"en","tag":"Documentation","count":4},{"language":"en","tag":"Payment Endpoints","count":2},{"language":"en","tag":"Api Reference","count":2},{"language":"en","tag":"Get started","count":2},{"language":"en","tag":"signature","count":1},{"language":"en","tag":"API test Number","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"api/endpoint/escrow-order","slug":"/api/endpoint/escrow-order","pageMetadata":{"title":"Create Escrow Order","openapi":"POST /trdp/escrow/order","description":"Initiate a new escrow payment order with customizable multi-merchant fund allocations.","href":"/api/endpoint/escrow-order"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`create-an-escrow-order`,children:`Create an Escrow Order`}),`\n`,_jsx(_components.p,{children:`Create a new escrow payment session with multi-merchant fund allocations. The funds paid by the customer remain held in escrow by StarPay until you explicitly release each merchant allocation or cancel the escrow.`}),`\n`,_jsx(_components.p,{children:`Use this endpoint for marketplace transactions, multi-vendor checkouts, or service platforms where funds should be held securely until order fulfillment is confirmed.`}),`\n`,_jsx(Heading,{level:`2`,id:`endpoint`,children:`Endpoint`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /trdp/escrow/order`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(_components.p,{children:`Include your API secret in the request header.`}),`\n`,_jsx(_components.p,{children:`Header:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`x-api-secret`}),` (string) — Required. Your StarPay API secret key. Generate this key from the Merchant Portal under `,_jsx(_components.strong,{children:`API Keys`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`x-api-secret`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(Heading,{level:`3`,id:`orderid`,children:`orderId`}),`\n`,_jsx(_components.p,{children:`Unique merchant order identifier for tracking the order across systems.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` — Required`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ESCROW-20260729-001\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`amount`,children:`amount`}),`\n`,_jsxs(_components.p,{children:[`Total payment amount to be collected from the customer. The sum of all merchant `,_jsx(_components.code,{children:`allocations`}),` should match this total amount.`]}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`number`}),` — Required`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`currency`,children:`currency`}),`\n`,_jsx(_components.p,{children:`The currency code used for the transaction.`}),`\n`,_jsxs(_components.p,{children:[`Currently supported: `,_jsx(_components.code,{children:`ETB`})]}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` — Required`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ETB\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`customername`,children:`customerName`}),`\n`,_jsx(_components.p,{children:`The full name of the customer making the payment.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` — Required`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"John Doe\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`customerphonenumber`,children:`customerPhoneNumber`}),`\n`,_jsx(_components.p,{children:`The customer’s phone number. Used for payment initiation (USSD push, OTP) and verification.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` — Required`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+251912345678\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`items`,children:`items`}),`\n`,_jsx(_components.p,{children:`Array of item objects representing the products or services purchased in this escrow order.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`array`}),` — Required`]}),`\n`,_jsx(Heading,{level:`4`,id:`item-fields`,children:`Item Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`productId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Unique identifier for the product or service.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`itemName`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Display name of the product.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quantity`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`integer`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Number of units purchased.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unitPrice`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Price per single unit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageUrl`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Direct URL to the product image.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`stockUnit`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Unit of measurement (e.g., `,_jsx(_components.code,{children:`pcs`}),`, `,_jsx(_components.code,{children:`kg`}),`, `,_jsx(_components.code,{children:`box`}),`).`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PROD-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Apple MacBook Pro M3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"imageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/images/macbook.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unitPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stockUnit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pcs\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PROD-002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"itemName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USB-C Adapter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"imageUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/images/adapter.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"unitPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stockUnit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pcs\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`allocations`,children:`allocations`}),`\n`,_jsx(_components.p,{children:`Array of payout allocations defining how the escrow funds will be distributed among multiple merchants once fulfilled.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`array`}),` — Required`]}),`\n`,_jsx(Heading,{level:`4`,id:`allocation-fields`,children:`Allocation Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`merchantId`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The destination merchant ID receiving this portion of funds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`amount`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The amount allocated to this merchant.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[`Additional metadata such as `,_jsx(_components.code,{children:`merchantName`}),` or payout `,_jsx(_components.code,{children:`purpose`}),`.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01346141\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Merchant A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product Payment\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01344351\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchantName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Merchant B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Shipping Fee\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`autorelease`,children:`autoRelease`}),`\n`,_jsx(_components.p,{children:`Specifies whether escrow allocations are automatically released once the customer completes payment.`}),`\n`,_jsxs(_components.p,{children:[`When set to `,_jsx(_components.code,{children:`true`}),`, StarPay automatically releases the allocated funds to the destination merchants immediately after the initial customer transaction is paid. When set to `,_jsx(_components.code,{children:`false`}),`, funds are held securely in escrow until you explicitly release each allocation or cancel the order.`]}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`boolean`}),` — Optional (Default: `,_jsx(_components.code,{children:`false`}),`)`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`callbackurl`,children:`callbackURL`}),`\n`,_jsx(_components.p,{children:`Server-to-server notification URL that StarPay calls when payment status changes.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` (URI) — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://merchant.example.com/api/payment/callback\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`redirecturl`,children:`redirectUrl`}),`\n`,_jsx(_components.p,{children:`The URL where customers are redirected after completing payment on the checkout page.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` (URI) — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://merchant.example.com/payment/success\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`customeremail`,children:`customerEmail`}),`\n`,_jsx(_components.p,{children:`Customer email address for notifications and receipts.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` (email) — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"john.doe@example.com\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`description`,children:`description`}),`\n`,_jsx(_components.p,{children:`A short description of the escrow order.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Escrow payment for marketplace order\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`expiredat`,children:`expiredAt`}),`\n`,_jsx(_components.p,{children:`Expiration timestamp in ISO 8601 format. After this timestamp, the payment link will no longer accept payments.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`string`}),` (date-time) — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-31T23:59:59Z\"`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`metadata`,children:`metadata`}),`\n`,_jsx(_components.p,{children:`Custom key-value pairs for attaching internal application context to the transaction.`}),`\n`,_jsxs(_components.p,{children:[`Type: `,_jsx(_components.code,{children:`object`}),` — Optional`]}),`\n`,_jsx(_components.p,{children:`Example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"escrow\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"platform\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Marketplace\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CUS-1001\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`58`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`58`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/escrow/order`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-secret: SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderId\": \"ESCROW-20260729-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redirectUrl\": \"https://merchant.example.com/payment/success\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 10000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"ETB\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerName\": \"John Doe\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerPhoneNumber\": \"+251912345678\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerEmail\": \"john.doe@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"callbackURL\": \"https://merchant.example.com/api/payment/callback\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Escrow payment for marketplace order\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"expiredAt\": \"2026-12-31T23:59:59Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"autoRelease\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"productId\": \"PROD-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"itemName\": \"Apple MacBook Pro M3\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"imageUrl\": \"https://example.com/images/macbook.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unitPrice\": 8000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stockUnit\": \"pcs\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"productId\": \"PROD-002\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"itemName\": \"USB-C Adapter\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"imageUrl\": \"https://example.com/images/adapter.jpg\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 2,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unitPrice\": 1000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stockUnit\": \"pcs\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderType\": \"escrow\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"platform\": \"Marketplace\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerId\": \"CUS-1001\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"allocations\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantId\": \"01346141\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 7000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantName\": \"Merchant A\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purpose\": \"Product Payment\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantId\": \"01344351\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": 3000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"merchantName\": \"Merchant B\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purpose\": \"Shipping Fee\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(Heading,{level:`3`,id:`success-response-201-created`,children:[`Success Response (`,_jsx(_components.code,{children:`201 Created`}),`)`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`33`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`33`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-07-29T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Escrow order created successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"escrow_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"59667344\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ESCROW-20260729-001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ETB\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auto_release\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payment_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.starpayethiopia.com/checkout/59667344\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"allocations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01346141\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Merchant A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Product Payment\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"01344351\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"merchant_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Merchant B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Shipping Fee\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expired_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-31T23:59:59Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`escrow-lifecycle-\u0026-next-steps`,children:`Escrow Lifecycle \u0026 Next Steps`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Redirect Customer`}),`: Direct the customer to the `,_jsx(_components.code,{children:`payment_url`}),` returned in the response to complete payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Handle Webhook`}),`: Listen for the incoming payment callback to verify that the initial payment is completed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Fulfill \u0026 Release`}),`:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`autoRelease`}),` is `,_jsx(_components.code,{children:`false`}),` (default): Funds remain held in escrow. Once fulfillment is confirmed, call `,_jsx(_components.a,{href:`/api/endpoint/escrow-release`,children:`Release Escrow Allocation`}),` with the respective `,_jsx(_components.code,{children:`merchantId`}),` and `,_jsx(_components.code,{children:`escrowId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`autoRelease`}),` is `,_jsx(_components.code,{children:`true`}),`: Allocations release automatically to the destination merchants immediately after the initial transaction is paid.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cancel if Needed`}),`: If the buyer cancels or an issue occurs before fulfillment or release, call `,_jsx(_components.a,{href:`/api/endpoint/escrow-cancel`,children:`Cancel Escrow`}),` to trigger a refund.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Escrow Order","openapi":"POST /trdp/escrow/order","description":"Initiate a new escrow payment order with customizable multi-merchant fund allocations.","href":"/api/endpoint/escrow-order"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create an Escrow Order","slug":"create-an-escrow-order","depth":1,"children":[]},{"title":"Endpoint","slug":"endpoint","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[{"title":"orderId","slug":"orderid","depth":3,"children":[]},{"title":"amount","slug":"amount","depth":3,"children":[]},{"title":"currency","slug":"currency","depth":3,"children":[]},{"title":"customerName","slug":"customername","depth":3,"children":[]},{"title":"customerPhoneNumber","slug":"customerphonenumber","depth":3,"children":[]},{"title":"items","slug":"items","depth":3,"children":[]},{"title":"Item Fields","slug":"item-fields","depth":4,"children":[]},{"title":"allocations","slug":"allocations","depth":3,"children":[]},{"title":"Allocation Fields","slug":"allocation-fields","depth":4,"children":[]},{"title":"autoRelease","slug":"autorelease","depth":3,"children":[]},{"title":"callbackURL","slug":"callbackurl","depth":3,"children":[]},{"title":"redirectUrl","slug":"redirecturl","depth":3,"children":[]},{"title":"customerEmail","slug":"customeremail","depth":3,"children":[]},{"title":"description","slug":"description","depth":3,"children":[]},{"title":"expiredAt","slug":"expiredat","depth":3,"children":[]},{"title":"metadata","slug":"metadata","depth":3,"children":[]}]},{"title":"Example Request","slug":"example-request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success Response (201 Created)","slug":"success-response-201-created","depth":3,"children":[]}]},{"title":"Escrow Lifecycle \u0026 Next Steps","slug":"escrow-lifecycle-\u0026-next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createEscrowOrder","tags":["Escrow"],"summary":"Create Escrow Order","description":"Initiate a new escrow payment order with customizable multi-merchant fund allocations.","x-codeSamples":[{"lang":"csharp","label":"C#","source":"using System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"x-api-secret\", \"YOUR_API_SECRET\");\nvar content = new StringContent(\"{\\\"orderId\\\": \\\"ESCROW-20260729-001\\\", \\\"amount\\\": 10000, \\\"currency\\\": \\\"ETB\\\"}\", Encoding.UTF8, \"application/json\");\nvar response = await client.PostAsync(\"https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/escrow/order\", content);\nConsole.WriteLine(await response.Content.ReadAsStringAsync());\n"},{"lang":"javascript","label":"JavaScript","source":"const response = await fetch('https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/escrow/order', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'x-api-secret': 'YOUR_API_SECRET'\n },\n body: JSON.stringify({\n orderId: 'ESCROW-20260729-001',\n amount: 10000,\n currency: 'ETB'\n })\n});\nconst data = await response.json();\nconsole.log(data);\n"}],"parameters":["edb58b9b-9a7b-4ecd-a83b-9af75276b5e1"],"requestBody":"7187540c-effd-44f4-9c0c-d99b22547fd5","responses":{"201":"301f7391-f5f3-4b2b-a39d-0c9a22a5d545","400":"f379f50b-97f1-47ba-8928-92cfa7524ab2","401":"bd1afd05-c08c-465c-8d86-07b9239ed4b6","404":"55f418b9-0827-4541-b6eb-6f7ef3728118","500":"93592537-1bee-4097-b5ec-88f71cae0393"},"method":"post","type":"path","servers":["12713572-c39b-4f46-92a6-19c62334bca6"],"security":[],"path":"/trdp/escrow/order","baseUrlOptions":["https://sandbox-api.starpayethiopia.com/v1/starpay-api"],"title":"Create Escrow Order","codeSamples":[{"label":"C#","lang":"csharp","source":"using System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nclient.DefaultRequestHeaders.Add(\"x-api-secret\", \"YOUR_API_SECRET\");\nvar content = new StringContent(\"{\\\"orderId\\\": \\\"ESCROW-20260729-001\\\", \\\"amount\\\": 10000, \\\"currency\\\": \\\"ETB\\\"}\", Encoding.UTF8, \"application/json\");\nvar response = await client.PostAsync(\"https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/escrow/order\", content);\nConsole.WriteLine(await response.Content.ReadAsStringAsync());\n"},{"label":"JavaScript","lang":"javascript","source":"const response = await fetch('https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/escrow/order', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'x-api-secret': 'YOUR_API_SECRET'\n },\n body: JSON.stringify({\n orderId: 'ESCROW-20260729-001',\n amount: 10000,\n currency: 'ETB'\n })\n});\nconst data = await response.json();\nconsole.log(data);\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"edb58b9b-9a7b-4ecd-a83b-9af75276b5e1":{"in":"header","name":"x-api-secret","required":true,"description":"Your StarPay API secret key.","schema":{"type":"string","example":"SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk","isRequired":true,"description":"Your StarPay API secret key.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"description":"Escrow order creation payload including items and multi-merchant allocations.","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","example":"ESCROW-20260729-001","isRequired":true,"uniqueKey":"orderId","typeLabel":"string"},"amount":{"type":"number","example":10000,"isRequired":true,"uniqueKey":"amount","typeLabel":"number"},"currency":{"type":"string","example":"ETB","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"customerName":{"type":"string","example":"John Doe","isRequired":true,"uniqueKey":"customerName","typeLabel":"string"},"customerPhoneNumber":{"type":"string","example":"+251912345678","isRequired":true,"uniqueKey":"customerPhoneNumber","typeLabel":"string"},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","example":"PROD-001","isRequired":true,"uniqueKey":"\\items.items.[INDEX].productId","typeLabel":"string"},"itemName":{"type":"string","example":"Apple MacBook Pro M3","isRequired":true,"uniqueKey":"\\items.items.[INDEX].itemName","typeLabel":"string"},"quantity":{"type":"integer","example":1,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"unitPrice":{"type":"number","example":8000,"isRequired":true,"uniqueKey":"\\items.items.[INDEX].unitPrice","typeLabel":"number"},"imageUrl":{"type":"string","format":"uri","example":"https://example.com/images/macbook.jpg","uniqueKey":"\\items.items.[INDEX].imageUrl","typeLabel":"string\u003curi>"},"stockUnit":{"type":"string","example":"pcs","uniqueKey":"\\items.items.[INDEX].stockUnit","typeLabel":"string"}},"required":["productId","itemName","quantity","unitPrice"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"},"allocations":{"type":"array","items":{"type":"object","properties":{"merchantId":{"type":"string","example":"01346141","isRequired":true,"uniqueKey":"allocations.items.[INDEX].merchantId","typeLabel":"string"},"amount":{"type":"number","example":7000,"isRequired":true,"uniqueKey":"allocations.items.[INDEX].amount","typeLabel":"number"},"metadata":{"type":"object","properties":{"merchantName":{"type":"string","example":"Merchant A","uniqueKey":"allocations.items.[INDEX].metadata.merchantName","typeLabel":"string"},"purpose":{"type":"string","example":"Product Payment","uniqueKey":"allocations.items.[INDEX].metadata.purpose","typeLabel":"string"}},"uniqueKey":"allocations.items.[INDEX].metadata","typeLabel":"object"}},"required":["merchantId","amount"],"example":{"merchantId":"01346141","amount":7000,"metadata":{"merchantName":"Merchant A","purpose":"Product Payment"}},"uniqueKey":"allocations.items.[INDEX]","typeLabel":"object"},"example":[{"merchantId":"01346141","amount":7000,"metadata":{"merchantName":"Merchant A","purpose":"Product Payment"}},{"merchantId":"01344351","amount":3000,"metadata":{"merchantName":"Merchant B","purpose":"Shipping Fee"}}],"isRequired":true,"uniqueKey":"allocations","typeLabel":"object[]"},"redirectUrl":{"type":"string","format":"uri","example":"https://merchant.example.com/payment/success","uniqueKey":"redirectUrl","typeLabel":"string\u003curi>"},"customerEmail":{"type":"string","format":"email","example":"john.doe@example.com","uniqueKey":"customerEmail","typeLabel":"string\u003cemail>"},"callbackURL":{"type":"string","format":"uri","example":"https://merchant.example.com/api/payment/callback","uniqueKey":"callbackURL","typeLabel":"string\u003curi>"},"description":{"type":"string","example":"Escrow payment for marketplace order","uniqueKey":"description","typeLabel":"string"},"expiredAt":{"type":"string","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"expiredAt","typeLabel":"string\u003cdate-time>"},"metadata":{"type":"object","example":{"orderType":"escrow","platform":"Marketplace","customerId":"CUS-1001"},"uniqueKey":"metadata","typeLabel":"object"},"autoRelease":{"type":"boolean","default":false,"description":"Specifies whether escrow allocations are automatically released to merchants once the initial payment is completed.","example":false,"uniqueKey":"autoRelease","typeLabel":"boolean"}},"required":["orderId","amount","currency","customerName","customerPhoneNumber","items","allocations"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"orderId":"ESCROW-20260729-001","amount":10000,"currency":"ETB","customerName":"John Doe","customerPhoneNumber":"+251912345678","items":[{"productId":"PROD-001","itemName":"Apple MacBook Pro M3","quantity":1,"unitPrice":8000,"imageUrl":"https://example.com/images/macbook.jpg","stockUnit":"pcs"}],"allocations":[{"merchantId":"01346141","amount":7000,"metadata":{"merchantName":"Merchant A","purpose":"Product Payment"}},{"merchantId":"01344351","amount":3000,"metadata":{"merchantName":"Merchant B","purpose":"Shipping Fee"}}],"redirectUrl":"https://merchant.example.com/payment/success","customerEmail":"john.doe@example.com","callbackURL":"https://merchant.example.com/api/payment/callback","description":"Escrow payment for marketplace order","expiredAt":"2026-12-31T23:59:59Z","metadata":{"orderType":"escrow","platform":"Marketplace","customerId":"CUS-1001"},"autoRelease":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"301f7391-f5f3-4b2b-a39d-0c9a22a5d545":{"description":"Escrow order created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2026-07-29T10:00:00Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"message":{"type":"string","example":"Escrow order created successfully","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","properties":{"escrow_id":{"type":"string","example":"59667344","uniqueKey":"data.escrow_id","typeLabel":"string"},"order_id":{"type":"string","example":"ESCROW-20260729-001","uniqueKey":"data.order_id","typeLabel":"string"},"amount":{"type":"number","example":10000,"uniqueKey":"data.amount","typeLabel":"number"},"currency":{"type":"string","example":"ETB","uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","example":"PENDING","uniqueKey":"data.status","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","example":"https://pay.starpayethiopia.com/checkout/59667344","uniqueKey":"data.payment_url","typeLabel":"string\u003curi>"},"allocations":{"type":"array","items":{"type":"object","properties":{"merchant_id":{"type":"string","example":"01346141","isRequired":true,"uniqueKey":"data.allocations.items.[INDEX].merchant_id","typeLabel":"string"},"amount":{"type":"number","example":7000,"isRequired":true,"uniqueKey":"data.allocations.items.[INDEX].amount","typeLabel":"number"},"metadata":{"type":"object","properties":{"merchant_name":{"type":"string","example":"Merchant A","uniqueKey":"data.allocations.items.[INDEX].metadata.merchant_name","typeLabel":"string"},"purpose":{"type":"string","example":"Product Payment","uniqueKey":"data.allocations.items.[INDEX].metadata.purpose","typeLabel":"string"}},"uniqueKey":"data.allocations.items.[INDEX].metadata","typeLabel":"object"}},"required":["merchant_id","amount"],"example":{"merchant_id":"01346141","amount":7000,"metadata":{"merchant_name":"Merchant A","purpose":"Product Payment"}},"uniqueKey":"data.allocations.items.[INDEX]","typeLabel":"object"},"example":[{"merchant_id":"01346141","amount":7000,"metadata":{"merchant_name":"Merchant A","purpose":"Product Payment"}},{"merchant_id":"01344351","amount":3000,"metadata":{"merchant_name":"Merchant B","purpose":"Shipping Fee"}}],"uniqueKey":"data.allocations","typeLabel":"object[]"},"auto_release":{"type":"boolean","description":"Indicates whether allocations are configured to release automatically upon payment completion.","example":false,"uniqueKey":"data.auto_release","typeLabel":"boolean"},"expired_at":{"type":"string","format":"date-time","example":"2026-12-31T23:59:59Z","uniqueKey":"data.expired_at","typeLabel":"string\u003cdate-time>"}},"isRequired":true,"uniqueKey":"data","typeLabel":"object"}},"required":["status","timestamp","message","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"success","timestamp":"2026-07-29T10:00:00Z","message":"Escrow order created successfully","data":{"escrow_id":"59667344","order_id":"ESCROW-20260729-001","amount":10000,"currency":"ETB","status":"PENDING","payment_url":"https://pay.starpayethiopia.com/checkout/59667344","allocations":[{"merchant_id":"01346141","amount":7000,"metadata":{"merchant_name":"Merchant A","purpose":"Product Payment"}},{"merchant_id":"01344351","amount":3000,"metadata":{"merchant_name":"Merchant B","purpose":"Shipping Fee"}}],"auto_release":false,"expired_at":"2026-12-31T23:59:59Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"f379f50b-97f1-47ba-8928-92cfa7524ab2":{"description":"Bad request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"error","uniqueKey":"status","typeLabel":"string"},"timestamp":{"type":"string","example":"2025-05-07T07:31:30.824Z","uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","example":"/v2/starpay-api/","uniqueKey":"path","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","example":"BadRequestException","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"Missing required payload data, pk and payload is required","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","timestamp":"2025-05-07T07:31:30.824Z","path":"/v2/starpay-api/","error":{"code":"BadRequestException","message":"Missing required payload data, pk and payload is required"}}}},"exampleType":"generated"}},"exampleType":"generated"},"bd1afd05-c08c-465c-8d86-07b9239ed4b6":{"description":"Unauthorized.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something wrong","uniqueKey":"message","typeLabel":"string"},"status":{"type":"string","example":"error","uniqueKey":"status","typeLabel":"string"},"timestamp":{"type":"string","example":"2025-05-07T07:31:30.824Z","uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","example":"/v2/starpay-api/","uniqueKey":"path","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","example":"GEN_004","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"An unexpected server error occurred.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Something wrong","status":"error","timestamp":"2025-05-07T07:31:30.824Z","path":"/v2/starpay-api/","error":{"code":"GEN_004","message":"An unexpected server error occurred."}}}},"exampleType":"generated"}},"exampleType":"generated"},"55f418b9-0827-4541-b6eb-6f7ef3728118":{"description":"Not found.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something wrong","uniqueKey":"message","typeLabel":"string"},"status":{"type":"string","example":"error","uniqueKey":"status","typeLabel":"string"},"timestamp":{"type":"string","example":"2025-05-07T07:31:30.824Z","uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","example":"/v2/starpay-api/","uniqueKey":"path","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","example":"ABC_001","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"not found","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Something wrong","status":"error","timestamp":"2025-05-07T07:31:30.824Z","path":"/v2/starpay-api/","error":{"code":"ABC_001","message":"not found"}}}},"exampleType":"generated"}},"exampleType":"generated"},"93592537-1bee-4097-b5ec-88f71cae0393":{"description":"internal.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Something wrong","uniqueKey":"message","typeLabel":"string"},"status":{"type":"string","example":"error","uniqueKey":"status","typeLabel":"string"},"timestamp":{"type":"string","example":"2025-05-07T07:31:30.824Z","uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","example":"/v2/starpay-api/","uniqueKey":"path","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","example":"GEN_004","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","example":"An unexpected server error occurred.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Something wrong","status":"error","timestamp":"2025-05-07T07:31:30.824Z","path":"/v2/starpay-api/","error":{"code":"GEN_004","message":"An unexpected server error occurred."}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"12713572-c39b-4f46-92a6-19c62334bca6":{"url":"https://sandbox-api.starpayethiopia.com/v1/starpay-api","description":"Sandbox server"}}},"originalFileLocation":"api/openapi.json"},"subdomain":"starpay-fa6403ea","siteName":"starpay-dev","title":"Create Escrow Order - starpay-dev","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api/endpoint/escrow-order","matchLevel":0}}},"lastModified":"2026-10-28T18:08:44.494Z","originalFileLocation":"api/endpoint/escrow-order.mdx","locale":"en"},"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=\"system\"}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=\"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"starpay-dev\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/favicon.ico\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/favicon.ico\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Escrow Order - starpay-dev\">\u003cmeta data-mint-head property=\"og:description\" content=\"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"starpay-dev\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.mintlify.com/docs/api/endpoint/escrow-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://starpay-fa6403ea.mintlify.site/_mintlify/api/og/v2?division=Escrow+Service\u0026amp;title=Create+Escrow+Order\u0026amp;description=Initiate+a+new+escrow+payment+order+with+customizable+multi-merchant+fund+allocations.\u0026amp;theme=3a44f94f9a43881f9655c9d8\u0026amp;signature=834b0a181b7e79def8009db9447a04e5a733e0c501d8fd20888beea0a8925684\">\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=\"Create Escrow Order - starpay-dev\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://starpay-fa6403ea.mintlify.site/_mintlify/api/og/v2?division=Escrow+Service\u0026amp;title=Create+Escrow+Order\u0026amp;description=Initiate+a+new+escrow+payment+order+with+customizable+multi-merchant+fund+allocations.\u0026amp;theme=3a44f94f9a43881f9655c9d8\u0026amp;signature=834b0a181b7e79def8009db9447a04e5a733e0c501d8fd20888beea0a8925684\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/starpay-fa6403ea/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"starpay-dev\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#166E3F\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"YRuJgIxsRnMkiRTYTo_tEsJSFyIE3AraEiukTbeV4Ag\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.mintlify.com/docs/api/endpoint/escrow-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/endpoint/escrow-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.mintlify.com/#organization\",\"name\":\"starpay-dev\",\"url\":\"https://www.mintlify.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/starpay-fa6403ea/aEePOSpb_e8BycOH/logo/light.svg?fit=max\u0026auto=format\u0026n=aEePOSpb_e8BycOH\u0026q=85\u0026s=51f17451ae350be2e3f7e047036f56d7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.mintlify.com/docs#website\",\"name\":\"starpay-dev\",\"url\":\"https://www.mintlify.com/docs\",\"publisher\":{\"@id\":\"https://www.mintlify.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order#webpage\",\"url\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order\",\"name\":\"Create Escrow Order\",\"description\":\"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\",\"dateModified\":\"2026-10-28T18:08:44.494Z\",\"isPartOf\":{\"@id\":\"https://www.mintlify.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Escrow Service\",\"item\":\"https://www.mintlify.com/docs/api/escrow-introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Escrow Order\",\"item\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order#apireference\",\"headline\":\"Create Escrow Order\",\"name\":\"Create Escrow Order\",\"description\":\"Initiate a new escrow payment order with customizable multi-merchant fund allocations.\",\"url\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order\",\"mainEntityOfPage\":{\"@id\":\"https://www.mintlify.com/docs/api/endpoint/escrow-order#webpage\"},\"dateModified\":\"2026-10-28T18:08:44.494Z\",\"publisher\":{\"@id\":\"https://www.mintlify.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.mintlify.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"starpay-dev\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"starpay-dev\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/endpoint/escrow-order.md","siteName":"starpay-dev","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"Introduction","href":""},{"title":"Get Started with StarPay","href":"/get-started"}]},{"group":"Api Reference","icon":"map","pages":[{"title":"Introduction","href":"/api/introduction"},{"title":"Create Transaction","openapi":"POST /trdp/order","href":"/api/endpoint/transaction"},{"title":"Payment Verification","openapi":"POST /trdp/verify","href":"/api/endpoint/verification"},{"title":"Error Codes","href":"/api/error-codes"},{"title":"Test Numbers","href":"/api/test-numbers"},{"title":"Callback Signature Verification","href":"/api/sign"}]},{"group":"Escrow Service","icon":"shield-check","pages":[{"title":"Introduction","description":"A comprehensive guide to integrating the Star-Pay Escrow \u0026 Payment Split API within your marketplace or platform.","href":"/api/escrow-introduction"},{"title":"Create Escrow Order","openapi":"POST /trdp/escrow/order","href":"/api/endpoint/escrow-order"},{"title":"Release Escrow Allocation","openapi":"POST /trdp/escrow/release","description":"Release held escrow funds for a specific merchant allocation upon successful order fulfillment.","href":"/api/endpoint/escrow-release"},{"title":"Cancel Escrow","openapi":"POST /trdp/escrow/cancel","href":"/api/endpoint/escrow-cancel"}]}]},{"tab":"API reference","groups":[{"group":"Payment Endpoints","pages":[{"title":"Create Transaction","openapi":"POST /trdp/order","href":"/api/endpoint/transaction"},{"title":"Payment Verification","openapi":"POST /trdp/verify","href":"/api/endpoint/verification"}]},{"group":"Escrow Endpoints","pages":[{"title":"Introduction","description":"A comprehensive guide to integrating the Star-Pay Escrow \u0026 Payment Split API within your marketplace or platform.","href":"/api/escrow-introduction"},{"title":"Create Escrow Order","openapi":"POST /trdp/escrow/order","href":"/api/endpoint/escrow-order"},{"title":"Release Escrow Allocation","openapi":"POST /trdp/escrow/release","description":"Release held escrow funds for a specific merchant allocation upon successful order fulfillment.","href":"/api/endpoint/escrow-release"},{"title":"Cancel Escrow","openapi":"POST /trdp/escrow/cancel","href":"/api/endpoint/escrow-cancel"}]},{"group":"API test Number","pages":[{"title":"Test Numbers","href":"/api/test-numbers"}]},{"group":"signature","pages":[{"title":"Callback Signature Verification","href":"/api/sign"}]}]}]}]},"basePath":"","title":"Create Escrow Order - starpay-dev","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D6S0Yh6q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}