Zum Inhalt

Reference

Orders

GET/api/v1/ordersList orders

Lists orders, newest first, 50 per page, with their one-off and monthly net amounts in cents. Use get_order for one order's quote, period and tasks.scope orders:read

Query

statusone of active, completed, cancelled[]Statuses to include. Default: all.
querystringWords to find in the order number, customer, the quote's number, title or contact, or a task title.
pageinteger1-based page of 50 rows. Omit for the first page.

Response 200

items[]object[]
items[].idstring
items[].numberstring
items[].titlestring | null
items[].customerstring
items[].statusstring
items[].one_off_net_centsinteger
items[].monthly_net_centsinteger
items[].start_datestring | null
items[].open_tasksinteger
items[].urlstring
pageinteger
totalinteger
has_moreboolean
Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "one_off_net_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "monthly_net_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "open_tasks": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "customer",
          "status",
          "one_off_net_cents",
          "monthly_net_cents",
          "start_date",
          "open_tasks",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "page": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "total": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "has_more"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/ordersCreate order

Enters an order that never went through a quote -- a running contract -- with its sales contract: a recurring line for the monthly amount, an undated line for the one-off amount, which somebody dates in the billing section. finance.manage only. No onboarding tasks, and nothing is sent.scope orders:write

Body (JSON)

titlerequiredstring
companyrequiredstringThe customer's company id, from search_companies: active and a customer.
business_unitstringName or id of a business unit (list_business_units). Default: the default unit.
billing_moderequiredone of fixed, time_material
start_daterequiredstringYYYY-MM-DD
contract_term_monthsrequiredinteger
one_off_net_centsintegerDefault: 0.
monthly_net_centsintegerDefault: 0.
commentstring

Response 200

idstring
numberstring
statusstring
customer_referencestring | null
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
repositoriesoptionalstring[]
issue_labelsoptionalobject
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "status",
    "customer_reference",
    "default_assignee",
    "rates",
    "people",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

GET/api/v1/orders/{id}Get order

One order: amounts in cents, contract term, delivery period, the quote it came from and its company, its hourly rates per role and who works in which role, the default assignee, the repositories linked to it, its tasks, and the notes kept on the order and on its company.scope orders:read

Path

idrequiredstringThe order's id or number, e.g. "AB-2026-0007".

Response 200

