O formato de erro da API da CentralCart, os status usados e como tratar cada um.
Toda resposta de erro da API da CentralCart usa o mesmo envelope: um objeto com a chave
errors, contendo um array.
{ "errors": [ { "message": "Cupom de desconto não encontrado." } ]}
Campos
Campo
Tipo
Descrição
message
string
Mensagem legível, em português. Sempre presente.
code
string
Código semântico e estável do erro. Presente apenas em alguns erros. Veja abaixo.
ref
string
Identificador único desta ocorrência. Presente apenas em falhas de pagamento.
code
O code diz o que falhou, de forma estável e agrupável. Por exemplo,
GATEWAY_CHARGE_FAILED. Hoje ele acompanha principalmente as falhas de geração de
pagamento; a maior parte dos erros de validação vem apenas com message.
ref
O ref identifica qual ocorrência falhou, no formato MP-8061e7cd. Ele aparece em
falhas de pagamento e é o valor que o comprador deve informar ao suporte. É por ele que
a equipe localiza o erro exato nos registros.
{ "errors": [ { "message": "Não foi possível gerar o pagamento. Tente outro método.", "code": "GATEWAY_CHARGE_FAILED", "ref": "MP-8061e7cd" } ]}
Se você exibe erros de checkout no seu front, mostre o ref quando ele vier. Sem ele, o
suporte não tem como rastrear o caso.
Status HTTP
Status
Significado
O que fazer
400
Requisição malformada ou falha ao consultar um serviço externo.
Corrija a requisição. Não repita sem mudar nada.
401
Credencial ausente, inválida ou expirada.
Verifique a chave de API ou o token. Não repita.
402
Loja bloqueada.
Não repita. Fale com o suporte.
403
O recurso não pertence a esta loja, ou a chave não tem a permissão exigida pela rota.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"CentralCart","colors":{"primary":"#0B7D62","light":"#07C983","dark":"#0B7D62"},"logo":{"light":"https://mintcdn.com/centralcart/Sj2QKQz_Msfz7gQt/logo/light.svg?fit=max\u0026auto=format\u0026n=Sj2QKQz_Msfz7gQt\u0026q=85\u0026s=454a550a28fa81d98e5168769f561bbe","dark":"https://mintcdn.com/centralcart/Sj2QKQz_Msfz7gQt/logo/dark.svg?fit=max\u0026auto=format\u0026n=Sj2QKQz_Msfz7gQt\u0026q=85\u0026s=cf9da9a13d7485000f2d7fd2744a864d","href":"https://www.centralcart.com"},"favicon":"https://mintcdn.com/centralcart/Mo9wQrAjrPtu_S1i/centralcart-icon.png?fit=max\u0026auto=format\u0026n=Mo9wQrAjrPtu_S1i\u0026q=85\u0026s=af8586aae48ee5c9c5bb4eb5654cfa0f","api":{"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"/changelog","label":"Changelog"},{"href":"https://centralcart.com/discord","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.centralcart.com"}},"footer":{"socials":{"discord":"https://centralcart.com/discord","youtube":"https://www.youtube.com/channel/UCt8ijxO7MN6Y4ipzvNskeiA","instagram":"https://www.instagram.com/centralcartbr","facebook":"https://www.facebook.com/centralcartbr","twitter":"https://twitter.com/centralcartbr"}},"seo":{"indexing":"all"},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Nosso Discord","icon":"discord","href":"https://centralcart.com/discord"},{"anchor":"Nosso YouTube","icon":"youtube","href":"https://www.youtube.com/@CentralCartBR"},{"anchor":"Siga no Instagram","icon":"instagram","href":"https://www.instagram.com/centralcartbr/"}]},"languages":[{"language":"pt-BR","default":true,"href":"introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"centralcart","hasAudioNarration":false,"actualSubdomain":"centralcart","customDomains":["docs.centralcart.com"],"gitSource":{"type":"github","owner":"centralcart","repo":"centralcart-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b006c62cba301bc9879b96c","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"pt-BR","tag":"API Reference","count":112},{"language":"pt-BR","tag":"Endpoints de aplicação","count":75},{"language":"pt-BR","tag":"Storefront API (Public)","count":33},{"language":"pt-BR","tag":"Editor de Códigos","count":32},{"language":"pt-BR","tag":"Afiliados","count":16},{"language":"pt-BR","tag":"Documentação","count":14},{"language":"pt-BR","tag":"Pacotes","count":11},{"language":"pt-BR","tag":"Personalização com IA","count":7},{"language":"pt-BR","tag":"Pedidos","count":7},{"language":"pt-BR","tag":"Integrações:","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"lock-backup/styles/core.css","content":"@layer base{*{@apply border-border;}html{scroll-behavior:smooth}body{font-family:'Geist', sans-serif;@apply bg-background text-foreground;}input,select{@apply appearance-none bg-background border border-foreground/10 rounded-cc text-foreground px-2 h-8 text-sm;}textarea{@apply appearance-none bg-background border border-foreground/10 rounded-cc text-foreground px-2 py-2 text-sm;}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;@apply ring-2 ring-primary;}.bg-primary{color:lch(from hsl(var(--primary)) calc((49.44 - l) * infinity) 0 0)}.bg-background{color:lch(from hsl(var(--background)) calc((49.44 - l) * infinity) 0 0)}.btn-primary{@apply bg-primary hover:bg-primary/80 transition-colors font-semibold rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-secondary{@apply bg-foreground/5 hover:bg-foreground/10 transition-colors font-semibold border rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-outline{@apply bg-transparent hover:bg-foreground/5 transition-colors font-semibold border border-foreground/10 rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-ghost{@apply bg-transparent hover:bg-foreground/5 transition-colors font-semibold rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes fade-in{from{background-color:rgba(0, 0, 0, 0)}to{background-color:rgba(0, 0, 0, 0.8)}}@keyframes fade-out{from{background-color:rgba(0, 0, 0, 0.8)}to{background-color:rgba(0, 0, 0, 0)}}@keyframes slide-in{from{transform:translateX(500px)}to{transform:translateX(0px)}}@keyframes slide-out{from{transform:translateX(0px)}to{transform:translateX(500px)}}body.cart-open{overflow:hidden;padding-right:var(--scrollbar-width, 0px)}#cart-drawer[data-state=\"open\"]{animation:fade-in 0.4s forwards}#cart-drawer[data-state=\"closed\"]{animation:fade-out 0.4s forwards}#cart-drawer[data-state=\"open\"]>div{animation:slide-in 0.4s forwards}#cart-drawer[data-state=\"closed\"]>div{animation:slide-out 0.4s forwards}.dialog[data-state=\"open\"]{animation:fade-in 0.4s forwards}.dialog[data-state=\"closed\"]{animation:fade-out 0.4s forwards}.dialog[data-state=\"open\"]>div{animation:dialog-in 0.2s forwards}.dialog[data-state=\"closed\"]>div{animation:dialog-out 0.2s forwards}@keyframes dialog-in{from{opacity:0;scale:50%}to{opacity:1;scale:100%}}@keyframes dialog-out{from{opacity:1;scale:100%}to{opacity:0;scale:50%}}.reveal-fade-up{opacity:0;transform:translateY(30px);transition:opacity 0.3s ease, transform 0.3s ease;transition-delay:var(--delay, 0s)}.reveal-fade-up.visible{opacity:1;transform:translateY(0)}.centralcart-content iframe{aspect-ratio:16 / 9;border-radius:0.5rem;width:100%;height:auto}.grid-background{background-image:linear-gradient(to right,hsla(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);background-size:40px 40px;mask-image:radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)}.custom-bg-mask{mask-image:linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0))}@keyframes loading{0%{left:-50%}to{left:100%}}.top-donators-pill::after{content:'';position:absolute;top:0;left:-100%;width:70%;height:100%;background:linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);pointer-events:none;transition:left 0.5s ease-in}.top-donators-pill:hover::after{left:120%;transition:left 0.6s ease-out}.detail-dash{background-image:linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);background-position:center bottom;background-size:16px;background-repeat:repeat-x;width:100%;height:1px}.custom-scrollbar::-webkit-scrollbar{width:3px;height:3px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--primary));border-radius:0.25rem}.cat-dropdown{transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);transform-origin:top}.cat-dropdown:not(.hidden){animation:slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideDown{from{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}#mobile-categories-dropdown:not(.hidden){animation:slideInMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideInMobile{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.mobile-subcategories:not(.hidden){animation:slideInSub 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideInSub{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}"},{"filePath":"lock/styles/core.css","content":"@layer base{*{@apply border-border;}html{scroll-behavior:smooth}body{font-family:'Geist', sans-serif;@apply bg-background text-foreground;}input,select{@apply appearance-none bg-background border border-foreground/10 rounded-cc text-foreground px-2 h-8 text-sm;}textarea{@apply appearance-none bg-background border border-foreground/10 rounded-cc text-foreground px-2 py-2 text-sm;}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;@apply ring-2 ring-primary;}.bg-primary{color:lch(from hsl(var(--primary)) calc((49.44 - l) * infinity) 0 0)}.bg-background{color:lch(from hsl(var(--background)) calc((49.44 - l) * infinity) 0 0)}.btn-primary{@apply bg-primary hover:bg-primary/80 transition-colors font-semibold rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-secondary{@apply bg-foreground/5 hover:bg-foreground/10 transition-colors font-semibold border rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-outline{@apply bg-transparent hover:bg-foreground/5 transition-colors font-semibold border border-foreground/10 rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}.btn-ghost{@apply bg-transparent hover:bg-foreground/5 transition-colors font-semibold rounded-cc \n px-4 h-9 flex gap-2 items-center justify-center text-sm disabled:opacity-50;}}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes fade-in{from{background-color:rgba(0, 0, 0, 0)}to{background-color:rgba(0, 0, 0, 0.8)}}@keyframes fade-out{from{background-color:rgba(0, 0, 0, 0.8)}to{background-color:rgba(0, 0, 0, 0)}}@keyframes slide-in{from{transform:translateX(500px)}to{transform:translateX(0px)}}@keyframes slide-out{from{transform:translateX(0px)}to{transform:translateX(500px)}}body.cart-open{overflow:hidden;padding-right:var(--scrollbar-width, 0px)}#cart-drawer[data-state=\"open\"]{animation:fade-in 0.4s forwards}#cart-drawer[data-state=\"closed\"]{animation:fade-out 0.4s forwards}#cart-drawer[data-state=\"open\"]>div{animation:slide-in 0.4s forwards}#cart-drawer[data-state=\"closed\"]>div{animation:slide-out 0.4s forwards}.dialog[data-state=\"open\"]{animation:fade-in 0.4s forwards}.dialog[data-state=\"closed\"]{animation:fade-out 0.4s forwards}.dialog[data-state=\"open\"]>div{animation:dialog-in 0.2s forwards}.dialog[data-state=\"closed\"]>div{animation:dialog-out 0.2s forwards}@keyframes dialog-in{from{opacity:0;scale:50%}to{opacity:1;scale:100%}}@keyframes dialog-out{from{opacity:1;scale:100%}to{opacity:0;scale:50%}}.reveal-fade-up{opacity:0;transform:translateY(30px);transition:opacity 0.3s ease, transform 0.3s ease;transition-delay:var(--delay, 0s)}.reveal-fade-up.visible{opacity:1;transform:translateY(0)}.centralcart-content iframe{aspect-ratio:16 / 9;border-radius:0.5rem;width:100%;height:auto}.grid-background{background-image:linear-gradient(to right,hsla(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);background-size:40px 40px;mask-image:radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)}.custom-bg-mask{mask-image:linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0))}@keyframes loading{0%{left:-50%}to{left:100%}}.top-donators-pill::after{content:'';position:absolute;top:0;left:-100%;width:70%;height:100%;background:linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);pointer-events:none;transition:left 0.5s ease-in}.top-donators-pill:hover::after{left:120%;transition:left 0.6s ease-out}.detail-dash{background-image:linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);background-position:center bottom;background-size:16px;background-repeat:repeat-x;width:100%;height:1px}.custom-scrollbar::-webkit-scrollbar{width:3px;height:3px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background:hsl(var(--primary));border-radius:0.25rem}.cat-dropdown{transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);transform-origin:top}.cat-dropdown:not(.hidden){animation:slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideDown{from{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}#mobile-categories-dropdown:not(.hidden){animation:slideInMobile 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideInMobile{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.mobile-subcategories:not(.hidden){animation:slideInSub 0.2s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes slideInSub{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}"},{"filePath":"style.css","content":"#localization-select-trigger{display:none!important}div:has(>#localization-select-trigger){display:none!important}"}]}
{"page":{"pagePath":"api-reference/erros","slug":"/api-reference/erros","pageMetadata":{"title":"Erros","description":"O formato de erro da API da CentralCart, os status usados e como tratar cada um.","href":"/api-reference/erros"},"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: \"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Toda resposta de erro da API da CentralCart usa o mesmo envelope: um objeto com a chave\n`,_jsx(_components.code,{children:`errors`}),`, contendo um array.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cupom de desconto não encontrado.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`campos`,children:`Campos`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Campo`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Mensagem legível, em português. Sempre presente.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Código semântico e estável do erro. Presente apenas em alguns erros. Veja abaixo.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ref`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Identificador único desta ocorrência. Presente apenas em falhas de pagamento.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`code`,children:_jsx(_components.code,{children:`code`})}),`\n`,_jsxs(_components.p,{children:[`O `,_jsx(_components.code,{children:`code`}),` diz `,_jsx(_components.strong,{children:`o que`}),` falhou, de forma estável e agrupável. Por exemplo,\n`,_jsx(_components.code,{children:`GATEWAY_CHARGE_FAILED`}),`. Hoje ele acompanha principalmente as falhas de geração de\npagamento; a maior parte dos erros de validação vem apenas com `,_jsx(_components.code,{children:`message`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`ref`,children:_jsx(_components.code,{children:`ref`})}),`\n`,_jsxs(_components.p,{children:[`O `,_jsx(_components.code,{children:`ref`}),` identifica `,_jsx(_components.strong,{children:`qual ocorrência`}),` falhou, no formato `,_jsx(_components.code,{children:`MP-8061e7cd`}),`. Ele aparece em\nfalhas de pagamento e é o valor que o comprador deve informar ao suporte. É por ele que\na equipe localiza o erro exato nos registros.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Não foi possível gerar o pagamento. Tente outro método.\"`}),_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:`\"GATEWAY_CHARGE_FAILED\"`}),_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:` \"ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MP-8061e7cd\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Se você exibe erros de checkout no seu front, mostre o `,_jsx(_components.code,{children:`ref`}),` quando ele vier. Sem ele, o\nsuporte não tem como rastrear o caso.`]}),`\n`,_jsx(Heading,{level:`2`,id:`status-http`,children:`Status HTTP`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Significado`}),_jsx(_components.th,{children:`O que fazer`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Requisição malformada ou falha ao consultar um serviço externo.`}),_jsx(_components.td,{children:`Corrija a requisição. Não repita sem mudar nada.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Credencial ausente, inválida ou expirada.`}),_jsx(_components.td,{children:`Verifique a chave de API ou o token. Não repita.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:`Loja bloqueada.`}),_jsx(_components.td,{children:`Não repita. Fale com o suporte.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`O recurso não pertence a esta loja, ou a chave não tem a permissão exigida pela rota.`}),_jsxs(_components.td,{children:[`Não repita. Veja `,_jsx(_components.a,{href:`/api-reference/authentication`,children:`Autenticação`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsxs(_components.td,{children:[`Recurso não encontrado, inclusive loja não resolvida pelo `,_jsx(_components.code,{children:`x-store-domain`}),`.`]}),_jsx(_components.td,{children:`Confira o identificador. Não repita.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Dados inválidos: campo obrigatório ausente, formato inválido, regra de negócio violada.`}),_jsxs(_components.td,{children:[`Corrija os dados e reenvie. A `,_jsx(_components.code,{children:`message`}),` diz qual campo falhou.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Limite de requisições atingido.`}),_jsxs(_components.td,{children:[`Respeite o header `,_jsx(_components.code,{children:`Retry-After`}),`. Veja `,_jsx(_components.a,{href:`/api-reference/rate-limit`,children:`Limites de requisição`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Erro interno.`}),_jsx(_components.td,{children:`Tente novamente com backoff exponencial. Se persistir, fale com o suporte.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,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:`8`,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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Resource rate limit reached.\"`}),_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:`\"RATE_LIMIT_REACHED\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`múltiplos-erros`,children:`Múltiplos erros`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`errors`}),` é um array porque erros de validação podem trazer mais de uma entrada, uma por\ncampo inválido. Trate sempre como lista.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"errors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Informe um e-mail válido.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Informe o seu nome completo.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tratando-erros-no-cliente`,children:`Tratando erros no cliente`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` request`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`init`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` RequestInit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://api.centralcart.io/v1\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-store-domain'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'sualoja.centralcart.ai'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` first`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`errors`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Object`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`assign`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`first`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Erro inesperado.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` status:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` code:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` first`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ref:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` first`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` retryAfter:`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Retry-After'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`||`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` undefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Só faça retry automático em `,_jsx(_components.code,{children:`429`}),` e `,_jsx(_components.code,{children:`500`}),`.`]})})]})}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":"Erros","description":"O formato de erro da API da CentralCart, os status usados e como tratar cada um.","href":"/api-reference/erros"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Campos","slug":"campos","depth":2,"children":[{"title":"code","slug":"code","depth":3,"children":[]},{"title":"ref","slug":"ref","depth":3,"children":[]}]},{"title":"Status HTTP","slug":"status-http","depth":2,"children":[]},{"title":"Múltiplos erros","slug":"múltiplos-erros","depth":2,"children":[]},{"title":"Tratando erros no cliente","slug":"tratando-erros-no-cliente","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"centralcart","siteName":"CentralCart","title":"Erros - CentralCart","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/erros","matchLevel":0}}},"lastModified":"2026-11-20T15:37:35.822Z","originalFileLocation":"api-reference/erros.mdx","locale":"pt-BR"},"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=\"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CentralCart\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_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/centralcart/sdjDigQj6OSztLuK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Erros - CentralCart\">\u003cmeta data-mint-head property=\"og:description\" content=\"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CentralCart\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.centralcart.com/api-reference/erros\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://centralcart.mintlify.site/_mintlify/api/og/v2?division=Documenta%C3%A7%C3%A3o+da+API\u0026amp;title=Erros\u0026amp;description=O+formato+de+erro+da+API+da+CentralCart%2C+os+status+usados+e+como+tratar+cada+um.\u0026amp;theme=bf2e523d23f7ed23ecb3a7a5\u0026amp;signature=1d94620a8ade91dd67cd2aac162394c10da1a81db44ea1591ac3b04a6906c490\">\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=\"Erros - CentralCart\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://centralcart.mintlify.site/_mintlify/api/og/v2?division=Documenta%C3%A7%C3%A3o+da+API\u0026amp;title=Erros\u0026amp;description=O+formato+de+erro+da+API+da+CentralCart%2C+os+status+usados+e+como+tratar+cada+um.\u0026amp;theme=bf2e523d23f7ed23ecb3a7a5\u0026amp;signature=1d94620a8ade91dd67cd2aac162394c10da1a81db44ea1591ac3b04a6906c490\">\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/centralcart/sdjDigQj6OSztLuK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CentralCart\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0B7D62\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.centralcart.com/api-reference/erros\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/erros.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.centralcart.com/#organization\",\"name\":\"CentralCart\",\"url\":\"https://docs.centralcart.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/centralcart/Sj2QKQz_Msfz7gQt/logo/light.svg?fit=max\u0026auto=format\u0026n=Sj2QKQz_Msfz7gQt\u0026q=85\u0026s=454a550a28fa81d98e5168769f561bbe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.centralcart.com#website\",\"name\":\"CentralCart\",\"url\":\"https://docs.centralcart.com\",\"publisher\":{\"@id\":\"https://docs.centralcart.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.centralcart.com/api-reference/erros#webpage\",\"url\":\"https://docs.centralcart.com/api-reference/erros\",\"name\":\"Erros\",\"description\":\"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\",\"dateModified\":\"2026-11-20T15:37:35.822Z\",\"isPartOf\":{\"@id\":\"https://docs.centralcart.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.centralcart.com/api-reference/erros#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.centralcart.com/api-reference/erros#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Documentação da API\",\"item\":\"https://docs.centralcart.com/api-reference/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Erros\",\"item\":\"https://docs.centralcart.com/api-reference/erros\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.centralcart.com/api-reference/erros#article\",\"headline\":\"Erros\",\"name\":\"Erros\",\"description\":\"O formato de erro da API da CentralCart, os status usados e como tratar cada um.\",\"url\":\"https://docs.centralcart.com/api-reference/erros\",\"mainEntityOfPage\":{\"@id\":\"https://docs.centralcart.com/api-reference/erros#webpage\"},\"dateModified\":\"2026-11-20T15:37:35.822Z\",\"publisher\":{\"@id\":\"https://docs.centralcart.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.centralcart.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CentralCart\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CentralCart\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/erros.md","siteName":"CentralCart","nav":{"global":{"anchors":[{"anchor":"Nosso Discord","icon":"discord","href":"https://centralcart.com/discord"},{"anchor":"Nosso YouTube","icon":"youtube","href":"https://www.youtube.com/@CentralCartBR"},{"anchor":"Siga no Instagram","icon":"instagram","href":"https://www.instagram.com/centralcartbr/"}]},"languages":[{"language":"pt-BR","default":true,"tabs":[{"tab":"Documentação","pages":[{"title":"Documentação","href":"/introduction"}]},{"tab":"Editor de Códigos","pages":[{"title":"Editor de Códigos","href":"/editor/introducao"}]},{"tab":"API Reference","groups":[{"group":"Documentação da API","pages":[{"title":"Autenticação","href":"/api-reference/authentication"},{"title":"Limites de requisição","description":"Entenda os limites de requisição (rate limit) da API da CentralCart, os headers de controle e como tratar o erro 429.","href":"/api-reference/rate-limit"},{"title":"Erros","href":"/api-reference/erros"},{"title":"Webhooks","description":"Receba notificações em tempo real sobre eventos da sua loja.","href":"/api-reference/webhooks"}]},{"group":"Endpoints de aplicação","pages":[{"title":"Application Details","deprecated":null,"version":null,"openapi":"/openapi/app.yaml get /app","href":"/api-reference/application/application-details"},{"group":"Pedidos","pages":[{"title":"List Order","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml get /app/order","href":"/api-reference/orders/list-order"},{"title":"Order Details","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml get /app/order/{order_id}","href":"/api-reference/orders/order-details"},{"title":"Update Order","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml patch /app/order/{order_id}","href":"/api-reference/orders/update-order"},{"title":"Update Delivery","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml patch /app/order/{order_id}/delivery/{delivery_id}","href":"/api-reference/orders/update-delivery"},{"group":"Anotações","pages":[{"title":"Create Note","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml post /app/order/{order_id}/note","href":"/api-reference/orders/create-note"},{"title":"Update Note","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml patch /app/order/{order_id}/note/{note_id}","href":"/api-reference/orders/update-note"},{"title":"Delete Note","deprecated":null,"version":null,"openapi":"/openapi/orders.yaml delete /app/order/{order_id}/note/{note_id}","href":"/api-reference/orders/delete-note"}]}]},{"group":"Pacotes","pages":[{"title":"List Packages","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml get /app/package","href":"/api-reference/packages/list-packages"},{"title":"Get Package","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml get /app/package/{package-id}","href":"/api-reference/packages/get-package"},{"title":"Create Package","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml post /app/package","href":"/api-reference/packages/create-package"},{"title":"Update Package","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml patch /app/package/{package-id}","href":"/api-reference/packages/update-package"},{"title":"Delete Package","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml delete /app/package/{package-id}","href":"/api-reference/packages/delete-package"},{"title":"Upload Package Image","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml put /app/package/{package-id}/image","href":"/api-reference/packages/upload-package-image"},{"group":"Linhas / Licenças","pages":[{"title":"List License Keys","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml get /app/package/{package-id}/license-keys","href":"/api-reference/packages/list-license-keys"},{"title":"Add License Keys","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml post /app/package/{package-id}/license-keys","href":"/api-reference/packages/add-license-keys"},{"title":"Update License Key","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml patch /app/package/{package-id}/license-keys/{license-key-id}","href":"/api-reference/packages/update-license-key"},{"title":"Update License Keys (Batch)","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml post /app/package/{package-id}/license-keys/batch","href":"/api-reference/packages/update-license-keys-batch"},{"title":"Delete License Keys","deprecated":null,"version":null,"openapi":"/openapi/packages.yaml delete /app/package/{package-id}/license-keys","href":"/api-reference/packages/delete-license-keys"}]}]},{"group":"Categorias","pages":[{"title":"List Category","deprecated":null,"version":null,"openapi":"/openapi/categories.yaml get /app/category","href":"/api-reference/categories/list-category"},{"title":"Create Category","deprecated":null,"version":null,"openapi":"/openapi/categories.yaml post /app/category","href":"/api-reference/categories/create-category"},{"title":"Update Category","deprecated":null,"version":null,"openapi":"/openapi/categories.yaml patch /app/category/{category-id}","href":"/api-reference/categories/update-category"},{"title":"Delete Category","deprecated":null,"version":null,"openapi":"/openapi/categories.yaml delete /app/category/{category-id}","href":"/api-reference/categories/delete-category"}]},{"group":"Tags","pages":[{"title":"List Tags","deprecated":null,"version":null,"openapi":"/openapi/tags.yaml get /app/tag","href":"/api-reference/tags/list-tags"},{"title":"Get Tag","deprecated":null,"version":null,"openapi":"/openapi/tags.yaml get /app/tag/{tag-id}","href":"/api-reference/tags/get-tag"},{"title":"Create Tag","deprecated":null,"version":null,"openapi":"/openapi/tags.yaml post /app/tag","href":"/api-reference/tags/create-tag"},{"title":"Update Tag","deprecated":null,"version":null,"openapi":"/openapi/tags.yaml patch /app/tag/{tag-id}","href":"/api-reference/tags/update-tag"},{"title":"Delete Tag","deprecated":null,"version":null,"openapi":"/openapi/tags.yaml delete /app/tag/{tag-id}","href":"/api-reference/tags/delete-tag"}]},{"group":"Descontos","pages":[{"title":"List Discount","deprecated":null,"version":null,"openapi":"/openapi/discounts.yaml get /app/discount","href":"/api-reference/discounts/list-discount"},{"title":"Create Discount","deprecated":null,"version":null,"openapi":"/openapi/discounts.yaml post /app/discount","href":"/api-reference/discounts/create-discount"},{"title":"Update Discount","deprecated":null,"version":null,"openapi":"/openapi/discounts.yaml patch /app/discount/{discount-id}","href":"/api-reference/discounts/update-discount"},{"title":"Delete Discount","deprecated":null,"version":null,"openapi":"/openapi/discounts.yaml delete /app/discount/{discount-id}","href":"/api-reference/discounts/delete-discount"}]},{"group":"Promoções","pages":[{"title":"List Promos","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml get /app/promo","href":"/api-reference/promos/list-promos"},{"title":"Get Promo","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml get /app/promo/{promo-id}","href":"/api-reference/promos/get-promo"},{"title":"Create Promo","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml post /app/promo","href":"/api-reference/promos/create-promo"},{"title":"Update Promo","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml patch /app/promo/{promo-id}","href":"/api-reference/promos/update-promo"},{"title":"Toggle Promo","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml patch /app/promo/{promo-id}/toggle","href":"/api-reference/promos/toggle-promo"},{"title":"Delete Promo","deprecated":null,"version":null,"openapi":"/openapi/promos.yaml delete /app/promo/{promo-id}","href":"/api-reference/promos/delete-promo"}]},{"group":"Upsells","pages":[{"title":"List Upsells","deprecated":null,"version":null,"openapi":"/openapi/upsells.yaml get /app/upsell","href":"/api-reference/upsells/list-upsells"},{"title":"Create Upsell","deprecated":null,"version":null,"openapi":"/openapi/upsells.yaml post /app/upsell","href":"/api-reference/upsells/create-upsell"},{"title":"Update Upsell","deprecated":null,"version":null,"openapi":"/openapi/upsells.yaml patch /app/upsell/{upsell-id}","href":"/api-reference/upsells/update-upsell"},{"title":"Delete Upsell","deprecated":null,"version":null,"openapi":"/openapi/upsells.yaml delete /app/upsell/{upsell-id}","href":"/api-reference/upsells/delete-upsell"}]},{"group":"Afiliados","pages":[{"title":"List Affiliate","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml get /app/affiliate","href":"/api-reference/affiliates/list-affiliate"},{"title":"Get Affiliate","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml get /app/affiliate/{affiliate-id}","href":"/api-reference/affiliates/get-affiliate"},{"title":"Get Affiliate Metrics","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml get /app/affiliate/{affiliate-id}/metrics","href":"/api-reference/affiliates/get-affiliate-metrics"},{"title":"Create Affiliate","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml post /app/affiliate","href":"/api-reference/affiliates/create-affiliate"},{"title":"Update Affiliate","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml patch /app/affiliate/{affiliate-id}","href":"/api-reference/affiliates/update-affiliate"},{"title":"Delete Affiliate","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml delete /app/affiliate/{affiliate-id}","href":"/api-reference/affiliates/delete-affiliate"},{"title":"Create Withdraw Request","deprecated":null,"version":null,"openapi":"/openapi/affiliates.yaml post /app/affiliate/withdraw_request","href":"/api-reference/affiliates/create-withdraw-request"}]},{"group":"Custos","pages":[{"title":"List Costs","deprecated":null,"version":null,"openapi":"/openapi/costs.yaml get /app/cost","href":"/api-reference/custos/list-costs"},{"title":"Get Cost","deprecated":null,"version":null,"openapi":"/openapi/costs.yaml get /app/cost/{cost-id}","href":"/api-reference/custos/get-cost"},{"title":"Create Cost","deprecated":null,"version":null,"openapi":"/openapi/costs.yaml post /app/cost","href":"/api-reference/custos/create-cost"},{"title":"Update Cost","deprecated":null,"version":null,"openapi":"/openapi/costs.yaml patch /app/cost/{cost-id}","href":"/api-reference/custos/update-cost"},{"title":"Delete Cost","deprecated":null,"version":null,"openapi":"/openapi/costs.yaml delete /app/cost/{cost-id}","href":"/api-reference/custos/delete-cost"}]},{"group":"Avaliações","pages":[{"title":"List Feedbacks","deprecated":null,"version":null,"openapi":"/openapi/feedbacks.yaml get /app/feedback","href":"/api-reference/feedbacks/list-feedbacks"},{"title":"Update Feedback","deprecated":null,"version":null,"openapi":"/openapi/feedbacks.yaml patch /app/feedback/{feedback-id}","href":"/api-reference/feedbacks/update-feedback"}]},{"group":"Chat","pages":[{"title":"Order Chat","deprecated":null,"version":null,"openapi":"/openapi/chat.yaml get /app/order/{order-id}/chat","href":"/api-reference/chat/order-chat"},{"title":"Chat Messages","deprecated":null,"version":null,"openapi":"/openapi/chat.yaml get /app/order/{order-id}/chat/messages","href":"/api-reference/chat/chat-messages"},{"title":"Send Chat Message","deprecated":null,"version":null,"openapi":"/openapi/chat.yaml post /app/order/{order-id}/chat/messages","href":"/api-reference/chat/send-chat-message"}]},{"group":"Comandos","pages":[{"title":"Queued Commands","deprecated":null,"version":null,"openapi":"/openapi/commands.yaml get /app/queued_commands","href":"/api-reference/commands/queued-commands"},{"title":"User Queue","deprecated":null,"version":null,"openapi":"/openapi/commands.yaml get /app/user_queue/{user-id}","href":"/api-reference/commands/user-queue"},{"title":"User Schedules","deprecated":null,"version":null,"openapi":"/openapi/commands.yaml get /app/user_schedules/{user-id}","href":"/api-reference/commands/user-schedules"},{"title":"Update Command","deprecated":null,"version":null,"openapi":"/openapi/commands.yaml patch /app/command/{command-id}","href":"/api-reference/commands/update-command"}]},{"group":"Variáveis","pages":[{"title":"List Variables","deprecated":null,"version":null,"openapi":"/openapi/variables.yaml get /app/variable","href":"/api-reference/variables/list-variables"},{"title":"Get Variable","deprecated":null,"version":null,"openapi":"/openapi/variables.yaml get /app/variable/{variable-id}","href":"/api-reference/variables/get-variable"},{"title":"Create Variable","deprecated":null,"version":null,"openapi":"/openapi/variables.yaml post /app/variable","href":"/api-reference/variables/create-variable"},{"title":"Update Variable","deprecated":null,"version":null,"openapi":"/openapi/variables.yaml patch /app/variable/{variable-id}","href":"/api-reference/variables/update-variable"},{"title":"Delete Variable","deprecated":null,"version":null,"openapi":"/openapi/variables.yaml delete /app/variable/{variable-id}","href":"/api-reference/variables/delete-variable"}]},{"group":"Game Servers","pages":[{"title":"List Game Servers","deprecated":null,"version":null,"openapi":"/openapi/game-servers.yaml get /app/game-server","href":"/api-reference/game-servers/list-game-servers"},{"title":"Create Game Server","deprecated":null,"version":null,"openapi":"/openapi/game-servers.yaml post /app/game-server","href":"/api-reference/game-servers/create-game-server"},{"title":"Delete Game Server","deprecated":null,"version":null,"openapi":"/openapi/game-servers.yaml delete /app/game-server/{game-server-id}","href":"/api-reference/game-servers/delete-game-server"}]},{"group":"Clientes","pages":[{"title":"Listar clientes","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml get /app/customer","href":"/api-reference/clientes/listar-clientes"},{"title":"Obter cliente","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml get /app/customer/{email}","href":"/api-reference/clientes/obter-cliente"},{"title":"Identificar o cliente logado","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml post /app/customer/identify","href":"/api-reference/clientes/identificar-o-cliente-logado"},{"title":"Gasto do cliente","deprecated":null,"version":null,"openapi":"/openapi/customers.yaml get /app/user_spent","href":"/api-reference/clientes/gasto-do-cliente"}]}]},{"group":"Storefront API (Public)","pages":[{"title":"Visão geral da Storefront API","href":"/api-reference/storefront/visao-geral"},{"title":"Autenticação do cliente","href":"/api-reference/storefront/autenticacao-do-cliente"},{"group":"Loja","pages":[{"title":"Store Info","deprecated":null,"version":null,"openapi":"/openapi/storefront-store.yaml get /webstore","href":"/api-reference/loja/store-info"},{"title":"List Gateways","deprecated":null,"version":null,"openapi":"/openapi/storefront-store.yaml get /webstore/gateway","href":"/api-reference/loja/list-gateways"},{"title":"List Checkout Fields","deprecated":null,"version":null,"openapi":"/openapi/storefront-store.yaml get /webstore/checkout_fields","href":"/api-reference/loja/list-checkout-fields"}]},{"group":"Catálogo","pages":[{"title":"List Packages","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml get /webstore/package","href":"/api-reference/catalogo/list-packages"},{"title":"Subscribe Restock Notice","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml post /webstore/package/{package-id}/restock-notice","href":"/api-reference/catalogo/subscribe-restock-notice"},{"title":"List Categories","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml get /webstore/category","href":"/api-reference/catalogo/list-categories"},{"title":"Get Category","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml get /webstore/category/{slug}","href":"/api-reference/catalogo/get-category"},{"title":"List Posts","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml get /webstore/post","href":"/api-reference/catalogo/list-posts"},{"title":"Get Post","deprecated":null,"version":null,"openapi":"/openapi/storefront-catalog.yaml get /webstore/post/{slug}","href":"/api-reference/catalogo/get-post"}]},{"group":"Checkout","pages":[{"title":"Resolve Cart","deprecated":null,"version":null,"openapi":"/openapi/storefront-checkout.yaml post /webstore/cart","href":"/api-reference/checkout/resolve-cart"},{"title":"List Upsells","deprecated":null,"version":null,"openapi":"/openapi/storefront-checkout.yaml post /webstore/upsells","href":"/api-reference/checkout/list-upsells"},{"title":"Get Discount","deprecated":null,"version":null,"openapi":"/openapi/storefront-checkout.yaml get /webstore/discount/{code}","href":"/api-reference/checkout/get-discount"},{"title":"Create Checkout","deprecated":null,"version":null,"openapi":"/openapi/storefront-checkout.yaml post /webstore/checkout","href":"/api-reference/checkout/create-checkout"},{"title":"Get Order Status","deprecated":null,"version":null,"openapi":"/openapi/storefront-checkout.yaml get /webstore/order_status/{order_id}","href":"/api-reference/checkout/get-order-status"}]},{"group":"Autenticação","pages":[{"title":"Send Login Code","deprecated":null,"version":null,"openapi":"/openapi/storefront-auth.yaml post /webstore/auth/otp","href":"/api-reference/autenticacao/send-login-code"},{"title":"Verify Login Code","deprecated":null,"version":null,"openapi":"/openapi/storefront-auth.yaml post /webstore/auth/verify","href":"/api-reference/autenticacao/verify-login-code"},{"title":"Get Session","deprecated":null,"version":null,"openapi":"/openapi/storefront-auth.yaml get /webstore/auth/session","href":"/api-reference/autenticacao/get-session"},{"title":"Logout","deprecated":null,"version":null,"openapi":"/openapi/storefront-auth.yaml post /webstore/auth/logout","href":"/api-reference/autenticacao/logout"}]},{"group":"Conta do cliente","pages":[{"title":"List My Orders","deprecated":null,"version":null,"openapi":"/openapi/storefront-account.yaml get /webstore/account/order","href":"/api-reference/conta/list-my-orders"},{"title":"Get My Order","deprecated":null,"version":null,"openapi":"/openapi/storefront-account.yaml get /webstore/account/order/{order_id}","href":"/api-reference/conta/get-my-order"},{"title":"Submit Feedback","deprecated":null,"version":null,"openapi":"/openapi/storefront-account.yaml post /webstore/order/{orderId}/feedback","href":"/api-reference/conta/submit-feedback"}]},{"group":"Afiliados","pages":[{"title":"Get Affiliate Panel","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml get /webstore/affiliate/me","href":"/api-reference/afiliados/get-affiliate-panel"},{"title":"Join Affiliate Program","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml post /webstore/affiliate/join","href":"/api-reference/afiliados/join-affiliate-program"},{"title":"List Affiliate Transactions","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml get /webstore/affiliate/transactions","href":"/api-reference/afiliados/list-affiliate-transactions"},{"title":"List Affiliate Links","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml get /webstore/affiliate/links","href":"/api-reference/afiliados/list-affiliate-links"},{"title":"Create Affiliate Link","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml post /webstore/affiliate/links","href":"/api-reference/afiliados/create-affiliate-link"},{"title":"Delete Affiliate Link","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml delete /webstore/affiliate/links/{id}","href":"/api-reference/afiliados/delete-affiliate-link"},{"title":"Update Withdraw Settings","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml patch /webstore/affiliate/withdraw_settings","href":"/api-reference/afiliados/update-withdraw-settings"},{"title":"Request Withdraw","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml post /webstore/affiliate/withdrawals","href":"/api-reference/afiliados/request-withdraw"},{"title":"Resolve Referral Code","deprecated":null,"version":null,"openapi":"/openapi/storefront-affiliate.yaml get /webstore/affiliate/ref/{code}","href":"/api-reference/afiliados/resolve-referral-code"}]},{"group":"Utilitários","pages":[{"title":"Find Roblox User","deprecated":null,"version":null,"openapi":"/openapi/storefront-utils.yaml get /webstore/roblox","href":"/api-reference/utilitarios/find-roblox-user"}]}]}]}]}]},"basePath":"","title":"Erros - CentralCart","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":[],"chunks":[]}