{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"26bc7d16-6275-4406-84b7-19b21b713cf6","name":"Prefiro Delivery V2","description":"A API Prefiro Delivery está implementada em conformidade com o princípio de design REST.\n\n## Autenticação\n\nTodas as requisições devem conter um header `Authorization` com o valor:\n\n```\nBasic SEU_TOKEN\n```\n\nO token é gerado com a hash do estabelecimento (a mesma usada para acessar o dashboard) e a sua chave de API:\n\n```\nbase_64(md5(HASH|CHAVE))\n```\n\nOu seja: a hash, um caractere pipe (`|`) e a chave, codificados em MD5, e o resultado codificado em Base64.\n\nTodas as requisições têm na URL uma seção `HASH`, que deve ser substituída pela hash do seu estabelecimento. Base URL: `https://api.prefirodelivery.com/HASH/v2`.\n\n## Formato das respostas\n\nAs respostas usam o envelope `{ \"codigo\", \"mensagem\", \"data\" }`. O resultado da operação vem em `codigo` (`200` sucesso, `201` nenhum registro encontrado, `400` dados inválidos, `401` token ou estabelecimento inválido, `404` não encontrado, `409` conflito) e a explicação em `mensagem`.\n\n## Limite de requisições\n\n`POST /v2/pedido` aceita até **60 requisições por minuto** por origem. Acima disso, o servidor responde HTTP `429` (sem envelope).\n\n## API Playground\n\nPara testar todos os métodos no navegador com os dados reais da loja, abra `https://api.prefirodelivery.com/HASH/api-teste`. Cole a chave da API (a página calcula o token) ou o token pronto. A criação de pedido vem com \"Só validar\" ligado por padrão.\n\n## Novidades\n\n| Data | O que mudou |\n| --- | --- |\n| 11/2026 | **Pedido agendado:** campo `agendamento` em Criar pedido e as rotas Dias e Intervalos para agendamento |\n| 11/2026 | **Novas formas de pagamento** em Criar pedido: `vale_alimentacao` e `vale_refeicao`; formas genéricas de crédito/débito da loja têm prioridade |\n| 10/2026 | **Criar pedido** para parceiros: cliente e endereço inline, pizza, preço do parceiro (`valor_unitario`), `pre_pago`, idempotência por `id_externo` e simulação com `validar: true` |\n| 10/2026 | Cardápio para integração, Bairros atendidos, Criar ou localizar cliente, Cadastrar endereço do cliente, Criar Produto Pizza, Listar entregadores e Atribuir entregador ao pedido |\n| 10/2026 | Consultar cashback e Extrato de cashback do cliente |\n| 09/2026 | Carrinhos abandonados |\n\n## Status dos Pedidos\n\nOs pedidos retornados pela API possuem um campo `status` com os seguintes valores possíveis:\n\n| SKU | Nome | Descrição |\n| --- | --- | --- |\n| 1 | Solicitado | Pedido recebido e aguardando início do preparo. |\n| 2 | Em produção | Pedido está sendo preparado pelo estabelecimento. |\n| 3 | Pronto para retirada | Pedido finalizado e disponível para retirada no local. |\n| 4 | Entregue | Pedido entregue ao cliente. |\n| 5 | Cancelado | Pedido foi cancelado pelo cliente ou estabelecimento. |\n| 6 | Aguardando pagamento | Pedido foi criado, mas o pagamento ainda não foi confirmado. |\n| 7 | Saiu para entrega | Pedido saiu do estabelecimento e está a caminho do cliente. |\n| 8 | Expirado | Pedido não foi concluído dentro do tempo limite e foi encerrado automaticamente. |\n\nO campo `status` pode ser usado como filtro com o parâmetro `status` na query string.  \nExemplo: `?status=2` (retorna apenas pedidos em produção)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"11644806","team":22488467,"collectionId":"26bc7d16-6275-4406-84b7-19b21b713cf6","publishedId":"UVsEUokz","public":true,"publicUrl":"https://documenter-api.postman.tech/view/11644806/UVsEUokz","privateUrl":"https://go.postman.co/documentation/11644806-26bc7d16-6275-4406-84b7-19b21b713cf6","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7c00cd"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7c00cd"}}]}},"version":"8.12.14","publishDate":"2026-09-23T18:48:19.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/c4103943a36540a9e9b51a9a7b676233acd02bde23511bf0fb7db1659a8b2c05","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/UVsEUokz"}