Carry an order's overage into another order
curl --request POST \ --url https://example.com/api/v1/orders/example/overage-carries \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "effectiveAt": "example", "hours": 1, "note": "example", "targetOrderId": "example" }'Moves hours of an order’s overage onto another order of the same company, in one transaction: an OVERAGE_DEDUCTION on the source order releases them and a negative ADJUSTMENT on the target order takes them off its budget. Both entries share the effective date (default now) and the note, and their carry field names the other order; voiding either one voids both. Capped to the source order’s overage still undecided (net of paid, billed, forgiven, legacy-released and already-deducted hours), past which it returns 409. Refused with 422 when both ids name the same order, the orders belong to different companies, either one is NON_BILLABLE, the target is not an active order or absorbs its overage (ABSORB), the source recurs or absorbs its overage, or effectiveAt falls before the target’s current budget period (a recurring target) or before the target started (any other target). Both orders must be within the caller’s order scope, otherwise 404. Requires orders.view and orders.edit; unlike the other overage operations it needs no invoice or payment permission.
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
ISO 8601 date both entries take effect; defaults to now. A bare YYYY-MM-DD day is midnight in the workspace timezone. Not before the target’s current budget period when it recurs, nor before it started when it does not.
Hours carried; rejected past the source order’s overage still undecided.
Detail shown next to the adjustment in the client hours report.
Order of the same company that takes the overage off its budget.
Example generated
{ "effectiveAt": "example", "hours": 1, "note": "example", "targetOrderId": "example"}Responses
Section titled “Responses”The deduction written on the source order and the adjustment written on the target.
object
The deduction written on the source order and the negative adjustment written on the target.
object
A dated, signed movement on an order’s hour budget. Entries are voided, never deleted.
object
Set on the two halves of an overage carried between orders; voiding one half voids the other.
object
in: overage carried into this order from order; out: this order’s overage carried into order.
object
Signed hours; grants are positive, returns negative.
CREDIT, EXTRA_BLOCK, RETURN, OVERAGE_FORGIVENESS, ADJUSTMENT, or OVERAGE_DEDUCTION (only created via POST /orders/{id}/overage-deductions or POST /orders/{id}/overage-carries).
Sent by a write that leaves linked adjustments out of step. Absent otherwise and on an older server.
object
Orders linked further along the chain.
object
object
The adjustment as it stands; null when the order is out of reach.
Null when the order is outside the caller’s reach.
Why a person has to decide; null when suggestedHours is set.
What it would become if a person confirms; null when left for a person.
Why the entry was voided; set on every void made through Chelsea or API.
A dated, signed movement on an order’s hour budget. Entries are voided, never deleted.
object
Set on the two halves of an overage carried between orders; voiding one half voids the other.
object
in: overage carried into this order from order; out: this order’s overage carried into order.
object
Signed hours; grants are positive, returns negative.
CREDIT, EXTRA_BLOCK, RETURN, OVERAGE_FORGIVENESS, ADJUSTMENT, or OVERAGE_DEDUCTION (only created via POST /orders/{id}/overage-deductions or POST /orders/{id}/overage-carries).
Sent by a write that leaves linked adjustments out of step. Absent otherwise and on an older server.
object
Orders linked further along the chain.
object
object
The adjustment as it stands; null when the order is out of reach.
Null when the order is outside the caller’s reach.
Why a person has to decide; null when suggestedHours is set.
What it would become if a person confirms; null when left for a person.
Why the entry was voided; set on every void made through Chelsea or API.
Example
{ "data": { "source": { "carry": { "direction": "in" } }, "target": { "carry": { "direction": "in" } } }}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" }}Stale, duplicate, legacy or financial-cap conflict.
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" }}Invalid input.
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