idstring
numberstring
titlestring | null
customerstring
statusstring
business_unitstring
project_typestring | null
customer_referencestring | null
one_off_net_centsinteger
monthly_net_centsinteger
contract_value_centsinteger
contract_term_monthsinteger
billing_modestring
start_datestring | null
delivery_fromstring | null
delivery_tostring | null
commentstring | null
quoteobject | null
quote.idstring
quote.numberstring
quote.titlestring
quote.contactstring
companyobject | null
company.idstring
company.namestring
notes[]object[]
notes[].authorstring
notes[].agentoptionalstring
notes[].created_atstring
notes[].bodystring
company_notes[]object[]
company_notes[].authorstring
company_notes[].agentoptionalstring
company_notes[].created_atstring
company_notes[].bodystring
repositoriesoptionalstring[]
issue_labelsoptionalobject
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
tasks[]object[]
tasks[].idstring
tasks[].numberstring
tasks[].titlestring
tasks[].statusstring
tasks[].assigneestring | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "business_unit": {
      "type": "string"
    },
    "project_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "one_off_net_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "monthly_net_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "contract_value_cents": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "contract_term_months": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "billing_mode": {
      "type": "string"
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "delivery_from": {
      "type": [
        "string",
        "null"
      ]
    },
    "delivery_to": {
      "type": [
        "string",
        "null"
      ]
    },
    "comment": {
      "type": [
        "string",
        "null"
      ]
    },
    "quote": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "number": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "contact": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "number",
            "title",
            "contact"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "company": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "author",
          "created_at",
          "body"
        ],
        "additionalProperties": false
      }
    },
    "company_notes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "body": {
            "type": "string"
          }
        },
        "required": [
          "author",
          "created_at",
          "body"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "assignee": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "number",
          "title",
          "status",
          "assignee"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "number",
    "title",
    "customer",
    "status",
    "business_unit",
    "project_type",
    "customer_reference",
    "one_off_net_cents",
    "monthly_net_cents",
    "contract_value_cents",
    "contract_term_months",
    "billing_mode",
    "start_date",
    "delivery_from",
    "delivery_to",
    "comment",
    "quote",
    "company",
    "notes",
    "company_notes",
    "default_assignee",
    "rates",
    "people",
    "tasks",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

PATCH/api/v1/orders/{id}Update order

Changes an order's status, the customer's reference or the default assignee; at least one. status (leads.manage): completing or cancelling also ends or cancels its contract, and cancelling cancels the quote it was accepted from -- it bills nothing more. customer_reference (tasks.manage): "" clears it; invoices already drafted keep theirs. default_assignee (tasks.manage): who gets new unassigned tasks on the order -- "me", "none", a user id or e-mail; tasks already there are not touched.scope orders:write

Path

idrequiredstringThe order's id or number, e.g. "AB-2026-0007".

Body (JSON)

statusone of active, completed, cancelled
customer_referencestring
default_assigneestring

Response 200

numberstring
statusstring
customer_referencestring | null
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
repositoriesoptionalstring[]
issue_labelsoptionalobject
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "status",
    "customer_reference",
    "default_assignee",
    "rates",
    "people",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/orders/{id}/peopleSet order person role

Says which billing role a person works in on this order -- what the time form suggests when they book, not a restriction. role null removes it. tasks.manage only.scope orders:write

Path

idrequiredstringThe order's id or number, e.g. "AB-2026-0007".

Body (JSON)

userrequiredstring"me", a user id or e-mail address.
rolerequiredstring | nullThe billing role's key, or null to remove the person's role.

Response 200

numberstring
statusstring
customer_referencestring | null
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
repositoriesoptionalstring[]
issue_labelsoptionalobject
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "status",
    "customer_reference",
    "default_assignee",
    "rates",
    "people",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

POST/api/v1/orders/{id}/ratesSet order rate

Puts a billing role on an order, or changes what the order pays for it, by the hour. Without rate_cents the role is added at today's list rate, and one already on the order stays as it is. A rate is agreed per order: the customer's next project is negotiated again. tasks.manage only.scope orders:write

Path

idrequiredstringThe order's id or number, e.g. "AB-2026-0007".

Body (JSON)

rolerequiredstringThe billing role's key, from list_catalog_items or get_order.
rate_centsinteger

Response 200

numberstring
statusstring
customer_referencestring | null
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
repositoriesoptionalstring[]
issue_labelsoptionalobject
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "status",
    "customer_reference",
    "default_assignee",
    "rates",
    "people",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.

DELETE/api/v1/orders/{id}/rates/{role_id}Remove order rate

Takes a billing role off an order. Bookings in that role can then not be priced: the service report shows them as a gap. tasks.manage only.scope orders:write

Path

idrequiredstringThe order's id or number, e.g. "AB-2026-0007".
role_idrequiredstringThe billing role's key, as get_order lists it.

Response 200

numberstring
statusstring
customer_referencestring | null
default_assigneeobject | null
default_assignee.idstring
default_assignee.namestring | null
rates[]object[]
rates[].rolestring
rates[].namestring
rates[].rate_centsinteger
people[]object[]
people[].userobject
people[].user.idstring
people[].user.namestring | null
people[].rolestring
repositoriesoptionalstring[]
issue_labelsoptionalobject
urlstring
Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "customer_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "default_assignee": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "rates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rate_cents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "role",
          "name",
          "rate_cents"
        ],
        "additionalProperties": false
      }
    },
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "additionalProperties": false
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "user",
          "role"
        ],
        "additionalProperties": false
      }
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issue_labels": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "number",
    "status",
    "customer_reference",
    "default_assignee",
    "rates",
    "people",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.