changedOutput schema / properties / result / anyOf
Previous value: -[
- {
- "properties": {
- "lines": {
- "items": {
- "properties": {
- "already_ordered": {
- "default": false,
- "description": "True when this line was already ordered in this session; order_create refuses to buy it again.",
- "type": "boolean"
- },
- "line_id": {
- "type": "string"
- },
- "needs_quote": {
- "type": "boolean"
- },
- "offers": {
- "items": {
- "properties": {
- "amount": {
- "type": "number"
- },
- "currency": {
- "type": "string"
- },
- "offer_id": {
- "type": "string"
- },
- "price_scope": {
- "default": "excludes_shipping_and_tax",
- "description": "This amount is the print price; shipping and tax are added at checkout.",
- "enum": [
- "excludes_shipping_and_tax"
- ],
- "type": "string"
- },
- "production_days": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "offer_id",
- "amount",
- "currency",
- "production_days"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "order_outcome_unknown": {
- "default": false,
- "description": "True when the order request for this line got no clear answer, so an order may exist that order_create will not send again.",
- "type": "boolean"
- },
- "product_name": {
- "type": "string"
- },
- "sku": {
- "type": "string"
- }
- },
- "required": [
- "line_id",
- "sku",
- "product_name",
- "needs_quote",
- "offers"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "lines"
- ],
- "type": "object"
- },
- {
- "description": "Canonical short-circuit response shape.\n\n`status` is always `\"error\"` — acts as a discriminator for LLM consumers.\n`error` is a machine-readable code (e.g. `session_not_found`).\n`reason` is a human-readable explanation of why the call failed.\n`detail` carries structured extra context (ids, available values, etc.).",
- "properties": {
- "detail": {
- "anyOf": [
- {},
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "error": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- },
- "status": {
- "const": "error",
- "default": "error",
- "type": "string"
- }
- },
- "required": [
- "error",
- "reason"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "lines": {
+ "items": {
+ "properties": {
+ "in_checkout": {
+ "default": false,
+ "description": "True when this line is already in this session's checkout, set up by the artwork upload page or a payment link; it is not added again.",
+ "type": "boolean"
+ },
+ "line_id": {
+ "type": "string"
+ },
+ "needs_quote": {
+ "type": "boolean"
+ },
+ "offers": {
+ "items": {
+ "properties": {
+ "amount": {
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "offer_id": {
+ "type": "string"
+ },
+ "price_scope": {
+ "default": "excludes_shipping_and_tax",
+ "description": "This amount is the print price; shipping and tax are added at checkout.",
+ "enum": [
+ "excludes_shipping_and_tax"
+ ],
+ "type": "string"
+ },
+ "production_days": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "offer_id",
+ "amount",
+ "currency",
+ "production_days"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "order_outcome_unknown": {
+ "default": false,
+ "description": "True when the request to place this line got no clear answer, so it may be placed already and is not sent again.",
+ "type": "boolean"
+ },
+ "product_name": {
+ "type": "string"
+ },
+ "sku": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "line_id",
+ "sku",
+ "product_name",
+ "needs_quote",
+ "offers"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "lines"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Canonical short-circuit response shape.\n\n`status` is always `\"error\"` — acts as a discriminator for LLM consumers.\n`error` is a machine-readable code (e.g. `session_not_found`).\n`reason` is a human-readable explanation of why the call failed.\n`detail` carries structured extra context (ids, available values, etc.).",
+ "properties": {
+ "detail": {
+ "anyOf": [
+ {},
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "error": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "status": {
+ "const": "error",
+ "default": "error",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "reason"
+ ],
+ "type": "object"
+ }
+]