Skip to main content
POST
/
api
/
v1
/
billables
/
order
Reorder billables
curl --request POST \
  --url https://api.contracting.kukkingu.software/api/v1/billables/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenant-id: <tenant-id>' \
  --data '
{
  "invoiceId": "<string>",
  "ids": [
    "bil_eym9hcqlh1m7v3d36blf0vfx"
  ]
}
'
{
  "data": [
    "bil_eym9hcqlh1m7v3d36blf0vfx"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

tenant-id
string
required

Specifies the tenant context for the request. All endpoints operate within this tenant scope.

Example:

"tnt_pfh0haxfpzowht3oi213cqos"

Body

application/json

Request body that defines the target order for billables.

Request body that defines the target order for billables.

invoiceId
string
required

The ID of the invoice.

Example:

"inv_mqxd1kc6bgtcc676xoqzax47"

ids
string[]
required

Ordered list of billable IDs representing the desired sort order.

Unique identifier of the billable.

Response

Default Response

Standard success response payload wrapped in a data property.

data
string[]
required

Ordered list of billable IDs after the reorder operation is applied.

Unique identifier of the billable.