The v2 new-order webhook lets TextYess receive your orders so it can attribute them to the WhatsApp
conversations, campaigns, and automations that drove them, and power analytics. It is CMS-agnostic:
map your store’s order to the contract below once, whatever platform you use.
Automations only fire for recent orders. Flows with a new-order trigger run only when the
order’s created_at is within the last 24 hours. Older orders are still ingested for analytics
and attribution, so backfilling historical orders is safe — it will never message your customers.
Authentication
Send your organization token in the x-auth-token header. You can find both your token and your
organization id in the Developers section:
Your source order id. Used for idempotency — re-sending the same id for an organization is a no-op, so retries are safe.
string
required
The order timestamp (ISO 8601). A value without a timezone is treated as UTC. Send the real order date so historical orders attribute correctly — it also gates automations: flows run only when created_at is within the last 24 hours.
string
required
Free-text payment/order status.
Show Recognized values
paid / complete / completed / processing / captured / success count as paid; refunded / partially_refunded / closed as refunded; canceled / voided / failed as voided; any other value counts as pending.
number
required
The grand total in currency units. A numeric string (“99.90”) is also accepted.
array
required
The payment methods used for the order.
array
required
The items in the order.
Show Show array item properties
string
required
Item title
number
required
Quantity
number
required
Unit price
string
SKU
string
Variant title
string
Product id
object
required
Customer identity. For anonymous orders, supply placeholder values you control.
Show Show object properties
string
required
Customer email
string
required
Customer phone (paired with country_code)
string
required
ISO country code for the phone
string
Source customer id
string
First name
string
Last name
string
Locale
string
ISO currency code. Defaults to EUR when omitted.
string
Human-facing order number / increment id.
string
Free-text fulfillment status.
string
Tracking URL for the shipment.
object
Shipping address (all fields optional).
Show Show object properties
string
First name
string
Last name
string
Company
string
Address line 1
string
Address line 2
string
City
string
Province / state
string
Province code
string
Country
string
Country code
string
ZIP / postal code
string
Phone
object
Billing address — same shape as shipping_address (all fields optional).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"TextYess docs","colors":{"primary":"#503ADC","light":"#A69BED","dark":"#503ADC"},"logo":{"light":"https://mintcdn.com/textyess/t3O0hQEylWfwxcNr/logo/light.svg?fit=max\u0026auto=format\u0026n=t3O0hQEylWfwxcNr\u0026q=85\u0026s=af4a37ed0241d715a4137af43ad4e343","dark":"https://mintcdn.com/textyess/t3O0hQEylWfwxcNr/logo/dark.svg?fit=max\u0026auto=format\u0026n=t3O0hQEylWfwxcNr\u0026q=85\u0026s=12f1fe0b4fafd7c8c31dbe528ef537a9"},"favicon":"https://mintcdn.com/textyess/t3O0hQEylWfwxcNr/favicon.svg?fit=max\u0026auto=format\u0026n=t3O0hQEylWfwxcNr\u0026q=85\u0026s=332866006d95f69588f56eb99b15f03b","api":{"mdx":{"auth":{"method":"key","name":"x-auth-token"},"server":"https://api-ai.textyess.com"}},"navbar":{"links":[{"href":"https://textyesssupport.zendesk.com/hc/en-us","label":"Support"}],"primary":{"type":"button","label":"Sign in","href":"https://ai.textyess.com"}},"footer":{"socials":{"instagram":"https://www.instagram.com/text_yess","linkedin":"https://www.linkedin.com/company/textyess"}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"textyess","hasAudioNarration":false,"actualSubdomain":"textyess","customDomains":["docs.textyess.com"],"gitSource":{"type":"github","owner":"textyess","repo":"monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false},"entitlements":{},"buildId":"6af5eef827c119ec9a1effe6","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"default","tag":"Automations","count":7},{"language":"default","tag":"AI agents","count":6},{"language":"default","tag":"Growth Tool Kit","count":6},{"language":"default","tag":"Account","count":5},{"language":"default","tag":"WooCommerce","count":5},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Products API","count":4},{"language":"default","tag":"Email","count":4},{"language":"default","tag":"Shopify","count":4},{"language":"default","tag":"Analytics API","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"new-order-webhook-v2","slug":"/new-order-webhook-v2","pageMetadata":{"title":"Create Order","api":"POST /webhooks/v2/new-order/{organizationId}","description":"Send new order data to TextYess to unlock analytics and automations","authMethod":"key","href":"/new-order-webhook-v2"},"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: \"Send new order data to TextYess to unlock analytics and automations\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`The v2 new-order webhook lets TextYess receive your orders so it can attribute them to the WhatsApp\nconversations, campaigns, and automations that drove them, and power analytics. It is CMS-agnostic:\nmap your store’s order to the contract below once, whatever platform you use.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Automations only fire for recent orders.`}),` Flows with a new-order trigger run only when the\norder’s `,_jsx(_components.code,{children:`created_at`}),` is within the last 24 hours. Older orders are still ingested for analytics\nand attribution, so backfilling historical orders is safe — it will never message your customers.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Send your organization token in the `,_jsx(_components.code,{children:`x-auth-token`}),` header. You can find both your token and your\norganization id in the `,_jsx(_components.a,{href:`https://ai.textyess.com/developers`,children:`Developers section`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`x-auth-token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` your_token`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`organizationId`,type:`string`,required:true,initialValue:`68dd9a79dd6e8f8774733bd7`,placeholder:`68dd9a79dd6e8f8774733bd7`,id:`param-organization-id`,children:_jsxs(_components.p,{children:[`Your organization id, from `,_jsx(_components.a,{href:`https://ai.textyess.com/developers`,children:`https://ai.textyess.com/developers`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`id`,type:`string`,required:true,initialValue:`100000123`,placeholder:`100000123`,id:`param-id`,children:_jsx(_components.p,{children:`Your source order id. Used for idempotency — re-sending the same id for an organization is a no-op, so retries are safe.`})}),`\n`,_jsx(ParamField,{body:`created_at`,type:`string`,required:true,initialValue:`2026-01-15T10:30:00Z`,placeholder:`2026-01-15T10:30:00Z`,id:`param-created-at`,children:_jsxs(_components.p,{children:[`The order timestamp (ISO 8601). A value without a timezone is treated as UTC. Send the real order date so historical orders attribute correctly — it also gates automations: flows run only when `,_jsx(_components.code,{children:`created_at`}),` is within the last 24 hours.`]})}),`\n`,_jsxs(ParamField,{body:`status`,type:`string`,required:true,initialValue:`paid`,placeholder:`paid`,id:`param-status`,children:[_jsx(_components.p,{children:`Free-text payment/order status.`}),_jsx(Expandable,{title:`Recognized values`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`paid`}),` / `,_jsx(_components.code,{children:`complete`}),` / `,_jsx(_components.code,{children:`completed`}),` / `,_jsx(_components.code,{children:`processing`}),` / `,_jsx(_components.code,{children:`captured`}),` / `,_jsx(_components.code,{children:`success`}),` count as paid; `,_jsx(_components.code,{children:`refunded`}),` / `,_jsx(_components.code,{children:`partially_refunded`}),` / `,_jsx(_components.code,{children:`closed`}),` as refunded; `,_jsx(_components.code,{children:`canceled`}),` / `,_jsx(_components.code,{children:`voided`}),` / `,_jsx(_components.code,{children:`failed`}),` as voided; any other value counts as pending.`]})})]}),`\n`,_jsx(ParamField,{body:`total`,type:`number`,required:true,initialValue:99.9,placeholder:`99.90`,id:`param-total`,children:_jsx(_components.p,{children:`The grand total in currency units. A numeric string (“99.90”) is also accepted.`})}),`\n`,_jsx(ParamField,{body:`payment_methods`,type:`array`,required:true,initialValue:[`stripe`],placeholder:`['stripe']`,id:`param-payment-methods`,children:_jsx(_components.p,{children:`The payment methods used for the order.`})}),`\n`,_jsxs(ParamField,{body:`line_items`,type:`array`,required:true,initialValue:[{title:`Lipstick`,variant_title:`Rosso`,quantity:2,price:49.95,sku:`LIP-1`}],placeholder:`[{ title: 'Lipstick', quantity: 2, price: 49.95 }]`,id:`param-line-items`,children:[_jsx(_components.p,{children:`The items in the order.`}),_jsxs(Expandable,{title:`Show array item properties`,children:[_jsx(ParamField,{body:`title`,type:`string`,required:true,initialValue:`Lipstick`,placeholder:`Lipstick`,id:`param-title`,children:_jsx(_components.p,{children:`Item title`})}),_jsx(ParamField,{body:`quantity`,type:`number`,required:true,initialValue:2,placeholder:`2`,id:`param-quantity`,children:_jsx(_components.p,{children:`Quantity`})}),_jsx(ParamField,{body:`price`,type:`number`,required:true,initialValue:49.95,placeholder:`49.95`,id:`param-price`,children:_jsx(_components.p,{children:`Unit price`})}),_jsx(ParamField,{body:`sku`,type:`string`,initialValue:`LIP-1`,placeholder:`LIP-1`,id:`param-sku`,children:_jsx(_components.p,{children:`SKU`})}),_jsx(ParamField,{body:`variant_title`,type:`string`,initialValue:`Rosso`,placeholder:`Rosso`,id:`param-variant-title`,children:_jsx(_components.p,{children:`Variant title`})}),_jsx(ParamField,{body:`product_id`,type:`string`,initialValue:`prod_1`,placeholder:`prod_1`,id:`param-product-id`,children:_jsx(_components.p,{children:`Product id`})})]})]}),`\n`,_jsxs(ParamField,{body:`customer`,type:`object`,required:true,initialValue:{first_name:`Mario`,last_name:`Rossi`,email:`mario.rossi@example.com`,phone:`3517978283`,country_code:`IT`},placeholder:`{ email: 'mario.rossi@example.com', phone: '3517978283', country_code: 'IT' }`,id:`param-customer`,children:[_jsx(_components.p,{children:`Customer identity. For anonymous orders, supply placeholder values you control.`}),_jsxs(Expandable,{title:`Show object properties`,children:[_jsx(ParamField,{body:`email`,type:`string`,required:true,initialValue:`mario.rossi@example.com`,placeholder:`mario.rossi@example.com`,id:`param-email`,children:_jsx(_components.p,{children:`Customer email`})}),_jsx(ParamField,{body:`phone`,type:`string`,required:true,initialValue:`3517978283`,placeholder:`3517978283`,id:`param-phone`,children:_jsx(_components.p,{children:`Customer phone (paired with country_code)`})}),_jsx(ParamField,{body:`country_code`,type:`string`,required:true,initialValue:`IT`,placeholder:`IT`,id:`param-country-code`,children:_jsx(_components.p,{children:`ISO country code for the phone`})}),_jsx(ParamField,{body:`id`,type:`string`,initialValue:`cust-42`,placeholder:`cust-42`,id:`param-id-1`,children:_jsx(_components.p,{children:`Source customer id`})}),_jsx(ParamField,{body:`first_name`,type:`string`,initialValue:`Mario`,placeholder:`Mario`,id:`param-first-name`,children:_jsx(_components.p,{children:`First name`})}),_jsx(ParamField,{body:`last_name`,type:`string`,initialValue:`Rossi`,placeholder:`Rossi`,id:`param-last-name`,children:_jsx(_components.p,{children:`Last name`})}),_jsx(ParamField,{body:`locale`,type:`string`,initialValue:`it`,placeholder:`it`,id:`param-locale`,children:_jsx(_components.p,{children:`Locale`})})]})]}),`\n`,_jsx(ParamField,{body:`currency`,type:`string`,initialValue:`EUR`,placeholder:`EUR`,id:`param-currency`,children:_jsx(_components.p,{children:`ISO currency code. Defaults to EUR when omitted.`})}),`\n`,_jsx(ParamField,{body:`order_number`,type:`string`,initialValue:`000000123`,placeholder:`000000123`,id:`param-order-number`,children:_jsx(_components.p,{children:`Human-facing order number / increment id.`})}),`\n`,_jsx(ParamField,{body:`fulfillment_status`,type:`string`,initialValue:`fulfilled`,placeholder:`fulfilled`,id:`param-fulfillment-status`,children:_jsx(_components.p,{children:`Free-text fulfillment status.`})}),`\n`,_jsx(ParamField,{body:`tracking_url`,type:`string`,initialValue:`https://track.example/abc`,placeholder:`https://track.example/abc`,id:`param-tracking-url`,children:_jsx(_components.p,{children:`Tracking URL for the shipment.`})}),`\n`,_jsxs(ParamField,{body:`shipping_address`,type:`object`,initialValue:{first_name:`Mario`,last_name:`Rossi`,address1:`Via Roma 1`,city:`Milano`,province:`MI`,country:`Italy`,country_code:`IT`,zip:`20100`,phone:`3517978283`},placeholder:`{ address1: 'Via Roma 1', city: 'Milano', country_code: 'IT' }`,id:`param-shipping-address`,children:[_jsx(_components.p,{children:`Shipping address (all fields optional).`}),_jsxs(Expandable,{title:`Show object properties`,children:[_jsx(ParamField,{body:`first_name`,type:`string`,initialValue:`Mario`,placeholder:`Mario`,id:`param-first-name-1`,children:`First name`}),_jsx(ParamField,{body:`last_name`,type:`string`,initialValue:`Rossi`,placeholder:`Rossi`,id:`param-last-name-1`,children:`Last name`}),_jsx(ParamField,{body:`company`,type:`string`,placeholder:`Acme Inc`,id:`param-company`,children:`Company`}),_jsx(ParamField,{body:`address1`,type:`string`,initialValue:`Via Roma 1`,placeholder:`Via Roma 1`,id:`param-address1`,children:`Address line 1`}),_jsx(ParamField,{body:`address2`,type:`string`,placeholder:`Interno 4`,id:`param-address2`,children:`Address line 2`}),_jsx(ParamField,{body:`city`,type:`string`,initialValue:`Milano`,placeholder:`Milano`,id:`param-city`,children:`City`}),_jsx(ParamField,{body:`province`,type:`string`,initialValue:`MI`,placeholder:`MI`,id:`param-province`,children:`Province / state`}),_jsx(ParamField,{body:`province_code`,type:`string`,placeholder:`MI`,id:`param-province-code`,children:`Province code`}),_jsx(ParamField,{body:`country`,type:`string`,initialValue:`Italy`,placeholder:`Italy`,id:`param-country`,children:`Country`}),_jsx(ParamField,{body:`country_code`,type:`string`,initialValue:`IT`,placeholder:`IT`,id:`param-country-code-1`,children:`Country code`}),_jsx(ParamField,{body:`zip`,type:`string`,initialValue:`20100`,placeholder:`20100`,id:`param-zip`,children:`ZIP / postal code`}),_jsx(ParamField,{body:`phone`,type:`string`,initialValue:`3517978283`,placeholder:`3517978283`,id:`param-phone-1`,children:`Phone`})]})]}),`\n`,_jsx(ParamField,{body:`billing_address`,type:`object`,placeholder:`{ address1: 'Via Roma 1', city: 'Milano', country_code: 'IT' }`,id:`param-billing-address`,children:_jsxs(_components.p,{children:[`Billing address — same shape as `,_jsx(_components.code,{children:`shipping_address`}),` (all fields optional).`]})}),`\n`,_jsxs(ParamField,{body:`discount_codes`,type:`array`,initialValue:[{code:`WELCOME10`,amount:5}],placeholder:`[{ code: 'WELCOME10', amount: 5 }]`,id:`param-discount-codes`,children:[_jsx(_components.p,{children:`Discount codes applied to the order.`}),_jsxs(Expandable,{title:`Show array item properties`,children:[_jsx(ParamField,{body:`code`,type:`string`,required:true,initialValue:`WELCOME10`,placeholder:`WELCOME10`,id:`param-code`,children:`Code`}),_jsx(ParamField,{body:`amount`,type:`number`,initialValue:5,placeholder:`5`,id:`param-amount`,children:`Discount amount`}),_jsx(ParamField,{body:`type`,type:`string`,placeholder:`percentage`,id:`param-type`,children:`Discount type`})]})]}),`\n`,_jsx(ParamField,{body:`cart_id`,type:`string`,placeholder:`cart-xyz`,id:`param-cart-id`,children:_jsx(_components.p,{children:`Cart identifier (enables onsite-chat attribution).`})}),`\n`,_jsx(ParamField,{body:`subtotal`,type:`number`,placeholder:`90.00`,id:`param-subtotal`,children:_jsx(_components.p,{children:`Subtotal.`})}),`\n`,_jsx(ParamField,{body:`total_tax`,type:`number`,placeholder:`9.90`,id:`param-total-tax`,children:_jsx(_components.p,{children:`Total tax.`})}),`\n`,_jsx(ParamField,{body:`total_discount`,type:`number`,placeholder:`5.00`,id:`param-total-discount`,children:_jsx(_components.p,{children:`Total discount.`})}),`\n`,_jsx(ParamField,{body:`total_shipping`,type:`number`,placeholder:`0.00`,id:`param-total-shipping`,children:_jsx(_components.p,{children:`Total shipping.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`Whether the webhook was processed.`})})]})}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 Order","api":"POST /webhooks/v2/new-order/{organizationId}","description":"Send new order data to TextYess to unlock analytics and automations","authMethod":"key","href":"/new-order-webhook-v2"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[342,346,"Example,ResponseFiel"],[628,643,"Example)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingM"],[13309,13328,",`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,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:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`4`,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:`4`,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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_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:`\"Validation failed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`4`,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:`4`,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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`401`}),_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:`\"Unauthorized\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXCon"]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Authentication","slug":"authentication","depth":2,"children":[{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">400\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">401\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unauthorized\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create Order","path":"/webhooks/v2/new-order/{organizationId}","servers":[{"url":"https://api-ai.textyess.com"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"x-auth-token":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"organizationId":{"schema":[{"type":"string","description":"Your organization id, from https://ai.textyess.com/developers","required":true,"placeholder":"68dd9a79dd6e8f8774733bd7"}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"id":[{"type":"string","description":"Your source order id. Used for idempotency — re-sending the same id for an organization is a no-op, so retries are safe.","required":true,"placeholder":"100000123"}],"created_at":[{"type":"string","description":"The order timestamp (ISO 8601). A value without a timezone is treated as UTC. Send the real order date so historical orders attribute correctly — it also gates automations: flows run only when `created_at` is within the last 24 hours.","required":true,"placeholder":"2026-01-15T10:30:00Z"}],"status":[{"type":"string","description":"Free-text payment/order status.","required":true,"placeholder":"paid"}],"total":[{"type":"number","description":"The grand total in currency units. A numeric string (“99.90”) is also accepted.","required":true,"placeholder":"99.90"}],"payment_methods":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The payment methods used for the order.","required":true,"placeholder":"['stripe']"}],"line_items":[{"type":"array","items":[{"type":"object","properties":{"title":[{"type":"string","description":"Item title","required":true,"placeholder":"Lipstick"}],"quantity":[{"type":"number","description":"Quantity","required":true,"placeholder":"2"}],"price":[{"type":"number","description":"Unit price","required":true,"placeholder":"49.95"}],"sku":[{"type":"string","description":"SKU","placeholder":"LIP-1"}],"variant_title":[{"type":"string","description":"Variant title","placeholder":"Rosso"}],"product_id":[{"type":"string","description":"Product id","placeholder":"prod_1"}]}}],"description":"The items in the order.","required":true,"placeholder":"[{ title: 'Lipstick', quantity: 2, price: 49.95 }]"}],"customer":[{"type":"object","properties":{"email":[{"type":"string","description":"Customer email","required":true,"placeholder":"mario.rossi@example.com"}],"phone":[{"type":"string","description":"Customer phone (paired with country_code)","required":true,"placeholder":"3517978283"}],"country_code":[{"type":"string","description":"ISO country code for the phone","required":true,"placeholder":"IT"}],"id":[{"type":"string","description":"Source customer id","placeholder":"cust-42"}],"first_name":[{"type":"string","description":"First name","placeholder":"Mario"}],"last_name":[{"type":"string","description":"Last name","placeholder":"Rossi"}],"locale":[{"type":"string","description":"Locale","placeholder":"it"}]},"description":"Customer identity. For anonymous orders, supply placeholder values you control.","required":true,"placeholder":"{ email: 'mario.rossi@example.com', phone: '3517978283', country_code: 'IT' }"}],"currency":[{"type":"string","description":"ISO currency code. Defaults to EUR when omitted.","placeholder":"EUR"}],"order_number":[{"type":"string","description":"Human-facing order number / increment id.","placeholder":"000000123"}],"fulfillment_status":[{"type":"string","description":"Free-text fulfillment status.","placeholder":"fulfilled"}],"tracking_url":[{"type":"string","description":"Tracking URL for the shipment.","placeholder":"https://track.example/abc"}],"shipping_address":[{"type":"object","properties":{"first_name":[{"type":"string","description":"First name","placeholder":"Mario"}],"last_name":[{"type":"string","description":"Last name","placeholder":"Rossi"}],"company":[{"type":"string","description":"Company","placeholder":"Acme Inc"}],"address1":[{"type":"string","description":"Address line 1","placeholder":"Via Roma 1"}],"address2":[{"type":"string","description":"Address line 2","placeholder":"Interno 4"}],"city":[{"type":"string","description":"City","placeholder":"Milano"}],"province":[{"type":"string","description":"Province / state","placeholder":"MI"}],"province_code":[{"type":"string","description":"Province code","placeholder":"MI"}],"country":[{"type":"string","description":"Country","placeholder":"Italy"}],"country_code":[{"type":"string","description":"Country code","placeholder":"IT"}],"zip":[{"type":"string","description":"ZIP / postal code","placeholder":"20100"}],"phone":[{"type":"string","description":"Phone","placeholder":"3517978283"}]},"description":"Shipping address (all fields optional).","placeholder":"{ address1: 'Via Roma 1', city: 'Milano', country_code: 'IT' }"}],"billing_address":[{"type":"object","properties":{},"description":"Billing address — same shape as `shipping_address` (all fields optional).","placeholder":"{ address1: 'Via Roma 1', city: 'Milano', country_code: 'IT' }"}],"discount_codes":[{"type":"array","items":[{"type":"object","properties":{"code":[{"type":"string","description":"Code","required":true,"placeholder":"WELCOME10"}],"amount":[{"type":"number","description":"Discount amount","placeholder":"5"}],"type":[{"type":"string","description":"Discount type","placeholder":"percentage"}]}}],"description":"Discount codes applied to the order.","placeholder":"[{ code: 'WELCOME10', amount: 5 }]"}],"cart_id":[{"type":"string","description":"Cart identifier (enables onsite-chat attribution).","placeholder":"cart-xyz"}],"subtotal":[{"type":"number","description":"Subtotal.","placeholder":"90.00"}],"total_tax":[{"type":"number","description":"Total tax.","placeholder":"9.90"}],"total_discount":[{"type":"number","description":"Total discount.","placeholder":"5.00"}],"total_shipping":[{"type":"number","description":"Total shipping.","placeholder":"0.00"}]}}],"examples":{"example":{"value":{"id":"\u003cstring>","created_at":"\u003cstring>","status":"\u003cstring>","total":123,"payment_methods":[{}],"line_items":[{"title":"\u003cstring>","quantity":123,"price":123,"sku":"\u003cstring>","variant_title":"\u003cstring>","product_id":"\u003cstring>"}],"customer":{"email":"\u003cstring>","phone":"\u003cstring>","country_code":"\u003cstring>","id":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","locale":"\u003cstring>"},"currency":"\u003cstring>","order_number":"\u003cstring>","fulfillment_status":"\u003cstring>","tracking_url":"\u003cstring>","shipping_address":{"first_name":"\u003cstring>","last_name":"\u003cstring>","company":"\u003cstring>","address1":"\u003cstring>","address2":"\u003cstring>","city":"\u003cstring>","province":"\u003cstring>","province_code":"\u003cstring>","country":"\u003cstring>","country_code":"\u003cstring>","zip":"\u003cstring>","phone":"\u003cstring>"},"billing_address":{},"discount_codes":[{"code":"\u003cstring>","amount":123,"type":"\u003cstring>"}],"cart_id":"\u003cstring>","subtotal":123,"total_tax":123,"total_discount":123,"total_shipping":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"Whether the webhook was processed."}]}}],"examples":{"example":{"value":{"success":true}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"textyess","siteName":"TextYess docs","title":"Create Order - TextYess docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-23T06:36:31.362Z","originalFileLocation":"new-order-webhook-v2.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"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=\"Send new order data to TextYess to unlock analytics and automations\">\u003cmeta data-mint-head name=\"application-name\" content=\"TextYess docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Order - TextYess docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send new order data to TextYess to unlock analytics and automations\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TextYess docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.textyess.com/new-order-webhook-v2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://textyess.mintlify.site/_mintlify/api/og/v2?division=Orders+API\u0026amp;title=Create+Order\u0026amp;description=Send+new+order+data+to+TextYess+to+unlock+analytics+and+automations\u0026amp;theme=e7475ac06431e40e816aaf59\u0026amp;signature=082f57414f73803b367d6526e106586bc41a5f960c4dcf1e1e0f2cce67275666\">\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 Order - TextYess docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send new order data to TextYess to unlock analytics and automations\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://textyess.mintlify.site/_mintlify/api/og/v2?division=Orders+API\u0026amp;title=Create+Order\u0026amp;description=Send+new+order+data+to+TextYess+to+unlock+analytics+and+automations\u0026amp;theme=e7475ac06431e40e816aaf59\u0026amp;signature=082f57414f73803b367d6526e106586bc41a5f960c4dcf1e1e0f2cce67275666\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/textyess/rWvVNSh70A0kIzEC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TextYess docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#503ADC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.textyess.com/new-order-webhook-v2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/new-order-webhook-v2.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.textyess.com/#organization\",\"name\":\"TextYess docs\",\"url\":\"https://docs.textyess.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/textyess/t3O0hQEylWfwxcNr/logo/light.svg?fit=max\u0026auto=format\u0026n=t3O0hQEylWfwxcNr\u0026q=85\u0026s=af4a37ed0241d715a4137af43ad4e343\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.textyess.com#website\",\"name\":\"TextYess docs\",\"url\":\"https://docs.textyess.com\",\"publisher\":{\"@id\":\"https://docs.textyess.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.textyess.com/new-order-webhook-v2#webpage\",\"url\":\"https://docs.textyess.com/new-order-webhook-v2\",\"name\":\"Create Order\",\"description\":\"Send new order data to TextYess to unlock analytics and automations\",\"dateModified\":\"2026-07-23T06:36:31.362Z\",\"isPartOf\":{\"@id\":\"https://docs.textyess.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.textyess.com/new-order-webhook-v2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.textyess.com/new-order-webhook-v2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders API\",\"item\":\"https://docs.textyess.com/get-new-order\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Order\",\"item\":\"https://docs.textyess.com/new-order-webhook-v2\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.textyess.com/new-order-webhook-v2#apireference\",\"headline\":\"Create Order\",\"name\":\"Create Order\",\"description\":\"Send new order data to TextYess to unlock analytics and automations\",\"url\":\"https://docs.textyess.com/new-order-webhook-v2\",\"mainEntityOfPage\":{\"@id\":\"https://docs.textyess.com/new-order-webhook-v2#webpage\"},\"dateModified\":\"2026-07-23T06:36:31.362Z\",\"publisher\":{\"@id\":\"https://docs.textyess.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.textyess.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TextYess docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"TextYess docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/new-order-webhook-v2.md","siteName":"TextYess docs","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"What you can do with TextYess","href":"/introduction"},{"title":"Atlas, your AI assistant in TextYess","href":"/atlas"},{"title":"WhatsApp Integration","href":"/whatsapp-integration"},{"title":"Integrations: connect your store and your tools","href":"/integrations"}]},{"group":"Campaigns","pages":[{"title":"WhatsApp campaigns: create, review, test, schedule and send","href":"/campaigns/whatsapp-campaigns"},{"title":"WhatsApp templates: the 24-hour window, Meta review and reusable Inbox templates","href":"/campaigns/whatsapp-templates"},{"title":"AI campaigns: WhatsApp campaign ideas built from your store data","href":"/campaigns/ai-campaigns"}]},{"group":"Email","pages":[{"title":"Email campaigns: create, edit, test, schedule and send","href":"/email/email-campaigns"},{"title":"Email setup: sending domain, DNS records, warm-up and suppression list","href":"/email/email-setup"},{"title":"Email templates, email brand and design system","href":"/email/email-templates-and-brand"},{"title":"Email deliverability: DMARC and BIMI","href":"/email-deliverability-dmarc-bimi"}]},{"group":"Automations","pages":[{"title":"Automations: send WhatsApp and email messages automatically","href":"/flows/introduction"},{"title":"Automation triggers: what starts an automation","href":"/flows/triggers"},{"title":"Automation steps: messages, waits, conditions and actions","href":"/flows/steps"},{"title":"Conditions in automations: branch with a Conditional Split","href":"/flows/conditions"},{"title":"WhatsApp messages in automations: templates, buttons, media and discounts","href":"/flows/messages"},{"title":"Frequency cap and held messages in automations","href":"/flows/frequency-cap"},{"title":"Publish, test, stop and delete automations","href":"/flows/publishing-testing"}]},{"group":"Contacts","pages":[{"title":"Contacts: find, import, export, and manage your customers","href":"/contacts/contacts"},{"title":"Lists and segments: group your contacts for campaigns and automations","href":"/contacts/lists-and-segments"}]},{"group":"Inbox","pages":[{"title":"Inbox: answer customers and manage chats","href":"/manage-conversations"},{"title":"Notifications: choose which TextYess emails you get","href":"/notifications"},{"title":"Use TextYess on your smartphone","href":"/textyess-on-smartphones"}]},{"group":"AI agents","pages":[{"title":"WhatsApp Agent: set up the AI that answers on WhatsApp","href":"/agents/whatsapp-agent"},{"title":"Onsite Agent: set up the AI chat on your website","href":"/agents/onsite-agent"},{"title":"Voice Agent: the AI that answers your store's phone calls","href":"/agents/voice-agent"},{"title":"Knowledge Base: what the AI agents know about your store","href":"/agents/knowledge-base"},{"title":"Improve your AI agent's answers","href":"/improve-ai"},{"title":"Localize your WhatsApp bubble","href":"/localize-whatsapp-bubble"}]},{"group":"Analytics","pages":[{"title":"Performance analytics: revenue, orders, ROAS and order attribution","href":"/analytics"},{"title":"Store Intelligence: store revenue, customers and products","href":"/analytics/store-intelligence"},{"title":"Conversation Intelligence: the issues customers raise with your AI agent","href":"/analytics/conversation-intelligence"}]},{"group":"Growth Tool Kit","pages":[{"title":"Growth Tool Kit: chat bubble, popups, discount codes and more","href":"/growth-tools/overview"},{"title":"Popups: collect WhatsApp and email subscribers on your store","href":"/growth-tools/popups"},{"title":"Unique discount codes: one code for each customer","href":"/growth-tools/discount-codes"},{"title":"Quizzes in the Growth Tool Kit","href":"/growth-tools/quizzes"},{"title":"Product widget installation","href":"/product-widget-install"},{"title":"Back-in-stock button installation","href":"/back-in-stock-install"}]},{"group":"Account","pages":[{"title":"Plan, usage and billing","href":"/plan-and-billing"},{"title":"Account, team and settings","href":"/account-and-team"},{"title":"Change your WhatsApp profile photo and description","href":"/personalize-whatsapp"},{"title":"How to Get WhatsApp Official Business Account Status","href":"/whatsapp-business-accounts"},{"title":"Off-boarding flow","href":"/off-boarding"}]},{"group":"Shopify","pages":[{"title":"WhatsApp Bubble installation","href":"/widget-installation-shopify"},{"title":"Onsite Widget installation","href":"/onsite-widget-installation-shopify"},{"title":"Email Popup installation","href":"/email-popup-installation-shopify"},{"title":"Localize your popup","href":"/localize-popup"}]},{"group":"WooCommerce","pages":[{"title":"WooCommerce compatibility requirements","href":"/woocommerce-compatibility"},{"title":"WhatsApp Bubble installation","href":"/widget-installation-woocommerce"},{"title":"Onsite Widget installation","href":"/onsite-widget-installation-woocommerce"},{"title":"WooCommerce onboarding","href":"/woocommerce-onboarding"},{"title":"WooCommerce troubleshooting","href":"/woocommerce-troubleshooting"}]},{"group":"Magento","pages":[{"title":"Magento (Adobe Commerce) onboarding","href":"/magento-onboarding"}]},{"group":"Helpdesks and marketing tools","pages":[{"title":"Setup Gorgias","href":"/setup-gorgias"},{"title":"Setup Zendesk","href":"/setup-zendesk"},{"title":"Setup Klaviyo","href":"/setup-klaviyo"},{"title":"Setup Hubspot","href":"/setup-hubspot"}]},{"group":"TextYess MCP","pages":[{"title":"Start here","href":"/mcp-connector/start-here"},{"title":"Let an assistant prepare drafts","href":"/mcp-connector/prepare-drafts"},{"title":"Ask AI about these docs","href":"/mcp-connector/docs-assistant"}]},{"group":"Flows API","pages":[{"title":"Trigger a Flow","api":"POST /webhooks/flows/{id}","href":"/flow-webhook"}]},{"group":"Orders API","pages":[{"title":"Get Order","api":"GET /orders/{id}","description":"Retrieve a specific order from your store by its ID","href":"/get-new-order"},{"title":"Create Order","api":"POST /webhooks/v2/new-order/{organizationId}","href":"/new-order-webhook-v2"}]},{"group":"Conversations API","pages":[{"title":"Delete a conversation","api":"DELETE /organization-settings/conversations/{conversationId}","description":"Permanently delete a conversation and the contact it belongs to","href":"/delete-conversation"}]},{"group":"Products API","pages":[{"title":"Bulk Import Products","api":"POST /products/bulk-import","href":"/bulk-import-products"},{"title":"Bulk Update Products","api":"POST /products/bulk-update","href":"/bulk-update-products"},{"title":"Bulk Delete Products","api":"DELETE /products/bulk-delete","href":"/bulk-delete-products"},{"title":"Get Product","api":"GET /products/{id}","href":"/get-imported-product"}]},{"group":"Campaigns API","pages":[{"title":"List Deliverability Status","api":"POST /campaigns/deliverability-status","href":"/list-deliverability-status"},{"title":"Get Deliverability Status","api":"GET /campaigns/{id}/deliverability-status","href":"/get-deliverability-status"}]},{"group":"Analytics API","pages":[{"title":"List Campaigns (Analytics)","api":"GET /analytics/campaigns","href":"/list-campaigns-analytics"},{"title":"Get Campaign (Analytics)","api":"GET /analytics/campaigns/{campaignId}","href":"/get-campaign-analytics"},{"title":"List Campaign Orders","api":"GET /analytics/campaigns/{campaignId}/orders","href":"/list-campaign-orders"},{"title":"List Orders (Analytics)","api":"GET /analytics/orders","href":"/list-orders-analytics"}]}]},"basePath":"","title":"Create Order - TextYess docs","buildId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","deploymentId":"dpl_5tKr6cUUeuVJdEZ9JAEY3h4soMJ8","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DbeN8Wo6.js","utils-CwSb5Doc.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BmREeM3N.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-AYjWerCj.js","snippetPresets-QD4ULQlp.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Digj5cjF.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CiHrzluR.js","shallow-D7h7pFGg.js","getApiPlaygroundDisplay-mlxkpAUf.js","CodeSnippet-D2rH5lZI.js","CodeSnippets-B53ulOaL.js","Page-CqcDm2To.js","getPastedJson-DxGeNMih.js","icon-BHbyrebp.js","MethodPill-C7F_KEEJ.js","DuplicateIcon-j3c5-73z.js","createIcon-OvCnyFqD.js","DynamicMarkdown-DpAS3GCb.js","SectionHeading-DMPpdrvW.js","axios-vUo_bRtp.js"]}