{ "success": false, "error": "VALIDATION_ERROR", "message": "orderCode is required and must be a non-empty string"}
{ "success": false, "error": "CONFLICT", "code": "DUPLICATE_ORDER", "message": "Order with external id ORD-000123 already exists for this vendor.", "data": { "id": "6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10", "externalOrderId": "ORD-000123", "status": "COMPLETED" }}
Cria um pedido no Fire com o corpo no formato Fire: o mesmo de
Injetar pedido, sem mudanças. O Fire não o traduz: valida e cria o
pedido diretamente.Esta é a versão 1. Se o seu sistema envia os pedidos com a estrutura de PDV e quiosque ou com a
de agregadores, use Criar pedido (v2). As duas versões estão
vigentes e terminam no mesmo lugar: mesmas validações, mesma resposta.Depois de criado, o pedido segue o mesmo ciclo de qualquer pedido do Fire: impostos, dia de
negócio, documento fiscal e eventos.
Sua API key do Fire com escopo orders:write. Também é aceito Authorization: Bearer <api_key>.
A key deve estar associada à sua conta e a um vendor. Não é preciso enviar o header account.
totals[] e paymentMethods[], com pelo menos um item cada. O transactionStatus dos pagamentos
decide se o pedido fica fechado (APPROVED) ou aberto, pendente de cobrança (PENDING).
Falta orderCode ou o corpo não está no formato Fire
400
BUSINESS_ERROR
Loja inativa, dia de negócio fechado, ou o pedido não cumpre uma regra de validação ativada para o seu vendor (ORDER_INVARIANT_VIOLATION)
404
NOT_FOUND
A loja não existe
401
UNAUTHORIZED
API key inválida, vencida ou revogada
403
FORBIDDEN
API key sem escopo orders:write ou não associada à sua conta
409
CONFLICT / DUPLICATE_ORDER
O pedido já existia para o seu vendor. data traz id, externalOrderId e status do existente
Toda requisição fica registrada no Fire com o corpo e o motivo da rejeição, inclusive as
rejeitadas. Se você reenviar um pedido que já foi criado, a resposta é 409 e ele não é duplicado.
{ "success": false, "error": "VALIDATION_ERROR", "message": "orderCode is required and must be a non-empty string"}
{ "success": false, "error": "CONFLICT", "code": "DUPLICATE_ORDER", "message": "Order with external id ORD-000123 already exists for this vendor.", "data": { "id": "6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10", "externalOrderId": "ORD-000123", "status": "COMPLETED" }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Fire Docs","colors":{"primary":"#E6293D","light":"#E6293D","dark":"#E6293D"},"logo":{"light":"https://mintcdn.com/firepos/gddYq9ZzZKtuBajb/logo/firedocs-light.png?fit=max\u0026auto=format\u0026n=gddYq9ZzZKtuBajb\u0026q=85\u0026s=93281297e6bf96adc03944d9b1f7a63c","dark":"https://mintcdn.com/firepos/gddYq9ZzZKtuBajb/logo/firedocs-dark.png?fit=max\u0026auto=format\u0026n=gddYq9ZzZKtuBajb\u0026q=85\u0026s=874828c9b9dda897b5104bfe491b90cb"},"favicon":"https://mintcdn.com/firepos/gddYq9ZzZKtuBajb/favicon.ico?fit=max\u0026auto=format\u0026n=gddYq9ZzZKtuBajb\u0026q=85\u0026s=1b44ffdfe35fcfa80fd2ecbc6c2f8ac8","api":{},"navbar":{"links":[{"href":"#","label":"Support"},{"href":"https://buttondown.com/fire-docs","label":"Subscribe to updates"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.fire.rest"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","default":true,"footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"href":"en/introduction"},{"language":"es","footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"href":"es/introduction"},{"language":"pt","footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"href":"pt/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"firepos","hasAudioNarration":false,"actualSubdomain":"firepos","customDomains":["docs.fire.rest"],"gitSource":{"type":"github","owner":"fire-rest","repo":"documentation","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae3c498f7fb2cc77b53c892","collectionId":"01704fe3-fa44-4593-acab-fabd98c518de","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae3c498f7fb2cc77b53c892"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae3c498f7fb2cc77b53c892","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"en","tag":"BOH API","count":69},{"language":"es","tag":"BOH API","count":69},{"language":"pt","tag":"BOH API","count":69},{"language":"en","tag":"User manuals","count":64},{"language":"es","tag":"Manuales de usuario","count":64},{"language":"pt","tag":"Manuais do usuário","count":64},{"language":"en","tag":"API reference","count":40},{"language":"es","tag":"Referencia API","count":40},{"language":"pt","tag":"Referência da API","count":40},{"language":"en","tag":"Guides","count":35},{"language":"es","tag":"Guías","count":35},{"language":"pt","tag":"Guias","count":35},{"language":"en","tag":"API","count":29},{"language":"es","tag":"API","count":29},{"language":"pt","tag":"API","count":29},{"language":"en","tag":"POS","count":21},{"language":"es","tag":"POS","count":21},{"language":"pt","tag":"POS","count":21},{"language":"en","tag":"Backoffice","count":17},{"language":"es","tag":"Backoffice","count":17},{"language":"pt","tag":"Backoffice","count":17},{"language":"en","tag":"KDS","count":12},{"language":"en","tag":"Webhook reference","count":12},{"language":"es","tag":"KDS","count":12},{"language":"pt","tag":"KDS","count":12},{"language":"en","tag":"Partner APIs","count":11},{"language":"es","tag":"APIs de partner","count":11},{"language":"es","tag":"Eventos","count":11},{"language":"pt","tag":"APIs de parceiro","count":11},{"language":"pt","tag":"Eventos","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"pt/api-reference/create-order","slug":"/pt/api-reference/create-order","pageMetadata":{"title":"Criar pedido (v1)","api":"POST https://app.fire.rest/api/v1/external/orders","description":"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.","authMethod":"bearer","href":"/pt/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: \"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Info,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cria um pedido no Fire com o corpo no `,_jsx(_components.strong,{children:`formato Fire`}),`: o mesmo de\n`,_jsx(_components.a,{href:`/pt/api-reference/orders`,children:`Injetar pedido`}),`, sem mudanças. O Fire não o traduz: valida e cria o\npedido diretamente.`]}),`\n`,_jsxs(_components.p,{children:[`Esta é a `,_jsx(_components.strong,{children:`versão 1`}),`. Se o seu sistema envia os pedidos com a estrutura de PDV e quiosque ou com a\nde agregadores, use `,_jsx(_components.a,{href:`/pt/api-reference/create-order-v2`,children:`Criar pedido (v2)`}),`. As duas versões estão\nvigentes e terminam no mesmo lugar: mesmas validações, mesma resposta.`]}),`\n`,_jsxs(_components.p,{children:[`Depois de criado, o pedido segue o mesmo ciclo de qualquer pedido do Fire: impostos, dia de\nnegócio, documento fiscal e `,_jsx(_components.a,{href:`/pt/events/overview`,children:`eventos`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`autenticação`,children:`Autenticação`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Sua API key do Fire com escopo `,_jsx(_components.code,{children:`orders:write`}),`. Também é aceito `,_jsx(_components.code,{children:`Authorization: Bearer \u003capi_key>`}),`.\nA key `,_jsx(_components.strong,{children:`deve estar associada à sua conta e a um vendor`}),`. Não é preciso enviar o header `,_jsx(_components.code,{children:`account`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`corpo`,children:`Corpo`}),`\n`,_jsxs(_components.p,{children:[`O corpo é o de `,_jsx(_components.a,{href:`/pt/api-reference/orders`,children:`Injetar pedido`}),`, no formato Fire (camelCase, com preços e\ntotais). Os campos mínimos são:`]}),`\n`,_jsx(ParamField,{body:`orderId`,type:`string`,required:true,id:`param-order-id`,children:`Identificador do pedido no seu sistema.`}),`\n`,_jsx(ParamField,{body:`orderCode`,type:`string`,required:true,id:`param-order-code`,children:_jsxs(_components.p,{children:[`Código único do pedido. Se já existir um pedido com esse código para o seu vendor, a resposta é `,_jsx(_components.code,{children:`409`}),`.`]})}),`\n`,_jsx(ParamField,{body:`accountId`,type:`number`,required:true,id:`param-account-id`,children:`Conta do pedido.`}),`\n`,_jsx(ParamField,{body:`createdAt`,type:`string`,required:true,id:`param-created-at`,children:`Data da venda.`}),`\n`,_jsxs(ParamField,{body:`selectedShippingMethod`,type:`string`,required:true,id:`param-selected-shipping-method`,children:[_jsx(_components.code,{children:`delivery`}),` ou `,_jsx(_components.code,{children:`pickup`}),`.`]}),`\n`,_jsxs(ParamField,{body:`client`,type:`object`,required:true,id:`param-client`,children:[`Cliente: `,_jsx(_components.code,{children:`uid`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`lastName`}),`.`]}),`\n`,_jsxs(ParamField,{body:`store`,type:`object`,required:true,id:`param-store`,children:[`Loja: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`vendorId`}),`.`]}),`\n`,_jsxs(ParamField,{body:`order`,type:`object`,required:true,id:`param-order`,children:[_jsx(_components.code,{children:`products[]`}),` com pelo menos um produto.`]}),`\n`,_jsx(ParamField,{body:`payments`,type:`object`,required:true,id:`param-payments`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`totals[]`}),` e `,_jsx(_components.code,{children:`paymentMethods[]`}),`, com pelo menos um item cada. O `,_jsx(_components.code,{children:`transactionStatus`}),` dos pagamentos\ndecide se o pedido fica fechado (`,_jsx(_components.code,{children:`APPROVED`}),`) ou aberto, pendente de cobrança (`,_jsx(_components.code,{children:`PENDING`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`resposta`,children:`Resposta`}),`\n`,_jsxs(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:[_jsx(_components.code,{children:`true`}),` quando o pedido foi criado.`]}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:`ID do pedido no Fire. Use-o para consultar, atualizar ou cancelar o pedido.`}),_jsxs(ResponseField,{name:`external_order_id`,type:`string`,id:`param-external-order-id`,children:[`O `,_jsx(_components.code,{children:`orderId`}),` que você enviou.`]}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`COMPLETED`}),` ou `,_jsx(_components.code,{children:`OPEN`}),`.`]}),_jsxs(ResponseField,{name:`payment_status`,type:`string`,id:`param-payment-status`,children:[_jsx(_components.code,{children:`SUCCEEDED`}),` ou `,_jsx(_components.code,{children:`PENDING`}),`.`]}),_jsxs(ResponseField,{name:`business_day_date`,type:`string`,id:`param-business-day-date`,children:[`Dia de negócio da loja, `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:`Data de criação no Fire (ISO 8601).`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`erros`,children:`Erros`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsxs(_components.th,{children:[_jsx(_components.code,{children:`error`}),` / `,_jsx(_components.code,{children:`code`})]}),_jsx(_components.th,{children:`Quando`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[`Falta `,_jsx(_components.code,{children:`orderCode`}),` ou o corpo não está no formato Fire`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BUSINESS_ERROR`})}),_jsxs(_components.td,{children:[`Loja inativa, dia de negócio fechado, ou o pedido não cumpre uma regra de validação ativada para o seu vendor (`,_jsx(_components.code,{children:`ORDER_INVARIANT_VIOLATION`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`A loja não existe`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHORIZED`})}),_jsx(_components.td,{children:`API key inválida, vencida ou revogada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN`})}),_jsxs(_components.td,{children:[`API key sem escopo `,_jsx(_components.code,{children:`orders:write`}),` ou não associada à sua conta`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CONFLICT`}),` / `,_jsx(_components.code,{children:`DUPLICATE_ORDER`})]}),_jsxs(_components.td,{children:[`O pedido já existia para o seu vendor. `,_jsx(_components.code,{children:`data`}),` traz `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`externalOrderId`}),` e `,_jsx(_components.code,{children:`status`}),` do existente`]})]})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Toda requisição fica registrada no Fire com o corpo e o motivo da rejeição, inclusive as\nrejeitadas. Se você reenviar um pedido que já foi criado, a resposta é `,_jsx(_components.code,{children:`409`}),` e ele não é duplicado.`]})})]})}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":"Criar pedido (v1)","api":"POST https://app.fire.rest/api/v1/external/orders","description":"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.","authMethod":"bearer","href":"/pt/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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Cria um pedido no Fire com o corpo no `,_jsx(_components.strong,{children:`formato Fire`}),`: o mesmo de\n`,_jsx(_components.a,{href:`/pt/api-reference/orders`,children:`Injetar pedido`}),`, sem mudanças. O Fire não o traduz: valida e cria o\npedido diretamente.`]}),`\n`,_jsxs(_components.p,{children:[`Esta é a `,_jsx(_components.strong,{children:`versão 1`}),`. Se o seu sistema envia os pedidos com a estrutura de PDV e quiosque ou com a\nde agregadores, use `,_jsx(_components.a,{href:`/pt/api-reference/create-order-v2`,children:`Criar pedido (v2)`}),`. As duas versões estão\nvigentes e terminam no mesmo lugar: mesmas validações, mesma resposta.`]}),`\n`,_jsxs(_components.p,{children:[`Depois de criado, o pedido segue o mesmo ciclo de qualquer pedido do Fire: impostos, dia de\nnegócio, documento fiscal e `,_jsx(_components.a,{href:`/pt/events/overview`,children:`eventos`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`autenticação`,children:`Autenticação`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Sua API key do Fire com escopo `,_jsx(_components.code,{children:`orders:write`}),`. Também é aceito `,_jsx(_components.code,{children:`Authorization: Bearer \u003capi_key>`}),`.\nA key `,_jsx(_components.strong,{children:`deve estar associada à sua conta e a um vendor`}),`. Não é preciso enviar o header `,_jsx(_components.code,{children:`account`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`corpo`,children:`Corpo`}),`\n`,_jsxs(_components.p,{children:[`O corpo é o de `,_jsx(_components.a,{href:`/pt/api-reference/orders`,children:`Injetar pedido`}),`, no formato Fire (camelCase, com preços e\ntotais). Os campos mínimos são:`]}),`\n`,_jsx(ParamField,{body:`orderId`,type:`string`,required:true,id:`param-order-id`,children:`Identificador do pedido no seu sistema.`}),`\n`,_jsx(ParamField,{body:`orderCode`,type:`string`,required:true,id:`param-order-code`,children:_jsxs(_components.p,{children:[`Código único do pedido. Se já existir um pedido com esse código para o seu vendor, a resposta é `,_jsx(_components.code,{children:`409`}),`.`]})}),`\n`,_jsx(ParamField,{body:`accountId`,type:`number`,required:true,id:`param-account-id`,children:`Conta do pedido.`}),`\n`,_jsx(ParamField,{body:`createdAt`,type:`string`,required:true,id:`param-created-at`,children:`Data da venda.`}),`\n`,_jsxs(ParamField,{body:`selectedShippingMethod`,type:`string`,required:true,id:`param-selected-shipping-method`,children:[_jsx(_components.code,{children:`delivery`}),` ou `,_jsx(_components.code,{children:`pickup`}),`.`]}),`\n`,_jsxs(ParamField,{body:`client`,type:`object`,required:true,id:`param-client`,children:[`Cliente: `,_jsx(_components.code,{children:`uid`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`lastName`}),`.`]}),`\n`,_jsxs(ParamField,{body:`store`,type:`object`,required:true,id:`param-store`,children:[`Loja: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`vendorId`}),`.`]}),`\n`,_jsxs(ParamField,{body:`order`,type:`object`,required:true,id:`param-order`,children:[_jsx(_components.code,{children:`products[]`}),` com pelo menos um produto.`]}),`\n`,_jsx(ParamField,{body:`payments`,type:`object`,required:true,id:`param-payments`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`totals[]`}),` e `,_jsx(_components.code,{children:`paymentMethods[]`}),`, com pelo menos um item cada. O `,_jsx(_components.code,{children:`transactionStatus`}),` dos pagamentos\ndecide se o pedido fica fechado (`,_jsx(_components.code,{children:`APPROVED`}),`) ou aberto, pendente de cobrança (`,_jsx(_components.code,{children:`PENDING`}),`).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`resposta`,children:`Resposta`}),`\n`,_jsxs(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:[_jsx(_components.code,{children:`true`}),` quando o pedido foi criado.`]}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`data`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:`ID do pedido no Fire. Use-o para consultar, atualizar ou cancelar o pedido.`}),_jsxs(ResponseField,{name:`external_order_id`,type:`string`,id:`param-external-order-id`,children:[`O `,_jsx(_components.code,{children:`orderId`}),` que você enviou.`]}),_jsxs(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:[_jsx(_components.code,{children:`COMPLETED`}),` ou `,_jsx(_components.code,{children:`OPEN`}),`.`]}),_jsxs(ResponseField,{name:`payment_status`,type:`string`,id:`param-payment-status`,children:[_jsx(_components.code,{children:`SUCCEEDED`}),` ou `,_jsx(_components.code,{children:`PENDING`}),`.`]}),_jsxs(ResponseField,{name:`business_day_date`,type:`string`,id:`param-business-day-date`,children:[`Dia de negócio da loja, `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`.`]}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:`Data de criação no Fire (ISO 8601).`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`erros`,children:`Erros`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsxs(_components.th,{children:[_jsx(_components.code,{children:`error`}),` / `,_jsx(_components.code,{children:`code`})]}),_jsx(_components.th,{children:`Quando`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[`Falta `,_jsx(_components.code,{children:`orderCode`}),` ou o corpo não está no formato Fire`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BUSINESS_ERROR`})}),_jsxs(_components.td,{children:[`Loja inativa, dia de negócio fechado, ou o pedido não cumpre uma regra de validação ativada para o seu vendor (`,_jsx(_components.code,{children:`ORDER_INVARIANT_VIOLATION`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`A loja não existe`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHORIZED`})}),_jsx(_components.td,{children:`API key inválida, vencida ou revogada`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN`})}),_jsxs(_components.td,{children:[`API key sem escopo `,_jsx(_components.code,{children:`orders:write`}),` ou não associada à sua conta`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CONFLICT`}),` / `,_jsx(_components.code,{children:`DUPLICATE_ORDER`})]}),_jsxs(_components.td,{children:[`O pedido já existia para o seu vendor. `,_jsx(_components.code,{children:`data`}),` traz `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`externalOrderId`}),` e `,_jsx(_components.code,{children:`status`}),` do existente`]})]})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Toda requisição fica registrada no Fire com o corpo e o motivo da rejeição, inclusive as\nrejeitadas. Se você reenviar um pedido que já foi criado, a resposta é `,_jsx(_components.code,{children:`409`}),` e ele não é duplicado.`]})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`31`,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:`31`,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://app.fire.rest/api/v1/external/orders`}),_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:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FIRE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` \"orderId\": \"ORD-000123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderCode\": \"ORD-000123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"accountId\": 11,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"account\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"createdAt\": \"2026-10-29 14:57:41\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"selectedShippingMethod\": \"pickup\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client\": { \"uid\": \"customer-0001\", \"name\": \"CONSUMIDOR\", \"lastName\": \"FINAL\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"store\": { \"id\": \"11.6.1350.50\", \"code\": \"K000\", \"vendorId\": \"11.6.1350\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"channel\": { \"uid\": \"c784d4ba-23c7-4929-b2f0-1a1960d9cdc2\", \"code\": \"KIOSK\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"service\": { \"uid\": \"726c4892-48b9-45da-b066-2a8e83d2cb78\", \"code\": \"Dine-In\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"order\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"products\": [{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"productId\": \"7abdd4e5-d685-43ff-ba79-5e8b2f700b5b\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"product\": \"12 Tiras de Frango\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 1,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"price\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"unitPrice\": { \"currencyCode\": \"BRL\", \"subtotalWithoutTaxes\": 64.9, \"taxValue\": 0, \"total\": 64.9 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"totalPrice\": { \"currencyCode\": \"BRL\", \"subtotalWithoutTaxes\": 64.9, \"taxValue\": 0, \"total\": 64.9 }`})}),`\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:` \"modifierGroups\": []`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"payments\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"totals\": [{ \"currencyCode\": \"BRL\", \"total\": 64.9 }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentMethods\": [{ \"processor\": \"CREDIT\", \"currencyCode\": \"BRL\", \"transactionStatus\": \"APPROVED\", \"totalBill\": 64.9 }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`201`,numberOfLines:`11`,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:`11`,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:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10\"`}),_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:` \"external_order_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ORD-000123\"`}),_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:`\"COMPLETED\"`}),_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:` \"business_day_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-29\"`}),_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-10-29T14:57:44.330Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_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:`\"orderCode is required and must be a non-empty string\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409`,numberOfLines:`7`,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:`7`,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:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CONFLICT\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DUPLICATE_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Order with external id ORD-000123 already exists for this vendor.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_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:`\"6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"externalOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ORD-000123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"COMPLETED\"`}),_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`]})})})]})]})}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":"Criar pedido (v1)","api":"POST https://app.fire.rest/api/v1/external/orders","description":"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.","authMethod":"bearer","href":"/pt/api-reference/create-order"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Autenticação","slug":"autenticação","depth":2,"children":[]},{"title":"Corpo","slug":"corpo","depth":2,"children":[]},{"title":"Resposta","slug":"resposta","depth":2,"children":[]},{"title":"Erros","slug":"erros","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=\"31\">\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://app.fire.rest/api/v1/external/orders\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\"> \"x-api-key: \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$FIRE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\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\"> \"orderId\": \"ORD-000123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"orderCode\": \"ORD-000123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"accountId\": 11,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"account\": \"\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"createdAt\": \"2026-10-29 14:57:41\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"selectedShippingMethod\": \"pickup\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"client\": { \"uid\": \"customer-0001\", \"name\": \"CONSUMIDOR\", \"lastName\": \"FINAL\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"store\": { \"id\": \"11.6.1350.50\", \"code\": \"K000\", \"vendorId\": \"11.6.1350\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"channel\": { \"uid\": \"c784d4ba-23c7-4929-b2f0-1a1960d9cdc2\", \"code\": \"KIOSK\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"service\": { \"uid\": \"726c4892-48b9-45da-b066-2a8e83d2cb78\", \"code\": \"Dine-In\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"order\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"products\": [{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"productId\": \"7abdd4e5-d685-43ff-ba79-5e8b2f700b5b\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"product\": \"12 Tiras de Frango\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"quantity\": 1,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"price\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"unitPrice\": { \"currencyCode\": \"BRL\", \"subtotalWithoutTaxes\": 64.9, \"taxValue\": 0, \"total\": 64.9 },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"totalPrice\": { \"currencyCode\": \"BRL\", \"subtotalWithoutTaxes\": 64.9, \"taxValue\": 0, \"total\": 64.9 }\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\"> \"modifierGroups\": []\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\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"payments\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"totals\": [{ \"currencyCode\": \"BRL\", \"total\": 64.9 }],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"paymentMethods\": [{ \"processor\": \"CREDIT\", \"currencyCode\": \"BRL\", \"transactionStatus\": \"APPROVED\", \"totalBill\": 64.9 }]\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\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201","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=\"11\">\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\"> \"data\"\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\">\"6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"external_order_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ORD-000123\"\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\">\"COMPLETED\"\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\"> \"business_day_date\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-29\"\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-10-29T14:57:44.330Z\"\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>"},{"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=\"5\">\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\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"VALIDATION_ERROR\"\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\">\"orderCode is required and must be a non-empty string\"\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":"409","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=\"7\">\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\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"CONFLICT\"\u003c/span>\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:#0A3069;--shiki-dark:#CE9178\">\"DUPLICATE_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\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Order with external id ORD-000123 already exists for this vendor.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\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\">\"6f1c2b9e-3a1d-4c55-9b7e-0d2f6a7c8e10\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"externalOrderId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ORD-000123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\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\">\"COMPLETED\"\u003c/span>\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":"Criar pedido (v1)","path":"/api/v1/external/orders","servers":[{"url":"https://app.fire.rest"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"x-api-key":{"schema":[{"type":"string","description":"Sua API key do Fire com escopo `orders:write` . Também é aceito `Authorization: Bearer \u003capi_key>` . A key deve estar associada à sua conta e a um vendor . Não é preciso enviar o header `account` .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"orderId":[{"type":"string","description":"Identificador do pedido no seu sistema.","required":true}],"orderCode":[{"type":"string","description":"Código único do pedido. Se já existir um pedido com esse código para o seu vendor, a resposta é `409` .","required":true}],"accountId":[{"type":"number","description":"Conta do pedido.","required":true}],"createdAt":[{"type":"string","description":"Data da venda.","required":true}],"selectedShippingMethod":[{"type":"string","description":"`delivery` ou `pickup` .","required":true}],"client":[{"type":"object","properties":{},"description":"Cliente: `uid` , `name` , `lastName` .","required":true}],"store":[{"type":"object","properties":{},"description":"Loja: `id` , `code` , `vendorId` .","required":true}],"order":[{"type":"object","properties":{},"description":"`products[]` com pelo menos um produto.","required":true}],"payments":[{"type":"object","properties":{},"description":"`totals[]` e `paymentMethods[]` , com pelo menos um item cada. O `transactionStatus` dos pagamentos decide se o pedido fica fechado ( `APPROVED` ) ou aberto, pendente de cobrança ( `PENDING` ).","required":true}]}}],"examples":{"example":{"value":{"orderId":"\u003cstring>","orderCode":"\u003cstring>","accountId":123,"createdAt":"\u003cstring>","selectedShippingMethod":"\u003cstring>","client":{},"store":{},"order":{},"payments":{}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"`true` quando o pedido foi criado."}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"ID do pedido no Fire. Use-o para consultar, atualizar ou cancelar o pedido."}],"external_order_id":[{"type":"string","description":"O `orderId` que você enviou."}],"status":[{"type":"string","description":"`COMPLETED` ou `OPEN` ."}],"payment_status":[{"type":"string","description":"`SUCCEEDED` ou `PENDING` ."}],"business_day_date":[{"type":"string","description":"Dia de negócio da loja, `YYYY-MM-DD` ."}],"created_at":[{"type":"string","description":"Data de criação no Fire (ISO 8601)."}]}}]}}],"examples":{"example":{"value":{"success":true,"data":{"id":"\u003cstring>","external_order_id":"\u003cstring>","status":"\u003cstring>","payment_status":"\u003cstring>","business_day_date":"\u003cstring>","created_at":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"firepos","siteName":"Fire Docs","title":"Criar pedido (v1) - Fire Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api-reference/create-order","matchLevel":1},"es":{"href":"/es/api-reference/create-order","matchLevel":1},"pt":{"href":"/pt/api-reference/create-order","matchLevel":0}}},"lastModified":"2026-10-29T22:12:16.380Z","originalFileLocation":"pt/api-reference/create-order.mdx","locale":"pt"},"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=\"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fire 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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_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/firepos/s0SqGSOWKs91UOFy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Criar pedido (v1) - Fire Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fire Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fire.rest/pt/api-reference/create-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://firepos.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Criar+pedido+%28v1%29\u0026amp;description=Cria+um+pedido+no+Fire+enviando-o+no+formato+Fire.+Para+a+estrutura+de+PDV%2C+quiosque+e+agregadores%2C+use+a+vers%C3%A3o+2.\u0026amp;theme=e7d88b15424b8f4efffd3b0b\u0026amp;signature=f947b74de14b88328432c91d550f526c6e931dda02fcdf589c3caaec5cf92787\">\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=\"Criar pedido (v1) - Fire Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://firepos.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Criar+pedido+%28v1%29\u0026amp;description=Cria+um+pedido+no+Fire+enviando-o+no+formato+Fire.+Para+a+estrutura+de+PDV%2C+quiosque+e+agregadores%2C+use+a+vers%C3%A3o+2.\u0026amp;theme=e7d88b15424b8f4efffd3b0b\u0026amp;signature=f947b74de14b88328432c91d550f526c6e931dda02fcdf589c3caaec5cf92787\">\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/firepos/s0SqGSOWKs91UOFy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fire Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E6293D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fire.rest/pt/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=\"/pt/api-reference/create-order.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.fire.rest/pt/api-reference/create-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.fire.rest/en/api-reference/create-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.fire.rest/es/api-reference/create-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.fire.rest/en/api-reference/create-order\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fire.rest/#organization\",\"name\":\"Fire Docs\",\"url\":\"https://docs.fire.rest\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/firepos/gddYq9ZzZKtuBajb/logo/firedocs-light.png?fit=max\u0026auto=format\u0026n=gddYq9ZzZKtuBajb\u0026q=85\u0026s=93281297e6bf96adc03944d9b1f7a63c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fire.rest#website\",\"name\":\"Fire Docs\",\"url\":\"https://docs.fire.rest\",\"publisher\":{\"@id\":\"https://docs.fire.rest/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fire.rest/pt/api-reference/create-order#webpage\",\"url\":\"https://docs.fire.rest/pt/api-reference/create-order\",\"name\":\"Criar pedido (v1)\",\"description\":\"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\",\"dateModified\":\"2026-10-29T22:12:16.380Z\",\"isPartOf\":{\"@id\":\"https://docs.fire.rest#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fire.rest/pt/api-reference/create-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fire.rest/pt/api-reference/create-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.fire.rest/pt/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Criar pedido (v1)\",\"item\":\"https://docs.fire.rest/pt/api-reference/create-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fire.rest/pt/api-reference/create-order#apireference\",\"headline\":\"Criar pedido (v1)\",\"name\":\"Criar pedido (v1)\",\"description\":\"Cria um pedido no Fire enviando-o no formato Fire. Para a estrutura de PDV, quiosque e agregadores, use a versão 2.\",\"url\":\"https://docs.fire.rest/pt/api-reference/create-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fire.rest/pt/api-reference/create-order#webpage\"},\"dateModified\":\"2026-10-29T22:12:16.380Z\",\"publisher\":{\"@id\":\"https://docs.fire.rest/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fire.rest#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Fire Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Fire Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"pages":[{"title":"en","href":"/en/api-reference/create-order"}]},{"language":"es","footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"pages":[{"title":"es","href":"/es/api-reference/create-order"}]},{"language":"pt","footer":{"socials":{"x":"https://x.com/fire","github":"https://github.com/fire"}},"tabs":[{"tab":"Guias","pages":[{"title":"Guias","href":"/pt/introduction"}]},{"tab":"Manuais do usuário","pages":[{"title":"Manuais do usuário","href":"/pt/manuals/kiosk/linking"}]},{"tab":"Referência de webhooks","pages":[{"title":"Referência de webhooks","href":"/pt/webhook-reference/overview"}]},{"tab":"Referência da API","groups":[{"group":"API","pages":[{"title":"Referência da API","href":"/pt/api-reference/introduction"},{"title":"Login","api":"POST https://stg.api.fire.rest/api/authentication/login","href":"/pt/api-reference/login"},{"title":"Injetar pedido","api":"POST /api/v4/integrations/sales/aggregator/orders","description":"Injete um pedido no Fire. O Fire gerencia o ciclo de vida do pedido e envia atualizações de status de volta via webhooks.","href":"/pt/api-reference/orders"},{"title":"Criar pedido (v1)","api":"POST https://app.fire.rest/api/v1/external/orders","href":"/pt/api-reference/create-order"},{"title":"Criar pedido (v2)","api":"POST https://app.fire.rest/api/v2/external/orders","description":"Cria um pedido no Fire a partir do PDV, do quiosque ou de um integrador de agregadores, com a mesma estrutura de pedido que já enviam hoje.","href":"/pt/api-reference/create-order-v2"},{"title":"Consultar uma solicitação fiscal","api":"GET /api/v1/external/fiscal/numbering/{fiscalRequestId}","href":"/pt/api-reference/fiscal-document-get"},{"title":"Listar solicitações de um pedido","api":"GET /api/v1/external/fiscal/numbering","href":"/pt/api-reference/fiscal-documents-query"},{"title":"Cancelar pedido","api":"POST /api/v4/integrations/sales/aggregator/orders/{order_uid}/refund","href":"/pt/api-reference/cancel-order"},{"title":"Catálogo de tipos de documento","api":"GET /api/v1/external/fiscal/document-types","href":"/pt/api-reference/fiscal-document-types"},{"title":"Callback fiscal","api":"POST https://app.fire.rest/api/v1/webhooks/fiscal/callback","href":"/pt/api-reference/fiscal-callback"},{"title":"Status do pedido do agregador","api":"POST https://app.fire.rest/api/v1/webhooks/aggregators/order-status","href":"/pt/api-reference/aggregator-order-status"},{"title":"Status de sync do menu","api":"POST https://app.fire.rest/api/v1/webhooks/xmart/sync-status","href":"/pt/api-reference/menu-sync-status"},{"title":"Configuração de canais","api":"GET https://api.fire.rest/api/v1/fire/external/channels/config","href":"/pt/api-reference/channels-config"},{"title":"Configuração de métodos de pagamento","api":"GET https://api.fire.rest/api/v1/external/payment-methods/config","href":"/pt/api-reference/payment-methods-config"},{"title":"Configuração de formas de pagamento (v2)","api":"GET https://api.fire.rest/api/v2/external/payment-methods/config","href":"/pt/api-reference/payment-methods-config-v2"},{"title":"Listar lojas","api":"GET https://api.fire.rest/api/v1/fire/external/stores","href":"/pt/api-reference/list-stores"},{"title":"Obter loja","api":"GET https://api.fire.rest/api/v1/fire/external/stores/{storeId}","href":"/pt/api-reference/get-store"},{"title":"Listar terminais de uma loja","api":"GET https://api.fire.rest/api/v1/fire/external/stores/{storeId}/terminals","href":"/pt/api-reference/list-store-terminals"},{"title":"Listar menus","api":"GET https://api.fire.rest/api/v1/fire/external/stores/{storeId}/menus","href":"/pt/api-reference/list-menus"},{"title":"Obter menu","api":"GET https://api.fire.rest/api/v1/fire/external/stores/{storeId}/menu","href":"/pt/api-reference/get-menu"},{"title":"Listar pedidos","api":"GET https://api.fire.rest/api/v1/fire/external/orders","href":"/pt/api-reference/list-orders"},{"title":"Listar pedidos da loja","api":"GET https://api.fire.rest/api/v1/fire/external/stores/{storeId}/orders","href":"/pt/api-reference/list-store-orders"},{"title":"Obter pedido","api":"GET https://api.fire.rest/api/v1/fire/external/orders/{orderId}","href":"/pt/api-reference/get-order"},{"title":"Corrigir pedido","api":"PUT https://api.fire.rest/api/v1/fire/external/orders/{orderId}","href":"/pt/api-reference/update-order"},{"title":"Confirmar pagamento","api":"POST https://api.fire.rest/api/v1/fire/external/orders/{orderId}/confirm-payment","href":"/pt/api-reference/confirm-payment"},{"title":"Registrar venda perdida","api":"POST https://api.fire.rest/api/v1/fire/external/orders/lost-sales","href":"/pt/api-reference/lost-sales"},{"group":"Impressão","root":{"title":"Imprimir um documento de pedido","api":"POST https://api.fire.rest/api/v1/fire/external/printing/orders/{orderRef}/documents/{document}","href":"/pt/api-reference/print-order-document"},"pages":[{"title":"Imprimir um documento de pedido","api":"POST https://api.fire.rest/api/v1/fire/external/printing/orders/{orderRef}/documents/{document}","href":"/pt/api-reference/print-order-document"},{"title":"Imprimir o fechamento do dia","api":"POST https://api.fire.rest/api/v1/fire/external/printing/stores/{storeId}/days/{businessDayDate}","href":"/pt/api-reference/print-day-close"}]},{"title":"Motivos de recusa","api":"GET https://api.fire.rest/api/v1/fire/external/payment-decline-reasons","href":"/pt/api-reference/payment-decline-reasons"}]},{"group":"APIs de parceiro","pages":[{"title":"Cancelar pedido (parceiros)","api":"POST https://app.fire.rest/api/v1/adapters/xmart/stores/orders/{orderId}/cancel","href":"/pt/api-reference/cancel-order-partners"},{"title":"Elegibilidade de cancelamento","api":"GET https://app.fire.rest/api/v1/external/orders/{orderId}/cancellation-eligibility","href":"/pt/api-reference/cancellation-eligibility"},{"title":"Motivos de cancelamento","api":"GET https://app.fire.rest/api/v1/adapters/xmart/stores/orders/{orderId}/cancellation-reasons","href":"/pt/api-reference/cancellation-reasons"},{"group":"Numeração fiscal","root":{"title":"Solicitar numeração fiscal","api":"POST /api/v1/external/fiscal/numbering","href":"/pt/api-reference/fiscal-documents"},"pages":[{"title":"Solicitar numeração fiscal","api":"POST /api/v1/external/fiscal/numbering","href":"/pt/api-reference/fiscal-documents"},{"title":"Solicitar numeração fiscal (v2)","api":"POST https://app.fire.rest/api/v2/external/fiscal/numbering","href":"/pt/api-reference/fiscal-documents-v2"}]},{"title":"Dados fiscais para impressão","api":"GET https://app.fire.rest/api/v1/restaurant-os/injected-orders/{orderId}/fiscal-print","href":"/pt/api-reference/fiscal-print"},{"title":"Caixa esperado","api":"GET https://app.fire.rest/api/v1/adapters/xmart/cash-management/expected","href":"/pt/api-reference/cash-expected"},{"group":"Conciliações de caixa","root":{"title":"Conciliações de caixa","api":"POST https://app.fire.rest/api/v1/adapters/xmart/cash-management/reconciliations","href":"/pt/api-reference/cash-reconciliations"},"pages":[{"title":"Conciliações de caixa","api":"POST https://app.fire.rest/api/v1/adapters/xmart/cash-management/reconciliations","href":"/pt/api-reference/cash-reconciliations"},{"title":"Conciliações de caixa (v2)","api":"POST https://app.fire.rest/api/v2/external/cash-management/reconciliations","href":"/pt/api-reference/cash-reconciliations-v2"}]},{"title":"Status do pedido KDS","api":"POST https://app.fire.rest/api/v1/webhooks/kds/order-status","href":"/pt/api-reference/kds-order-status"},{"title":"Saúde de componentes","api":"POST https://api.fire.rest/api/v1/fire/external/component-health","href":"/pt/api-reference/component-health"}]}]},{"tab":"Eventos","pages":[{"title":"Eventos","href":"/pt/events/overview"}]},{"tab":"FUEL","pages":[{"title":"FUEL","href":"/pt/fuel/introduction"}]},{"tab":"BOH API","pages":[{"title":"BOH API","href":"/pt/boh-api/introduction"}]},{"tab":"Alterações","pages":[{"title":"Alterações","href":"/pt/changelog"}]}]}]},"title":"Criar pedido (v1) - Fire Docs","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js"]}