PUT
/
v2
/
billable-item
curl --request PUT \
  --url https://api.sonderplan.com/v2/billable-item \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 92834,
  "name": "Aspera Upload",
  "description": "Upload to Aspera (per TB)",
  "unit_name": "Terabyte",
  "buy_cost": "10.00",
  "sell_cost": "20.00",
  "taxes": [
    {
      "id": 3247,
      "name": "GST",
      "rate": "10.00",
      "total": "151.00"
    }
  ],
  "custom_fields": [
    {
      "id": 7823,
      "name": "Type",
      "value": "Video Editing",
      "value_id": 8973,
      "update_key": "2_1_7823"
    }
  ],
  "currency": "AUD"
}'
{
  "success": {
    "id": 1
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

id
integer
required

The ID of the billable item to update

Body

application/json
Billable item object that needs to be updated

Standard billable item model

id
integer

Billable Item ID

Example:

92834

name
string

Name of the billable item

Example:

"Aspera Upload"

description
string

Description of the billable item

Example:

"Upload to Aspera (per TB)"

unit_name
string

Name of the unit this is charged as

Example:

"Terabyte"

buy_cost
integer

Total cost to you of the billable item

Example:

"10.00"

sell_cost
integer

Total cost to your customer of the billable item

Example:

"20.00"

taxes
object[]

Standard invoice item taxes model that returns tax information

custom_fields
object[]

Used to show the values of custom fields on linked modules

currency
string

Currency code (three character format) that this invoice is in

Example:

"AUD"

Response

200
application/json
Successful Operation
success
object