{
  "info": {
    "_postman_id": "b122bed6-db78-40ac-8fef-de7e24fd0b35",
    "name": "Webservice",
    "description": "Para liberar acesso como agência, primeiramente você deve criar um nome para seu app e ativar o webservice do Woofi, no aplicativo WEB, basta ir até o seu perfil e a opção de Webservice estará lá.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "45817765",
    "_collection_link": "https://go.postman.co/collection/45817765-b122bed6-db78-40ac-8fef-de7e24fd0b35?source=collection_link"
  },
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Login",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "const response = pm.response.json();",
                  "",
                  "if (response.token) {",
                  "    pm.environment.set(\"token\", response.token);    ",
                  "}",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"email\": \"exemplo@exemplo.com\",\n    \"app_name\": \"exemplo\",\n    \"password\": \"exemplo\"\n}\n",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url}}/auth/login",
              "host": [
                "{{url}}"
              ],
              "path": [
                "auth",
                "login"
              ]
            }
          },
          "response": [
            {
              "name": "Login Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"email\": \"example@email.com\",\n    \"app_name\": \"example_app\",\n    \"password\": \"123456\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "https://portal.woo-fi.com/api/webservice/v1/auth/login",
                  "protocol": "http",
                  "host": [
                    "127",
                    "0",
                    "0",
                    "1"
                  ],
                  "port": "8000",
                  "path": [
                    "api",
                    "webservice",
                    "v1",
                    "auth",
                    "login"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"token\": \"1|ddd11111233glqjUAsu2123xamZ8d768c5e\",\n    \"name\": \"YOUR NAME\",\n    \"email\": \"example@email.com\",\n    \"photo\": \"/user-images/image.jpeg\",\n    \"phone\": \"(18) 99999-9999\",\n    \"cpfCnpj\": \"333.333.333-33\"\n}"
            },
            {
              "name": "Login Failed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"email\": \"example@email.com\",\n    \"app_name\": \"example_app\",\n    \"password\": \"123456\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/auth/login",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "auth",
                    "login"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"message\": \"Credenciais inválidas\"\n}"
            }
          ]
        },
        {
          "name": "Check User",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/auth/check-user",
              "host": [
                "{{url}}"
              ],
              "path": [
                "auth",
                "check-user"
              ]
            },
            "description": "Esse endpoit é válido para quando queremos validar se o usuário está com o seu token válido ou não, caso sim ele retornará um 200 code e caso não, retornará um 401. A sessão sempre durará uma hora."
          },
          "response": [
            {
              "name": "Valid Token",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/auth/check-user",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "auth",
                    "check-user"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n    \"id\": 133,\n    \"name\": \"João Silva\",\n    \"email\": \"joao.silva@example.com\",\n    \"phone\": \"(11) 98765-4321\",\n    \"photo\": \"/user-images/example.jpeg\"\n}"
            },
            {
              "name": "Invalid Token",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/auth/check-user",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "auth",
                    "check-user"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n    \"message\": \"Unauthenticated.\"\n}"
            }
          ]
        },
        {
          "name": "User Info",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/auth/user-info",
              "host": [
                "{{url}}"
              ],
              "path": [
                "auth",
                "user-info"
              ]
            }
          },
          "response": [
            {
              "name": "User Info",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/auth/user-info",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "auth",
                    "user-info"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"id\": 133,\n    \"name\": \"João Silva\",\n    \"email\": \"joao.silva@example.com\",\n    \"phone\": \"(11) 98765-4321\",\n    \"photo\": \"/user-images/example.jpeg\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Catalog",
      "item": [
        {
          "name": "Operators",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/operators",
              "host": [
                "{{url}}"
              ],
              "path": [
                "operators"
              ]
            }
          },
          "response": [
            {
              "name": "Operators",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/operators",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "operators"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"idOperator\": 14,\n        \"description\": \"T-Mobile\"\n    },\n    {\n        \"idOperator\": 15,\n        \"description\": \"WOOFI\"\n    }\n]"
            }
          ]
        },
        {
          "name": "Products",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/products",
              "host": [
                "{{url}}"
              ],
              "path": [
                "products"
              ]
            }
          },
          "response": [
            {
              "name": "Products",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/products/15",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "products",
                    "15"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"idProduct\": 1,\n        \"description\": \"Product 1\"\n    },\n    {\n        \"idProduct\": 2,\n        \"description\": \"Product 2\"\n    },\n    {\n        \"idProduct\": 3,\n        \"description\": \"Product 3\"\n    }\n]"
            }
          ]
        },
        {
          "name": "Product Items",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/product-items/:productId/0",
              "host": [
                "{{url}}"
              ],
              "path": [
                "product-items",
                ":productId",
                "0"
              ],
              "variable": [
                {
                  "key": "productId",
                  "value": "63"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Product Items",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/product-items/44/0",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "product-items",
                    "44",
                    "0"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"parent_sequence\": null,\n        \"options_sequence\": 956,\n        \"price\": 24,\n        \"sequence\": 1991,\n        \"optionName\": \"First Option\",\n        \"itemName\": \"30 DIAS\",\n        \"idProduct\": 44,\n        \"boundParentOption\": null\n    },\n    {\n        \"parent_sequence\": null,\n        \"options_sequence\": 956,\n        \"price\": 24,\n        \"sequence\": 1991,\n        \"optionName\": \"Second Option\",\n        \"itemName\": \"30 DIAS\",\n        \"idProduct\": 44,\n        \"boundParentOption\": null\n    }\n]"
            }
          ]
        },
        {
          "name": "ProductPrices",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/product-items/all",
              "host": [
                "{{url}}"
              ],
              "path": [
                "product-items",
                "all"
              ]
            },
            "description": "Retorna todos os itens e preços de produtos disponíveis."
          },
          "response": [
            {
              "name": "ProductPrices",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/product-items/all",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "product-items",
                    "all"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n  {\n    \"idProduct\": 140,\n    \"description\": \"USA - COM INTERNET E LIGAÇÕES ILIMITADAS\",\n    \"sequence\": 590,\n    \"price\": 20,\n    \"itemName\": \"30 Dias 5GB EUA\"\n  },\n  {\n    \"idProduct\": 140,\n    \"description\": \"USA - COM INTERNET E LIGAÇÕES ILIMITADAS\",\n    \"sequence\": 591,\n    \"price\": 20,\n    \"itemName\": \"30 Dias 6GB EUA\"\n  },\n  {\n    \"idProduct\": 140,\n    \"description\": \"USA - COM INTERNET E LIGAÇÕES ILIMITADAS\",\n    \"sequence\": 592,\n    \"price\": 20,\n    \"itemName\": \"30 Dias 10GB EUA\"\n  }\n]"
            }
          ]
        }
      ]
    },
    {
      "name": "Activations",
      "item": [
        {
          "name": "Create Activation",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"type\": \"esim\",\n    \"dateActive\": \"2026-05-10\",\n    \"idProduct\": 90,\n    \"chips\": [\n        {\n            \"eid\": \"89852342022137421003\",\n            \"imei\": \"351756051523999\"\n        }\n    ],\n    \"items\": [\n        {\n            \"sequence_item\": 411\n        }\n    ],\n    \"name\": \"João Silva\",\n    \"email\": \"joao.silva@example.com\",\n    \"phone\": \"(11) 98765-4321\",\n    \"document\": \"182.177.290-34\",\n    \"zipcode\": \"01310-100\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"number\": \"1578\",\n    \"address\": \"Avenida Paulista\",\n    \"neighborhood\": \"Bela Vista\",\n    \"complement\": \"Apartamento 1203\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url}}/activations",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations"
              ]
            },
            "description": "Cria uma ativação (eSIM ou chip físico).\n\n### Parâmetros do Body\n\n| Campo | Tipo | Obrigatório | Descrição |\n| :--- | :--- | :--- | :--- |\n| type | String | Sim | `esim` ou `chip` (chip físico) |\n| dateActive | String | Sim | Data de início do plano (AAAA-MM-DD) |\n| idProduct | Number | Sim | Produto escolhido no catálogo |\n| items | Array | Sim | Itens do pedido; cada um com `sequence_item` (id da variação) |\n| chips | Array | Sim | Dados técnicos do chip (`eid`/`imei`/`icc`, conforme a operadora) |\n| name | String | Sim | Nome do cliente final |\n| email | String | Sim | E-mail do cliente final |\n| phone | String | Não | Telefone do cliente |\n| document | String | Não | Documento do cliente |\n| zipcode | String | Não | Endereço de entrega (chip físico) |\n| address | String | Não | Endereço de entrega (chip físico) |\n| number | String | Não | Endereço de entrega (chip físico) |\n| neighborhood | String | Não | Endereço de entrega (chip físico) |\n| city | String | Não | Endereço de entrega (chip físico) |\n| state | String | Não | Endereço de entrega (chip físico) |\n| complement | String | Não | Endereço de entrega (chip físico) |"
          },
          "response": [
            {
              "name": "Create Activation",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"type\": \"esim\",\n    \"dateActive\": \"2026-05-10\",\n    \"idProduct\": 90,\n    \"chips\": [\n        {\n            \"eid\": \"89852342022137421003\",\n            \"imei\": \"351756051523999\"\n        }\n    ],\n    \"items\": [\n        {\n            \"sequence_item\": 411\n        }\n    ],\n    \"name\": \"João Silva\",\n    \"email\": \"joao.silva@example.com\",\n    \"phone\": \"(11) 98765-4321\",\n    \"document\": \"182.177.290-34\",\n    \"zipcode\": \"01310-100\",\n    \"city\": \"São Paulo\",\n    \"state\": \"SP\",\n    \"number\": \"1578\",\n    \"address\": \"Avenida Paulista\",\n    \"neighborhood\": \"Bela Vista\",\n    \"complement\": \"Apartamento 1203\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/activations",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"message\": \"Pedido realizado com sucesso!\",\n    \"order\": {\n        \"idOrder\": 26660,\n        \"type\": \"esim\",\n        \"idProduct\": 90,\n        \"quantity\": 1,\n        \"chips\": [\n            {\n                \"sequence\": 27208,\n                \"ICC\": null,\n                \"EID\": \"89852342022137421003\",\n                \"IMEI\": \"351756051523999\",\n                \"IMEI2\": null,\n                \"pin\": null,\n                \"description\": \"\",\n                \"line\": null,\n                \"idOrder\": 26660,\n                \"created_at\": \"2026-05-28T09:04:19-03:00\",\n                \"updated_at\": \"2026-05-28T09:04:19-03:00\",\n                \"pathQRCode\": \"https://portal.woo-fi.com/qr_codes/example.png\"\n            }\n        ],\n        \"date_active\": \"2026-05-10\",\n        \"client\": {\n            \"name\": \"João Silva\",\n            \"email\": \"joao.silva@example.com\"\n        },\n        \"total_price\": 29.9\n    }\n}"
            }
          ]
        },
        {
          "name": "List Activations",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/activations?page=1",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          },
          "response": [
            {
              "name": "List Activations",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"current_page\": 1,\n    \"data\": [\n        {\n            \"order_id\": 1,\n            \"seller_name\": null,\n            \"dealer_name\": \"Dealer 1\",\n            \"product\": \"Product 1\",\n            \"date\": \"13/05/2024\",\n            \"price\": 24\n        },\n        {\n            \"order_id\": 2,\n            \"seller_name\": \"Seller 1\",\n            \"dealer_name\": \"Dealer 1\",\n            \"product\": \"Product 1\",\n            \"date\": \"13/05/2024\",\n            \"price\": 24\n        },\n        {\n            \"order_id\": 3,\n            \"seller_name\": null,\n            \"dealer_name\": \"Dealer 1\",\n            \"product\": \"Product 1\",\n            \"date\": \"13/05/2024\",\n            \"price\": 24\n        }\n    ],\n    \"first_page_url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=1\",\n    \"from\": 1,\n    \"last_page\": 2,\n    \"last_page_url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=2\",\n    \"links\": [\n        {\n            \"url\": null,\n            \"label\": \"pagination.previous\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=1\",\n            \"label\": \"1\",\n            \"active\": true\n        },\n        {\n            \"url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=2\",\n            \"label\": \"2\",\n            \"active\": false\n        },\n        {\n            \"url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=2\",\n            \"label\": \"pagination.next\",\n            \"active\": false\n        }\n    ],\n    \"next_page_url\": \"https://portal.woo-fi.com/api/webservice/v1/activations?page=2\",\n    \"path\": \"https://portal.woo-fi.com/api/webservice/v1/activations\",\n    \"per_page\": 15,\n    \"prev_page_url\": null,\n    \"to\": 15,\n    \"total\": 29\n}"
            }
          ]
        },
        {
          "name": "Get one activation",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/activations/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "26660"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Get one activation",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/26660",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "26660"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"enabledEid\": 0,\n    \"enabledImei\": 0,\n    \"enabledLine\": 0,\n    \"enabledChip\": 1,\n    \"enabledPin\": 0,\n    \"enabledDescription\": 1,\n    \"order_id\": 26660,\n    \"order_imei\": \"TEST\",\n    \"order_imei2\": null,\n    \"external_id\": null,\n    \"order_icc\": null,\n    \"order_pin\": null,\n    \"order_eid\": \"89852342022137421003\",\n    \"order_price\": 2.22,\n    \"order_type\": \"esim\",\n    \"order_line\": null,\n    \"zipCode\": null,\n    \"address\": null,\n    \"number\": null,\n    \"neighborhood\": null,\n    \"city\": null,\n    \"state\": null,\n    \"complement\": null,\n    \"order_status\": 2,\n    \"order_qrcode\": \"https://portal.woo-fi.com/qr_codes/example.png\",\n    \"date_active\": \"10/05/2026\",\n    \"client_name\": \"cliente\",\n    \"client_email\": \"cliente@example.com\",\n    \"client_phone\": \"(18) 99999-9999\",\n    \"client_document\": \"182.177.290-34\",\n    \"product_name\": \"1GB EUROPA - 30 DIAS RECARREGAVEL\",\n    \"quantity\": 1,\n    \"items\": [\n        {\n            \"parent_description\": \"Dias\",\n            \"item_description\": \"30 Dias\",\n            \"value\": \"2.22\"\n        }\n    ],\n    \"chips\": [\n        {\n            \"sequence\": 27208,\n            \"ICC\": null,\n            \"IMEI\": \"TEST\",\n            \"EID\": \"89852342022137421003\",\n            \"pin\": null,\n            \"pathQRCode\": \"https://portal.woo-fi.com/qr_codes/example.png\",\n            \"qr_content\": null,\n            \"description\": \"\",\n            \"line\": null,\n            \"idOrder\": 26660,\n            \"created_at\": \"2026-05-28T09:04:19-03:00\",\n            \"updated_at\": \"2026-05-28T09:04:19-03:00\",\n            \"origin\": \"Webservice\",\n            \"IMEI2\": null,\n            \"statusCMlink\": \"\"\n        }\n    ]\n}"
            }
          ]
        },
        {
          "name": "Cancel Activation",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/activations/cancel/:id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations",
                "cancel",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "25360"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Cancel Activation",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/1041",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "1041"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"message\": \"Ativação cancelada com sucesso.\"\n}",
              "code": 200
            }
          ]
        },
        {
          "name": "Consumo por Pedido",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/activations/consumption/order/:orderId",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations",
                "consumption",
                "order",
                ":orderId"
              ],
              "variable": [
                {
                  "key": "orderId",
                  "value": "434",
                  "description": "ID interno ou external_id do pedido."
                }
              ]
            },
            "description": "Consulta o consumo dos chips de um pedido. Todos os volumes vêm em **MB**. Em planos ilimitados, `unlimited=true` e franquia/saldo/percentual vêm `null`.\n\n> [!IMPORTANT]\n> Recurso restrito: a agência precisa ter a **consulta de consumo habilitada** (`allow_consumption_query`). Sem a permissão, a resposta é `403`.\n\nO `{orderId}` aceita o **id interno** ou o **external_id** do pedido.\n\n### Resposta\n\n| Campo | Tipo | Descrição |\n| :--- | :--- | :--- |\n| order_id | Number | ID interno do pedido |\n| external_id | String | Seu identificador do pedido (`external_id`) |\n| activation_type | String | `esim` ou `chip` |\n| chips | Array | Lista de chips do pedido com o consumo (campos abaixo) |\n| sequence | Number | ID do item (chip) no pedido |\n| identifier | String | ICC, EID ou IMEI2 usado na consulta (`null` se indisponível) |\n| available | Boolean | Indica se o consumo pôde ser consultado |\n| unlimited | Boolean | Plano ilimitado; quando `true`, `allowance_mb`, `remaining_mb` e `usage_percentage` vêm `null` |\n| total_used_mb | Number | Total consumido no ciclo, em MB |\n| allowance_mb | Number | Franquia do plano, em MB (`null` quando ilimitado) |\n| remaining_mb | Number | Saldo restante, em MB (`null` quando ilimitado) |\n| usage_percentage | Number | Percentual utilizado (`null` quando ilimitado) |\n| last_usage_at | String | Data do último consumo registrado (AAAA-MM-DD) |\n| fetched_at | String | Instante da consulta (ISO 8601) |\n| history | Array | Consumo diário do ciclo |\n| date | String | Dia do consumo no histórico (AAAA-MM-DD) |\n| used_mb | Number | Consumo do dia, em MB |\n| message | String | Presente apenas quando `available=false`; explica o motivo da indisponibilidade |\n"
          },
          "response": [
            {
              "name": "Consumo por Pedido",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/consumption/order/:orderId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "consumption",
                    "order",
                    ":orderId"
                  ],
                  "variable": [
                    {
                      "key": "orderId",
                      "value": "434",
                      "description": "ID interno ou external_id do pedido."
                    }
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"success\",\n    \"message\": \"Consumo consultado com sucesso.\",\n    \"data\": {\n        \"order_id\": 25360,\n        \"external_id\": \"434\",\n        \"activation_type\": \"chip\",\n        \"chips\": [\n            {\n                \"sequence\": 25869,\n                \"identifier\": \"8955010012345678909\",\n                \"available\": true,\n                \"unlimited\": false,\n                \"total_used_mb\": 3584,\n                \"allowance_mb\": 5120,\n                \"remaining_mb\": 1536,\n                \"usage_percentage\": 70,\n                \"last_usage_at\": \"2026-09-21\",\n                \"fetched_at\": \"2026-09-22T13:40:05-03:00\",\n                \"history\": [\n                    {\n                        \"date\": \"2026-09-21\",\n                        \"used_mb\": 820\n                    },\n                    {\n                        \"date\": \"2026-09-20\",\n                        \"used_mb\": 640\n                    }\n                ]\n            }\n        ]\n    }\n}",
              "code": 200
            },
            {
              "name": "Sem permissão",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/consumption/order/:orderId",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "consumption",
                    "order",
                    ":orderId"
                  ],
                  "variable": [
                    {
                      "key": "orderId",
                      "value": "434",
                      "description": "ID interno ou external_id do pedido."
                    }
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"error\",\n    \"message\": \"Funcionalidade não habilitada para esta agência.\",\n    \"data\": []\n}",
              "code": 403
            }
          ]
        },
        {
          "name": "Consumo por Chip",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/activations/consumption/chip/:identifier",
              "host": [
                "{{url}}"
              ],
              "path": [
                "activations",
                "consumption",
                "chip",
                ":identifier"
              ],
              "variable": [
                {
                  "key": "identifier",
                  "value": "8955010012345678909",
                  "description": "ICC, EID, IMEI2 ou número da linha."
                }
              ]
            },
            "description": "Consulta o consumo de um único chip. Todos os volumes vêm em **MB**. Em planos ilimitados, `unlimited=true` e franquia/saldo/percentual vêm `null`.\n\n> [!IMPORTANT]\n> Recurso restrito: a agência precisa ter a **consulta de consumo habilitada** (`allow_consumption_query`). Sem a permissão, a resposta é `403`.\n\nO chip é resolvido pelo **ICC**, **EID**, **IMEI2** ou **número da linha**, sempre dentro do escopo da agência autenticada. Havendo mais de um item para o mesmo identificador, vence o mais recente.\n\n### Resposta\n\n| Campo | Tipo | Descrição |\n| :--- | :--- | :--- |\n| order_id | Number | ID interno do pedido |\n| external_id | String | Seu identificador do pedido (`external_id`) |\n| activation_type | String | `esim` ou `chip` |\n| chip | Object | Consumo do chip (campos abaixo) |\n| sequence | Number | ID do item (chip) no pedido |\n| identifier | String | ICC, EID ou IMEI2 usado na consulta (`null` se indisponível) |\n| available | Boolean | Indica se o consumo pôde ser consultado |\n| unlimited | Boolean | Plano ilimitado; quando `true`, `allowance_mb`, `remaining_mb` e `usage_percentage` vêm `null` |\n| total_used_mb | Number | Total consumido no ciclo, em MB |\n| allowance_mb | Number | Franquia do plano, em MB (`null` quando ilimitado) |\n| remaining_mb | Number | Saldo restante, em MB (`null` quando ilimitado) |\n| usage_percentage | Number | Percentual utilizado (`null` quando ilimitado) |\n| last_usage_at | String | Data do último consumo registrado (AAAA-MM-DD) |\n| fetched_at | String | Instante da consulta (ISO 8601) |\n| history | Array | Consumo diário do ciclo |\n| date | String | Dia do consumo no histórico (AAAA-MM-DD) |\n| used_mb | Number | Consumo do dia, em MB |\n| message | String | Presente apenas quando `available=false`; explica o motivo da indisponibilidade |\n"
          },
          "response": [
            {
              "name": "Consumo por Chip",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/consumption/chip/:identifier",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "consumption",
                    "chip",
                    ":identifier"
                  ],
                  "variable": [
                    {
                      "key": "identifier",
                      "value": "8955010012345678909",
                      "description": "ICC, EID ou IMEI2 do chip."
                    }
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"success\",\n    \"message\": \"Consumo consultado com sucesso.\",\n    \"data\": {\n        \"order_id\": 25360,\n        \"external_id\": \"434\",\n        \"activation_type\": \"chip\",\n        \"chip\": {\n            \"sequence\": 25869,\n            \"identifier\": \"8955010012345678909\",\n            \"available\": true,\n            \"unlimited\": false,\n            \"total_used_mb\": 3584,\n            \"allowance_mb\": 5120,\n            \"remaining_mb\": 1536,\n            \"usage_percentage\": 70,\n            \"last_usage_at\": \"2026-09-21\",\n            \"fetched_at\": \"2026-09-22T13:40:05-03:00\",\n            \"history\": [\n                {\n                    \"date\": \"2026-09-21\",\n                    \"used_mb\": 820\n                },\n                {\n                    \"date\": \"2026-09-20\",\n                    \"used_mb\": 640\n                }\n            ]\n        }\n    }\n}",
              "code": 200
            },
            {
              "name": "Sem permissão",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/activations/consumption/chip/:identifier",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "activations",
                    "consumption",
                    "chip",
                    ":identifier"
                  ],
                  "variable": [
                    {
                      "key": "identifier",
                      "value": "8955010012345678909",
                      "description": "ICC, EID ou IMEI2 do chip."
                    }
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"error\",\n    \"message\": \"Funcionalidade não habilitada para esta agência.\",\n    \"data\": []\n}",
              "code": 403
            }
          ]
        },
        {
          "name": "Get Tax",
          "protocolProfileBehavior": {
            "disableBodyPruning": true,
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url}}/get-tax/:uf",
              "host": [
                "{{url}}"
              ],
              "path": [
                "get-tax",
                ":uf"
              ],
              "variable": [
                {
                  "key": "uf",
                  "value": "sp"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Get Tax",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/get-tax/sp",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "get-tax",
                    "sp"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"sedex\": 13,\n    \"pac\": 5.9\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Credit",
      "item": [
        {
          "name": "Current Balance",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/current-balance",
              "host": [
                "{{url}}"
              ],
              "path": [
                "current-balance"
              ]
            }
          },
          "response": [
            {
              "name": "Current Balance",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/current-balance",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "current-balance"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"current_balance\": 8661.15\n}"
            }
          ]
        },
        {
          "name": "Credit History",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/credit-history",
              "host": [
                "{{url}}"
              ],
              "path": [
                "credit-history"
              ]
            }
          },
          "response": [
            {
              "name": "Credit History",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/credit-history",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "credit-history"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"date\": \"16/11/2023 18:21\",\n        \"value\": \"5.00\",\n        \"approved\": \"Não aprovado\",\n        \"type\": \"Stripe\"\n    },\n    {\n        \"date\": \"16/11/2023 20:21\",\n        \"value\": \"9.00\",\n        \"approved\": \"Não aprovado\",\n        \"type\": \"Stripe\"\n    }\n]"
            }
          ]
        },
        {
          "name": "Credit Statement",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/credit-statement?initial_date=2026-07-01&final_date=2026-07-31",
              "host": [
                "{{url}}"
              ],
              "path": [
                "credit-statement"
              ],
              "query": [
                {
                  "key": "initial_date",
                  "value": "2026-07-01",
                  "description": "Data inicial no formato YYYY-MM-DD (opcional, padrão mês atual)"
                },
                {
                  "key": "final_date",
                  "value": "2026-07-31",
                  "description": "Data final no formato YYYY-MM-DD (opcional, padrão mês atual)"
                },
                {
                  "key": "status",
                  "value": "Aprovado",
                  "description": "Status da venda (opcional: Aprovado, Não aprovado, all)"
                }
              ]
            },
            "description": "Retorna o extrato de vendas e débitos de ativações efetuados pela agência no período selecionado."
          },
          "response": [
            {
              "name": "Credit Statement",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/credit-statement?initial_date=2026-07-01&final_date=2026-07-31",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "credit-statement"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"idCharge\": 1541,\n        \"idOrder\": 3021,\n        \"date\": \"26/07/2026 10:15\",\n        \"value\": \"45.00\",\n        \"description\": \"Débito ref. Ativação de Pedido #3021\",\n        \"status\": \"Aprovado\"\n    },\n    {\n        \"idCharge\": 1538,\n        \"idOrder\": 3015,\n        \"date\": \"25/07/2026 18:40\",\n        \"value\": \"90.00\",\n        \"description\": \"Débito ref. Ativação de Pedido #3015\",\n        \"status\": \"Aprovado\"\n    }\n]"
            }
          ]
        },
        {
          "name": "Create Charge",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"typePayment\": \"stripe\",\n    \"price\": 100,\n    \"instalments\": \"1\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{url}}/charge",
              "host": [
                "{{url}}"
              ],
              "path": [
                "charge"
              ]
            },
            "description": "Gera uma cobrança para recarregar a carteira. Para **Stripe**, a resposta traz `stripe_url` (link de checkout). Para **Ebanx**, informe `type` e, em cartão, os campos `card_*`.\n\n### Parâmetros do Body\n\n| Campo | Tipo | Descrição | Obrigatório |\n| :--- | :--- | :--- | :--- |\n| typePayment | String | Gateway: `stripe` ou `ebanx` | Sim |\n| price | Number | Valor da recarga (respeita o mínimo do gateway) | Sim |\n| instalments | String | Parcelas | Não |\n| type | String | Ebanx: `pix` ou `creditcard` | Não (obrigatório no Ebanx) |\n| card_name | String | Nome no cartão (Ebanx creditcard) | Não |\n| card_number | String | Número do cartão (Ebanx creditcard) | Não |\n| expiration | String | Validade MM/AA (Ebanx creditcard) | Não |\n| card_cvv | String | CVV (Ebanx creditcard) | Não |"
          },
          "response": [
            {
              "name": "Stripe",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"price\": 5,\n    \"typePayment\": \"stripe\",\n    \"type\": \"\",\n    \"name\": \"\",\n    \"card_name\": \"\",\n    \"card_number\": \"\",\n    \"expiration\": \"\",\n    \"card_cvv\": \"\",\n    \"country\": \"\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/charge",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n    \"stripe_url\": \"https://checkout.stripe.com/pay/cs_test_a1Zj2XFnQGzd0PaeXxtBcByyD16r9fi6vPaX22bwUVY0Tu5q8SUU2JliCX\"\n}"
            },
            {
              "name": "PIX",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"price\": 100,\n    \"typePayment\": \"ebanx\",\n    \"type\": \"pix\",\n    \"name\": \"People Name\",\n    \"card_name\": \"\",\n    \"card_number\": \"\",\n    \"expiration\": \"\",\n    \"card_cvv\": \"\",\n    \"country\": \"Brasil\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/charge",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"success\",\n    \"payment_method\": \"pix\",\n    \"pix\": {\n        \"qr_code_value\": \"00020101021226870014br.gov.bcb.pix2565qr.woo-fi.com/api/v1/charge/pix/12351239857123951283\",\n        \"qr_code_url\": \"https://portal.woo-fi.com/api/webservice/v1/charge/pix/qrcode/818192839280192381231\"\n    }\n}"
            },
            {
              "name": "Ebanx",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"price\": 100,\n    \"typePayment\": \"ebanx\",\n    \"type\": \"creditcard\",\n    \"name\": \"People Name\",\n    \"card_name\": \"People Name\",\n    \"card_number\": \"4111 1111 1111 1111\",\n    \"expiration\": \"01/34\",\n    \"card_cvv\": \"111\",\n    \"country\": \"México\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/charge?",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge"
                  ],
                  "query": [
                    {
                      "key": "",
                      "value": null
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": \"success\",\n    \"payment_method\": \"ebanx_creditcard\",\n    \"transaction_id\": \"818192839280192381231\",\n    \"message\": \"Pagamento aprovado com sucesso!\"\n}"
            },
            {
              "name": "Response",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"price\": 98.90,\n    \"finalPrice\": 112.11,\n    \"typePayment\": \"ebanx\",\n    \"type\": \"pix\",\n    \"name\": \"People Name\",\n    \"card_name\": \"People Card Name\",\n    \"card_number\": \"4444 4444 4444 4444\",\n    \"expiration\": \"01/34\",\n    \"card_cvv\": \"111\",\n    \"country\": \"Brasil\" \n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{url}}/charge",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge"
                  ]
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"message\": \"Pedido realizado com sucesso!\",\n    \"status\": \"success\",\n    \"data\": {\n        \"resp\": {\n            \"price\": \"98.9\",\n            \"finalPrice\": 112.11,\n            \"typePayment\": \"ebanx\",\n            \"type\": \"pix\",\n            \"name\": \"People Name\",\n            \"card_name\": \"People Card Name\",\n            \"card_number\": \"4444 4444 4444 4444\",\n            \"expiration\": \"01/34\",\n            \"card_cvv\": \"111\",\n            \"country\": \"Brasil\",\n            \"idUser\": 1,\n            \"idDealer\": 1,\n            \"people\": {\n                \"idPeople\": 1,\n                \"name\": \"People Name\",\n                \"birthdate\": \"2023-06-14\",\n                \"email\": \"example@email.com\",\n                \"phone\": \"(22) 222222-2222\",\n                \"cpfCnpj\": \"333.333.333-33\",\n                \"zipCode\": \"111111-1111\",\n                \"address\": \"Rua de exemplo\",\n                \"number\": \"123\",\n                \"neighborhood\": \"Bairro de exemplo\",\n                \"photo\": \"\",\n                \"active\": 1,\n                \"juridical\": 1,\n                \"created_at\": null,\n                \"updated_at\": null,\n                \"responsible\": \"Pessoa\",\n                \"phone_responsible\": \"(11) 11111-1111\",\n                \"userActive\": 1,\n                \"idUf\": null,\n                \"idCity\": null,\n                \"city_name\": \"Catanduva\",\n                \"uf_name\": \"SP\",\n                \"ip\": null\n            },\n            \"payment_id\": \"818192839280192381231\",\n            \"ebanx_status\": \"1\"\n        },\n        \"payment\": {\n            \"status\": 200,\n            \"phrase\": \"OK\",\n            \"body\": {\n                \"hash\": \"akhsdkjahdgakjhdgasdjkshadgkjahda\",\n                \"country\": \"br\",\n                \"merchant_payment_code\": \"1231231_121312\",\n                \"order_number\": null,\n                \"status\": \"11\",\n                \"status_date\": null,\n                \"open_date\": \"2024-05-20 17:03:08\",\n                \"confirm_date\": null,\n                \"transfer_date\": null,\n                \"amount_br\": \"656.08\",\n                \"amount_ext\": \"112.11\",\n                \"amount_iof\": \"2.48\",\n                \"currency_rate\": \"5.8300\",\n                \"currency_ext\": \"USD\",\n                \"due_date\": \"2024-05-20\",\n                \"instalments\": \"1\",\n                \"payment_type_code\": \"pix\",\n                \"redirect_url\": \"\",\n                \"pre_approved\": false,\n                \"capture_available\": null,\n                \"pix\": {\n                    \"qr_code_value\": \"\"\n                }\n            },\n            \"body_status\": \"1\"\n        }\n    },\n    \"redirect\": \"\",\n    \"class\": \"alert-success\"\n}"
            }
          ]
        },
        {
          "name": "Check Stripe success",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/charge/stripe/check-success?session_id=cs_test_a1Zj2XFnQGzd0PaeXxtBcByyD16r9fi6vPaX22bwUVY0Tu5q8SUU2JliCX",
              "host": [
                "{{url}}"
              ],
              "path": [
                "charge",
                "stripe",
                "check-success"
              ],
              "query": [
                {
                  "key": "session_id",
                  "value": "cs_test_a1Zj2XFnQGzd0PaeXxtBcByyD16r9fi6vPaX22bwUVY0Tu5q8SUU2JliCX",
                  "description": "ID da sessão de checkout da Stripe (o cs_... da URL retornada pelo charge)."
                }
              ]
            },
            "description": "Confirma o resultado de um pagamento Stripe pela sessão de checkout.\n\n### Parâmetros de Query\n\n| Parâmetro | Tipo | Formato / Máscara | Descrição | Obrigatório |\n| :--- | :--- | :--- | :--- | :--- |\n| session_id | String | cs_... | ID da sessão de checkout retornada pelo `charge` | Sim |"
          },
          "response": [
            {
              "name": "Check Stripe success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/charge/stripe/check-success",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge",
                    "stripe",
                    "check-success"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"status\": true\n}"
            }
          ]
        },
        {
          "name": "Last Stripe ID",
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{url}}/charge/stripe/last-id",
              "host": [
                "{{url}}"
              ],
              "path": [
                "charge",
                "stripe",
                "last-id"
              ]
            }
          },
          "response": [
            {
              "name": "Last Stripe ID",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/charge/stripe/last-id",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "charge",
                    "stripe",
                    "last-id"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"payment_id\": \"cs_test_a1Zj2XFnQGzd0PaeXxtBcByyD16r9fi6vPaX22bwUVY0Tu5q8SUU2JliCX\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Dashboard",
      "item": [
        {
          "name": "Info Values",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/info-values/:month/:year",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "info-values",
                ":month",
                ":year"
              ],
              "variable": [
                {
                  "key": "month",
                  "value": "11"
                },
                {
                  "key": "year",
                  "value": "2025"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Info Values",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/info-values/04/2024",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "info-values",
                    "04",
                    "2024"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"current_balance\": 8661.15,\n    \"total_activations\": 696.12\n}"
            }
          ]
        },
        {
          "name": "Top Sellers",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/top-sellers/:month/:year",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "top-sellers",
                ":month",
                ":year"
              ],
              "variable": [
                {
                  "key": "month",
                  "value": "11"
                },
                {
                  "key": "year",
                  "value": "2025"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Top Sellers",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/top-sellers/04/2024",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "top-sellers",
                    "04",
                    "2024"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"name\": \"Seller 1\",\n        \"total_price\": 380.64\n    }, \n    {\n        \"name\": \"Seller 2\",\n        \"total_price\": 200.64\n    }\n]"
            }
          ]
        },
        {
          "name": "Top Activations",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/top-activations/:month/:year",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "top-activations",
                ":month",
                ":year"
              ],
              "variable": [
                {
                  "key": "month",
                  "value": "11"
                },
                {
                  "key": "year",
                  "value": "2025"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Top Activations",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/top-activations/04/2024",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "top-activations",
                    "04",
                    "2024"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"seller_name\": \"Seller\",\n        \"dealer_name\": \"Dealer 1\",\n        \"price\": 356.64\n    },\n    {\n        \"seller_name\": null,\n        \"dealer_name\": \"Dealer 3\",\n        \"price\": 267.48\n    }\n]"
            }
          ]
        },
        {
          "name": "Activations Month",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/activations-month/:month/:year",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "activations-month",
                ":month",
                ":year"
              ],
              "variable": [
                {
                  "key": "month",
                  "value": "11"
                },
                {
                  "key": "year",
                  "value": "2025"
                }
              ]
            }
          },
          "response": [
            {
              "name": "Activations Month",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/activations-month/04/2024",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "activations-month",
                    "04",
                    "2024"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"status\": \"Aberto\",\n        \"total\": 3,\n        \"percentage\": \"75.00\"\n    },\n    {\n        \"status\": \"Concluído\",\n        \"total\": 1,\n        \"percentage\": \"25.00\"\n    }\n]"
            }
          ]
        },
        {
          "name": "Total Sellers",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/total-sellers",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "total-sellers"
              ]
            }
          },
          "response": [
            {
              "name": "Total Sellers",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/total-sellers",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "total-sellers"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "{\n    \"total\": 2\n}"
            }
          ]
        },
        {
          "name": "Sellers",
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "auth": {
              "type": "bearer",
              "bearer": [
                {
                  "key": "token",
                  "value": "{{token}}",
                  "type": "string"
                }
              ]
            },
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{url}}/dealer/sellers",
              "host": [
                "{{url}}"
              ],
              "path": [
                "dealer",
                "sellers"
              ]
            }
          },
          "response": [
            {
              "name": "Sellers",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  }
                ],
                "url": {
                  "raw": "{{url}}/dealer/sellers",
                  "host": [
                    "{{url}}"
                  ],
                  "path": [
                    "dealer",
                    "sellers"
                  ]
                }
              },
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "name": "Content-Type",
                  "value": "application/json",
                  "description": "",
                  "type": "text"
                }
              ],
              "cookie": [],
              "body": "[\n    {\n        \"name\": \"Seller 1\",\n        \"email\": \"seller1@email.com\",\n        \"sell\": 421.64,\n        \"commission\": 42.16\n    },\n    {\n        \"name\": \"Seller 2\",\n        \"email\": \"seller2@email.com\",\n        \"sell\": 100.64,\n        \"commission\": 10.16\n    }\n]"
            }
          ]
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "url",
      "value": ""
    }
  ]
}
