{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"3282507f-be1c-4361-b0f6-ecbeca936ee9","name":"TrackCash API (Marketplace)","description":"Esta documentação tem como objetivo explicar o funcionamento da integração de novos\nMarketplaces e Meios de Pagamento na ferramenta TrackCash para o cadastro de pedidos\nna plataforma.\n\n# Partes interessadas\nMarketplaces e Meios de pagamento que queiram se integrar a TrackCash para oferecer\nnossas soluções aos seus clientes.\n\n# Formato de dados\nNo cabeçalho da requisição você precisará enviar duas informações: Content-Type que definirá o tipo de requisição - neste caso usaremos o formato json.\n\n## Padronização\nPor convenção todos os valores identificados como decimais nesta documentação deverão ser enviados como valor inteiro, portanto considere a operação (valor * 100) para os\nvalores enviados.\n\nO padrão de data utilizado para a comunicação é o formato ISO 8601, onde usa-se:\nYYYY-MM-DD para campos que recebem a data.\n\n# Autenticação\nPara a autenticação utilizaremos o modelo Basic Autentication, basicamente você precisará combinar o Usuário e Senha (Administrador) e criptografar via code_64, o resultado será enviado no header (cabeçalho) da solicitação como token.\n\nVamos imaginar que seu usuário seja teste@meuemail.com e sua senha mudar123\n\nficará assim:`$token = base64_encode('teste@meuemail.com:mudar123');`\n\nA saída será: `dGVzdGVAbWV1ZW1haWwuY29tOm11ZGFyMTIz`\n\n# Tabelas auxiliares\n\n###### (id_status)\n\n| ID | Status |\n|:---:|:---|\n| 1 | Não Identificado |\n| 2 | Aguardando Pagamento |\n| 3 | Processando |\n| 4 | Enviado |\n| 5 | Entregue |\n| 6 | Cancelado |\n| 7 | Troca |\n| 8 | Devolução |\n| 9 | Não Relacionado |\n| 10 | Pedido incompleto |\n\n###### (id_channel, shipment_method e payment_method)\n\n| ID | Canal |\n|----|-------|\n| 1 | Amazon |\n| 6 | Magazine Luiza |\n| 12 | Mercado Livre |\n| 13 | Cnova |\n| 14 | Carrefour |\n| 15 | Netshoes |\n| 100 | B2w |\n| 101 | Leroy Merlin |\n| 113 | Madeira Madeira |\n| 114 | Dafiti |\n| 141 | Pagseguro |\n| 142 | Wirecard |\n| 143 | Pagar.me |\n| 144 | Zoom |\n| 159 | GetNet |\n| 160 | Redecard |\n| 165 | Cielo |\n| 169 | Ticket |\n| 172 | Sodexo |\n| 179 | VR Benefícios |\n| 196 | Stone |\n| 202 | SafraPay |\n| 431 | Alpe |\n| 443 | Ame |\n| 444 | Shopee |\n\n###### (shipment_service)\n\n| ID | Tipo de serviço |\n|----|-------|\n| 60 | Magalu Entregas |\n| 101 | B2w Entregas |\n| 120 | ME1 |\n| 121 | ME2 |\n| 1401 | JAD LOG CAP |\n| 1402 | JAD LOG INT Agendada |\n| 1561 | PAC |\n| 1562 | SEDEX |\n| 1563 | SEDEX 10 |\n| 1564 | SEDEX 12 |\n| 1565 | SEDEX HOJE |\n| 4341 | Transfolha Terrestre |\n| 4351 | VTEXLOG CARRIERS |\n| 4361 | TEX COURIER E |\n| 4362 | TEX COURIER E1 |\n| 4363 | TEX COURIER E2 |\n| 4364 | TEX COURIER E3 |\n| 4365 | TEX COURIER S |\n| 4366 | TEX COURIER S1 |\n| 4371 | Ontime Normal |\n| 4372 | Ontime Diferenciada |\n\n###### (payment_brand)\n\n| ID | Tipo de Pagamento |\n|----|-------|\n| 3 | Débito |\n| 4 | Débito parcelado |\n| 10 | Crédito parcelado |\n| 15 | Crédito a vista |\n| 16 | Voucher |\n| 17 | Voucher parcelado |\n| 19 | Boleto |\n\n###### (payment_brand)\n\n| ID | Bandeira |\n|----|-------|\n| 1 | Visa\n| 2 | Mastercard |\n| 3 | Hipercard |\n| 4 | Banricompras |\n| 5 | Amex |\n| 6 | Cabal |\n| 7 | Elo |\n| 8 | Sorocred |\n| 9 | Diners |\n| 10 | Discover |\n| 11 | Aura |\n| 12 | Sicredi |\n| 13 | Mais |\n| 14 | CUP |\n| 15 | Ticket |\n| 16 | Sodexo |\n| 17 | Planvale |\n| 18 | Goodcard |\n| 19 | Greencard |\n| 20 | Agiplan |\n| 21 | Banescard |\n| 22 | Credsystem |\n| 23 | Esplanada |\n| 24 | CredZ |\n| 25 | Alelo Alimentação |\n| 26 | Alelo Refeição |\n| 27 | Elo Alimentação |\n| 28 | Elo Refeição |\n| 29 | Ticket Alimentação |\n| 30 | Ticket Refeição |\n| 31 | Sodexo Gift/Premium |\n| 32 | Sodexo Alimentação |\n| 33 | Sodexo Refeição |\n| 34 | DMCard |\n| 35 | Verocheque |\n| 36 | VR Benefícios |\n| 37 | Policard |\n| 38 | Valecard |\n| 39 | BIN (first data) |\n| 40 | Personalcard |\n| 41 | Flex Car |\n| 45 | Convcard |\n| 47 | Alelo Auto |\n| 48 | Avista |\n| 50 | Bahamascard |\n| 51 | Sodexo Gift Pass |\n| 52 | JCB |\n| 53 | Verdecard |\n| 54 | Hiper |\n| 55 | Tricard |\n| 56 | Hiper/Hipercard |\n| 57 | Valemais |\n| 59 | Refeisul |\n| 61 | Abrapetite |\n| 62 | Valeshop |\n| 63 | Bradescard |\n| 64 | Brasilcard |\n| 65 | Coopercred |\n| 66 | Maxxcard |\n| 67 | BIQ |\n| 68 | Siscred |\n| 69 | Convenios card |\n| 70 | Use card |\n| 71 | Orgcard |\n| 72 | Sincard |\n| 73 | ECXCard |\n| 74 | Banestes |\n| 76 | Comprocard |\n| 77 | Nutricash |\n| 78 | Club+ |\n| 81 | Credicesta |\n| 82 | Fortbrasil |\n| 83 | Convênios Card |\n| 84 | Ourocard |\n| 85 | Infocards |\n| 86 | Banricard |\n| 87 | Mvcard |\n| 88 | Banese |\n| 89 | Usecred |\n| 92 | Banestik |\n| 93 | Credishop |\n| 95 | Sindplus |\n| 96 | Eucard |\n| 98 | 008 Cards |\n| 101 | Unocard |\n| 107 | Personalnet |\n| 108 | Visa Vale |\n| 109 | Plantão Card |\n| 110 | VR Alimentação |\n| 111 | VR Auto |\n| 112 | VR Cultura |\n| 113 | VR Refeição |\n\n###### (id_code)\n| ID | Pagamento |\n|----|-------|\n| 1 | Frete não encontrado |\n| 2 | Frete reverso |\n| 3 | Frete encontrado |\n| 4 | Serviços Adicionais |\n| 5 | Frete Grátis |\n| 6 | Reverso não encontrado |\n| 7 | Venda |\n| 8 | Comissão |\n| 9 | Frete Marketplace |\n| 10 | Devoluções |\n| 11 | Comissão sobre Devolução |\n| 12 | Devolução de Comissões |\n| 13 | Antecipação |\n| 14 | Custo por Antecipações |\n| 15 | Cashback |\n| 16 | Disputas |\n| 17 | Retirada/Transferência |\n| 18 | Custo sobre retirada/trasferência |\n| 19 | Processos judiciais |\n| 20 | Declarações bancárias |\n| 21 | Outras ocorrências de crédito/débito |\n| 22 | Previsão de Pagamento |\n| 23 | Previsão de Comissão |\n| 71 | Pagamento ao Fornecedor |\n| 81 | MDR |\n| 82 | Taxa fixa |\n| 231 | Previsão de MDR |\n| 232 | Imposto de Renda |\n| 233 | Previsão de Pagamento ao Fornecedor |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"14060043","collectionId":"3282507f-be1c-4361-b0f6-ecbeca936ee9","publishedId":"Tzm9kajM","public":true,"publicUrl":"https://documenter-api.postman.tech/view/14060043/Tzm9kajM","privateUrl":"https://go.postman.co/documentation/14060043-3282507f-be1c-4361-b0f6-ecbeca936ee9","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-single-column","customisation":null,"version":"8.10.1","publishDate":"2021-07-14T17:14:40.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"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://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/768118b36f06c94b0306958b980558e6915839447e859fe16906e29d683976f0","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/Tzm9kajM"}