Skip to main content
POST
/
api
/
v1
/
billables
Create billables
curl --request POST \
  --url https://api.contracting.kukkingu.software/api/v1/billables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenant-id: <tenant-id>' \
  --data '
{
  "invoiceId": "<string>",
  "billables": [
    {
      "description": "Monthly subscription for service X.",
      "quantity": 10,
      "amountMinor": 5000,
      "currencyCode": "EUR",
      "referenceType": "JIRA",
      "referenceId": "PROJ-123",
      "metadata": {
        "project": "Alpha",
        "priority": "High"
      },
      "order": 13
    }
  ]
}
'
{
  "data": [
    {
      "id": "bil_eym9hcqlh1m7v3d36blf0vfx",
      "invoice": "inv_mqxd1kc6bgtcc676xoqzax47",
      "description": "Monthly subscription for service X.",
      "quantity": 10,
      "amountMinor": 5000,
      "currencyCode": "EUR",
      "createdAt": "2023-10-05T14:48:00.000Z",
      "updatedAt": "2023-10-05T14:48:00.000Z",
      "referenceType": "JIRA",
      "referenceId": "PROJ-123",
      "metadata": {
        "project": "Alpha",
        "priority": "High"
      },
      "order": 13
    }
  ]
}

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 used to create multiple billables under a single invoice.

Request body used to create multiple billables under a single invoice.

invoiceId
string
required

The ID of the invoice.

Example:

"inv_mqxd1kc6bgtcc676xoqzax47"

billables
object[]
required

List of billables to create for an invoice.

Required array length: 1 - 100 elements

Response

Default Response

Standard success response payload wrapped in a data property.

data
object[]
required

List of billables returned by the API.