Customer Invoices
Categorize a customer invoice
This endpoint is not applicable for draft invoices.
Update the categories of a customer invoice. You can pass categories that don’t belong to the same category group. The sum of categories of a same group must equal 1
. In the following example, the two first categories belong to the same category group A, the sum of the weights is 1
. The third category belongs to a category group B, its weight is 1
.
[
{ "id": 59, "weight": "0.5" }, // category group A
{ "id": 33, "weight": "0.5" }, // category group A
{ "id": 65, "weight": "1" } // category group B
]
ℹ️ This endpoint requires one of the following scopes:
customer_invoices:all
PUT
Path Parameters
(Required)
Example:
"42"
Body
application/json · object[]
The body is of type object[]
.
Response
200
application/json
The list of categories of the customer invoice
The response is of type object[]
.