Read the active native recipe with personalization routes
All field references · Articles
GET /v1/articles/{id}/structure
Reads all slots, variants, integer piece factors, orderings, field routes and atomic/per_part rules. structure=null means there is no active recipe. stock_publication shows separately whether an existing stock structure must be republished after a recipe change.
Required scopes: "products:read".
#Parameters
#path: id
Required. Your own article.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#query: variant_id
Optional. Your own variant; if omitted, the main article applies.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#Request body
No request body is defined for this operation.
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.product_id | string | Required when parent is present | Not allowed | Meykt article identifier; not its SKU or an external system identifier. format: "uuid". |
| data.variant_id | alternative (anyOf) | Required when parent is present | Allowed by schema | Native Meykt variant identifier; null refers to the main article where allowed. |
| data.variant_id | string | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Native Meykt variant identifier; null refers to the main article where allowed. format: "uuid". |
| data.variant_id | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Native Meykt variant identifier; null refers to the main article where allowed. |
| data.structure | alternative (anyOf) | Required when parent is present | Allowed by schema | Current native recipe, its saved version and component routing; null when no recipe exists. |
| data.structure | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Current native recipe, its saved version and component routing; null when no recipe exists. Additional properties are not allowed. |
| data.structure.id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of this entry. Keep it unchanged when referring to the same entry in subsequent requests. format: "uuid". |
| data.structure.version_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of this saved native recipe version. format: "uuid". |
| data.structure.revision | integer | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Current native recipe revision. minimum: 0. maximum: 2147483647. |
| data.structure.content_hash | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Opaque fingerprint of this saved recipe content; compare unchanged values instead of calculating it yourself. |
| data.structure.activated_at | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Time this recipe version became active. |
| data.structure.activated_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. Time this recipe version became active. format: "date-time". |
| data.structure.activated_at | 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. Time this recipe version became active. |
| data.structure.definition | object | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Complete native recipe. Components cannot reference the parent article; every route target must reference a listed component slot. Saving does not silently rewrite existing orders. Additional properties are not allowed. x-meykt-unique-by: {"parts":[["slotId"]]}. |
| data.structure.definition.parentProductId | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Meykt article identifier whose native recipe is being defined. format: "uuid". |
| data.structure.definition.parentProductVariantId | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Native parent variant identifier; null selects the main article recipe. |
| data.structure.definition.parentProductVariantId | 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. Native parent variant identifier; null selects the main article recipe. format: "uuid". |
| data.structure.definition.parentProductVariantId | 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. Native parent variant identifier; null selects the main article recipe. |
| data.structure.definition.expectedRevision | integer | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Current recipe revision; use the revision read from the current recipe. minimum: 0. maximum: 2147483647. |
| data.structure.definition.parts | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Complete list of component slots. Slot UUIDs must be unique. A parent article cannot be its own component. minItems: 1. maxItems: 100. |
| data.structure.definition.parts[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.structure.definition.parts[].slotId | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Stable component slot UUID; retain it when editing the same component slot. format: "uuid". |
| data.structure.definition.parts[].productId | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Meykt article identifier used by this component slot. format: "uuid". |
| data.structure.definition.parts[].productVariantId | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Native variant identifier selected for this component; null selects its main article. |
| data.structure.definition.parts[].productVariantId | 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. Native variant identifier selected for this component; null selects its main article. format: "uuid". |
| data.structure.definition.parts[].productVariantId | 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. Native variant identifier selected for this component; null selects its main article. |
| data.structure.definition.parts[].label | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display label explaining this attachment or entry to the user. minLength: 1. maxLength: 120. |
| data.structure.definition.parts[].quantity | integer | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Quantity in the stated unit, represented as a JSON number by this contract. exclusiveMinimum: 0. maximum: 1000000000. |
| data.structure.definition.parts[].sortOrder | integer | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Display ordering of this component slot, starting at zero. minimum: 0. maximum: 99. |
| data.structure.definition.routes | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Rules deciding which personalization reaches which component slots. Targets must name slots in parts; the total number of targets across all routes must stay within the recipe limit. maxItems: 500. |
| data.structure.definition.routes[] | object | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. Additional properties are not allowed. |
| data.structure.definition.routes[].source | alternative (anyOf) | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Source personalization field selected for this routing rule. |
| data.structure.definition.routes[].source | 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. Applies to kind = "provider_field". Source personalization field selected for this routing rule. Additional properties are not allowed. |
| data.structure.definition.routes[].source.kind | 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. Applies to kind = "provider_field". Action or record discriminator; selects the applicable fields and requirements in this object. const: "provider_field". |
| data.structure.definition.routes[].source.provider | 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. Applies to kind = "provider_field". Provider code for this external condition mapping or source field. enum: ["shopify","etsy","woocommerce","amazon","ebay","billbee","pos","manual","b2b_portal","b2c_portal","api"]. |
| data.structure.definition.routes[].source.sourceKey | 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. Applies to kind = "provider_field". Exact field key used by the selected source provider. minLength: 1. maxLength: 500. |
| data.structure.definition.routes[].source | object | Conditional: anyOf 2/2 | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Applies to kind = "compiler_variable". Source personalization field selected for this routing rule. Additional properties are not allowed. |
| data.structure.definition.routes[].source.kind | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Applies to kind = "compiler_variable". Action or record discriminator; selects the applicable fields and requirements in this object. const: "compiler_variable". |
| data.structure.definition.routes[].source.variableId | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Applies to kind = "compiler_variable". Identifier of the configured variable selected as the source. format: "uuid". |
| data.structure.definition.routes[].source.variableKey | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match.; anyOf 2/2: At least one alternative must match. Applies to kind = "compiler_variable". Published key of the configured variable. minLength: 1. maxLength: 120. |
| data.structure.definition.routes[].mode | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Selected behavior from the supported modes; each mode has its own documented requirements. enum: ["append","replace","exclude"]. |
| data.structure.definition.routes[].targetSlotIds | array | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Component slot identifiers receiving the selected personalization. maxItems: 100. uniqueItems: true. |
| data.structure.definition.routes[].targetSlotIds[] | string | Every array item | Not allowed | anyOf 1/2: At least one alternative must match. format: "uuid". |
| data.structure.definition.routes[].overwriteExisting | boolean | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Whether this route may replace an existing value on its selected targets. |
| data.structure.definition.routes[].compileTargetVariable | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. Optional target variable name: starts with a letter or underscore, then letters, digits or underscores. Whitespace is trimmed; a surrounding {{...}} is accepted and removed. An empty value means not set. maxLength: 120. pattern: "^[A-Za-z_][A-Za-z0-9_]*$". |
| data.structure.definition.fulfillmentMode | string | Optional | Not allowed | anyOf 1/2: At least one alternative must match. atomic fulfills the set as a whole; per_part fulfills its components separately. Default: "atomic". enum: ["atomic","per_part"]. |
| data.structure | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Current native recipe, its saved version and component routing; null when no recipe exists. |
| data.stock_publication | alternative (anyOf) | Required when parent is present | Allowed by schema | Published warehouse interpretation of the recipe; null when not published. |
| data.stock_publication | object | Conditional: anyOf 1/2 | Not allowed | anyOf 1/2: At least one alternative must match. Published warehouse interpretation of the recipe; null when not published. Additional properties are not allowed. |
| data.stock_publication.definition_id | string | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Identifier of the published warehouse manufacturing definition. format: "uuid". |
| data.stock_publication.revision | integer | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Current warehouse definition revision. minimum: 0. maximum: 2147483647. |
| data.stock_publication.structure_version_id | alternative (anyOf) | Required when parent is present | Allowed by schema | anyOf 1/2: At least one alternative must match. Exact saved recipe version whose warehouse behavior is being configured. |
| data.stock_publication.structure_version_id | 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. Exact saved recipe version whose warehouse behavior is being configured. format: "uuid". |
| data.stock_publication.structure_version_id | 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. Exact saved recipe version whose warehouse behavior is being configured. |
| data.stock_publication.stale | boolean | Required when parent is present | Not allowed | anyOf 1/2: At least one alternative must match. Whether this definition or preview no longer matches the current state. |
| data.stock_publication | null | Conditional: anyOf 2/2 | Allowed by schema | anyOf 2/2: At least one alternative must match. Published warehouse interpretation of the recipe; null when not published. |
#Response 401, 403, 404, 422, 429, 500, 503
401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 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-read-native-product-structure.md