{
  "info": {
    "name": "Drometra API 0.4.0",
    "description": "Generada desde la especificación de Drometra Core. Completa baseUrl, token (acceso OIDC) y tenant (identificador de tu empresa).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.drometra.com"
    },
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "tenant",
      "value": ""
    },
    {
      "key": "device",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Cuenta y acceso",
      "item": [
        {
          "name": "Ver el contexto de la sesión",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/context",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "context"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Listar mis empresas",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/me/tenants",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "me",
                "tenants"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Listar miembros",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Cambiar un miembro",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/members/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "members",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"role\": \"\",\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Consultar la auditoría",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/audit",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "audit"
              ],
              "variable": []
            }
          }
        }
      ]
    },
    {
      "name": "Flota",
      "item": [
        {
          "name": "Crear un vehículo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"label\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar vehículos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver trazos en vivo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/live-tracks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "live-tracks"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver un vehículo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Cambiar un vehículo",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar posiciones de un vehículo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/positions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "positions"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver el día de un vehículo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/days/:date",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "days",
                ":date"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "date",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver el mes de un vehículo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/months/:month",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "months",
                ":month"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "month",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Crear una fuente de posiciones",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/sources",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "sources"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar fuentes de posiciones",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/sources",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "sources"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Cambiar una fuente de posiciones",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/sources/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "sources",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Enviar posiciones",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/positions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "positions"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"sourceId\": \"\",\n  \"eventId\": \"\",\n  \"vehicleId\": \"\",\n  \"observedAt\": \"\",\n  \"latitude\": 0,\n  \"longitude\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar lugares de la empresa",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/places",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "places"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Crear un lugar",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/places",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "places"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\",\n  \"kind\": \"\",\n  \"coordinate\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Cambiar un lugar",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/places/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "places",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Sugerir lugares",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/places/suggestions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "places",
                "suggestions"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver el horario de la flota",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/schedule",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "schedule"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Guardar el horario de la flota",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/schedule",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "schedule"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"days\": [],\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Sugerir un horario",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/schedule/suggestion",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "schedule",
                "suggestion"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver mantención y papeles por vencer",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/care",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "care"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Guardar la mantención de un vehículo",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/care",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "care"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"technicalReviewUntil\": \"\",\n  \"circulationPermitUntil\": \"\",\n  \"soapUntil\": \"\",\n  \"nextServiceOn\": \"\",\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Anotar el kilometraje",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/odometer",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "odometer"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"km\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Anotar rendimiento y precio de combustible",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/vehicles/:id/fuel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "vehicles",
                ":id",
                "fuel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kmPerLiter\": 0,\n  \"pricePerLiter\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar documentos de la flota",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Crear un documento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"typeKey\": \"\",\n  \"vehicleId\": \"\",\n  \"workerId\": \"\",\n  \"number\": \"\",\n  \"issuedOn\": \"\",\n  \"expiresOn\": \"\",\n  \"notes\": \"\",\n  \"replaces\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Cambiar un documento",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"number\": \"\",\n  \"issuedOn\": \"\",\n  \"expiresOn\": \"\",\n  \"notes\": \"\",\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Quitar un documento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents/:id/remove",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents",
                ":id",
                "remove"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver el historial de un documento",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents/:id/history",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents",
                ":id",
                "history"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Descargar el archivo de un documento",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents/:id/file",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents",
                ":id",
                "file"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Subir el archivo de un documento",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/documents/:id/file",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "documents",
                ":id",
                "file"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Crear un tipo de documento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/document-types",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "document-types"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subject\": \"\",\n  \"name\": \"\",\n  \"expires\": true,\n  \"blocksDispatch\": true,\n  \"noticeDays\": 0,\n  \"renewerActorId\": \"\",\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Guardar un tipo de documento",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/fleet/document-types/:key",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "fleet",
                "document-types",
                ":key"
              ],
              "variable": [
                {
                  "key": "key",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"blocksDispatch\": true,\n  \"noticeDays\": 0,\n  \"renewerActorId\": \"\",\n  \"active\": true,\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Pedidos y distribución",
      "item": [
        {
          "name": "Crear una dirección",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/locations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "locations"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"\",\n  \"address\": \"\",\n  \"coordinate\": {},\n  \"precision\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar direcciones",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/locations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "locations"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Crear un pedido",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reference\": \"\",\n  \"locationId\": \"\",\n  \"demand\": 0,\n  \"serviceSeconds\": 0,\n  \"window\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar pedidos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Cancelar un pedido",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Previsualizar un plan de reparto",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/plan-previews",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "plan-previews"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"\",\n  \"depot\": {},\n  \"vehicles\": [],\n  \"orderIds\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Importar pedidos desde una planilla",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"\",\n  \"fileName\": \"\",\n  \"contentBase64\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar importaciones",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver una importación",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ubicar las direcciones de una importación",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports/:id/geocode",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports",
                ":id",
                "geocode"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Resolver una fila de una importación",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports/:id/rows/:rowNumber/resolution",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports",
                ":id",
                "rows",
                ":rowNumber",
                "resolution"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "rowNumber",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0,\n  \"action\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Confirmar una importación",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports/:id/commit",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports",
                ":id",
                "commit"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Descartar una importación",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/imports/:id/discard",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "imports",
                ":id",
                "discard"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Exportar pedidos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/exports/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "exports",
                "orders"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver el código de entrega de un pedido",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/delivery-code",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "delivery-code"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Listar entregas de pedidos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                "deliveries"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver los eventos de un pedido",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "events"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver el enlace de seguimiento",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/tracking-link",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "tracking-link"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Crear el enlace de seguimiento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/tracking-link",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "tracking-link"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Revocar el enlace de seguimiento",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/distribution/orders/:id/tracking-link/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "distribution",
                "orders",
                ":id",
                "tracking-link",
                "revoke"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Terreno y Dromivia",
      "item": [
        {
          "name": "Exportar entregas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/exports/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "exports",
                "deliveries"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver la configuración de terreno",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "settings"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Guardar la configuración de terreno",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "settings"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"verification\": {},\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar conductores",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/workers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "workers"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Crear un conductor",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/workers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "workers"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"displayName\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Cambiar un conductor",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/workers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "workers",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Invitar a un conductor a Dromivia",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/workers/:id/invitations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "workers",
                ":id",
                "invitations"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Desvincular un celular",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/devices/:id/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "devices",
                ":id",
                "revoke"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Crear una ruta",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"routePlanId\": \"\",\n  \"vehicleRouteId\": \"\",\n  \"workerId\": \"\",\n  \"serviceDate\": \"\",\n  \"depotName\": \"\",\n  \"vehicle\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar rutas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver el avance de las rutas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/progress",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                "progress"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver una ruta",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver el resumen de entregas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/deliveries/summary",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "deliveries",
                "summary"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Cancelar una ruta",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:id/cancel",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":id",
                "cancel"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Descargar una evidencia",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/assets/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "assets",
                ":id",
                "content"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Vincular un celular",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/devices/enrollments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "devices",
                "enrollments"
              ],
              "variable": []
            },
            "auth": {
              "type": "noauth"
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\",\n  \"device\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Activar un celular vinculado",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/devices/:id/activation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "devices",
                ":id",
                "activation"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver el conductor de este celular",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "me"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver la ruta actual del conductor",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/current",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                "current"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Registrar eventos de una ruta",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:id/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":id",
                "events"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"eventId\": \"\",\n  \"occurredAt\": \"\",\n  \"event\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Enviar posiciones de una ruta",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:id/positions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":id",
                "positions"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"positions\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Preparar la subida de una evidencia",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/evidence/uploads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "evidence",
                "uploads"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"mimeType\": \"\",\n  \"sizeBytes\": 0,\n  \"sha256\": \"\",\n  \"capturedAtMs\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Subir el contenido de una evidencia",
          "request": {
            "method": "PUT",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/field/evidence/uploads/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "evidence",
                "uploads",
                ":id",
                "content"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "Enviar el código al destinatario",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:routeId/stops/:stopId/customer-code/dispatch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":routeId",
                "stops",
                ":stopId",
                "customer-code",
                "dispatch"
              ],
              "variable": [
                {
                  "key": "routeId",
                  "value": ""
                },
                {
                  "key": "stopId",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Verificar el código del destinatario",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "x-device-id",
                "value": "{{device}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/routes/:routeId/stops/:stopId/customer-code/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "routes",
                ":routeId",
                "stops",
                ":stopId",
                "customer-code",
                "verify"
              ],
              "variable": [
                {
                  "key": "routeId",
                  "value": ""
                },
                {
                  "key": "stopId",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar entregas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/field/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "field",
                "deliveries"
              ],
              "variable": []
            }
          }
        }
      ]
    },
    {
      "name": "Rutas y optimización",
      "item": [
        {
          "name": "Calcular una ruta",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "routes"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"\",\n  \"coordinates\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Calcular una matriz de tiempos",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/matrices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "matrices"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"\",\n  \"coordinates\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Proponer recorridos optimizados",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/optimization-previews",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "optimization-previews"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"\",\n  \"depot\": {},\n  \"vehicles\": [],\n  \"stops\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver una propuesta de recorridos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/optimization-previews/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "optimization-previews",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Aprobar una propuesta de recorridos",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/optimization-previews/:id/approve",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "optimization-previews",
                ":id",
                "approve"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver un plan de recorridos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/routing/route-plans/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "routing",
                "route-plans",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Geocodificación",
      "item": [
        {
          "name": "Buscar una dirección",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/geocoding/searches",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "geocoding",
                "searches"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver qué hay en una coordenada",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/geocoding/reverse",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "geocoding",
                "reverse"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"coordinates\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Informes",
      "item": [
        {
          "name": "Ver el informe semanal",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports/weekly",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports",
                "weekly"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver el informe mensual",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports/monthly",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports",
                "monthly"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver estadísticas de un período",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports/stats",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports",
                "stats"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver excesos de velocidad",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reports/speeding",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reports",
                "speeding"
              ],
              "variable": []
            }
          }
        }
      ]
    },
    {
      "name": "Michiva",
      "item": [
        {
          "name": "Preguntarle a Michiva",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/michiva/questions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "michiva",
                "questions"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"text\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Registrar una pregunta hecha",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/michiva/asked",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "michiva",
                "asked"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"question\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver las preguntas más hechas",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/michiva/popular",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "michiva",
                "popular"
              ],
              "variable": []
            }
          }
        }
      ]
    },
    {
      "name": "Integraciones",
      "item": [
        {
          "name": "Crear una conexión",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar conexiones",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Cambiar una conexión",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0,\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Ver las opciones de emisión de Bsale",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/bsale/issue-options",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "bsale",
                "issue-options"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Guardar cómo se emite en Bsale",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/bsale/issue-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "bsale",
                "issue-settings"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0,\n  \"officeId\": \"\",\n  \"vatTaxId\": \"\",\n  \"documentTypeIds\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Desconectar una integración",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/disconnect",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "disconnect"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Empezar la autorización de Bsale",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/bsale/authorizations",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "bsale",
                "authorizations"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"clientCode\": \"\",\n  \"name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Completar la autorización de Bsale",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/bsale/authorizations/:id/complete",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "bsale",
                "authorizations",
                ":id",
                "complete"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\",\n  \"bindingSecret\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Guardar el mapeo de un flujo de datos",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/mappings/:stream",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "mappings",
                ":stream"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "stream",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain\": \"\",\n  \"version\": 0,\n  \"profile\": \"\",\n  \"rules\": {}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Importar un flujo de datos",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/imports/:stream",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "imports",
                ":stream"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                },
                {
                  "key": "stream",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Leer los registros sincronizados",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/canonical/:stream",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "canonical",
                ":stream"
              ],
              "variable": [
                {
                  "key": "stream",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Listar conflictos de sincronización",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/integrations/connections/:id/conflicts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "integrations",
                "connections",
                ":id",
                "conflicts"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "Crear un destino de webhooks",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"\",\n  \"eventTypes\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar destinos de webhooks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver un destino de webhooks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Cambiar un destino de webhooks",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Rotar el secreto de firma",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints/:id/secrets",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints",
                ":id",
                "secrets"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0,\n  \"graceSeconds\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Enviar un evento de prueba",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints/:id/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints",
                ":id",
                "test"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Listar entregas de un destino",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/endpoints/:id/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "endpoints",
                ":id",
                "deliveries"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Listar entregas de webhooks",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "deliveries"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver una entrega de webhook",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/deliveries/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "deliveries",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Reintentar una entrega",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/webhooks/deliveries/:id/retry",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "webhooks",
                "deliveries",
                ":id",
                "retry"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Avisos por correo",
      "item": [
        {
          "name": "Ver la configuración de correos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "settings"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Guardar la configuración de correos",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "settings"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"deliveryReceipts\": true,\n  \"webhookAlerts\": true,\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar destinatarios de correo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/recipients",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "recipients"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Agregar un destinatario de correo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/recipients",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "recipients"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Verificar un destinatario",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/recipients/:id/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "recipients",
                ":id",
                "verify"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Reenviar la verificación",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/recipients/:id/resend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "recipients",
                ":id",
                "resend"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Quitar un destinatario",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/recipients/:id/remove",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "recipients",
                ":id",
                "remove"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar correos bloqueados",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/suppressions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "suppressions"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Bloquear un correo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/suppressions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "suppressions"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Desbloquear un correo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/suppressions/:id/remove",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "suppressions",
                ":id",
                "remove"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar correos enviados",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/notifications/email/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "notifications",
                "email",
                "messages"
              ],
              "variable": []
            }
          }
        }
      ]
    },
    {
      "name": "Facturación a clientes",
      "item": [
        {
          "name": "Crear una factura por emitir",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"connectionId\": \"\",\n  \"documentKind\": \"\",\n  \"customerId\": \"\",\n  \"currency\": \"\",\n  \"minorUnitScale\": 0,\n  \"totalMinor\": \"\",\n  \"lines\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar facturas por emitir",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver una factura por emitir",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Ver las líneas de una factura",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id/lines",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id",
                "lines"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Revisar una factura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id/review",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id",
                "review"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Aprobar una factura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id/approve",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id",
                "approve"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"version\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Emitir una factura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id/issue",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id",
                "issue"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Conciliar una factura",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customer-finance/invoice-intents/:id/reconcile",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customer-finance",
                "invoice-intents",
                ":id",
                "reconcile"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Archivos",
      "item": [
        {
          "name": "Guardar un archivo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              },
              {
                "key": "idempotency-key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/objects",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "objects"
              ],
              "variable": []
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"title\": \"\",\n  \"text\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Listar archivos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/objects",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "objects"
              ],
              "variable": []
            }
          }
        },
        {
          "name": "Ver un archivo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/objects/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "objects",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Borrar un archivo",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/objects/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "objects",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        },
        {
          "name": "Descargar el contenido de un archivo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "x-tenant-id",
                "value": "{{tenant}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/objects/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "objects",
                ":id",
                "content"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Seguimiento público",
      "item": [
        {
          "name": "Ver el seguimiento de una entrega",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/track/:token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "track",
                ":token"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "noauth"
            }
          }
        },
        {
          "name": "Abrir la página de seguimiento",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/t/:token",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "t",
                ":token"
              ],
              "variable": [
                {
                  "key": "token",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    }
  ]
}
