Creates a delivery order, then automatically attempts to dispatch it to the nearest eligible driver. See Authentication for how to get a key, and Order Lifecycle for what happens after this call.
Whether the customer consented to receive SMS updates. If false, the
order is still created and dispatched normally — the customer just
won’t be texted a tracking link, so make sure your own confirmation
page or email surfaces it instead.
pending_dispatch if no driver was immediately available, driver_assigned if dispatch succeeded synchronously. See Order Lifecycle for the full set of values and how status changes after this point.
The token in the customer’s tracking link: https://rushly.us/track/{tracking_token}.
A few other fields are present on order (customer_id, driver_id,
dropoff_address_id, stripe_charge_id, timestamps, and some
driver-payout bookkeeping fields) — they’re internal and safe to ignore.
The API key is missing or wrong, doesn’t match the retailer_id you sent, or your store’s status isn’t active yet. Double-check both values are exactly what you were given — see Authentication.
Something went wrong on Rushly’s end. Safe to retry; contact support@rushly.us if it persists.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rushly","colors":{"primary":"#e85d3a","light":"#e85d3a","dark":"#e85d3a"},"favicon":"https://mintcdn.com/rushly-82799ffa/OSPxHKP57i8aTkPG/favicon.svg?fit=max\u0026auto=format\u0026n=OSPxHKP57i8aTkPG\u0026q=85\u0026s=5b8e1c2abaf679aa3c0ebde9e3adf7dd","navbar":{"links":[{"href":"mailto:support@rushly.us","label":"Support"}]},"footer":{"socials":{}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rushly-82799ffa","hasAudioNarration":false,"actualSubdomain":"rushly-82799ffa","customDomains":["docs.rushly.us"],"gitSource":{"type":"github","owner":"andyroush","repo":"rushly-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aea21f0db3ddc569a5b467b:success","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Concepts","count":2},{"language":"default","tag":"API Reference","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/create-order","slug":"/api-reference/create-order","pageMetadata":{"title":"Create an Order","api":"POST https://rushly-backend-660939316816.us-west2.run.app/orders/create","description":"Create a same-day delivery order for a customer","href":"/api-reference/create-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: \"Create a same-day delivery order for a customer\"\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`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;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:[_jsxs(_components.p,{children:[`Creates a delivery order, then automatically attempts to dispatch it to the nearest eligible driver. See `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` for how to get a key, and `,_jsx(_components.a,{href:`/order-lifecycle`,children:`Order Lifecycle`}),` for what happens after this call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer rk_your_api_key`}),` — see `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`application/json`})})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`retailer_id`,type:`string`,required:true,id:`param-retailer-id`,children:_jsx(_components.p,{children:`Your store’s Rushly ID, given to you alongside your API key.`})}),`\n`,_jsx(ParamField,{body:`customer`,type:`object`,required:true,id:`param-customer`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Customer’s full name.`})}),_jsx(ParamField,{body:`email`,type:`string`,required:true,id:`param-email`,children:_jsx(_components.p,{children:`Customer’s email.`})}),_jsx(ParamField,{body:`phone`,type:`string`,required:true,id:`param-phone`,children:_jsxs(_components.p,{children:[`Customer’s phone number, E.164 format (e.g. `,_jsx(_components.code,{children:`+19495550192`}),`). Used to\nsend the order-confirmed text and tracking link.`]})}),_jsx(ParamField,{body:`sms_opt_in`,type:`boolean`,default:`false`,id:`param-sms-opt-in`,children:_jsxs(_components.p,{children:[`Whether the customer consented to receive SMS updates. If `,_jsx(_components.code,{children:`false`}),`, the\norder is still created and dispatched normally — the customer just\nwon’t be texted a tracking link, so make sure your own confirmation\npage or email surfaces it instead.`]})})]})}),`\n`,_jsx(ParamField,{body:`pickup_address`,type:`string`,required:true,id:`param-pickup-address`,children:_jsxs(_components.p,{children:[`Your store’s address, as a single formatted string (e.g. `,_jsx(_components.code,{children:`\"123 Fashion Ave, Irvine, CA 92614\"`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_address`,type:`object`,required:true,id:`param-dropoff-address`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`line1`,type:`string`,required:true,id:`param-line1`}),_jsx(ParamField,{body:`line2`,type:`string`,id:`param-line2`}),_jsx(ParamField,{body:`city`,type:`string`,required:true,id:`param-city`}),_jsx(ParamField,{body:`state`,type:`string`,required:true,id:`param-state`,children:_jsxs(_components.p,{children:[`Two-letter state code (e.g. `,_jsx(_components.code,{children:`\"CA\"`}),`).`]})}),_jsx(ParamField,{body:`zip`,type:`string`,required:true,id:`param-zip`})]})}),`\n`,_jsx(ParamField,{body:`delivery_tier`,type:`string`,default:`standard`,id:`param-delivery-tier`,children:_jsxs(_components.p,{children:[`One of `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`priority`}),`, or `,_jsx(_components.code,{children:`scheduled`}),`. See `,_jsx(_components.a,{href:`/delivery-tiers`,children:`Delivery\nTiers`}),` for pricing and what each means for dispatch.`]})}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`order.id`,type:`string`,id:`param-order-id`,children:_jsxs(_components.p,{children:[`The order’s ID. Not needed for anything client-facing — use\n`,_jsx(_components.code,{children:`tracking_token`}),` for that — but useful for your own records.`]})}),`\n`,_jsx(ResponseField,{name:`order.status`,type:`string`,id:`param-order-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`pending_dispatch`}),` if no driver was immediately available, `,_jsx(_components.code,{children:`driver_assigned`}),` if dispatch succeeded synchronously. See `,_jsx(_components.a,{href:`/order-lifecycle`,children:`Order Lifecycle`}),` for the full set of values and how status changes after this point.`]})}),`\n`,_jsx(ResponseField,{name:`order.delivery_tier`,type:`string`,id:`param-order-delivery-tier`,children:_jsxs(_components.p,{children:[`Echoes back the tier that was used (defaults to `,_jsx(_components.code,{children:`standard`}),` if you didn’t send one).`]})}),`\n`,_jsx(ResponseField,{name:`order.delivery_fee`,type:`integer`,id:`param-order-delivery-fee`,children:_jsxs(_components.p,{children:[`The price charged for this delivery, in cents. Always derived server-side from `,_jsx(_components.code,{children:`delivery_tier`}),` — see `,_jsx(_components.a,{href:`/delivery-tiers`,children:`Delivery Tiers`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`order.payment_status`,type:`string`,id:`param-order-payment-status`,children:_jsxs(_components.p,{children:[`Whether your store’s card on file was successfully charged. See `,_jsx(_components.a,{href:`/order-lifecycle#billing`,children:`Order Lifecycle`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`order.tracking_token`,type:`string`,id:`param-order-tracking-token`,children:_jsxs(_components.p,{children:[`The token in the customer’s tracking link: `,_jsx(_components.code,{children:`https://rushly.us/track/{tracking_token}`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A few other fields are present on `,_jsx(_components.code,{children:`order`}),` (`,_jsx(_components.code,{children:`customer_id`}),`, `,_jsx(_components.code,{children:`driver_id`}),`,\n`,_jsx(_components.code,{children:`dropoff_address_id`}),`, `,_jsx(_components.code,{children:`stripe_charge_id`}),`, timestamps, and some\ndriver-payout bookkeeping fields) — they’re internal and safe to ignore.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsx(ResponseField,{name:`400 Bad Request`,type:`object`,id:`param-400-bad-request`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`delivery_tier`}),` was set to something other than `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`priority`}),`, or `,_jsx(_components.code,{children:`scheduled`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`401 Unauthorized`,type:`object`,id:`param-401-unauthorized`,children:_jsxs(_components.p,{children:[`The API key is missing or wrong, doesn’t match the `,_jsx(_components.code,{children:`retailer_id`}),` you sent, or your store’s status isn’t `,_jsx(_components.code,{children:`active`}),` yet. Double-check both values are exactly what you were given — see `,_jsx(_components.a,{href:`/authentication#testing-your-key`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`500 Internal Server Error`,type:`object`,id:`param-500-internal-server-error`,children:_jsxs(_components.p,{children:[`Something went wrong on Rushly’s end. Safe to retry; contact `,_jsx(_components.a,{href:`mailto:support@rushly.us`,children:`support@rushly.us`}),` if it persists.`]})})]})}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 an Order","api":"POST https://rushly-backend-660939316816.us-west2.run.app/orders/create","description":"Create a same-day delivery order for a customer","href":"/api-reference/create-order"}}},"mdxSourceWithNoJs":{"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`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,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(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a delivery order, then automatically attempts to dispatch it to the nearest eligible driver. See `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),` for how to get a key, and `,_jsx(_components.a,{href:`/order-lifecycle`,children:`Order Lifecycle`}),` for what happens after this call.`]}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer rk_your_api_key`}),` — see `,_jsx(_components.a,{href:`/authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`application/json`})})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`retailer_id`,type:`string`,required:true,id:`param-retailer-id`,children:_jsx(_components.p,{children:`Your store’s Rushly ID, given to you alongside your API key.`})}),`\n`,_jsx(ParamField,{body:`customer`,type:`object`,required:true,id:`param-customer`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Customer’s full name.`})}),_jsx(ParamField,{body:`email`,type:`string`,required:true,id:`param-email`,children:_jsx(_components.p,{children:`Customer’s email.`})}),_jsx(ParamField,{body:`phone`,type:`string`,required:true,id:`param-phone`,children:_jsxs(_components.p,{children:[`Customer’s phone number, E.164 format (e.g. `,_jsx(_components.code,{children:`+19495550192`}),`). Used to\nsend the order-confirmed text and tracking link.`]})}),_jsx(ParamField,{body:`sms_opt_in`,type:`boolean`,default:`false`,id:`param-sms-opt-in`,children:_jsxs(_components.p,{children:[`Whether the customer consented to receive SMS updates. If `,_jsx(_components.code,{children:`false`}),`, the\norder is still created and dispatched normally — the customer just\nwon’t be texted a tracking link, so make sure your own confirmation\npage or email surfaces it instead.`]})})]})}),`\n`,_jsx(ParamField,{body:`pickup_address`,type:`string`,required:true,id:`param-pickup-address`,children:_jsxs(_components.p,{children:[`Your store’s address, as a single formatted string (e.g. `,_jsx(_components.code,{children:`\"123 Fashion Ave, Irvine, CA 92614\"`}),`).`]})}),`\n`,_jsx(ParamField,{body:`dropoff_address`,type:`object`,required:true,id:`param-dropoff-address`,children:_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`line1`,type:`string`,required:true,id:`param-line1`}),_jsx(ParamField,{body:`line2`,type:`string`,id:`param-line2`}),_jsx(ParamField,{body:`city`,type:`string`,required:true,id:`param-city`}),_jsx(ParamField,{body:`state`,type:`string`,required:true,id:`param-state`,children:_jsxs(_components.p,{children:[`Two-letter state code (e.g. `,_jsx(_components.code,{children:`\"CA\"`}),`).`]})}),_jsx(ParamField,{body:`zip`,type:`string`,required:true,id:`param-zip`})]})}),`\n`,_jsx(ParamField,{body:`delivery_tier`,type:`string`,default:`standard`,id:`param-delivery-tier`,children:_jsxs(_components.p,{children:[`One of `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`priority`}),`, or `,_jsx(_components.code,{children:`scheduled`}),`. See `,_jsx(_components.a,{href:`/delivery-tiers`,children:`Delivery\nTiers`}),` for pricing and what each means for dispatch.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`21`,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:`21`,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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://rushly-backend-660939316816.us-west2.run.app/orders/create`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer rk_your_api_key\"`}),_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:` -H`}),_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:` -d`}),_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:` \"retailer_id\": \"your-retailer-id\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Sarah Chen\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"sarah@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"phone\": \"+19495550192\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sms_opt_in\": true`})}),`\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:` \"pickup_address\": \"123 Fashion Ave, Irvine, CA 92614\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dropoff_address\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line1\": \"456 Oak Street\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"line2\": \"Apt 2B\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"city\": \"Irvine\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"state\": \"CA\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"zip\": \"92618\"`})}),`\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:` \"delivery_tier\": \"standard\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`13`,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:`13`,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:` \"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`,_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:`\"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:` \"order\"`}),_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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1bebe287-c9da-49f9-8db7-20c77cd427c1\"`}),_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:`\"driver_assigned\"`}),_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:` \"delivery_tier\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"standard\"`}),_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:` \"delivery_fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2500`}),_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_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"succeeded\"`}),_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:` \"tracking_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ce0470cf-08ea-40e3-b935-5243c99e60b8\"`}),_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:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-08T02:56:00.725Z\"`})]}),`\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(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`order.id`,type:`string`,id:`param-order-id`,children:_jsxs(_components.p,{children:[`The order’s ID. Not needed for anything client-facing — use\n`,_jsx(_components.code,{children:`tracking_token`}),` for that — but useful for your own records.`]})}),`\n`,_jsx(ResponseField,{name:`order.status`,type:`string`,id:`param-order-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`pending_dispatch`}),` if no driver was immediately available, `,_jsx(_components.code,{children:`driver_assigned`}),` if dispatch succeeded synchronously. See `,_jsx(_components.a,{href:`/order-lifecycle`,children:`Order Lifecycle`}),` for the full set of values and how status changes after this point.`]})}),`\n`,_jsx(ResponseField,{name:`order.delivery_tier`,type:`string`,id:`param-order-delivery-tier`,children:_jsxs(_components.p,{children:[`Echoes back the tier that was used (defaults to `,_jsx(_components.code,{children:`standard`}),` if you didn’t send one).`]})}),`\n`,_jsx(ResponseField,{name:`order.delivery_fee`,type:`integer`,id:`param-order-delivery-fee`,children:_jsxs(_components.p,{children:[`The price charged for this delivery, in cents. Always derived server-side from `,_jsx(_components.code,{children:`delivery_tier`}),` — see `,_jsx(_components.a,{href:`/delivery-tiers`,children:`Delivery Tiers`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`order.payment_status`,type:`string`,id:`param-order-payment-status`,children:_jsxs(_components.p,{children:[`Whether your store’s card on file was successfully charged. See `,_jsx(_components.a,{href:`/order-lifecycle#billing`,children:`Order Lifecycle`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`order.tracking_token`,type:`string`,id:`param-order-tracking-token`,children:_jsxs(_components.p,{children:[`The token in the customer’s tracking link: `,_jsx(_components.code,{children:`https://rushly.us/track/{tracking_token}`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A few other fields are present on `,_jsx(_components.code,{children:`order`}),` (`,_jsx(_components.code,{children:`customer_id`}),`, `,_jsx(_components.code,{children:`driver_id`}),`,\n`,_jsx(_components.code,{children:`dropoff_address_id`}),`, `,_jsx(_components.code,{children:`stripe_charge_id`}),`, timestamps, and some\ndriver-payout bookkeeping fields) — they’re internal and safe to ignore.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsx(ResponseField,{name:`400 Bad Request`,type:`object`,id:`param-400-bad-request`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`delivery_tier`}),` was set to something other than `,_jsx(_components.code,{children:`standard`}),`, `,_jsx(_components.code,{children:`priority`}),`, or `,_jsx(_components.code,{children:`scheduled`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`401 Unauthorized`,type:`object`,id:`param-401-unauthorized`,children:_jsxs(_components.p,{children:[`The API key is missing or wrong, doesn’t match the `,_jsx(_components.code,{children:`retailer_id`}),` you sent, or your store’s status isn’t `,_jsx(_components.code,{children:`active`}),` yet. Double-check both values are exactly what you were given — see `,_jsx(_components.a,{href:`/authentication#testing-your-key`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`500 Internal Server Error`,type:`object`,id:`param-500-internal-server-error`,children:_jsxs(_components.p,{children:[`Something went wrong on Rushly’s end. Safe to retry; contact `,_jsx(_components.a,{href:`mailto:support@rushly.us`,children:`support@rushly.us`}),` if it persists.`]})})]})}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 an Order","api":"POST https://rushly-backend-660939316816.us-west2.run.app/orders/create","description":"Create a same-day delivery order for a customer","href":"/api-reference/create-order"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","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=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"21\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://rushly-backend-660939316816.us-west2.run.app/orders/create\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer rk_your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"retailer_id\": \"your-retailer-id\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"customer\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Sarah Chen\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\": \"sarah@example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"phone\": \"+19495550192\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"sms_opt_in\": true\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pickup_address\": \"123 Fashion Ave, Irvine, CA 92614\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dropoff_address\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"line1\": \"456 Oak Street\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"line2\": \"Apt 2B\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"city\": \"Irvine\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"state\": \"CA\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"zip\": \"92618\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"delivery_tier\": \"standard\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Created","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=\"13\">\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\"> \"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\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\">\"Order created successfully\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"order\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1bebe287-c9da-49f9-8db7-20c77cd427c1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"driver_assigned\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"delivery_tier\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"standard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"delivery_fee\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"payment_status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"succeeded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tracking_token\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ce0470cf-08ea-40e3-b935-5243c99e60b8\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-08-08T02:56:00.725Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\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 an Order","path":"/orders/create","servers":[{"url":"https://rushly-backend-660939316816.us-west2.run.app"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer rk_your_api_key` — see Authentication .","required":true}]},"Content-Type":{"schema":[{"type":"string","description":"`application/json`","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"retailer_id":[{"type":"string","description":"Your store’s Rushly ID, given to you alongside your API key.","required":true}],"customer":[{"type":"object","properties":{"name":[{"type":"string","description":"Customer’s full name.","required":true}],"email":[{"type":"string","description":"Customer’s email.","required":true}],"phone":[{"type":"string","description":"Customer’s phone number, E.164 format (e.g. `+19495550192` ). Used to send the order-confirmed text and tracking link.","required":true}],"sms_opt_in":[{"type":"boolean","description":"Whether the customer consented to receive SMS updates. If `false` , the order is still created and dispatched normally — the customer just won’t be texted a tracking link, so make sure your own confirmation page or email surfaces it instead."}]},"required":true}],"pickup_address":[{"type":"string","description":"Your store’s address, as a single formatted string (e.g. `\"123 Fashion Ave, Irvine, CA 92614\"` ).","required":true}],"dropoff_address":[{"type":"object","properties":{"line1":[{"type":"string","required":true}],"line2":[{"type":"string"}],"city":[{"type":"string","required":true}],"state":[{"type":"string","description":"Two-letter state code (e.g. `\"CA\"` ).","required":true}],"zip":[{"type":"string","required":true}]},"required":true}],"delivery_tier":[{"type":"string","description":"One of `standard` , `priority` , or `scheduled` . See Delivery Tiers for pricing and what each means for dispatch."}]}}],"examples":{"example":{"value":{"retailer_id":"\u003cstring>","customer":{"name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","sms_opt_in":true},"pickup_address":"\u003cstring>","dropoff_address":{"line1":"\u003cstring>","line2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","zip":"\u003cstring>"},"delivery_tier":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"order.id":[{"type":"string","description":"The order’s ID. Not needed for anything client-facing — use `tracking_token` for that — but useful for your own records."}],"order.status":[{"type":"string","description":"`pending_dispatch` if no driver was immediately available, `driver_assigned` if dispatch succeeded synchronously. See Order Lifecycle for the full set of values and how status changes after this point."}],"order.delivery_tier":[{"type":"string","description":"Echoes back the tier that was used (defaults to `standard` if you didn’t send one)."}],"order.delivery_fee":[{"type":"integer","description":"The price charged for this delivery, in cents. Always derived server-side from `delivery_tier` — see Delivery Tiers ."}],"order.payment_status":[{"type":"string","description":"Whether your store’s card on file was successfully charged. See Order Lifecycle ."}],"order.tracking_token":[{"type":"string","description":"The token in the customer’s tracking link: `https://rushly.us/track/{tracking_token}` ."}],"400 Bad Request":[{"type":"object","properties":{},"description":"`delivery_tier` was set to something other than `standard` , `priority` , or `scheduled` ."}],"401 Unauthorized":[{"type":"object","properties":{},"description":"The API key is missing or wrong, doesn’t match the `retailer_id` you sent, or your store’s status isn’t `active` yet. Double-check both values are exactly what you were given — see Authentication ."}],"500 Internal Server Error":[{"type":"object","properties":{},"description":"Something went wrong on Rushly’s end. Safe to retry; contact support@rushly.us if it persists."}]}}],"examples":{"example":{"value":{"order.id":"\u003cstring>","order.status":"\u003cstring>","order.delivery_tier":"\u003cstring>","order.delivery_fee":123,"order.payment_status":"\u003cstring>","order.tracking_token":"\u003cstring>","400 Bad Request":{},"401 Unauthorized":{},"500 Internal Server Error":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"rushly-82799ffa","siteName":"Rushly","title":"Create an Order - Rushly","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-10T03:32:01.834Z","originalFileLocation":"api-reference/create-order.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=\"Create a same-day delivery order for a customer\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rushly\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an Order - Rushly\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a same-day delivery order for a customer\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rushly\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rushly.us/api-reference/create-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rushly-82799ffa.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Create+an+Order\u0026amp;description=Create+a+same-day+delivery+order+for+a+customer\u0026amp;theme=b572bf04e3523275fe460463\u0026amp;signature=5569dd99687a378464d580dad558c1dbf5f940c490bf865f9a8e4c25f3d3e5e5\">\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 an Order - Rushly\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a same-day delivery order for a customer\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rushly-82799ffa.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Create+an+Order\u0026amp;description=Create+a+same-day+delivery+order+for+a+customer\u0026amp;theme=b572bf04e3523275fe460463\u0026amp;signature=5569dd99687a378464d580dad558c1dbf5f940c490bf865f9a8e4c25f3d3e5e5\">\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/rushly-82799ffa/gMjNDAqsZE8RzOY1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rushly\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e85d3a\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rushly.us/api-reference/create-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/create-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rushly.us/#organization\",\"name\":\"Rushly\",\"url\":\"https://docs.rushly.us\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rushly.us#website\",\"name\":\"Rushly\",\"url\":\"https://docs.rushly.us\",\"publisher\":{\"@id\":\"https://docs.rushly.us/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rushly.us/api-reference/create-order#webpage\",\"url\":\"https://docs.rushly.us/api-reference/create-order\",\"name\":\"Create an Order\",\"description\":\"Create a same-day delivery order for a customer\",\"dateModified\":\"2026-08-10T03:32:01.834Z\",\"isPartOf\":{\"@id\":\"https://docs.rushly.us#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rushly.us/api-reference/create-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rushly.us/api-reference/create-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Rushly\",\"item\":\"https://docs.rushly.us\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an Order\",\"item\":\"https://docs.rushly.us/api-reference/create-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.rushly.us/api-reference/create-order#apireference\",\"headline\":\"Create an Order\",\"name\":\"Create an Order\",\"description\":\"Create a same-day delivery order for a customer\",\"url\":\"https://docs.rushly.us/api-reference/create-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rushly.us/api-reference/create-order#webpage\"},\"dateModified\":\"2026-08-10T03:32:01.834Z\",\"publisher\":{\"@id\":\"https://docs.rushly.us/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rushly.us#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rushly\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rushly\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/create-order.md","siteName":"Rushly","nav":{"global":null,"groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Authentication","href":"/authentication"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"Delivery Tiers","href":"/delivery-tiers"},{"title":"Order Lifecycle","description":"Every status an order moves through, and how to follow along","href":"/order-lifecycle"}]},{"group":"API Reference","pages":[{"title":"Create an Order","api":"POST https://rushly-backend-660939316816.us-west2.run.app/orders/create","href":"/api-reference/create-order"}]}]},"basePath":"","title":"Create an Order - Rushly","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CDiBsYGW.js","utils-KF9rPlmF.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C26urKTX.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BdjmJAC1.js","snippetPresets-3IpDBjt3.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-D4x_2vvo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BIWdc5Pa.js","shallow-LQqfiMNd.js","getApiPlaygroundDisplay-DryzlOZG.js","CodeSnippet-tcJujU4r.js","CodeSnippets-BHp0nVLL.js","Page-1CZdsdAn.js","getPastedJson-DU-1ayUv.js","icon-CZK2hPr4.js","MethodPill-DOaqmTFC.js","DuplicateIcon-B5-nUxxl.js","createIcon-CDP_U77G.js","DynamicMarkdown-GHvayGOn.js","SectionHeading-BYvpkmUD.js","axios-vUo_bRtp.js"]}