{
  "info": {
    "name": "Veolog API v1",
    "description": "Conta real. Configure variáveis locais/secretas; nunca exporte valores de credenciais. Alias no caminho e ambos os headers obrigatórios. Sem sandbox ou emissão de etiqueta.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://veolog.com.br"
    },
    {
      "key": "alias",
      "value": "minha-loja"
    },
    {
      "key": "user_token",
      "value": ""
    },
    {
      "key": "user_secret_key",
      "value": ""
    },
    {
      "key": "shipment_id",
      "value": "12345"
    }
  ],
  "item": [
    {
      "name": "Cotação operacional",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "User-Token",
            "value": "{{user_token}}",
            "type": "text"
          },
          {
            "key": "User-Secret-Key",
            "value": "{{user_secret_key}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": "{{base_url}}/api/v1/{{alias}}/quotes",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"purpose\": \"operational\",\n  \"origin_zipcode\": \"01310100\",\n  \"dest_zipcode\": \"20040002\",\n  \"weight_g\": 1000,\n  \"length_cm\": 20,\n  \"width_cm\": 15,\n  \"height_cm\": 10,\n  \"format\": \"box\",\n  \"declared_value_cents\": 15000,\n  \"document_type\": \"content_declaration\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "Cotação de checkout",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "User-Token",
            "value": "{{user_token}}",
            "type": "text"
          },
          {
            "key": "User-Secret-Key",
            "value": "{{user_secret_key}}",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": "{{base_url}}/api/v1/{{alias}}/quotes",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"purpose\": \"checkout\",\n  \"origin_zipcode\": \"01310100\",\n  \"dest_zipcode\": \"20040002\",\n  \"weight_g\": 1000,\n  \"length_cm\": 20,\n  \"width_cm\": 15,\n  \"height_cm\": 10,\n  \"format\": \"box\",\n  \"declared_value_cents\": 15000,\n  \"document_type\": \"content_declaration\",\n  \"checkout\": {\n    \"cart_total_cents\": 15000,\n    \"product_skus\": [\n      \"CAMISETA-AZUL-M\"\n    ],\n    \"coupon_code\": \"\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": []
    },
    {
      "name": "Listar envios",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "User-Token",
            "value": "{{user_token}}",
            "type": "text"
          },
          {
            "key": "User-Secret-Key",
            "value": "{{user_secret_key}}",
            "type": "text"
          }
        ],
        "url": "{{base_url}}/api/v1/{{alias}}/shipments?limit=20"
      },
      "response": []
    },
    {
      "name": "Consultar envio",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "User-Token",
            "value": "{{user_token}}",
            "type": "text"
          },
          {
            "key": "User-Secret-Key",
            "value": "{{user_secret_key}}",
            "type": "text"
          }
        ],
        "url": "{{base_url}}/api/v1/{{alias}}/shipments/{{shipment_id}}"
      },
      "response": []
    },
    {
      "name": "Consultar rastreamento",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "User-Token",
            "value": "{{user_token}}",
            "type": "text"
          },
          {
            "key": "User-Secret-Key",
            "value": "{{user_secret_key}}",
            "type": "text"
          }
        ],
        "url": "{{base_url}}/api/v1/{{alias}}/shipments/{{shipment_id}}/tracking?limit=20"
      },
      "response": []
    }
  ]
}
