Answer an order's intake on the client's behalf
curl --request POST \ --url https://example.com/api/v1/orders/example/intake \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "answers": { "additionalProperty": [ "example" ] } }'Records the one intake an order accepts, with the answers a teammate collected from the client, and keeps the teammate as who entered it. The client’s portal then shows the form as already answered. 404 when the order has no intake or is outside the caller’s reach, 409 when it was already answered, and 422 with fieldErrors when an answer is missing or invalid. Requires the orders.edit 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
Answers by field key: text as a string, a checkbox as a boolean, a multi-select as an array of its choices. A key the form does not ask is ignored.
object
Example generated
{ "answers": { "additionalProperty": [ "example" ] }}Responses
Section titled “Responses”The intake with its answers.
object
The intake form an order’s service asks for, with its answers once submitted.
object
Answers by field key, empty until submitted. A SECRET answer is never returned: it reads as { "redacted": true } when one is stored and “” when none is.
object
object
Example
{ "data": { "fields": [ { "type": "TEXT" } ] }}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" }}The intake was already answered.
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