Skip to main content
POST
/
v1
/
customers
/
setBillableStatus
Set customer billable status
curl --request POST \
  --url https://api.metronome.com/v1/customers/setBillableStatus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "04ca7e72-4229-4a6e-ab11-9f7376fccbcb",
  "billable_status": "billable",
  "effective_at": "2021-01-01T00:00:00Z"
}'
{
  "data": {
    "id": "8deed800-1b7a-495d-a207-6c52bac54dc9",
    "current_billable_status": "billable"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
customer_id
string<uuid>
required
billable_status
enum<string>
required
Available options:
billable,
unbillable
effective_at
string<date-time>
required

For usage invoices, any invoices where the service periods starts on or after this date will be included. For all other invoice types, only invoices where the issue_date falls on or after this date will be included.

Response

Success

data
object
required
I