Saltar para o conteúdo
CargoDuo logoCargoDuo
Preços
Entrar

Por enquanto, esta documentação está disponível só em inglês.

Saved data & projects

Vehicles, templates and projects shared with the app.

Your organization's vehicles, cargo templates and projects are the same records the CargoDuo app shows. Change one here and it changes there.

ResourceIdsEndpoints
VehiclesPresets: slug (standard-trailer-13-6m), yours: veh_…/v1/vehicles (presets are read-only)
Templatestpl_…/v1/templates
Projectsprj_…; slots pv_…, items item_…/v1/projects

Reading needs resources:read; creating, changing and deleting need resources:write. These calls cost nothing and count against the rate limits like any other.

Use them in a job

JSON
{
  "vehicles": [
    {
      "vehicle_id": "veh_118",
      "quantity": 2
    }
  ],
  "items": [
    {
      "template_id": "tpl_42",
      "quantity": 18
    },
    {
      "template_id": "tpl_43",
      "quantity": 40,
      "weight": 14
    }
  ]
}

Fields sent next to an id override the saved values. id defaults to the saved id.

Projects

StepCall
1POST /v1/projects with a name, vehicles (vehicle_id, quantity) and items
2POST /v1/projects/{id}/pack: priced and run like POST /v1/pack
3The plan is saved into the project and opens in the app (app_url)

If someone edits the project while the job runs, the plan stays on the job only (warning project_not_saved).

Members

Each record shows created_by and updated_by. A call counts as the member who created the key. Filter lists with ?created_by=me or a member id (usr_…).