Create an order
POST /v1/orders
Accepts an order with items, personalization and file references. All or nothing: one invalid item rejects the whole order (422 with ALL errors). Duplicate protection: the same external_order_id with the same content returns 200 with the existing order; with different content 409 — you make changes explicitly via PATCH with a revision and an idempotency key. Unknown SKUs are accepted and reported as a warning, never guessed. Sets: send parts as lines with parent_external_line_id; a set line that is a bill of materials in Meykt is packed by that list (parts are only compared, 422 set_not_accepted if they differ), otherwise the parts become items and the set line is a heading. With an mk_test_ key you create a test order: visible in the order list, but without production, statistics or workflow triggers. Changes and cancellations are separate versioned commands. If "Customers from orders" is switched on for the connection (dashboard setting), a new order with an email address also creates a customer record or links an existing one — never with a test key.
Required scopes: "orders:write".
#Request body
Request body required.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Create a complete order. At most 100 files in total. Line identifiers must be unique. Set references must point to another top-level line in the same order. Unknown object keys are rejected. If "total_amount" is present, also provide "currency". Additional properties are not allowed. |
| order_number | string | Optional | Not allowed | Display order number from your system. Defaults to external_order_id; if already occupied, Meykt assigns an available number. Cannot be changed by PATCH. minLength: 1. maxLength: 128. |
| customer | object | Optional | Not allowed | End-customer contact details, independent of customer master data and addresses. On creation, omitted members are empty. On PATCH, omit customer to retain all contact details; a supplied object replaces the entire section, and omitted members are cleared. An empty object clears all contact details; customer: null is invalid. Additional properties are not allowed. |
| customer.name | alternative (anyOf) | Optional | Allowed by schema | Recipient or contact display name. |
| customer.name | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Recipient or contact display name. maxLength: 200. |
| customer.name | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Recipient or contact display name. |
| customer.email | alternative (anyOf) | Optional | Allowed by schema | Contact email address. |
| customer.email | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Contact email address. format: "email". maxLength: 320. |
| customer.email | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Contact email address. |
| customer.phone | alternative (anyOf) | Optional | Allowed by schema | Contact telephone number including international prefix where applicable. |
| customer.phone | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. maxLength: 80. |
| customer.phone | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| currency | string | Optional | Not allowed | Three-letter currency code, for example EUR; normalized to uppercase. Required on creation when total_amount is supplied. pattern: "^[A-Za-z]{3}$". |
| total_amount | number | Optional | Not allowed | Total order amount in major currency units, for example 24.90 EUR. Supplied by your source system; not recalculated from line prices. minimum: 0. maximum: 100000000. |
| ordered_at | string | Optional | Not allowed | Time the order was placed, including UTC Z or a numeric time-zone offset. format: "date-time". |
| shipping_address | alternative (anyOf) | Optional | Allowed by schema | Shipping address supplied by the source. Omit on change to preserve it; null clears it. Never filled from billing_address. |
| shipping_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Shipping address supplied by the source. Omit on change to preserve it; null clears it. Never filled from billing_address. Additional properties are not allowed. |
| shipping_address.name | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Recipient or contact display name. |
| shipping_address.name | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Recipient or contact display name. maxLength: 200. |
| shipping_address.name | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Recipient or contact display name. |
| shipping_address.company | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Company or organization name. |
| shipping_address.company | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Company or organization name. maxLength: 200. |
| shipping_address.company | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Company or organization name. |
| shipping_address.line1 | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Street, house number and primary address line. |
| shipping_address.line1 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Street, house number and primary address line. maxLength: 200. |
| shipping_address.line1 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Street, house number and primary address line. |
| shipping_address.line2 | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Additional delivery or address information. |
| shipping_address.line2 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Additional delivery or address information. maxLength: 200. |
| shipping_address.line2 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Additional delivery or address information. |
| shipping_address.postal_code | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| shipping_address.postal_code | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. maxLength: 20. |
| shipping_address.postal_code | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| shipping_address.city | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. City or locality. |
| shipping_address.city | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. City or locality. maxLength: 120. |
| shipping_address.city | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. City or locality. |
| shipping_address.state | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Region, state or province. |
| shipping_address.state | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Region, state or province. maxLength: 120. |
| shipping_address.state | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Region, state or province. |
| shipping_address.country | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. |
| shipping_address.country | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. maxLength: 2. |
| shipping_address.country | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. |
| shipping_address.phone | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| shipping_address.phone | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. maxLength: 80. |
| shipping_address.phone | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| shipping_address.email | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact email address. |
| shipping_address.email | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact email address. format: "email". maxLength: 320. |
| shipping_address.email | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Contact email address. |
| shipping_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Shipping address supplied by the source. Omit on change to preserve it; null clears it. Never filled from billing_address. |
| billing_address | alternative (anyOf) | Optional | Allowed by schema | Billing address supplied by the source. Omit on change to preserve it; null clears it. Never filled from shipping_address. |
| billing_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Billing address supplied by the source. Omit on change to preserve it; null clears it. Never filled from shipping_address. Additional properties are not allowed. |
| billing_address.name | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Recipient or contact display name. |
| billing_address.name | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Recipient or contact display name. maxLength: 200. |
| billing_address.name | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Recipient or contact display name. |
| billing_address.company | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Company or organization name. |
| billing_address.company | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Company or organization name. maxLength: 200. |
| billing_address.company | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Company or organization name. |
| billing_address.line1 | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Street, house number and primary address line. |
| billing_address.line1 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Street, house number and primary address line. maxLength: 200. |
| billing_address.line1 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Street, house number and primary address line. |
| billing_address.line2 | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Additional delivery or address information. |
| billing_address.line2 | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Additional delivery or address information. maxLength: 200. |
| billing_address.line2 | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Additional delivery or address information. |
| billing_address.postal_code | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| billing_address.postal_code | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. maxLength: 20. |
| billing_address.postal_code | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| billing_address.city | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. City or locality. |
| billing_address.city | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. City or locality. maxLength: 120. |
| billing_address.city | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. City or locality. |
| billing_address.state | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Region, state or province. |
| billing_address.state | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Region, state or province. maxLength: 120. |
| billing_address.state | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Region, state or province. |
| billing_address.country | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. |
| billing_address.country | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. maxLength: 2. |
| billing_address.country | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Two-letter country code such as DE. The existing contract accepts up to two characters. |
| billing_address.phone | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| billing_address.phone | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact telephone number including international prefix where applicable. maxLength: 80. |
| billing_address.phone | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Contact telephone number including international prefix where applicable. |
| billing_address.email | alternative (anyOf) | Optional | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact email address. |
| billing_address.email | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact email address. format: "email". maxLength: 320. |
| billing_address.email | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Contact email address. |
| billing_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Billing address supplied by the source. Omit on change to preserve it; null clears it. Never filled from shipping_address. |
| priority | string | Optional | Not allowed | Processing priority; defaults to normal on creation. enum: ["low","normal","high","urgent"]. |
| note | string | Optional | Not allowed | Order note. Omit on change to preserve it; an empty string clears it. maxLength: 10000. |
| warehouse_note | string | Optional | Not allowed | Handling instructions for the warehouse. Omit on change to preserve them; an empty string clears them. maxLength: 10000. |
| personalization | object | Optional | Not allowed | Free text personalization by label. At most 50 entries. A label also present in fields must carry the same value. propertyNames: {"minLength":1,"maxLength":80}. maxProperties: 50. |
| personalization.{key} | string | Every additional entry | Not allowed | Personalization text for this label; an empty string is accepted. maxLength: 2000. |
| fields | object | Optional | Not allowed | Values keyed by configured input-field identifiers. Use GET /v1/orders/fields for allowed keys, types and choices; computed fields are not writable. Values must agree with personalization when keys overlap. maxProperties: 200. |
| fields.{key} | alternative (anyOf) | Every additional entry | Allowed by schema | Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| fields.{key} | string | Conditional: anyOf 1/5 | Not allowed | anyOf 1/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. maxLength: 10000. |
| fields.{key} | number | Conditional: anyOf 2/5 | Not allowed | anyOf 2/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| fields.{key} | boolean | Conditional: anyOf 3/5 | Not allowed | anyOf 3/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| fields.{key} | array | Conditional: anyOf 4/5 | Not allowed | anyOf 4/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. maxItems: 200. |
| fields.{key}[] | string | Every array item | Not allowed | anyOf 4/5: At least one alternative must match. maxLength: 10000. |
| fields.{key} | null | Conditional: anyOf 5/5 | Allowed by schema | anyOf 5/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| files | array | Optional | Not allowed | Uploaded file references for this order or line; at most 10 here and 100 across the entire order. maxItems: 10. |
| files[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| files[].upload_id | string | Required when parent is present | Not allowed | Your completed upload from POST /v1/uploads; each file must belong to this connection and be unused. format: "uuid". |
| files[].role | string | Optional | Not allowed | Purpose of the file, such as artwork or engraving. Omit for an unnamed file attachment. minLength: 1. maxLength: 80. |
| items | array | Required when parent is present | Not allowed | Complete list of order lines. On change this replaces the line selection; send stable external_line_id values from the current order. Omit on change to keep all lines. minItems: 1. maxItems: 200. |
| items[] | object | Every array item | Not allowed | If "parent_external_line_id" is present, also provide "external_line_id". Additional properties are not allowed. |
| items[].group | object | Optional | Not allowed | Display-only grouping of order lines; does not create a stock set or change quantities. Additional properties are not allowed. |
| items[].group.key | string | Required when parent is present | Not allowed | Stable grouping key shared by lines in the same display group. minLength: 1. maxLength: 128. |
| items[].group.title | string | Optional | Not allowed | Display heading for this group; all lines with the same group key must use the same title. minLength: 1. maxLength: 300. |
| items[].external_line_id | string | Optional | Not allowed | Stable line identifier in your system, unique within this order. Required for set parts and for every line supplied in a change. minLength: 1. maxLength: 128. |
| items[].parent_external_line_id | string | Optional | Not allowed | external_line_id of the set heading in this same order, not this part's own identifier. Requires this part to have its own external_line_id. One nesting level; at most 100 parts per set. minLength: 1. maxLength: 128. |
| items[].sku | string | Optional | Not allowed | SKU used to match the sold line to a Meykt article. Unknown or omitted SKUs are accepted with a warning; no match is guessed. minLength: 1. maxLength: 120. |
| items[].name | string | Required when parent is present | Not allowed | Name of the sold item as it should appear on this order. minLength: 1. maxLength: 300. |
| items[].quantity | integer | Required when parent is present | Not allowed | Whole number of ordered items, from 1 to 10000. A set part carries its total quantity for this order, not a quantity per parent set. There is no separate unit field. minimum: 1. maximum: 10000. |
| items[].price | number | Optional | Not allowed | Unit price supplied by your source system in the order currency; Meykt does not calculate tax or derive the order total from it. minimum: 0. maximum: 1000000. |
| items[].personalization | object | Optional | Not allowed | Free text personalization by label. At most 50 entries. A label also present in fields must carry the same value. propertyNames: {"minLength":1,"maxLength":80}. maxProperties: 50. |
| items[].personalization.{key} | string | Every additional entry | Not allowed | Personalization text for this label; an empty string is accepted. maxLength: 2000. |
| items[].fields | object | Optional | Not allowed | Values keyed by configured input-field identifiers. Use GET /v1/orders/fields for allowed keys, types and choices; computed fields are not writable. Values must agree with personalization when keys overlap. maxProperties: 200. |
| items[].fields.{key} | alternative (anyOf) | Every additional entry | Allowed by schema | Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| items[].fields.{key} | string | Conditional: anyOf 1/5 | Not allowed | anyOf 1/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. maxLength: 10000. |
| items[].fields.{key} | number | Conditional: anyOf 2/5 | Not allowed | anyOf 2/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| items[].fields.{key} | boolean | Conditional: anyOf 3/5 | Not allowed | anyOf 3/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| items[].fields.{key} | array | Conditional: anyOf 4/5 | Not allowed | anyOf 4/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. maxItems: 200. |
| items[].fields.{key}[] | string | Every array item | Not allowed | anyOf 4/5: At least one alternative must match. maxLength: 10000. |
| items[].fields.{key} | null | Conditional: anyOf 5/5 | Allowed by schema | anyOf 5/5: At least one alternative must match. Value matching the type and choices of this configured input; read GET /v1/orders/fields. Computed fields and arbitrary object paths are not writable. |
| items[].files | array | Optional | Not allowed | Uploaded file references for this order or line; at most 10 here and 100 across the entire order. maxItems: 10. |
| items[].files[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| items[].files[].upload_id | string | Required when parent is present | Not allowed | Your completed upload from POST /v1/uploads; each file must belong to this connection and be unused. format: "uuid". |
| items[].files[].role | string | Optional | Not allowed | Purpose of the file, such as artwork or engraving. Omit for an unnamed file attachment. minLength: 1. maxLength: 80. |
| metadata | object | Optional | Not allowed | Additional source-system context accepted at creation. Does not define product attributes or configured input fields; not writable through PATCH. |
| metadata.{key} | any JSON value | Every additional entry | Allowed by schema | Additional source-system value; no product field or configured-input semantics are inferred. |
| status | string | Optional | Not allowed | Optional order status from your system, 1 to 50 characters, for example "released" or "awaiting payment". Only read when the order is created. Meykt compares it without regard to letter case and surrounding or repeated spaces and sets the start status that this connection assigns to this value. A value without an assignment, or an omitted status, starts the order with the default status of the connection (In progress unless changed); such a value is listed as not yet assigned in the connection settings and never rejects the order. After creation the status is managed in Meykt: PATCH does not accept it, and repeating the creation with another status returns the existing order unchanged. minLength: 1. maxLength: 50. |
| payment_status | string | Optional | Not allowed | Optional payment state of the order: paid, unpaid, pending (payment started but not confirmed), partially_paid, refunded or failed. When omitted on creation the payment state is unknown, which never holds the order back. A fulfillment partnership that holds back unpaid orders waits until the state is paid. On PATCH send it as the only change; Meykt then updates the payment state without changing the order content, and a held-back handover continues automatically once the order is paid. enum: ["paid","unpaid","pending","partially_paid","refunded","failed"]. |
| external_order_id | string | Required when parent is present | Not allowed | Stable order identifier in your system, unique for this connection. An identical retry returns the existing order; changed content requires PATCH. minLength: 1. maxLength: 128. |
#Response 200, 201
200: Success; see the status meaning of the operation. 201: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. |
| data.order | alternative (anyOf) | Required when parent is present | Allowed by schema | The created order. Rarely null when the order was accepted but could not be read back immediately: sending the same request again returns it with 200. |
| data.order | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. The created order. Rarely null when the order was accepted but could not be read back immediately: sending the same request again returns it with 200. Additional properties are not allowed. |
| data.order.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: "uuid". |
| data.order.external_order_id | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Stable order identifier supplied by the originating system. |
| data.order.order_number | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Human-readable order number displayed in Meykt. |
| data.order.status | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Current status; use listed choices where provided. |
| data.order.payment_status | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Current payment state of the order: unknown, unpaid, pending, paid, partially_paid, refunded or failed. unknown means no payment state was supplied and never holds the order back. Change it with PATCH (payment_status as the only change). Always included in responses; profile examples saved before 2026-11-13 may omit it. enum: ["unknown","paid","unpaid","pending","partially_paid","refunded","failed"]. |
| data.order.revision | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Revision token; reuse unchanged for the next change. format: "date-time". |
| data.order.priority | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Processing priority selected for this order or production preparation. enum: ["low","normal","high","urgent"]. |
| data.order.note | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Human-readable note accompanying this order or operation. |
| data.order.warehouse_note | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Handling instructions for the warehouse. |
| data.order.personalization | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Personalization labels and their values for this order or line. |
| data.order.personalization.{key} | string | Every additional entry | Not allowed | anyOf 1/2: At least one alternative must match. Visible personalization text associated with this label. |
| data.order.fields | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Configured order inputs keyed by their published variable identifier. |
| data.order.fields.{key} | alternative (anyOf) | Every additional entry | Allowed by schema | anyOf 1/2: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.fields.{key} | string | Conditional: anyOf 1/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.fields.{key} | number | Conditional: anyOf 2/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.fields.{key} | boolean | Conditional: anyOf 3/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 3/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.fields.{key} | array | Conditional: anyOf 4/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 4/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.fields.{key}[] | string | Every array item | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 4/5: At least one alternative must match. |
| data.order.fields.{key} | null | Conditional: anyOf 5/5 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 5/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.files | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Files attached to this order or line. |
| data.order.files[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.files[].name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.files[].role | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Purpose or field label of the file; null for an unnamed attachment. |
| data.order.files[].id | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: "uuid". |
| data.order.files[].download_path | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. API path to request an authorized temporary download URL for this file. |
| data.order.is_test | boolean | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Whether this is a test order, isolated from ordinary production. |
| data.order.currency | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Currency code for the supplied monetary amounts. |
| data.order.total_amount | number or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Order total supplied by the source system in the accompanying currency. |
| data.order.ordered_at | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Time the customer placed the order. |
| data.order.created_at | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Created at, with time-zone offset. |
| data.order.updated_at | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Last changed at, with time-zone offset. |
| data.order.customer | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Customer contact or master data authorized for this response. Additional properties are not allowed. |
| data.order.customer.name | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.customer.email | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact email address. |
| data.order.customer.phone | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Contact telephone number, including international prefix where applicable. |
| data.order.shipping_address | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Recorded shipping address; never inferred from the billing address. |
| data.order.shipping_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Recorded shipping address; never inferred from the billing address. Additional properties are not allowed. |
| data.order.shipping_address.name | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Display name. |
| data.order.shipping_address.company | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Company or organization name. |
| data.order.shipping_address.phone | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact telephone number, including international prefix where applicable. |
| data.order.shipping_address.email | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact email address. |
| data.order.shipping_address.line1 | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Primary street address including house number. |
| data.order.shipping_address.line2 | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Additional address information such as floor or department. |
| data.order.shipping_address.postal_code | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| data.order.shipping_address.city | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. City or locality. |
| data.order.shipping_address.state | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Region, state or province of this address. |
| data.order.shipping_address.country | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Country recorded for the address; use the format documented for this endpoint. |
| data.order.shipping_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Recorded shipping address; never inferred from the billing address. |
| data.order.billing_address | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Recorded billing address; never inferred from the shipping address. |
| data.order.billing_address | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Recorded billing address; never inferred from the shipping address. Additional properties are not allowed. |
| data.order.billing_address.name | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Display name. |
| data.order.billing_address.company | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Company or organization name. |
| data.order.billing_address.phone | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact telephone number, including international prefix where applicable. |
| data.order.billing_address.email | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Contact email address. |
| data.order.billing_address.line1 | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Primary street address including house number. |
| data.order.billing_address.line2 | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Additional address information such as floor or department. |
| data.order.billing_address.postal_code | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Postal code as text, preserving leading zeroes. |
| data.order.billing_address.city | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. City or locality. |
| data.order.billing_address.state | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Region, state or province of this address. |
| data.order.billing_address.country | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Country recorded for the address; use the format documented for this endpoint. |
| data.order.billing_address | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Recorded billing address; never inferred from the shipping address. |
| data.order.items | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Order line items with their current visible values. |
| data.order.items[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.items[].group | object | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display-only grouping of order lines; does not create a stock set or change quantities. Additional properties are not allowed. |
| data.order.items[].group.key | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable grouping key shared by lines in the same display group. minLength: 1. maxLength: 128. |
| data.order.items[].group.title | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display heading for this group; all lines with the same group key must use the same title. minLength: 1. maxLength: 300. |
| data.order.items[].id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: "uuid". |
| data.order.items[].external_line_id | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Stable line identifier supplied by the originating system. |
| data.order.items[].sku | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Article SKU used to identify the corresponding goods. |
| data.order.items[].name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.items[].quantity | number | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Quantity represented as a JSON number in the stated unit. |
| data.order.items[].price | number or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Unit price supplied by the source system for this order line. |
| data.order.items[].product_linked | boolean | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Whether this line has been matched to a Meykt product. |
| data.order.items[].production_status | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Recorded production status of this line; null means no line status was recorded. |
| data.order.items[].personalization | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Personalization labels and their values for this order or line. |
| data.order.items[].personalization.{key} | string | Every additional entry | Not allowed | anyOf 1/2: At least one alternative must match. Visible personalization text associated with this label. |
| data.order.items[].fields | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Configured order inputs keyed by their published variable identifier. |
| data.order.items[].fields.{key} | alternative (anyOf) | Every additional entry | Allowed by schema | anyOf 1/2: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].fields.{key} | string | Conditional: anyOf 1/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].fields.{key} | number | Conditional: anyOf 2/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].fields.{key} | boolean | Conditional: anyOf 3/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 3/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].fields.{key} | array | Conditional: anyOf 4/5 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 4/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].fields.{key}[] | string | Every array item | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 4/5: At least one alternative must match. |
| data.order.items[].fields.{key} | null | Conditional: anyOf 5/5 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 5/5: At least one alternative must match. Current visible typed value for this configured input field. |
| data.order.items[].files | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Files attached to this order or line. |
| data.order.items[].files[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.items[].files[].name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.items[].files[].role | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Purpose or field label of the file; null for an unnamed attachment. |
| data.order.items[].files[].id | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Stable entry identifier. format: "uuid". |
| data.order.items[].files[].download_path | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. API path to request an authorized temporary download URL for this file. |
| data.order.partner_handover | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Stored fulfillment handover state; null when this order has never been handed over. |
| data.order.partner_handover | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Stored fulfillment handover state; null when this order has never been handed over. Additional properties are not allowed. |
| data.order.partner_handover.state | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Operation state; processing/decision states do not prove completion. enum: ["all","partial","none","unknown"]. |
| data.order.partner_handover.checked_at | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Time the handover or availability decision was last checked. |
| data.order.partner_handover.checked_at | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Time the handover or availability decision was last checked. format: "date-time". |
| data.order.partner_handover.checked_at | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Time the handover or availability decision was last checked. |
| data.order.partner_handover.left_behind | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Order items not transferred to the fulfillment partner, with a reason for each. |
| data.order.partner_handover.left_behind[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.partner_handover.left_behind[].item_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Identifier of the order item to which this entry belongs. format: "uuid". |
| data.order.partner_handover.left_behind[].reason | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 1/2: At least one alternative must match. Recorded reason. enum: ["no_product","no_release","set_parts_no_release","partnership_inactive","partner_chain_blocked","partner_order_open","transfer_failed","shop_location_pending","shop_location_unassigned","shop_location_split","shop_location_other_partner","payment_pending","other"]. |
| data.order.partner_handover | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Stored fulfillment handover state; null when this order has never been handed over. |
| data.order.sets | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Recorded set headings and components and how Meykt handles them. |
| data.order.sets[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.sets[].group | object | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display-only grouping of order lines; does not create a stock set or change quantities. Additional properties are not allowed. |
| data.order.sets[].group.key | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable grouping key shared by lines in the same display group. minLength: 1. maxLength: 128. |
| data.order.sets[].group.title | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display heading for this group; all lines with the same group key must use the same title. minLength: 1. maxLength: 300. |
| data.order.sets[].external_line_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable line identifier supplied by the originating system. |
| data.order.sets[].sku | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Article SKU used to identify the corresponding goods. |
| data.order.sets[].name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.sets[].quantity | number | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Quantity represented as a JSON number in the stated unit. |
| data.order.sets[].handling | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. meykt_structure packs the saved Meykt bill of materials; components uses the delivered component order lines. enum: ["meykt_structure","components"]. |
| data.order.sets[].parts | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Complete list of component slots in this native recipe. |
| data.order.sets[].parts[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.order.sets[].parts[].group | object | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display-only grouping of order lines; does not create a stock set or change quantities. Additional properties are not allowed. |
| data.order.sets[].parts[].group.key | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable grouping key shared by lines in the same display group. minLength: 1. maxLength: 128. |
| data.order.sets[].parts[].group.title | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Display heading for this group; all lines with the same group key must use the same title. minLength: 1. maxLength: 300. |
| data.order.sets[].parts[].external_line_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable line identifier supplied by the originating system. |
| data.order.sets[].parts[].sku | string or null | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Article SKU used to identify the corresponding goods. |
| data.order.sets[].parts[].name | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display name. |
| data.order.sets[].parts[].quantity | number | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Quantity represented as a JSON number in the stated unit. |
| data.order | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. The created order. Rarely null when the order was accepted but could not be read back immediately: sending the same request again returns it with 200. |
| data.warnings | array | Required when parent is present | Not allowed | Nonfatal acceptance warnings; the operation may have succeeded despite these warnings. |
| data.warnings[] | object | Every array item | Not allowed | — |
| data.warnings[].code | string | Required when parent is present | Not allowed | Stable human-readable code for this catalog entry. enum: ["item_product_unmatched","item_missing_sku"]. |
| data.warnings[].field | string | Required when parent is present | Not allowed | Field path associated with this warning or validation error. Example: "items[0].sku". |
| data.warnings[].value | string | Optional | Not allowed | Value associated with this warning or field. |
| data.warnings[].message | string | Required when parent is present | Not allowed | Message associated with this action or event. |
#Response 400, 401, 403, 409, 413, 422, 429, 500, 503
400: The request is not valid JSON. 401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 409: The same ID already exists with different content. It is never overwritten. 413: The JSON request exceeds 256 KiB. 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: "uri". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-create-order.md