Set a client company's hourly rate
curl --request POST \ --url https://example.com/api/v1/clients/example/rates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1, "effectiveFrom": "example" }'Places a rate on the company’s timeline from effectiveFrom (default today in the workspace timezone). It lasts until the next rate starts; the rate before it ends the day before, and a rate that already starts that day is replaced. A past date is added to the history without changing later rates. Invoice lines prefilled on or after the effective date use the rate; earlier invoices keep theirs. New orders starting on or after that date take it and Time & Materials entries worked from that date bill at it; orders already open keep the rate they opened with. The change is recorded in the company’s history with the old value, the new value, the effective date and the acting member. Requires the invoices.manage permission and a client company inside the caller’s assignments (or clients.view_all).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Hourly rate in the workspace currency, rounded to cents. From 0 to 99,999,999.99.
First day the rate applies, YYYY-MM-DD. Defaults to today in the workspace timezone. A past day is added to the history without changing later rates.
Example generated
{ "amount": 1, "effectiveFrom": "example"}Responses
Section titled “Responses”The same rate already started that day; nothing was written.
object
What setting a client company’s hourly rate did, and the row it left.
object
created is a new period, replaced a correction of the rate that already started that day, unchanged means the same rate already started that day and nothing was written.
One dated hourly rate of a client company, kept after it is voided or replaced.
object
Hourly rate, in the workspace currency.
First day the rate applies, as the UTC midnight of that calendar day.
Example
{ "data": { "outcome": "created" }}The rate was placed on the timeline.
object
What setting a client company’s hourly rate did, and the row it left.
object
created is a new period, replaced a correction of the rate that already started that day, unchanged means the same rate already started that day and nothing was written.
One dated hourly rate of a client company, kept after it is voided or replaced.
object
Hourly rate, in the workspace currency.
First day the rate applies, as the UTC midnight of that calendar day.
Example
{ "data": { "outcome": "created" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}A concurrent change won the one-open-rate race; reload and retry.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The amount or the effective date was refused.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC