{
  "openapi": "3.1.0",
  "info": {
    "title": "Teeinblue Public API",
    "version": "1.0.0",
    "description": "Public API for retrieving order data, and writing back to a small set of order fields\nand designs. Authenticated endpoints require a Bearer token with the ability each\nendpoint requires (see `x-required-ability` on each operation; enforced by the matching\n`ability:*` middleware). Asset library endpoints require **assets:read** or\n**assets:write** (see \"Asset Libraries\"). Replace server URLs with your real domains.\n\n**Send `Accept: application/json` on every request.** Without it, errors are not\nreturned as JSON: a missing or invalid token is redirected to a login page (`302`)\ninstead of returning `401`, and a validation error is redirected instead of returning\n`422`.\n"
  },
  "servers": [
    {
      "url": "https://api.teeinblue.com/openapi/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Health",
      "description": "Service status and version"
    },
    {
      "name": "Rate Limiting",
      "description": "Every endpoint under `/openapi/v1` shares a single limit: **60 requests per minute**.\n\nThe limit is keyed to your account, not to the individual token -- if you use more than\none API token (e.g. one per script or environment), they all draw from the same 60/minute\nbudget, not 60 each.\n\n**Response headers.** Every response includes:\n\n| Header | Meaning |\n|---|---|\n| `X-RateLimit-Limit` | The limit for the current window (`60`) |\n| `X-RateLimit-Remaining` | Requests left in the current window |\n\nA response that hits the limit returns `429 Too Many Requests` with two more headers:\n\n| Header | Meaning |\n|---|---|\n| `Retry-After` | Seconds to wait before your next request |\n| `X-RateLimit-Reset` | Unix timestamp when the window resets |\n\n```json\n{\n  \"message\": \"Too Many Attempts.\"\n}\n```\n\nBack off until `Retry-After` has elapsed rather than retrying immediately -- retrying\nbefore the window resets only spends more of a budget that is already at zero.\n"
    },
    {
      "name": "Orders",
      "description": "Read access to orders, plus write access to Etsy order fields"
    },
    {
      "name": "Designs",
      "description": "Write access to order item print area / design files"
    },
    {
      "name": "Campaigns",
      "description": "Read-only access to campaigns"
    },
    {
      "name": "Customizations",
      "description": "Read-only access to customizations"
    },
    {
      "name": "Products",
      "description": "Read-only access to products.\n\n**Mapping a variant to its print areas.** An order's line item tells you the\n`printarea_id` of each design (see \"Orders\"), but not which print areas a given\n*variant* actually uses -- for that, call `GET /products/{id}` and combine:\n\n- `printareas[].id` -- every print area the product defines, with its human-readable\n  `name` (e.g. `\"front\"`, `\"back\"`).\n- `variants[].printarea_ids` -- which of those print area ids apply to one variant.\n\n```json\n{\n  \"printareas\": [\n    { \"id\": 101, \"name\": \"front\" },\n    { \"id\": 102, \"name\": \"back\" }\n  ],\n  \"variants\": [\n    { \"id\": 555, \"sku\": \"TSHIRT-LG-NAVY\", \"printarea_ids\": [101] }\n  ]\n}\n```\n\nVariant `555` only prints on the front (`101`). The same `printarea_id` is what an\norder's `print_areas[]` carries, so matching the two tells you exactly which design\nfile belongs to which print area -- including when a line item has more than one\nprint area sharing the same `name`/`key`, since `printarea_id` (unlike the name) is\nalways unique.\n\nAn empty `printarea_ids` means no restriction is configured for that variant -- it\nprints on every print area the product defines, not on none. Restricting a variant\nto specific print areas is an opt-in merchant setting, so most products will return\nan empty array for every variant.\n"
    },
    {
      "name": "Asset Libraries",
      "description": "Upload and look up the reusable images in your Teeinblue libraries -- the same\nlibraries you manage in the portal. Use these endpoints to push material from your own\nstorage instead of uploading it by hand or through an AI agent.\n\n| Library | Used in | Category type |\n|---|---|---|\n| Layer images | Image layers in artworks | `clipart`, `vector`, `gpx` |\n| Cliparts | Clipart and vector pickers in artworks | `clipart`, `vector` |\n| Library images | Masks (artwork and mockup layers), and images reused as backgrounds and thumbnails | `image`, `mask` (the image's own type; categories hold one type) |\n\n**Abilities.** Read endpoints need **assets:read**; create and delete endpoints need **assets:write**.\n\n**Sending a file.** How you send a file depends on its kind -- the same way the portal does:\n\n| File | Send it as |\n|---|---|\n| Raster image (PNG, JPEG, GIF, WebP) -- layer images, cliparts, library images | a pre-signed upload (`upload_id`), or a `url` |\n| SVG -- library images | a pre-signed upload (`upload_id`), or a `url` |\n| SVG / EPS -- layer images, cliparts | `multipart/form-data` with a `file` field, or a `url` |\n| GPX -- layer images | `multipart/form-data` with a `file` field, or a `url` |\n\n*Pre-signed upload (raster images, and SVGs for library images).* The image bytes go\nstraight to storage, not through this API:\n1. `POST /uploads` with the file's `filename` (`.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`\n   or `.svg`)\n   and `filesize` (bytes). You get back an `upload_id`, an `upload_url` and the\n   `upload_headers` to send with it.\n2. `PUT` the file bytes to `upload_url` with those headers before `expires_at`\n   (a few minutes).\n3. Call the create endpoint (e.g. `POST /layer-images`) with `{\"upload_id\": \"...\"}`.\n   The uploaded file is checked at this point: it must be exactly the `filesize` you\n   declared, at most 64 MB, and an image the endpoint takes -- judged from the file's\n   content, not its name -- otherwise the upload is removed and you get a `422`. Layer\n   images and cliparts take a PNG, JPEG, GIF or WebP this way (send their SVGs as\n   multipart); library images also take an SVG. If you call before your `PUT` has\n   finished you also get a `422`; that one can simply be retried. Each `upload_id` can be\n   used once.\n\n```bash\n# 1. Request a presigned upload\ncurl -X POST https://api.teeinblue.com/openapi/v1/uploads \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"filename\": \"SKU123_BG.png\", \"filesize\": 8388608}'\n# => { \"upload_id\": \"...\", \"upload_url\": \"https://...\",\n#      \"upload_headers\": {\"Content-Type\": \"image/png\"},\n#      \"expires_at\": \"...\" }\n\n# 2. PUT the bytes straight to storage, sending the headers from upload_headers.\n#    No Authorization header here -- the upload_url carries its own signature.\ncurl -X PUT \"$UPLOAD_URL\" \\\n  -H \"Content-Type: image/png\" \\\n  --data-binary @SKU123_BG.png\n\n# 3. Create the item\ncurl -X POST https://api.teeinblue.com/openapi/v1/layer-images \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"upload_id\": \"...\"}'\n```\n\n*URL.* Send `application/json` with a `url` that Teeinblue downloads. The URL must be\npublicly reachable over http(s) (a signed cloud-storage URL works). Redirects are not\nfollowed -- give the final, direct URL of the file -- and URLs that point to private or\ninternal network addresses are refused.\n\nEach file may be **at most 64 MB**, whichever way it is sent. Larger files are rejected with `422`.\n\nA raster layer image or library image may be **at most 128 megapixels** (width x height),\nread from the file's header whichever way it is sent. A larger image, or one whose size\ncannot be read (a corrupt or truncated file), is refused with `422` and the upload is\nremoved. SVGs have no pixel limit.\n\n**Processing.** Raster images are processed in the background: the create call returns\n`201` with `status: processing`, and `url` / `thumbnail_url` are `null` until processing\nfinishes. Poll the item's `GET` endpoint until `status` is `ready`.\nSVG/EPS and GPX files are processed during the request and come back `ready`, as do\nlibrary image SVGs.\n\n**Duplicates.** By default every upload creates a new item, as in the portal. Pass\n`on_duplicate` to make a re-run of your upload script safe:\n- `create` (default) -- always create a new item.\n- `skip` -- if an item with the same `name` already exists in the same category, return it\n  (`200`) without uploading. For library images the match is on `type`, category and `name`.\n- `replace` -- **cliparts only, raster images only**: replace the image of the existing\n  clipart with the same `name` in the same category, keeping its id (the portal's\n  \"Replace items\"). As in the portal, SVG/EPS cliparts cannot be replaced.\n\n**Using an item in an artwork.** `url` is a storage key such as\n`users/4965/image-layers/68c0006568e69_large.webp`. Put it in a layer exactly as returned --\ndo not prefix it with a domain. `thumbnail_url` is a full URL meant only for previews.\nA library image is used the same way: a `mask` image's `url` goes into a layer's mask\nfield (e.g. `masked_url`), an `image`'s `url` into a background field (e.g.\n`background_image`).\n\n**Limits.** Uploads count towards the same daily limits as uploads made in the portal.\nWhen a limit is reached the API returns `429` (see \"TooManyRequests\" below for the two\nkinds of limit that can trigger it). These daily limits are separate from the\naccount-wide per-minute request limit described in \"Rate Limiting\".\n"
    },
    {
      "name": "Layer Images",
      "description": "Images used by image layers in artworks, grouped in layer image categories."
    },
    {
      "name": "Cliparts",
      "description": "Cliparts and vectors used by clipart pickers in artworks, grouped in clipart categories."
    },
    {
      "name": "Library Images",
      "description": "Images uploaded once and reused wherever they fit, grouped in library image categories --\nthe portal's image library. Every library image has a type, fixed when it is uploaded:\n- `mask` -- a cut-out shape, used as the mask of an artwork or mockup layer.\n- `image` -- any other picture: backgrounds, thumbnails, reference images, map markers.\n\nA category holds one type only. Library images are sent as a pre-signed upload\n(`upload_id`) or a `url` -- not as multipart -- in the formats the portal's library takes:\n\n| Type | Formats |\n|---|---|\n| `image` | PNG, JPEG, GIF, WebP, SVG |\n| `mask` | PNG, WebP, SVG -- a mask needs transparency, so JPEG and GIF are refused |\n\nAn SVG must have a `viewBox`; it is sanitized, kept as a vector and ready at once.\n"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Health check",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                },
                "examples": {
                  "ok": {
                    "value": {
                      "status": "ok"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/version": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "API version",
        "operationId": "getVersion",
        "responses": {
          "200": {
            "description": "Current API version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Version"
                },
                "examples": {
                  "v1": {
                    "value": {
                      "version": "1.0.0"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orders": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "List orders",
        "description": "Returns a cursor-paginated list of orders visible to the authenticated user.\nThis endpoint requires a token with the **orders:read** ability.\n",
        "operationId": "listOrders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/start_date"
          },
          {
            "$ref": "#/components/parameters/end_date"
          },
          {
            "$ref": "#/components/parameters/status"
          },
          {
            "$ref": "#/components/parameters/tib_status"
          },
          {
            "$ref": "#/components/parameters/fulfillment_status"
          },
          {
            "$ref": "#/components/parameters/financial_status"
          },
          {
            "$ref": "#/components/parameters/test"
          },
          {
            "$ref": "#/components/parameters/by_teeinblue"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/platform"
          }
        ],
        "responses": {
          "200": {
            "description": "List of orders (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCursorPage"
                },
                "example": {
                  "data": [
                    {
                      "id": 12345,
                      "order_name": "#1001",
                      "platform_order_id": "4567890123",
                      "test_order": false,
                      "total_price": 29.99,
                      "currency": "USD",
                      "fulfillment_status": "fulfilled",
                      "financial_status": "paid",
                      "status": "customized",
                      "tib_status": "12",
                      "shipping_method": "Standard Shipping",
                      "instance_name": "My Awesome T-Shirt Store",
                      "platform_domain": "my-shop.myshopify.com",
                      "created_at": "2025-01-15T10:30:00Z",
                      "deleted_at": null,
                      "address": {
                        "first_name": "John",
                        "last_name": "Smith",
                        "name": "John Smith",
                        "company": null,
                        "phone": "+1-555-123-4567",
                        "address1": "123 Main Street",
                        "address2": "Apt 4B",
                        "city": "New York",
                        "province": "New York",
                        "province_code": "NY",
                        "country": "United States",
                        "country_code": "US",
                        "zip": "10001"
                      },
                      "customer": {
                        "id": 12345,
                        "platform_linked_id": "shopify_customer_987654321",
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "email": "jane.doe@example.com",
                        "phone": "+1-555-987-6543",
                        "created_at": "2024-12-01T09:15:00Z"
                      }
                    }
                  ],
                  "links": {
                    "next": "https://api.teeinblue.com/openapi/v1/orders?cursor=eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0&per_page=25",
                    "prev": null
                  },
                  "meta": {
                    "per_page": 25,
                    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0",
                    "prev_cursor": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/orders/{orderId}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get order by ID",
        "description": "Fetch a single order by **internal order ID** or **platform-specific ID**.\nRequires **orders:read** ability.\n",
        "operationId": "getOrder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:read",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "description": "Platform-linked ID (e.g., `1234567890`) or Teeinblue order ID (e.g., `12345`), platform-linked ID takes precedence.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/includeCustomization"
          }
        ],
        "responses": {
          "200": {
            "description": "Order found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicOrder"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Order not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Order not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/orders/etsy": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "List Etsy orders",
        "description": "Convenience wrapper for **/orders** that implicitly filters `platform=etsy`.\nRequires **orders:read** ability.\n",
        "operationId": "listEtsyOrders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/start_date"
          },
          {
            "$ref": "#/components/parameters/end_date"
          },
          {
            "$ref": "#/components/parameters/status"
          },
          {
            "$ref": "#/components/parameters/tib_status"
          },
          {
            "$ref": "#/components/parameters/fulfillment_status"
          },
          {
            "$ref": "#/components/parameters/financial_status"
          },
          {
            "$ref": "#/components/parameters/test"
          },
          {
            "$ref": "#/components/parameters/by_teeinblue"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "List of Etsy orders (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCursorPage"
                },
                "example": {
                  "data": [
                    {
                      "id": 12345,
                      "order_name": "#1001",
                      "platform_order_id": "4567890123",
                      "test_order": false,
                      "total_price": 29.99,
                      "currency": "USD",
                      "fulfillment_status": "fulfilled",
                      "financial_status": "paid",
                      "status": "customized",
                      "tib_status": "12",
                      "shipping_method": "Standard Shipping",
                      "instance_name": "My Awesome T-Shirt Store",
                      "platform_domain": "my-shop.etsy.com",
                      "created_at": "2025-01-15T10:30:00Z",
                      "deleted_at": null,
                      "address": {
                        "first_name": "John",
                        "last_name": "Smith",
                        "name": "John Smith",
                        "company": null,
                        "phone": "+1-555-123-4567",
                        "address1": "123 Main Street",
                        "address2": "Apt 4B",
                        "city": "New York",
                        "province": "New York",
                        "province_code": "NY",
                        "country": "United States",
                        "country_code": "US",
                        "zip": "10001"
                      },
                      "customer": {
                        "id": 12345,
                        "platform_linked_id": "etsy_user_987654321",
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "email": "jane.doe@example.com",
                        "phone": "+1-555-987-6543",
                        "created_at": "2024-12-01T09:15:00Z"
                      }
                    }
                  ],
                  "links": {
                    "next": "https://api.teeinblue.com/openapi/v1/orders/etsy?cursor=eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0&per_page=25",
                    "prev": null
                  },
                  "meta": {
                    "per_page": 25,
                    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0",
                    "prev_cursor": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/orders/etsy/{etsyId}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get Etsy order by order ID",
        "description": "Fetch a single Etsy order by its Etsy order ID.\nRequires **orders:read** ability.\n",
        "operationId": "getEtsyOrder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:read",
        "parameters": [
          {
            "name": "etsyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Etsy order ID (e.g., `1234567890`) or Teeinblue order ID (e.g., `12345`), Etsy order ID takes precedence."
          },
          {
            "$ref": "#/components/parameters/includeCustomization"
          }
        ],
        "responses": {
          "200": {
            "description": "Etsy order found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicOrder"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Etsy order not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Etsy order not found"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Orders"
        ],
        "summary": "Update Etsy order",
        "description": "Update a single Etsy order by its Etsy order ID.\nRequires **orders:write** ability.\n",
        "operationId": "updateEtsyOrder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:write",
        "parameters": [
          {
            "name": "etsyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Etsy order ID (e.g., `1234567890`) or Teeinblue order ID (e.g., `12345`), Etsy order ID takes precedence."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEtsyOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Etsy order updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicOrder"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Etsy order not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/orders/etsy/batch-update": {
      "patch": {
        "tags": [
          "Orders"
        ],
        "summary": "Batch update Etsy orders",
        "description": "Batch update Etsy orders by their Etsy order IDs.\nRequires **orders:write** ability.\n",
        "operationId": "batchUpdateEtsyOrders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:write",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/BatchUpdateEtsyOrderRequestItem"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Etsy orders updated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BatchUpdateEtsyOrderResponseItem"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/order-item-artworks/{orderItemArtworkId}/design": {
      "post": {
        "tags": [
          "Designs"
        ],
        "summary": "Replace order item design",
        "description": "Replace the design file for an existing print area, identified by its `order_item_artwork_id`\n(the `id` field returned in an order's `print_areas[]` — see **Get order**). Mirrors the\nPortal's \"Replace design\" action: only the file changes in place, the print area's\n`artwork_id`/`customization_id` are untouched and no new print area is created.\n\nRequires **orders:write** ability.\n\nThe target order item must currently be in the **Ready** status (`status: 2` on the order\nitem), or the request is rejected with `422`.\n\nProvide exactly one of `file` (multipart upload) or `url` (JSON body, a publicly reachable\nURL Teeinblue fetches server-side).\n\nWhether the returned `url` stays the same on every replace (true overwrite) or changes on\nevery call depends on whether this print area is a plain custom upload or an\nartwork/template-based design — check the `updated_at` field (or diff the `url`) rather\nthan assuming either behavior.\n",
        "operationId": "replaceOrderItemDesign",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:write",
        "parameters": [
          {
            "name": "orderItemArtworkId",
            "in": "path",
            "required": true,
            "description": "The print area's `id`, from an order's `print_areas[].id`.",
            "schema": {
              "type": "integer"
            },
            "example": 567
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The replacement design file (image, PDF, or PostScript)."
                  }
                },
                "required": [
                  "file"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Publicly reachable URL of the replacement design file.",
                    "example": "https://your-qc-system.example.com/corrected-printfile.png"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Design replaced",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintArea"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Print area not found, or doesn't belong to the caller's account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "No query results for model [App\\Models\\OrderItemArtwork]."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The order item isn't in the Ready status, or neither `file` nor `url` was provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notReady": {
                    "value": {
                      "message": "The order item must be in the Ready status to replace its design."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/stores/{platformDomain}/orders": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "List orders for specific store",
        "description": "Returns orders for a specific store identified by platform domain.\nRequires **orders:read** ability.\n",
        "operationId": "listStoreOrders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "orders:read",
        "parameters": [
          {
            "name": "platformDomain",
            "in": "path",
            "required": true,
            "description": "Store platform domain (e.g., my-shop.myshopify.com)",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/start_date"
          },
          {
            "$ref": "#/components/parameters/end_date"
          },
          {
            "$ref": "#/components/parameters/status"
          },
          {
            "$ref": "#/components/parameters/tib_status"
          },
          {
            "$ref": "#/components/parameters/fulfillment_status"
          },
          {
            "$ref": "#/components/parameters/financial_status"
          },
          {
            "$ref": "#/components/parameters/test"
          },
          {
            "$ref": "#/components/parameters/by_teeinblue"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "List of store orders (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCursorPage"
                },
                "example": {
                  "data": [
                    {
                      "id": 12345,
                      "order_name": "#1001",
                      "platform_order_id": "4567890123",
                      "test_order": false,
                      "total_price": 29.99,
                      "currency": "USD",
                      "fulfillment_status": "fulfilled",
                      "financial_status": "paid",
                      "status": "customized",
                      "tib_status": "12",
                      "shipping_method": "Standard Shipping",
                      "instance_name": "My Awesome T-Shirt Store",
                      "platform_domain": "my-shop.myshopify.com",
                      "created_at": "2025-01-15T10:30:00Z",
                      "deleted_at": null,
                      "address": {
                        "first_name": "John",
                        "last_name": "Smith",
                        "name": "John Smith",
                        "company": null,
                        "phone": "+1-555-123-4567",
                        "address1": "123 Main Street",
                        "address2": "Apt 4B",
                        "city": "New York",
                        "province": "New York",
                        "province_code": "NY",
                        "country": "United States",
                        "country_code": "US",
                        "zip": "10001"
                      },
                      "customer": {
                        "id": 12345,
                        "platform_linked_id": "shopify_customer_987654321",
                        "first_name": "Jane",
                        "last_name": "Doe",
                        "email": "jane.doe@example.com",
                        "phone": "+1-555-987-6543",
                        "created_at": "2024-12-01T09:15:00Z"
                      }
                    }
                  ],
                  "links": {
                    "next": "https://api.teeinblue.com/openapi/v1/stores/my-shop.myshopify.com/orders?cursor=eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0&per_page=25",
                    "prev": null
                  },
                  "meta": {
                    "per_page": 25,
                    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSIsImlkIjoxMjM0NX0",
                    "prev_cursor": null
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Store not found or access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Store not found or access denied"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/campaigns/{campaignId}": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Get campaign by UUID",
        "description": "Fetch a single campaign by **UUID** and **platformDomain**.\nRequires **campaigns:read** ability.\n",
        "operationId": "getCampaign",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:read",
        "parameters": [
          {
            "name": "UUID",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Campaign UUID (e.g., `6d823e4d-8f21-41f8-b461-e97c981880bc`)"
          },
          {
            "$ref": "#/components/parameters/platformDomain"
          }
        ],
        "responses": {
          "200": {
            "description": "Campaign found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCampaign"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Campaign not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Campaign not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/campaigns/product-base": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "List product base campaigns",
        "description": "List all product base campaigns.\nRequires **campaigns:read** ability.\n",
        "operationId": "listProductBaseCampaigns",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "List of product base campaigns (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductBaseCampaignCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/campaigns/product-base/{id}": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a product base campaign by ID",
        "description": "Fetch a single product base campaign by its ID.\nRequires **campaigns:read** ability.\n",
        "operationId": "getProductBaseCampaignById",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Product base campaign ID (e.g., `1245`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Product base campaign found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductBaseCampaign"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Product base campaign not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Product base campaign not found"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a product base campaign",
        "description": "Partially update a product base campaign by its ID. Only the fields included in the request body are updated;\nomitted fields keep their current value. A field sent as `null` (or an empty string) is ignored, so a field\ncannot be cleared through this endpoint. Unknown fields are ignored, and a request with no updatable field\nis rejected with `422`.\n\nThe change is made in Teeinblue only: a campaign already published to a store keeps its previous state there\nuntil it is synced again.\nRequires **campaigns:write** ability.\n",
        "operationId": "updateProductBaseCampaign",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Product base campaign ID (e.g., `1245`)"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductBaseCampaignRequest"
              },
              "examples": {
                "markDone": {
                  "summary": "Mark the campaign as done with an internal tag",
                  "value": {
                    "internal_tags": "DONE"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Product base campaign updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductBaseCampaign"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Product base campaign not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "No query results for model."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Request body failed validation, or contained no updatable field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                },
                "examples": {
                  "empty": {
                    "value": {
                      "message": "At least one updatable field with a non-null value is required.",
                      "errors": {
                        "body": [
                          "At least one updatable field with a non-null value is required."
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/campaigns/platform-base": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "List platform base campaigns",
        "description": "List all platform base campaigns.\nRequires **campaigns:read** ability.\n",
        "operationId": "listPlatformBaseCampaigns",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/platforms"
          }
        ],
        "responses": {
          "200": {
            "description": "List of platform base campaigns (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformBaseCampaignCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/campaigns/platform-base/{id}": {
      "get": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a platform base campaign by ID",
        "description": "Fetch a single platform base campaign by its ID.\nRequires **campaigns:read** ability.\n",
        "operationId": "getPlatformBaseCampaignById",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Platform base campaign ID (e.g., `1245`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Platform base found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCampaign"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Platform base not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Platform base not found"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a platform base campaign",
        "description": "Partially update a platform base campaign by its ID. Only the fields included in the request body are updated;\nomitted fields keep their current value. A field sent as `null` (or an empty string) is ignored, so a field\ncannot be cleared through this endpoint. Unknown fields are ignored, and a request with no updatable field\nis rejected with `422`.\n\nThe change is made in Teeinblue only: a campaign already published to a store keeps its previous state there\nuntil it is synced again.\nRequires **campaigns:write** ability.\n",
        "operationId": "updatePlatformBaseCampaign",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "campaigns:write",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Platform base campaign ID (e.g., `1245`)"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlatformBaseCampaignRequest"
              },
              "examples": {
                "markDone": {
                  "summary": "Mark the campaign as done with an internal tag",
                  "value": {
                    "internal_tags": "DONE"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Platform base campaign updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCampaign"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Platform base campaign not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "No query results for model."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Request body failed validation, or contained no updatable field",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                },
                "examples": {
                  "empty": {
                    "value": {
                      "message": "At least one updatable field with a non-null value is required.",
                      "errors": {
                        "body": [
                          "At least one updatable field with a non-null value is required."
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customizations": {
      "get": {
        "tags": [
          "Customizations"
        ],
        "summary": "List customizations",
        "description": "Returns a cursor-paginated list of customizations visible to the authenticated user.\nRequires **customizations:read OR orders:read** ability.\n",
        "operationId": "listCustomizations",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "customizations:read | orders:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/start_date"
          },
          {
            "$ref": "#/components/parameters/end_date"
          },
          {
            "$ref": "#/components/parameters/instance_ids"
          },
          {
            "$ref": "#/components/parameters/campaign_ids"
          },
          {
            "$ref": "#/components/parameters/platform_product_ids"
          },
          {
            "$ref": "#/components/parameters/includeData"
          }
        ],
        "responses": {
          "200": {
            "description": "List of customizations (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizationCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/customizations/{uuid}": {
      "get": {
        "tags": [
          "Customizations"
        ],
        "summary": "Get customization by UUID",
        "description": "Fetch a single customization by its UUID.\nRequires **customizations:read OR orders:read** ability.\n",
        "operationId": "getCustomizationByUuid",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "customizations:read | orders:read",
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Customization UUID (e.g., `6d823e4d-8f21-41f8-b461-e97c981880bc`)"
          },
          {
            "$ref": "#/components/parameters/includeDesigns"
          },
          {
            "$ref": "#/components/parameters/includeData"
          }
        ],
        "responses": {
          "200": {
            "description": "Customization found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customization"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Customization not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Customization not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/products": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "List products",
        "description": "List all products.\nRequires **products:read** ability.\n",
        "operationId": "listProducts",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "products:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/s"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/sort_type"
          },
          {
            "$ref": "#/components/parameters/per_page"
          },
          {
            "$ref": "#/components/parameters/cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "List of products (cursor-paginated)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/products/{id}": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Get product by ID",
        "description": "Fetch a single product by its ID.\nRequires **products:read** ability.\n",
        "operationId": "getProductById",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "products:read",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Product ID (e.g., `1245`)"
          }
        ],
        "responses": {
          "200": {
            "description": "Product found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "Product not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "notFound": {
                    "value": {
                      "message": "Product not found"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/uploads": {
      "post": {
        "tags": [
          "Asset Libraries"
        ],
        "summary": "Create a pre-signed upload",
        "description": "Step 1 of uploading an image (see \"Asset Libraries\"). Returns an `upload_url` to\n`PUT` the image bytes to, and an `upload_id` to pass to `POST /layer-images`,\n`POST /cliparts` or `POST /library-images` once the bytes are uploaded.\n\nAccepted extensions: `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.svg`. An `.svg` upload\nis for `POST /library-images` only: layer images and cliparts take their SVGs as\nmultipart, as the portal sends them, and refuse an SVG `upload_id` with `422`. Send\nEPS and GPX files as multipart.\n\nImages larger than 128 megapixels are rejected here when `filewidth` and `fileheight`\nare given; the create endpoint checks the size again from the file itself.\nRequires **assets:write** ability.\n",
        "operationId": "createUpload",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "filename",
                  "filesize"
                ],
                "properties": {
                  "filename": {
                    "type": "string",
                    "description": "File name including its extension. Used as the item's default name.",
                    "example": "SKU123_BG.png"
                  },
                  "filesize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 67108864,
                    "description": "Size of the file in bytes, at most 64 MB. The uploaded body must be exactly this size.",
                    "example": 8388608
                  },
                  "filewidth": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Image width in pixels. Optional; used to reject images over 128 megapixels before uploading.",
                    "example": 4000
                  },
                  "fileheight": {
                    "type": "integer",
                    "minimum": 1,
                    "description": "Image height in pixels. Optional; used with `filewidth`.",
                    "example": 4000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Upload created; `PUT` the file bytes to `upload_url` next.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PresignedUpload"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/layer-image-categories": {
      "get": {
        "tags": [
          "Layer Images"
        ],
        "summary": "List layer image categories",
        "description": "List your layer image categories, newest first, cursor-paginated. As in the portal,\nwhich lists a type's categories all at once, there is no `search`: look one up with the\nexact `name` filter. Sending `search` returns `422`.\nRequires **assets:read** ability.\n",
        "operationId": "listLayerImageCategories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Only return categories of this type.",
            "schema": {
              "$ref": "#/components/schemas/LayerImageCategoryType"
            }
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Cursor-paginated list of layer image categories",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImageCategoryCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Layer Images"
        ],
        "summary": "Create a layer image category",
        "description": "Create a layer image category. The `type` decides which files the category accepts\nand cannot be changed later.\nRequires **assets:write** ability.\n",
        "operationId": "createLayerImageCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "example": "SKU123"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "type": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LayerImageCategoryType"
                      }
                    ],
                    "default": "clipart"
                  },
                  "on_duplicate": {
                    "$ref": "#/components/schemas/CategoryOnDuplicate"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`on_duplicate: skip` matched an existing category with the same name and type; it is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImageCategory"
                }
              }
            }
          },
          "201": {
            "description": "Category created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImageCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/layer-image-categories/{id}": {
      "get": {
        "tags": [
          "Layer Images"
        ],
        "summary": "Get a layer image category",
        "description": "Requires **assets:read** ability.",
        "operationId": "getLayerImageCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Category found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImageCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/layer-images": {
      "get": {
        "tags": [
          "Layer Images"
        ],
        "summary": "List layer images",
        "description": "List your layer images. Two ways to look one up:\n\n- **Listing** (no `search`): newest first, read straight from the database, so an image\n  appears as soon as it is created. Filter with `category_id` and an exact `name`.\n  Cursor-paginated (`cursor`, `per_page`).\n- **Search** (`search` given): matched by relevance through the search index, as in the\n  MCP tools -- partial words and small typos still match, so check the `name` of what\n  comes back. Filter with `category_id`. Page-numbered (`page`, `per_page`); `cursor` does\n  not apply. The index is updated in the background, so an image created a moment ago\n  may not be found by search yet -- use the exact `name` filter to find it immediately.\n\n`name` and `search` cannot be combined.\nRequires **assets:read** ability.\n",
        "operationId": "listLayerImages",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetCategoryId"
          },
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "$ref": "#/components/parameters/assetSearch"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/assetSearchPage"
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of layer images. A listing returns cursor pagination (`meta.next_cursor`);\na search returns page numbers (`meta.current_page`, `meta.last_page`, `meta.total`).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImagePage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Layer Images"
        ],
        "summary": "Upload a layer image",
        "description": "Upload one layer image (see \"Asset Libraries\" for how to send each kind of file):\n- Raster images (PNG, JPEG, GIF, WebP): `upload_id` from `POST /uploads`, or `url`.\n  Processed in the background -- returns `status: processing`. At most 128 megapixels;\n  a larger image, or one whose size cannot be read, is a `422` and the upload is removed.\n- SVG/EPS and GPX: multipart `file`, or `url`. An SVG `upload_id` is a `422`.\n\nThe file must match the category's type:\n- `clipart` / `vector` categories (or no category): raster images and SVG/EPS.\n- `gpx` categories: GPX route files. A GPX upload is rendered with your Mapbox access token\n  (Settings > Maps), so it is rejected with `422` when no token is configured.\n\nRequires **assets:write** ability.\n",
        "operationId": "createLayerImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LayerImageUploadFields"
                  },
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/AssetUploadIdUpload"
                      },
                      {
                        "$ref": "#/components/schemas/AssetUrlUpload"
                      }
                    ]
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AssetFileUpload"
                  },
                  {
                    "$ref": "#/components/schemas/LayerImageUploadFields"
                  }
                ],
                "description": "SVG/EPS and GPX files only. Raster images sent this way are rejected with `422` -- use `upload_id`."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`on_duplicate: skip` matched an existing layer image; it is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImage"
                }
              }
            }
          },
          "201": {
            "description": "Layer image created. Check `status` -- raster images start as `processing`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/layer-images/{id}": {
      "get": {
        "tags": [
          "Layer Images"
        ],
        "summary": "Get a layer image",
        "description": "Fetch one layer image. Poll this after an upload until `status` is `ready`.\nRequires **assets:read** ability.\n",
        "operationId": "getLayerImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Layer image found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LayerImage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Layer Images"
        ],
        "summary": "Delete a layer image",
        "description": "Delete a layer image. As in the portal, an image that is used in any artwork cannot be\ndeleted (`400`).\nRequires **assets:write** ability.\n",
        "operationId": "deleteLayerImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "204": {
            "description": "Layer image deleted"
          },
          "400": {
            "description": "The image is used in an artwork",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "inUse": {
                    "value": {
                      "message": "This image has already been used."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/clipart-categories": {
      "get": {
        "tags": [
          "Cliparts"
        ],
        "summary": "List clipart categories",
        "description": "List your clipart categories. Two ways to look one up:\n\n- **Listing** (no `search`): newest first, read straight from the database, so a category\n  appears as soon as it is created. Filter with `type` and `parent_id` and an exact `name`.\n  Cursor-paginated (`cursor`, `per_page`).\n- **Search** (`search` given): matched by relevance through the search index, as in the\n  MCP tools -- partial words and small typos still match, so check the `name` of what\n  comes back. Filter with `type` and `parent_id`. Page-numbered (`page`, `per_page`); `cursor` does\n  not apply. The index is updated in the background, so a category created a moment ago\n  may not be found by search yet -- use the exact `name` filter to find it immediately.\n\n`name` and `search` cannot be combined.\n\nCategories of every type are listed, but only `clipart` and `vector` categories can be\nfilled through this API.\nRequires **assets:read** ability.\n",
        "operationId": "listClipartCategories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "$ref": "#/components/parameters/assetSearch"
          },
          {
            "name": "type",
            "in": "query",
            "description": "Only return categories of this type.",
            "schema": {
              "$ref": "#/components/schemas/ClipartCategoryType"
            }
          },
          {
            "name": "parent_id",
            "in": "query",
            "description": "Only return direct sub-categories of this category. Use `0` for top-level categories.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/assetSearchPage"
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of clipart categories. A listing returns cursor pagination (`meta.next_cursor`);\na search returns page numbers (`meta.current_page`, `meta.last_page`, `meta.total`).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategoryPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Create a clipart category",
        "description": "Create a clipart or vector category, optionally nested under one of your categories.\nThe `type` cannot be changed later.\nRequires **assets:write** ability.\n",
        "operationId": "createClipartCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "type"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "example": "SKU123"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "clipart",
                      "vector"
                    ]
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "parent_id": {
                    "type": "integer",
                    "nullable": true,
                    "description": "Nest the new category under this one. It must be one of your categories and\nof the same type. Nesting is supported for `clipart` categories, up to 5 levels.\n"
                  },
                  "clipart_max_width": {
                    "$ref": "#/components/schemas/ClipartPreviewSize"
                  },
                  "on_duplicate": {
                    "$ref": "#/components/schemas/CategoryOnDuplicate"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`on_duplicate: skip` matched an existing category with the same parent, name and type; it is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategory"
                }
              }
            }
          },
          "201": {
            "description": "Category created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/clipart-categories/{id}": {
      "get": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Get a clipart category",
        "description": "Requires **assets:read** ability.",
        "operationId": "getClipartCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Category found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/cliparts": {
      "get": {
        "tags": [
          "Cliparts"
        ],
        "summary": "List cliparts",
        "description": "List your cliparts, newest first, cursor-paginated. Cliparts have no `search`: to find\ncliparts by name, search the clipart categories, then list a category with\n`category_id`, or look one up with the exact `name` filter. Sending `search` returns `422`.\nRequires **assets:read** ability.\n",
        "operationId": "listCliparts",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetCategoryId"
          },
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Cursor-paginated list of cliparts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Upload a clipart",
        "description": "Upload one clipart into a `clipart` or `vector` category (see \"Asset Libraries\" for how\nto send each kind of file):\n- Raster images (PNG, JPEG, GIF, WebP): `upload_id` from `POST /uploads`, or `url`.\n  Processed in the background -- returns `status: processing`.\n- SVG/EPS: multipart `file`, or `url`. An SVG `upload_id` is a `422`.\n\nA category holds at most 300 cliparts (your account may have a different limit), as in\nthe portal. Adding one to a full category is a `422` on `category_id`; replacing an\nexisting clipart (`on_duplicate: replace`) adds nothing, so it is allowed.\n`on_duplicate: replace` works for raster images only -- replacing with an SVG/EPS file is\na `422` on `on_duplicate`.\n\nRequires **assets:write** ability.\n",
        "operationId": "createClipart",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ClipartUploadFields"
                  },
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/AssetUploadIdUpload"
                      },
                      {
                        "$ref": "#/components/schemas/AssetUrlUpload"
                      }
                    ]
                  }
                ]
              }
            },
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AssetFileUpload"
                  },
                  {
                    "$ref": "#/components/schemas/ClipartUploadFields"
                  }
                ],
                "description": "SVG/EPS files only. Raster images sent this way are rejected with `422` -- use `upload_id`."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "An existing clipart with the same name was matched:\n- `on_duplicate: skip` -- returned unchanged.\n- `on_duplicate: replace` -- its image is being replaced (`status: processing` for raster images).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clipart"
                }
              }
            }
          },
          "201": {
            "description": "Clipart created. Check `status` -- raster images start as `processing`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clipart"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/cliparts/{id}": {
      "get": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Get a clipart",
        "description": "Fetch one clipart. Poll this after an upload until `status` is `ready`.\nRequires **assets:read** ability.\n",
        "operationId": "getClipart",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Clipart found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clipart"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Delete a clipart",
        "description": "Delete a clipart from its category. Artworks that use the category no longer offer it.\nRequires **assets:write** ability.\n",
        "operationId": "deleteClipart",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "204": {
            "description": "Clipart deleted"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/clipart-category-bulk-uploads": {
      "post": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Start a clipart bulk upload (zip)",
        "description": "Upload a whole folder of cliparts as one zip file. Folders in the zip become clipart\ncategories and the images inside them become cliparts -- the same as the portal's\nbulk upload.\n\nSteps:\n1. Call this endpoint with the zip's `filename` and `filesize` (bytes). You get back an\n   `upload_url` and the `upload_headers` to send with it.\n2. `PUT` the zip bytes to `upload_url` with those headers before `expires_at`.\n3. Call `POST /clipart-category-bulk-uploads/{id}/extract`.\n4. Poll `GET /clipart-category-bulk-uploads/{id}` until `status` is `done` or `error`.\n\nThe zip size limit and the number of bulk uploads you can have in progress at once\ndepend on your plan, as in the portal. The size is checked against `filesize` when the\nupload is created, and against the actual zip again when it is extracted; a zip over\nthe limit ends with `status: error`.\nRequires **assets:write** ability.\n",
        "operationId": "createClipartCategoryBulkUpload",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "filename",
                  "filesize"
                ],
                "properties": {
                  "filename": {
                    "type": "string",
                    "description": "Name of the zip file. Used as the top category's name when the zip has no single top folder.",
                    "example": "SKU123.zip"
                  },
                  "filesize": {
                    "type": "integer",
                    "description": "Size of the zip file in bytes.",
                    "example": 52428800
                  },
                  "parent_category_id": {
                    "type": "integer",
                    "nullable": true,
                    "description": "Create the categories under this clipart category. It must be one of your `clipart` categories."
                  },
                  "ignore_parent": {
                    "type": "boolean",
                    "default": true,
                    "description": "- `true`: skip the zip's top folder; each folder inside it becomes a category\n  directly under `parent_category_id` (or at the top level).\n- `false`: keep the top folder as a category. If the zip has no single top\n  folder, the zip's file name is used as the top category.\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Bulk upload created; upload the zip to `upload_url` next.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategoryBulkUploadStart"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "413": {
            "description": "The zip is larger than your plan allows",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/clipart-category-bulk-uploads/{id}": {
      "get": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Get a clipart bulk upload",
        "description": "Check the progress of a bulk upload. When `status` is `done`, `clipart_category_id`\nis the category the cliparts were created in.\nRequires **assets:read** ability.\n",
        "operationId": "getClipartCategoryBulkUpload",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Bulk upload found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategoryBulkUpload"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/clipart-category-bulk-uploads/{id}/extract": {
      "post": {
        "tags": [
          "Cliparts"
        ],
        "summary": "Extract an uploaded zip",
        "description": "Start creating categories and cliparts from the uploaded zip. Call this once the `PUT`\nto `upload_url` has finished. Unextracted uploads are picked up automatically after\n15 minutes.\nRequires **assets:write** ability.\n",
        "operationId": "extractClipartCategoryBulkUpload",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "202": {
            "description": "Extraction started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipartCategoryBulkUpload"
                }
              }
            }
          },
          "400": {
            "description": "The bulk upload has already been extracted or has failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalidStatus": {
                    "value": {
                      "message": "Can not start extracting bulk upload with invalid status"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "description": "The zip has not been uploaded to `upload_url` yet. Retry once the `PUT` has finished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationError"
                },
                "examples": {
                  "notUploaded": {
                    "value": {
                      "message": "The ZIP has not been uploaded yet. PUT it to the upload_url first.",
                      "errors": {
                        "id": [
                          "The ZIP has not been uploaded yet. PUT it to the upload_url first."
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/library-image-categories": {
      "get": {
        "tags": [
          "Library Images"
        ],
        "summary": "List library image categories",
        "description": "List your library image categories, newest first, cursor-paginated. As in the portal,\nwhich lists a type's categories all at once, there is no `search`: look one up with the\nexact `name` filter.\nSending `search` returns `422`.\nRequires **assets:read** ability.\n",
        "operationId": "listLibraryImageCategories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Only return categories of this type.",
            "schema": {
              "$ref": "#/components/schemas/LibraryImageType"
            }
          },
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "Cursor-paginated list of library image categories",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImageCategoryCursorPage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Library Images"
        ],
        "summary": "Create a library image category",
        "description": "Create a library image category. Its `type` decides which images it can hold and cannot\nbe changed later.\nRequires **assets:write** ability.\n",
        "operationId": "createLibraryImageCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "type",
                  "name"
                ],
                "properties": {
                  "type": {
                    "$ref": "#/components/schemas/LibraryImageType"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "example": "SKU123"
                  },
                  "description": {
                    "type": "string",
                    "nullable": true
                  },
                  "on_duplicate": {
                    "$ref": "#/components/schemas/CategoryOnDuplicate"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`on_duplicate: skip` matched an existing category with the same name and type; it is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImageCategory"
                }
              }
            }
          },
          "201": {
            "description": "Category created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImageCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      }
    },
    "/library-image-categories/{id}": {
      "get": {
        "tags": [
          "Library Images"
        ],
        "summary": "Get a library image category",
        "description": "Requires **assets:read** ability.",
        "operationId": "getLibraryImageCategory",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Category found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImageCategory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/library-images": {
      "get": {
        "tags": [
          "Library Images"
        ],
        "summary": "List library images",
        "description": "List your library images. Two ways to look an image up:\n\n- **Listing** (no `search`): newest first, read straight from the database, so an image\n  appears as soon as it is created. Filter with `type`, `category_id` and an exact `name`.\n  Cursor-paginated (`cursor`, `per_page`).\n- **Search** (`search` given): matched by relevance through the search index, as in the\n  portal's image library -- partial words and small typos still match, so check the\n  `name` of what comes back. Filter with `type` and `category_id`. Page-numbered\n  (`page`, `per_page`); `cursor` does not apply. The index is updated in the background,\n  so an image created a moment ago may not be found by search yet -- use the exact\n  `name` filter to find it immediately.\n\n`name` and `search` cannot be combined.\nRequires **assets:read** ability.\n",
        "operationId": "listLibraryImages",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "Only return images of this type.",
            "schema": {
              "$ref": "#/components/schemas/LibraryImageType"
            }
          },
          {
            "$ref": "#/components/parameters/assetCategoryId"
          },
          {
            "$ref": "#/components/parameters/assetName"
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search by name, ranked by relevance through the search index (partial words and\nsmall typos match), as the portal's image library does. Names are split into words\nat spaces, `-` and `_`, so `mask` finds `SKU123_mask`. A leading `-` is read as part\nof the text, not as an exclusion. Cannot be combined with `name`.\n",
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "example": "SKU123 mask"
          },
          {
            "$ref": "#/components/parameters/cursor"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number, for `search` results only.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "$ref": "#/components/parameters/assetPerPage"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of library images. A listing returns cursor pagination (`meta.next_cursor`);\na search returns page numbers (`meta.current_page`, `meta.last_page`, `meta.total`).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImagePage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          }
        }
      },
      "post": {
        "tags": [
          "Library Images"
        ],
        "summary": "Upload a library image",
        "description": "Upload one library image: `upload_id` from `POST /uploads`, or `url` (see \"Asset\nLibraries\"). Multipart uploads are not accepted.\n\nThe file must be a format its `type` takes (see \"Library Images\"; a `mask` must carry\ntransparency):\n- A raster image is processed in the background and returns `status: processing`.\n  At most 128 megapixels; a larger image, or one whose size cannot be read, is a `422`.\n- An SVG must have a `viewBox`. It is kept as a vector and returns `status: ready`.\n\nA file that is refused is removed, so create a new upload to try again.\nRequires **assets:write** ability.\n",
        "operationId": "createLibraryImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LibraryImageUploadFields"
                  },
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/AssetUploadIdUpload"
                      },
                      {
                        "$ref": "#/components/schemas/AssetUrlUpload"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`on_duplicate: skip` matched an existing library image of the same type and name in the same category; it is returned unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImage"
                }
              }
            }
          },
          "201": {
            "description": "Library image created: `status: processing` for a raster image, `ready` for an SVG.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/library-images/{id}": {
      "get": {
        "tags": [
          "Library Images"
        ],
        "summary": "Get a library image",
        "description": "Fetch one library image. Poll this after an upload until `status` is `ready`.\nRequires **assets:read** ability.\n",
        "operationId": "getLibraryImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:read",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "200": {
            "description": "Library image found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Library Images"
        ],
        "summary": "Delete a library image",
        "description": "Delete a library image. As in the portal, it is kept (`422`) while it is still being\nprocessed, or while anything uses it -- products, campaigns, clipart categories,\nmockups, artworks or global options. The response then lists what uses it, so you can\nfree it first.\n\nAn image whose processing has not finished after 60 minutes is treated as failed and\ncan be deleted.\nRequires **assets:write** ability.\n",
        "operationId": "deleteLibraryImage",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-required-ability": "assets:write",
        "parameters": [
          {
            "$ref": "#/components/parameters/assetId"
          }
        ],
        "responses": {
          "204": {
            "description": "Library image deleted"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "description": "The image is still being processed, or is in use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryImageInUse"
                },
                "examples": {
                  "inUse": {
                    "value": {
                      "message": "This image is still in use.",
                      "usages": [
                        {
                          "type": "artwork",
                          "id": 1234,
                          "name": "SKU123 Mug"
                        },
                        {
                          "type": "product",
                          "id": 56,
                          "name": "Classic Mug"
                        }
                      ]
                    }
                  },
                  "processing": {
                    "value": {
                      "message": "This image is still being processed."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Include `Authorization: Bearer <token>` header.\nToken must have the required abilities.\n"
      }
    },
    "parameters": {
      "s": {
        "name": "s",
        "in": "query",
        "description": "Search orders by order name (fuzzy search). Searches through the order's display name/reference.\nUseful for finding orders by customer reference numbers or partial name matches.\n",
        "schema": {
          "type": "string",
          "nullable": true
        },
        "example": "ORDER-123"
      },
      "sort": {
        "name": "sort",
        "in": "query",
        "description": "Field to sort the results by. Determines the primary ordering of returned orders.\nMost commonly used fields: `created_at` for chronological order, `total_price` for value-based sorting.\nDefault is `created_at` when not specified.\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "created_at",
            "total_price",
            "updated_at"
          ],
          "default": "created_at"
        },
        "example": "created_at"
      },
      "sort_type": {
        "name": "sort_type",
        "in": "query",
        "description": "Sort direction for the specified sort field. Use `desc` for newest/highest first,\n`asc` for oldest/lowest first. When sorting by `created_at`, `desc` shows most recent orders first.\nDefault is `desc` when not specified.\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "asc",
            "desc"
          ],
          "default": "desc"
        },
        "example": "desc"
      },
      "per_page": {
        "name": "per_page",
        "in": "query",
        "description": "Number of orders to return per page using cursor-based pagination.\nHigher values reduce API calls but increase response size and processing time.\nRecommended range: 10-100 for most use cases. Maximum allowed: 500.\n",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 500,
          "default": 25
        },
        "example": 25
      },
      "start_date": {
        "name": "start_date",
        "in": "query",
        "description": "Filter results created on or after this date (inclusive). Must be a valid ISO 8601 date or datetime\nstring; an invalid value returns a `422` error. Timezone should be UTC (Z suffix) or include offset.\n\nCan be provided on its own, without `end_date`. If omitted, or older than 60 days ago, it is clamped\nto 60 days ago — the maximum date range this API allows is 60 days.\n",
        "schema": {
          "type": "string",
          "format": "date-time",
          "nullable": true
        },
        "example": "2025-01-01T00:00:00Z"
      },
      "end_date": {
        "name": "end_date",
        "in": "query",
        "description": "Filter results created on or before this date (inclusive). Must be a valid ISO 8601 date or datetime\nstring; an invalid value returns a `422` error. Timezone should be UTC (Z suffix) or include offset.\n\nCan be provided on its own, without `start_date`. If omitted, more than 60 days after `start_date`,\nor in the future, it is clamped to now — the maximum date range this API allows is 60 days.\n",
        "schema": {
          "type": "string",
          "format": "date-time",
          "nullable": true
        },
        "example": "2025-01-31T23:59:59Z"
      },
      "status": {
        "name": "status",
        "in": "query",
        "description": "Filter by internal Teeinblue order processing status. Represents the lifecycle of order customization:\n- `created`: Order received, not yet processed\n- `email_sent`: Notification sent to customer\n- `partial_customized`: Some items customized, others pending\n- `customized`: All customization completed, ready for fulfillment\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "created",
            "email_sent",
            "partial_customized",
            "customized"
          ],
          "example": "created"
        }
      },
      "tib_status": {
        "name": "tib_status",
        "in": "query",
        "description": "Filter by internal Teeinblue order processing status. Represents the lifecycle of order customization:\n- `1`: Awaiting customization\n- `2`: Generating\n- `3`: Partially generating\n- `4`: Paused\n- `5`: Partially paused\n- `6`: Ready\n- `7`: Partially ready\n- `8`: Sending\n- `9`: Partially sending\n- `10`: Sent\n- `11`: Partially sent\n- `12`: Fulfilled\n- `13`: Partially fulfilled\n- `14`: Error\n- `15`: Partially error\n- `16`: Cancelled\n- `17`: Missing customization\n",
        "example": "1",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17
          ],
          "example": 1
        }
      },
      "fulfillment_status": {
        "name": "fulfillment_status",
        "in": "query",
        "description": "Filter by physical fulfillment status. Controls which orders are returned based on shipping/delivery state:\n- `fulfilled`: All items shipped and delivered\n- `partial`: Some items fulfilled, others pending\n- `cancelled`: Fulfillment cancelled (e.g., by customer request)\n- `not_eligible`: Items cannot be fulfilled (e.g., discontinued products)\n- `restocked`: Items returned to inventory\n- `null`: Orders not yet sent for fulfillment (pending or in processing)\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "fulfilled",
            "partial",
            "cancelled",
            "not_eligible",
            "restocked"
          ]
        },
        "example": "fulfilled"
      },
      "financial_status": {
        "name": "financial_status",
        "in": "query",
        "description": "Filter by payment status. Essential for determining which orders are paid and ready for processing:\n- `pending`: Payment not yet processed\n- `authorized`: Payment method verified but not captured\n- `partially_paid`: Partial payment received (layaway/installments)\n- `paid`: Full payment received and confirmed\n- `partially_refunded`: Some money returned to customer\n- `refunded`: Full refund issued\n- `voided`: Payment cancelled before capture\n- `cancelled`: Order payment cancelled\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "pending",
            "authorized",
            "partially_paid",
            "paid",
            "partially_refunded",
            "refunded",
            "voided",
            "cancelled"
          ]
        },
        "example": "paid"
      },
      "test": {
        "name": "test",
        "in": "query",
        "description": "Filter test/sandbox orders. Test orders are created during development, store setup, or payment testing.\n- `\"1\"`: Include ONLY test orders (for development/testing)\n- `\"0\"`: Include ONLY live orders (production data)\n- omit parameter: Include ONLY live orders (default behavior)\nNote: Most production integrations should use `\"0\"` or omit this parameter entirely.\n",
        "schema": {
          "type": "string",
          "enum": [
            "0",
            "1"
          ],
          "nullable": true,
          "default": "0"
        },
        "example": "0"
      },
      "by_teeinblue": {
        "name": "by_teeinblue",
        "in": "query",
        "description": "Filter orders by their creation source. Determines whether orders were placed through Teeinblue or external platforms:\n- `\"1\"`: Orders created directly through Teeinblue platform\n- `\"0\"`: Orders synced from external platforms (Shopify, Etsy, etc.)\n- omit parameter: Include orders from all sources\nUseful for separating direct sales from platform marketplace sales.\n",
        "schema": {
          "type": "string",
          "enum": [
            "0",
            "1"
          ],
          "nullable": true
        },
        "example": "1"
      },
      "cursor": {
        "name": "cursor",
        "in": "query",
        "description": "Pagination cursor for retrieving the next set of results. This is an opaque string\nreturned in the `meta.next_cursor` field of the previous response. Do not manually construct\ncursor values - always use the exact string provided by the API. For first page requests,\nomit this parameter entirely.\n",
        "schema": {
          "type": "string",
          "nullable": true
        },
        "example": "eyJjcmVhdGVkX2F0IjoiMjAyNS0wMS0xNSAxMDozMDowMCIsImlkIjoxMjM0NX0"
      },
      "platform": {
        "name": "platform",
        "in": "query",
        "description": "Filter orders by the e-commerce platform they originated from. Useful for integrations\nthat need to separate orders by sales channel. Common platforms include:\n- `etsy`: Etsy marketplace orders\n- `shopify`: Shopify store orders\n- `woocommerce`: WooCommerce store orders\nNote: This parameter is automatically set for platform-specific endpoints like `/orders/etsy`.\n",
        "schema": {
          "type": "string",
          "nullable": true,
          "enum": [
            "etsy",
            "shopify",
            "woocommerce"
          ]
        },
        "example": "etsy"
      },
      "platforms": {
        "name": "platforms",
        "in": "query",
        "description": "Filter by the platform(s).\n\nNote: This API expects **array query params** in the bracket form:\n- Single value: `platforms[]=etsy`\n- Multiple values: `platforms[]=etsy&platforms[]=shopify`\n\nUsing `platforms=etsy` will result in a validation error.\n\nValid platforms include:\n- `etsy`\n- `shopify`\n- `boundless`\n",
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "etsy",
              "shopify",
              "boundless"
            ]
          }
        }
      },
      "platformDomain": {
        "name": "shop",
        "in": "query",
        "required": true,
        "description": "The platform domain of the shop\n",
        "schema": {
          "type": "string",
          "nullable": false
        },
        "example": "my-shop.myshopify.com"
      },
      "includeCustomization": {
        "name": "include_customization",
        "in": "query",
        "required": false,
        "description": "Include customization data and customer uploads in the response",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "includeDesigns": {
        "name": "include_designs",
        "in": "query",
        "required": false,
        "description": "Include designs data in the response",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "includeData": {
        "name": "include_data",
        "in": "query",
        "required": false,
        "description": "Include the full 'data' and 'customer_uploads' fields in the response. These require extra\nper-item lookups, so on the list endpoint they default to `false` and must be requested\nexplicitly. On the single-customization endpoint they default to `true`.\n",
        "schema": {
          "type": "boolean"
        },
        "example": true
      },
      "instance_ids": {
        "name": "instance_ids",
        "in": "query",
        "description": "Filter by one or more instance (store) IDs, scoped to the authenticated user's own instances.\n\nNote: This API expects **array query params** in the bracket form:\n- Single value: `instance_ids[]=123`\n- Multiple values: `instance_ids[]=123&instance_ids[]=456`\n",
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "example": [
          123,
          456
        ]
      },
      "campaign_ids": {
        "name": "campaign_ids",
        "in": "query",
        "description": "Filter by one or more campaign IDs.\n\nNote: This API expects **array query params** in the bracket form, e.g. `campaign_ids[]=6789`.\n",
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "example": [
          6789
        ]
      },
      "platform_product_ids": {
        "name": "platform_product_ids",
        "in": "query",
        "description": "Filter by one or more platform product IDs.\n\nNote: This API expects **array query params** in the bracket form, e.g. `platform_product_ids[]=321`.\n",
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "example": [
          321
        ]
      },
      "assetId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "ID of the item.",
        "schema": {
          "type": "integer"
        },
        "example": 12345
      },
      "assetCategoryId": {
        "name": "category_id",
        "in": "query",
        "description": "Only return items in this category.",
        "schema": {
          "type": "integer"
        },
        "example": 321
      },
      "assetName": {
        "name": "name",
        "in": "query",
        "description": "Only return items whose name is exactly this value (case-sensitive). Use it to check\nwhether an item already exists, e.g. `SKU123_BG`.\n",
        "schema": {
          "type": "string"
        },
        "example": "SKU123_BG"
      },
      "assetSearch": {
        "name": "search",
        "in": "query",
        "description": "Search by name, ranked by relevance through the search index (partial words and small\ntypos match). Names are split into words at spaces, `-` and `_`, so `BG` finds\n`SKU123_BG`. A leading `-` is read as part of the text, not as an exclusion. Results are\npage-numbered. Cannot be combined with `name`.\n",
        "schema": {
          "type": "string",
          "maxLength": 255
        },
        "example": "SKU123"
      },
      "assetSearchPage": {
        "name": "page",
        "in": "query",
        "description": "Page number, for `search` results only.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        }
      },
      "assetPerPage": {
        "name": "per_page",
        "in": "query",
        "description": "Number of items to return per page.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 25
        },
        "example": 25
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid authentication",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "unauthorized": {
                "value": {
                  "message": "Unauthenticated."
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Authenticated but lacking required ability",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "forbidden": {
                "value": {
                  "message": "Forbidden."
                }
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "The item does not exist or does not belong to you",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "notFound": {
                "value": {
                  "message": "Not found."
                }
              }
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "Request parameters failed validation (e.g. an unparseable start_date/end_date)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "examples": {
              "invalidDate": {
                "value": {
                  "message": "The end date field must be a valid date.",
                  "errors": {
                    "end_date": [
                      "The end date field must be a valid date."
                    ]
                  }
                }
              },
              "fileTooLarge": {
                "value": {
                  "message": "The file field must not be greater than 20480 kilobytes.",
                  "errors": {
                    "file": [
                      "The file field must not be greater than 20480 kilobytes."
                    ]
                  }
                }
              },
              "rasterAsMultipart": {
                "value": {
                  "message": "Raster images must be uploaded with upload_id or url.",
                  "errors": {
                    "file": [
                      "Raster images must be uploaded with upload_id or url."
                    ]
                  }
                }
              },
              "categoryNotFound": {
                "value": {
                  "message": "The selected category id is invalid.",
                  "errors": {
                    "category_id": [
                      "The selected category id is invalid."
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "A rate limit was reached: either the daily limit for this kind of item (shared with\nuploads made in the portal, see \"Asset Libraries\") or the per-minute API request limit\nthat applies account-wide (see \"Rate Limiting\"). `Retry-After` says how many seconds to\nwait; the `X-RateLimit-*` headers are only populated for the per-minute limit.\n",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            },
            "description": "Seconds to wait before retrying."
          },
          "X-RateLimit-Limit": {
            "schema": {
              "type": "integer"
            },
            "description": "Per-minute limit only. The limit for the current window."
          },
          "X-RateLimit-Remaining": {
            "schema": {
              "type": "integer"
            },
            "description": "Per-minute limit only. Always `0` on this response."
          },
          "X-RateLimit-Reset": {
            "schema": {
              "type": "integer"
            },
            "description": "Per-minute limit only. Unix timestamp when the window resets."
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "dailyLimit": {
                "value": {
                  "message": "Reach the limit 1000 records in 1 day. Wait until 2026-10-09 08:00:00 to try again or contact support to increase."
                }
              },
              "perMinuteLimit": {
                "value": {
                  "message": "Too Many Attempts."
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "Health": {
        "type": "object",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "example": "ok"
          }
        }
      },
      "Version": {
        "type": "object",
        "required": [
          "version"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0.0"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "description": "Map of field name to a list of validation error messages for that field.",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "Address": {
        "type": "object",
        "description": "Shipping address information for order delivery.\nContains standardized address fields compatible with most shipping carriers.\n",
        "properties": {
          "first_name": {
            "type": "string",
            "nullable": true,
            "description": "Recipient's first name",
            "example": "John"
          },
          "last_name": {
            "type": "string",
            "nullable": true,
            "description": "Recipient's last name",
            "example": "Smith"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Recipient's full name, based on first_name and last_name",
            "example": "John Smith"
          },
          "company": {
            "type": "string",
            "nullable": true,
            "description": "Company name for business deliveries. Optional for residential addresses.",
            "example": "Acme Corporation"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "Contact phone number for delivery. May be required by some carriers.",
            "example": "+1-555-123-4567"
          },
          "address1": {
            "type": "string",
            "nullable": true,
            "description": "Primary street address line (street number, street name)",
            "example": "123 Main Street"
          },
          "address2": {
            "type": "string",
            "nullable": true,
            "description": "Secondary address line (apartment, suite, unit number)",
            "example": "Apt 4B"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "description": "City/town name",
            "example": "New York"
          },
          "province": {
            "type": "string",
            "nullable": true,
            "description": "Full state/province name",
            "example": "New York"
          },
          "province_code": {
            "type": "string",
            "nullable": true,
            "description": "State/province abbreviation code (e.g., 'NY', 'CA', 'ON')",
            "example": "NY"
          },
          "country": {
            "type": "string",
            "nullable": true,
            "description": "Full country name",
            "example": "United States"
          },
          "country_code": {
            "type": "string",
            "nullable": true,
            "description": "ISO 3166-1 alpha-2 country code (2 letters)",
            "example": "US"
          },
          "zip": {
            "type": "string",
            "nullable": true,
            "description": "Postal/ZIP code",
            "example": "10001"
          }
        }
      },
      "BatchUpdateEtsyOrderRequestItem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/UpdateEtsyOrderRequest"
          },
          {
            "type": "object",
            "description": "Single Etsy order update item used in batch update operations.\n",
            "properties": {
              "etsy_id": {
                "type": "string",
                "description": "Etsy order ID (e.g., `1234567890`) or Teeinblue order ID (e.g., `12345`), Etsy order ID takes precedence.",
                "example": "1234567890"
              }
            }
          }
        ]
      },
      "BatchUpdateEtsyOrderResponseItem": {
        "type": "object",
        "description": "Single Etsy order update response item used in batch update operations.\n",
        "properties": {
          "etsy_id": {
            "type": "string",
            "description": "Etsy order ID for this update item (matches with the request item's `etsy_id` )",
            "example": "1234567890"
          },
          "status": {
            "type": "string",
            "description": "Status of the update item\n- `success`: Order updated successfully\n- `fail`: Order not updated due to errors\n",
            "example": "success"
          },
          "order": {
            "nullable": true,
            "type": "object",
            "$ref": "#/components/schemas/PublicOrder",
            "description": "Order details for this update item, if successful"
          },
          "errors": {
            "type": "object",
            "nullable": true,
            "description": "Errors for this update item, if any",
            "example": {
              "message": "Order not found"
            }
          }
        }
      },
      "Customer": {
        "type": "object",
        "description": "Customer information associated with an order.\nMay contain personal details for account holders or limited info for guest checkouts.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique internal customer identifier in Teeinblue system",
            "example": 12345
          },
          "platform_linked_id": {
            "type": "string",
            "nullable": true,
            "description": "Customer identifier from the originating platform (Shopify customer ID, Etsy user ID, etc.).\nUsed for syncing customer data and linking repeat purchases. Null for direct Teeinblue customers.\n",
            "example": "shopify_customer_987654321"
          },
          "first_name": {
            "type": "string",
            "nullable": true,
            "description": "Customer's first name",
            "example": "Jane"
          },
          "last_name": {
            "type": "string",
            "nullable": true,
            "description": "Customer's last name",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "format": "email",
            "description": "Customer's email address for order updates and support",
            "example": "jane.doe@example.com"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "Customer's phone number for delivery coordination",
            "example": "+1-555-987-6543"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this customer record was first created in the system",
            "example": "2024-12-01T09:15:00Z"
          }
        }
      },
      "CustomerUpload": {
        "type": "object",
        "description": "Customer upload information for a print area.\n",
        "properties": {
          "original_url": {
            "type": "string",
            "format": "uri",
            "description": "Original URL of the customer upload",
            "example": "https://cdn.teeinblue.com/uploads/567-upload.jpg"
          },
          "master_url": {
            "type": "string",
            "format": "uri",
            "description": "Master URL of the customer upload",
            "example": "https://cdn.teeinblue.com/uploads/567-upload.jpg"
          }
        }
      },
      "Customization": {
        "type": "object",
        "description": "Customization data for an order item, including artwork, personalization, and print area details.\nRepresents the customer's design choices and uploaded assets for production.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this customization",
            "example": 9876
          },
          "uuid": {
            "type": "string",
            "description": "Universally unique identifier (UUID) for this customization",
            "example": "6d823e4d-8f21-41f8-b461-e97c981880bc"
          },
          "data": {
            "type": "object",
            "description": "Raw customization data including print areas, artwork, and personalization details. Included by default on the single-customization endpoint (omit with `include_data=false`); on the list endpoint, opt in with `include_data=true`.",
            "example": {
              "Text layer": "Lorem ipsum dolor sit amet"
            }
          },
          "customer_uploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerUpload"
            },
            "nullable": true,
            "description": "Customer uploads for this print area. Included by default on the single-customization endpoint (omit with `include_data=false`); on the list endpoint, opt in with `include_data=true`.",
            "example": [
              {
                "original_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg",
                "master_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg"
              }
            ]
          },
          "designs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomizationDesign"
            },
            "description": "Array of design data associated with this customization, returned only when `include_designs=true` is specified in the request"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this customization was first created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this customization was last modified",
            "example": "2025-01-15T14:45:00Z"
          }
        }
      },
      "CustomizationDesign": {
        "type": "object",
        "description": "Design data for a customization, including artwork and personalization details.\nRepresents the customer's design choices for production.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this design",
            "example": 5678
          },
          "key": {
            "type": "string",
            "description": "Key identifying the design (e.g., 'front', 'back', 'sleeve')",
            "example": "front"
          },
          "thumbnail": {
            "type": "string",
            "format": "uri",
            "description": "Thumbnail URL for this design",
            "example": "https://cdn.teeinblue.com/uploads/567-thumbnail.jpg"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Full-size URL for this design",
            "example": "https://cdn.teeinblue.com/uploads/567-design.jpg"
          },
          "width": {
            "type": "integer",
            "description": "Width of the design in pixels",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the design in pixels",
            "example": 1200
          },
          "error_message": {
            "type": "string",
            "nullable": true,
            "description": "Error message if there was an issue with this design (e.g., missing artwork)",
            "example": "The vector renderer does not support raster images. Please upload a vector file (SVG, EPS, PDF) for best results."
          },
          "is_processing": {
            "type": "boolean",
            "description": "True if the design is still being processed (e.g., generating previews)",
            "example": false
          }
        }
      },
      "PublicOrderItem": {
        "type": "object",
        "description": "Order line item representing a single product/variant ordered by the customer.\nContains product details, customization information, fulfillment tracking, and artwork data.\nExcludes internal fields like is_editable and order relation for external API consumers.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this order item",
            "example": 12345
          },
          "campaign_id": {
            "type": "integer",
            "nullable": true,
            "description": "Internal campaign ID if this item is from a Teeinblue campaign. Null for non-campaign items.",
            "example": 6789
          },
          "customization_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID linking to customization data (artwork, personalization). Null for non-customizable items.",
            "example": 9876
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "Product title/name as displayed to customer. May include variant details like size/color.",
            "example": "Custom T-Shirt - Large, Navy Blue"
          },
          "fulfillment_status": {
            "type": "string",
            "nullable": true,
            "description": "Physical fulfillment status for this specific item (may differ from order-level status):\n- `fulfilled`: Item shipped and delivered\n- `partial`: Item partially fulfilled (rare for single items)\n- `cancelled`: Fulfillment cancelled for this item\n- `not_eligible`: Item cannot be fulfilled (discontinued, etc.)\n- `restocked`: Item returned to inventory\n- `null`: Not yet sent for fulfillment\n",
            "enum": [
              "fulfilled",
              "partial",
              "cancelled",
              "not_eligible",
              "restocked"
            ],
            "example": "fulfilled"
          },
          "quantity": {
            "type": "integer",
            "nullable": true,
            "description": "Number of units ordered for this item",
            "example": 2
          },
          "is_fulfilled": {
            "type": "boolean",
            "nullable": true,
            "description": "Quick boolean check if item has been fulfilled. Computed from fulfillment_status.",
            "example": true
          },
          "platform_sku": {
            "type": "string",
            "nullable": true,
            "description": "SKU as defined in the original platform (Shopify, Etsy, etc.). Used for inventory sync.",
            "example": "TSHIRT-LG-NAVY"
          },
          "sku": {
            "type": "string",
            "nullable": true,
            "description": "Internal Teeinblue SKU. May differ from platform_sku due to customization or variant mapping.",
            "example": "TB-TSHIRT-LG-NAVY-001"
          },
          "by_teeinblue": {
            "type": "boolean",
            "nullable": true,
            "description": "True if this item uses Teeinblue's print-on-demand service. False for merchant's own products.",
            "example": true
          },
          "status": {
            "type": "string",
            "nullable": true,
            "description": "Internal item processing status. Tracks customization and preparation workflow.\n- `1`: Generating\n- `2`: Ready to fulfill\n- `3`: Paused\n- `6`: Sending\n- `7`: Error\n- `8`: Sent\n- `9`: Fulfilled\n- `10`: Cancelled\n- `11`: Pending custom\n- `12`: Customized\n- `13`: Missing customization\n",
            "example": "ready_for_production"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this order item was first created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this order item was last modified",
            "example": "2025-01-15T14:45:00Z"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Soft deletion timestamp. Null if item is active. Items with non-null deleted_at are displayed with status `Archived` in TIB portal.",
            "example": null
          },
          "properties": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true,
            "description": "Additional metadata and custom fields for this item. May include:\n- Platform-specific attributes\n- Custom product options\n- Third-party integration data\n",
            "example": {
              "gift_message": "Happy Birthday!",
              "rush_order": true
            }
          },
          "tracking_number": {
            "type": "string",
            "nullable": true,
            "description": "Shipping tracking number provided by carrier. Available after item ships.",
            "example": "1Z999AA1234567890"
          },
          "tracking_url": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Direct URL to track shipment on carrier's website. Generated from tracking_number.",
            "example": "https://www.ups.com/track?tracknum=1Z999AA1234567890"
          },
          "shipment_carrier": {
            "type": "string",
            "nullable": true,
            "description": "Shipping carrier name (UPS, FedEx, USPS, etc.). Set when item ships.",
            "example": "UPS"
          },
          "print_areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintArea"
            },
            "nullable": true,
            "description": "Array of print areas (artwork zones) for this item. Each print area represents\na customizable area on the product (front, back, sleeve, etc.) with associated artwork.\nOnly present for customizable/printable items.\n"
          },
          "variant": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProductVariant"
              },
              {
                "nullable": true
              }
            ],
            "description": "Product variant details (size, color, style). Contains product and fulfillment information."
          },
          "fulfiller": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Fulfiller"
              },
              {
                "nullable": true
              }
            ],
            "description": "Fulfillment partner information. Present when item is assigned to a fulfillment service."
          },
          "submit_customization_url": {
            "type": "string",
            "format": "uri",
            "description": "Special URL for submitting customization data for this item. Only present when:\n- Item requires customization\n- Customization is not yet complete\n- User has permission to submit customization\nUsed by external systems to trigger customization workflows.\n",
            "example": "https://api.teeinblue.com/customizations/submit/abc123"
          }
        }
      },
      "PublicOrder": {
        "type": "object",
        "description": "Complete order information including customer details, line items, shipping, and payment status.\nRepresents a single customer order that may contain multiple items and customizations.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique Teeinblue identifier for this order",
            "example": 12345
          },
          "order_name": {
            "type": "string",
            "description": "Human-readable order identifier shown to customers and staff.\nFormat varies by platform (e.g., '#1001', 'ORDER-2025-001', etc.)\n",
            "example": "#1001"
          },
          "platform_order_id": {
            "type": "string",
            "nullable": true,
            "description": "Original order identifier from the source platform (Shopify, Etsy, etc.).\n",
            "example": "4567890123"
          },
          "test_order": {
            "type": "boolean",
            "default": false,
            "description": "Indicates if this is a test/sandbox order created during development or store setup.\nTest orders should not be included in sales reports or fulfillment.\n",
            "example": false
          },
          "total_price": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "description": "Total order value including items, shipping, taxes, and discounts.\nAlways in the currency specified by the currency field.\n",
            "example": 29.99
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "ISO 4217 currency code for all monetary values in this order",
            "example": "USD"
          },
          "fulfillment_status": {
            "type": "string",
            "nullable": true,
            "description": "Overall physical fulfillment status for the entire order:\n- `fulfilled`: All items have been shipped\n- `partial`: Some items shipped, others pending\n- `cancelled`: Fulfillment cancelled by customer or merchant\n- `not_eligible`: Order cannot be fulfilled (payment issues, discontinued products)\n- `restocked`: Items returned to inventory\n- `null`: Not yet sent for fulfillment (still processing)\n",
            "enum": [
              "fulfilled",
              "partial",
              "cancelled",
              "not_eligible",
              "restocked"
            ],
            "example": "fulfilled"
          },
          "financial_status": {
            "type": "string",
            "nullable": true,
            "description": "Payment status for this order. Critical for determining if order should be processed:\n- `pending`: Payment not yet processed\n- `authorized`: Payment authorized but not captured\n- `partially_paid`: Partial payment received (installments/layaway)\n- `paid`: Full payment received and confirmed\n- `partially_refunded`: Some amount refunded to customer\n- `refunded`: Full refund issued\n- `voided`: Payment authorization cancelled before capture\n- `cancelled`: Payment cancelled by customer or system\n",
            "enum": [
              "pending",
              "authorized",
              "partially_paid",
              "paid",
              "partially_refunded",
              "refunded",
              "voided",
              "cancelled"
            ],
            "example": "paid"
          },
          "status": {
            "type": "string",
            "nullable": true,
            "description": "Internal Teeinblue processing status tracking order lifecycle:\n- `created`: Order received but not yet processed\n- `email_sent`: Customer notification sent\n- `partial_customized`: Some items have completed customization\n- `customized`: All customization work completed, ready for fulfillment\n",
            "enum": [
              "created",
              "email_sent",
              "partial_customized",
              "customized"
            ],
            "example": "customized"
          },
          "tib_status": {
            "type": "string",
            "nullable": true,
            "description": "Internal Teeinblue processing status tracking order lifecycle. Represents the lifecycle of order customization:\n- `1`: Awaiting customization\n- `2`: Generating\n- `3`: Partially generating\n- `4`: Paused\n- `5`: Partially paused\n- `6`: Ready\n- `7`: Partially ready\n- `8`: Sending\n- `9`: Partially sending\n- `10`: Sent\n- `11`: Partially sent\n- `12`: Fulfilled\n- `13`: Partially fulfilled\n- `14`: Error\n- `15`: Partially error\n- `16`: Cancelled\n- `17`: Missing customization\n",
            "example": "1"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "Email address of the customer",
            "example": "jane.doe@example.com"
          },
          "contact_email": {
            "type": "string",
            "nullable": true,
            "description": "Contact email for the order",
            "example": "jane.doe@example.com"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "Note for the order",
            "example": "Please send to the address below: 123 Main St, Anytown, USA"
          },
          "shipping_method": {
            "type": "string",
            "nullable": true,
            "description": "Shipping service selected by customer or assigned by merchant.\nExamples: 'Standard Shipping', 'Express', 'Priority Mail', etc.\n",
            "example": "Standard Shipping"
          },
          "instance_name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the store/instance where this order was placed.\nUseful for multi-store merchants to identify the sales channel.\n",
            "example": "My Awesome T-Shirt Store"
          },
          "platform_domain": {
            "type": "string",
            "nullable": true,
            "description": "Domain/URL of the originating platform store.\nExamples: 'my-shop.myshopify.com', 'mystore.etsy.com', 'example.com'\n",
            "example": "my-shop.myshopify.com"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp when the order was first created/placed",
            "example": "2025-01-15T10:30:00Z"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp when the order was soft deleted. Orders with non-null deleted_at are displayed with TIB status `Archived` in the portal.",
            "example": "2025-01-15T10:30:00Z"
          },
          "address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ],
            "description": "Customer shipping address for this order"
          },
          "line_items": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/PublicOrderItem"
            },
            "description": "Array of individual items/products included in this order.\nEach line item represents a specific product variant with quantity and customization.\n**Note: Only present in single order detail responses (GET /orders/{orderId}, GET /orders/etsy/{etsyId}), not in list responses.**\n"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Customer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Customer information associated with this order. May be null for guest checkouts."
          }
        }
      },
      "PrintArea": {
        "type": "object",
        "description": "Represents a customizable print area on a product (front, back, sleeve, etc.).\nContains artwork data and positioning information for printing/fulfillment.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this print area artwork",
            "example": 567
          },
          "printarea_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the product's print area this design belongs to (see `printareas[].id`\non \"Get product by ID\"). Unlike `key`, this is always unique -- use it, not\n`key`, when a line item has more than one print area sharing the same `key`.\n",
            "example": 101
          },
          "customization_id": {
            "type": "integer",
            "nullable": true,
            "description": "Links to the parent customization record",
            "example": 890
          },
          "thumbnail": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Small preview image URL for this print area. Used in admin interfaces and previews.",
            "example": "https://cdn.teeinblue.com/thumbnails/567-thumb.jpg"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Full-resolution artwork URL for printing. High-quality image used by fulfillment partners.",
            "example": "https://cdn.teeinblue.com/artworks/567-print.png"
          },
          "key": {
            "type": "string",
            "nullable": true,
            "description": "Print area identifier/name (e.g., 'front', 'back', 'left-sleeve'). Used for placement positioning.",
            "example": "front"
          },
          "width": {
            "type": "integer",
            "nullable": true,
            "description": "Artwork width in pixels. Required for proper scaling during printing.",
            "example": 2400
          },
          "height": {
            "type": "integer",
            "nullable": true,
            "description": "Artwork height in pixels. Required for proper scaling during printing.",
            "example": 3000
          },
          "error_message": {
            "type": "string",
            "nullable": true,
            "description": "Error details if artwork processing failed. Present when artwork generation encounters issues.",
            "example": "Image resolution too low for print quality"
          },
          "is_processing": {
            "type": "boolean",
            "description": "Indicates if artwork is currently being generated or processed.\nTrue when artwork is being created, resized, or converted. False when complete or failed.\n",
            "example": false
          },
          "customization": {
            "type": "object",
            "nullable": true,
            "description": "Customization data for this print area",
            "example": {
              "Text layer": "Lorem ipsum dolor sit amet"
            }
          },
          "customer_uploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerUpload"
            },
            "nullable": true,
            "description": "Customer uploads for this print area",
            "example": [
              {
                "original_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg",
                "master_url": "https://cdn.teeinblue.com/uploads/567-upload.jpg"
              }
            ]
          },
          "artworks": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Unique identifier for this artwork",
                  "example": 123
                },
                "name": {
                  "type": "string",
                  "description": "Name of the artwork",
                  "example": "Photo on live preview"
                },
                "templates": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "description": "Unique identifier for this template",
                        "example": 123
                      },
                      "name": {
                        "type": "string",
                        "description": "Name of the template",
                        "example": "Default template"
                      }
                    }
                  }
                }
              }
            },
            "description": "Artworks for this print area",
            "example": [
              {
                "id": 123,
                "name": "Photo on live preview",
                "templates": [
                  {
                    "id": 123,
                    "name": "Default template"
                  }
                ]
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this print area artwork was created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this print area artwork was last modified. Changes on every design replace --\nuseful for cache-busting a `url` that stays the same across replaces\n(see \"Replace order item design\").\n",
            "example": "2025-01-15T11:15:00Z"
          }
        }
      },
      "ProductVariant": {
        "type": "object",
        "description": "Product variant information including size, color, style details.\nLinks to the parent product and fulfillment service information.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this product variant",
            "example": 12345
          },
          "sku": {
            "type": "string",
            "nullable": true,
            "description": "Variant SKU code. Used for inventory tracking and fulfillment identification.",
            "example": "TSHIRT-BELLA-LG-NAVY"
          },
          "color": {
            "type": "string",
            "nullable": true,
            "description": "Color name or hex code for this variant",
            "example": "Navy Blue"
          },
          "size": {
            "type": "string",
            "nullable": true,
            "description": "Size designation (XS, S, M, L, XL, 2XL, etc.)",
            "example": "Large"
          },
          "product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VariantProduct"
              },
              {
                "nullable": true
              }
            ],
            "description": "Parent product information including title and fulfillment details"
          }
        }
      },
      "VariantProduct": {
        "type": "object",
        "description": "Parent product information for a variant. Contains basic product details\nand fulfillment service configuration.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the parent product",
            "example": 789
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "Product title/name as defined by merchant or fulfillment partner",
            "example": "Bella Canvas Unisex T-Shirt"
          },
          "fulfillment_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the fulfillment service handling this product",
            "example": 456
          },
          "fulfillment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Fulfillment"
              },
              {
                "nullable": true
              }
            ],
            "description": "Fulfillment service details"
          }
        }
      },
      "Fulfillment": {
        "type": "object",
        "description": "Fulfillment service provider information. Represents the print-on-demand\nor warehousing service that will produce and ship the product.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this fulfillment service",
            "example": 123
          },
          "display_name": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable name of the fulfillment service (e.g., 'Printful', 'Gooten', 'In-House')",
            "example": "Printful"
          }
        }
      },
      "Fulfiller": {
        "type": "object",
        "description": "Fulfillment tracking information for a specific order item.\nCreated when an item is sent to fulfillment and tracks its shipping progress.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this fulfillment record",
            "example": 9876
          },
          "fulfillment_linked_id": {
            "type": "string",
            "nullable": true,
            "description": "External fulfillment service's ID for this order. Used for status sync and support.",
            "example": "PF-ORDER-123456789"
          },
          "tracking_number": {
            "type": "string",
            "nullable": true,
            "description": "Carrier tracking number assigned when item ships",
            "example": "1Z999AA1234567890"
          },
          "tracking_company": {
            "type": "string",
            "nullable": true,
            "description": "Shipping carrier name (UPS, FedEx, USPS, DHL, etc.)",
            "example": "UPS"
          },
          "tracking_url": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Direct URL to track this shipment on the carrier's website",
            "example": "https://www.ups.com/track?tracknum=1Z999AA1234567890"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this fulfillment record was created (item sent to fulfillment)",
            "example": "2025-01-15T10:30:00Z"
          }
        }
      },
      "CursorPageLinks": {
        "type": "object",
        "description": "Navigation URLs for cursor-based pagination.",
        "properties": {
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "URL to fetch the next page of results. Null if this is the last page."
          },
          "prev": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "URL to fetch the previous page of results. Null if this is the first page."
          }
        }
      },
      "CursorPageMeta": {
        "type": "object",
        "description": "Pagination metadata for cursor-based pagination.",
        "properties": {
          "per_page": {
            "type": "integer",
            "description": "Number of items requested per page."
          },
          "next_cursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor for the next page. Use in the cursor parameter for subsequent requests."
          },
          "prev_cursor": {
            "type": "string",
            "nullable": true,
            "description": "Opaque cursor for the previous page. Use in the cursor parameter to go back."
          }
        }
      },
      "AssetPageEnvelope": {
        "type": "object",
        "description": "Envelope of the asset library lists that support `search`: `data`, `links` and `meta`.\nA listing fills the cursor fields of `meta` (as other cursor-paginated lists); a search\nfills the page-number fields.\n",
        "required": [
          "links",
          "meta"
        ],
        "properties": {
          "links": {
            "$ref": "#/components/schemas/CursorPageLinks"
          },
          "meta": {
            "type": "object",
            "properties": {
              "per_page": {
                "type": "integer",
                "description": "Number of items requested per page."
              },
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Listing only. Pass as `cursor` for the next page."
              },
              "prev_cursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Listing only."
              },
              "current_page": {
                "type": "integer",
                "description": "Search only."
              },
              "last_page": {
                "type": "integer",
                "description": "Search only."
              },
              "total": {
                "type": "integer",
                "description": "Search only. Number of matches."
              }
            }
          }
        }
      },
      "CursorPageEnvelope": {
        "type": "object",
        "description": "Common envelope for cursor-paginated list responses. List endpoints return an object\nwith `data` (array of items), `links` (next/prev URLs), and `meta` (per_page, cursors).\n",
        "required": [
          "links",
          "meta"
        ],
        "properties": {
          "links": {
            "$ref": "#/components/schemas/CursorPageLinks"
          },
          "meta": {
            "$ref": "#/components/schemas/CursorPageMeta"
          }
        }
      },
      "OrderCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of orders.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PublicOrder"
                },
                "description": "Array of order objects for the current page."
              }
            }
          }
        ]
      },
      "CustomizationCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of customizations.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Customization"
                },
                "description": "Array of customization objects for the current page."
              }
            }
          }
        ]
      },
      "ProductBaseCampaignCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of product base campaigns.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductBaseCampaign"
                },
                "description": "Array of product base campaign objects for the current page."
              }
            }
          }
        ]
      },
      "PlatformBaseCampaignCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of platform base campaigns.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PlatformCampaign"
                },
                "description": "Array of platform base campaign objects for the current page."
              }
            }
          }
        ]
      },
      "PlatformCampaign": {
        "type": "object",
        "description": "Details of a campaign by platform.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this campaign",
            "example": 1234567890
          },
          "uuid": {
            "type": "string",
            "description": "Unique identifier for this campaign",
            "example": "6d823e4d-8f21-41f8-b461-e97c981880bc"
          },
          "instance_id": {
            "type": "number",
            "description": "Instance ID of the campaign",
            "example": 1234567890
          },
          "domain": {
            "type": "string",
            "description": "Domain of the instance the campaign belongs to",
            "example": "my-shop.myshopify.com"
          },
          "platform_domain": {
            "type": "string",
            "description": "Platform domain of the instance the campaign belongs to",
            "example": "my-shop.myshopify.com"
          },
          "platform": {
            "type": "string",
            "description": "Platform of the campaign",
            "example": "shopify"
          },
          "platform_linked_id": {
            "type": "number",
            "description": "Platform linked ID of the campaign",
            "example": 1234567890
          },
          "name": {
            "type": "string",
            "description": "Name of the campaign",
            "example": "My Campaign"
          },
          "internal_tags": {
            "type": "string",
            "nullable": true,
            "description": "Internal-only tags, not pushed to the storefront",
            "example": "DONE"
          },
          "preview_url": {
            "type": "string",
            "description": "Preview URL of the campaign",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png"
          },
          "preview_thumbnail": {
            "type": "string",
            "description": "Preview thumbnail of the campaign",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
          },
          "version": {
            "type": "number",
            "description": "Version of the campaign",
            "example": 1
          },
          "enable_artwork_variant_assignment": {
            "type": "boolean",
            "description": "Whether artwork variant assignment is enabled",
            "example": true
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the campaign was published",
            "example": "2025-01-15T10:30:00Z"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the campaign was created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the campaign was last updated",
            "example": "2025-01-15T10:30:00Z"
          },
          "artworks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Artwork"
            },
            "description": "Artworks in the campaign"
          },
          "mockups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlatformMockup"
            },
            "description": "Mockups in the campaign"
          }
        }
      },
      "Artwork": {
        "type": "object",
        "description": "Public artwork information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this artwork",
            "example": 1234567890
          },
          "name": {
            "type": "string",
            "description": "Name of the artwork",
            "example": "My Artwork"
          },
          "description": {
            "type": "string",
            "description": "Description of the artwork",
            "example": "My Artwork Description"
          },
          "width": {
            "type": "integer",
            "description": "Width of the artwork",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the artwork",
            "example": 1000
          },
          "thumbnail": {
            "type": "string",
            "description": "Thumbnail of the artwork",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
          },
          "status": {
            "type": "number",
            "description": "Status of the artwork",
            "example": 1
          },
          "position": {
            "type": "number",
            "description": "Position of the artwork",
            "example": 1
          },
          "platform_variants_id": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Platform variants ID of the artwork",
            "example": [
              1234567890,
              1234567891
            ]
          }
        }
      },
      "PlatformMockup": {
        "type": "object",
        "description": "Public mockup information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this mockup",
            "example": 1234567890
          },
          "width": {
            "type": "integer",
            "description": "Width of the mockup",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the mockup",
            "example": 1000
          },
          "platform_variants_id": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "Platform variants ID of the mockup",
            "example": [
              1234567890,
              1234567891
            ]
          },
          "preview_url": {
            "type": "string",
            "description": "Preview URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png"
          },
          "preview_thumbnail": {
            "type": "string",
            "description": "Preview thumbnail of the mockup",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
          }
        }
      },
      "UpdateEtsyOrderRequest": {
        "type": "object",
        "description": "Request body for updating an Etsy order.\n",
        "properties": {
          "fulfillment_shipping_method": {
            "type": "string",
            "nullable": true,
            "description": "Fulfillment shipping method",
            "example": "Standard Shipping"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "Note for the order",
            "example": "This is a test note"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "Email of the customer",
            "example": "jane.doe@example.com"
          },
          "contact_email": {
            "type": "string",
            "nullable": true,
            "description": "Contact email for the order",
            "example": "jane.doe@example.com"
          },
          "shipping_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ],
            "nullable": true,
            "description": "Shipping address for the order"
          }
        }
      },
      "ProductBaseMockup": {
        "type": "object",
        "description": "Public mockup information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this mockup",
            "example": 1234567890
          },
          "width": {
            "type": "integer",
            "description": "Width of the mockup",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the mockup",
            "example": 1000
          },
          "position": {
            "type": "number",
            "description": "Position of the mockup",
            "example": 1
          },
          "preview_url": {
            "type": "string",
            "description": "Preview URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png"
          },
          "preview_thumbnail": {
            "type": "string",
            "description": "Preview thumbnail of the mockup",
            "example": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
          }
        }
      },
      "UpdateProductBaseCampaignRequest": {
        "type": "object",
        "description": "Request body for partially updating a product base campaign. At least one field with a non-null value is required.\n",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Campaign name",
            "example": "Spring Collection - DONE"
          },
          "product_tags": {
            "type": "string",
            "description": "Comma-separated storefront tags",
            "example": "spring,sale"
          },
          "vendor": {
            "type": "string",
            "maxLength": 255,
            "description": "Vendor name",
            "example": "Acme"
          },
          "product_type": {
            "type": "string",
            "maxLength": 255,
            "description": "Product type",
            "example": "T-Shirt"
          },
          "product_display_type": {
            "type": "string",
            "maxLength": 255,
            "description": "Display type",
            "example": "grid"
          },
          "label_available_product": {
            "type": "string",
            "maxLength": 255,
            "description": "Available-product picker label",
            "example": "Choose a product"
          },
          "internal_tags": {
            "type": "string",
            "maxLength": 255,
            "description": "Internal-only tags, filterable in the admin campaign list and not pushed to the storefront",
            "example": "DONE"
          }
        }
      },
      "UpdatePlatformBaseCampaignRequest": {
        "type": "object",
        "description": "Request body for partially updating a platform base campaign. At least one field with a non-null value is required.\n",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Campaign name",
            "example": "Spring Collection - DONE"
          },
          "internal_tags": {
            "type": "string",
            "maxLength": 255,
            "description": "Internal-only tags, filterable in the admin campaign list and not pushed to the storefront",
            "example": "DONE"
          }
        }
      },
      "ProductBaseCampaign": {
        "type": "object",
        "description": "Product base campaign information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this product base campaign",
            "example": 1234567890
          },
          "name": {
            "type": "string",
            "description": "Name of the product base campaign",
            "example": "My Product Base Campaign"
          },
          "product_tags": {
            "type": "string",
            "nullable": true,
            "description": "Comma-separated storefront tags",
            "example": "spring,sale"
          },
          "vendor": {
            "type": "string",
            "nullable": true,
            "description": "Vendor name",
            "example": "Acme"
          },
          "product_type": {
            "type": "string",
            "nullable": true,
            "description": "Product type",
            "example": "T-Shirt"
          },
          "product_display_type": {
            "type": "string",
            "nullable": true,
            "description": "Display type",
            "example": "grid"
          },
          "label_available_product": {
            "type": "string",
            "nullable": true,
            "description": "Available-product picker label",
            "example": "Choose a product"
          },
          "internal_tags": {
            "type": "string",
            "nullable": true,
            "description": "Internal-only tags, not pushed to the storefront",
            "example": "DONE"
          },
          "status": {
            "type": "number",
            "description": "Status of the product base campaign:\n- `0`: Default\n- `1`: Archived\n",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the product base campaign was created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the product base campaign was last updated",
            "example": "2025-01-15T10:30:00Z"
          },
          "artworks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Artwork"
            },
            "description": "Artworks in the product base campaign"
          },
          "mockups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductBaseMockup"
            },
            "description": "Mockups in the product base campaign"
          }
        }
      },
      "ProductCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of products.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Product"
                },
                "description": "Array of product objects for the current page."
              }
            }
          }
        ]
      },
      "Product": {
        "type": "object",
        "description": "Product information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this product",
            "example": 1234567890
          },
          "title": {
            "type": "string",
            "description": "Title of the product",
            "example": "Holiday T-Shirt"
          },
          "label": {
            "type": "string",
            "description": "Internal name of the product"
          },
          "internal_tags": {
            "type": "string",
            "description": "Internal tags of the product",
            "example": "holiday, t-shirt"
          },
          "default_options": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true,
            "description": "Required Options configured on this product base -- merchant-defined key/value\ndata fulfillment partners may need (e.g. a print preset id). Null if none are set.\n",
            "example": {
              "preset_id": "ABC123"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the product was created",
            "example": "2025-01-15T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the product was last updated",
            "example": "2025-01-15T10:30:00Z"
          },
          "mockups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductMockup"
            },
            "description": "Mockups of the product"
          },
          "printareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductPrintArea"
            },
            "description": "All print areas of the product.\n**Note: Only present in single product detail responses.**\n"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductBaseVariant"
            },
            "description": "All variants of the product.\n**Note: Only present in single product detail responses.**\n"
          }
        }
      },
      "ProductMockup": {
        "type": "object",
        "description": "Product mockup information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this mockup",
            "example": 1234567890
          },
          "url": {
            "type": "string",
            "description": "URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "thumbnail": {
            "type": "string",
            "description": "Thumbnail URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "master": {
            "type": "string",
            "description": "Master URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "old_url": {
            "type": "string",
            "description": "Old URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "preview_url": {
            "type": "string",
            "description": "Preview URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "preview_thumbnail": {
            "type": "string",
            "description": "Preview thumbnail URL of the mockup",
            "example": "https://cdn.teeinblue.com/examples/products/mockup.png"
          },
          "alt": {
            "type": "string",
            "description": "Alternative text for the mockup",
            "example": "Holiday T-Shirt"
          },
          "width": {
            "type": "integer",
            "description": "Width of the mockup",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the mockup",
            "example": 1000
          }
        }
      },
      "ProductPrintArea": {
        "type": "object",
        "description": "Product print area information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this print area",
            "example": 1234567890
          },
          "name": {
            "type": "string",
            "description": "Name of the print area, displayed as `Fulfilled key` in the portal's product detail page if the `display_name` is not set",
            "example": "Front"
          },
          "width": {
            "type": "integer",
            "description": "Width of the print area",
            "example": 1000
          },
          "height": {
            "type": "integer",
            "description": "Height of the print area",
            "example": 1000
          },
          "position": {
            "type": "number",
            "description": "Position of the print area",
            "example": 1
          },
          "display_name": {
            "type": "string",
            "description": "Display name of the print area, displayed as `Fulfilled key` in the portal's product detail page",
            "example": "Front"
          }
        }
      },
      "ProductBaseVariant": {
        "type": "object",
        "description": "Product base variant information including name, description, and status.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for this variant",
            "example": 1234567890
          },
          "sku": {
            "type": "string",
            "description": "SKU of the variant",
            "example": "TSHIRT-BELLA-LG-NAVY"
          },
          "color": {
            "type": "string",
            "description": "Color of the variant",
            "example": "Navy Blue"
          },
          "size": {
            "type": "string",
            "description": "Size of the variant",
            "example": "Large"
          },
          "printarea_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "IDs of the print areas (see `printareas` on this product) this variant is\nrestricted to. Empty means no restriction is configured -- the variant prints\non every print area the product defines, which is the common case, since\nrestricting a variant to specific print areas is opt-in. Match non-empty ids\nagainst an order item's `print_areas[].printarea_id` to tell which design file\nbelongs to which print area for this variant.\n",
            "example": [
              101
            ]
          }
        }
      },
      "AssetStatus": {
        "type": "string",
        "enum": [
          "processing",
          "ready"
        ],
        "description": "- `processing`: the file is still being processed in the background; `url` and\n  `thumbnail_url` are `null`.\n- `ready`: the item can be used.\n"
      },
      "AssetOnDuplicate": {
        "type": "string",
        "enum": [
          "create",
          "skip"
        ],
        "default": "create",
        "description": "What to do when an item with the same `name` already exists in the same category:\n- `create` (default): create a new item anyway, as the portal does.\n- `skip`: return the existing item (`200`) without uploading.\n"
      },
      "CategoryOnDuplicate": {
        "type": "string",
        "enum": [
          "create",
          "skip"
        ],
        "default": "create",
        "description": "What to do when a category with the same name (and the same parent and type, where those apply) already exists:\n- `create` (default): create a new category anyway, as the portal does.\n- `skip`: return the existing category (`200`).\n"
      },
      "AssetFileUpload": {
        "type": "object",
        "title": "File",
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file to upload. At most 64 MB. Only SVG/EPS and GPX files can be sent this way."
          }
        }
      },
      "AssetUploadIdUpload": {
        "type": "object",
        "title": "Pre-signed upload",
        "required": [
          "upload_id"
        ],
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "description": "The `upload_id` from `POST /uploads`, after the file bytes were `PUT` to its\n`upload_url`. Raster images only. Can be used once.\n",
            "example": "9b2f6c1e-3d4a-4f7b-9c1d-2e5a6b7c8d9e"
          }
        }
      },
      "PresignedUpload": {
        "type": "object",
        "properties": {
          "upload_id": {
            "type": "string",
            "format": "uuid",
            "description": "Pass this to the create endpoint once the bytes are uploaded.",
            "example": "9b2f6c1e-3d4a-4f7b-9c1d-2e5a6b7c8d9e"
          },
          "upload_url": {
            "type": "string",
            "format": "uri",
            "description": "Pre-signed URL to `PUT` the file bytes to."
          },
          "upload_headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers to send with the `PUT`, exactly as given.",
            "example": {
              "Content-Type": "image/png"
            }
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "The `upload_url` stops working after this time.",
            "example": "2026-10-08T10:35:00Z"
          }
        }
      },
      "AssetUrlUpload": {
        "type": "object",
        "title": "URL",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Public http(s) URL of the file. Teeinblue downloads it; the download is cut off at\n64 MB. Signed cloud-storage URLs work.\n",
            "example": "https://storage.googleapis.com/my-bucket/SKU123/SKU123_BG.png?X-Goog-Signature=..."
          }
        }
      },
      "LayerImageCategoryType": {
        "type": "string",
        "enum": [
          "clipart",
          "vector",
          "gpx"
        ],
        "description": "- `clipart` / `vector`: raster images and SVG/EPS files.\n- `gpx`: GPX route files, used by route map layers.\n"
      },
      "LayerImageCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 321
          },
          "name": {
            "type": "string",
            "example": "SKU123"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/LayerImageCategoryType"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          }
        }
      },
      "LayerImageUploadFields": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the layer image. Defaults to the file name without its extension.",
            "example": "SKU123_BG"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "One of your layer image categories. The file must match the category's type.",
            "example": 321
          },
          "artwork_width": {
            "type": "integer",
            "minimum": 1,
            "description": "Raster images only. Width in pixels of the artwork the image is meant for; the\npreview version of the image (`url`) is sized for it. Defaults to your account's\nartwork width setting. The original file is always kept at full size.\n",
            "example": 600
          },
          "on_duplicate": {
            "$ref": "#/components/schemas/AssetOnDuplicate"
          }
        }
      },
      "LayerImage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 12345
          },
          "name": {
            "type": "string",
            "example": "SKU123_BG"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "example": 321
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "Storage key to put in an artwork layer, exactly as returned. `null` while processing.",
            "example": "users/4965/image-layers/68c0006568e69_large.webp"
          },
          "thumbnail_url": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "Full URL of a small preview. `null` while processing.",
            "example": "https://cdn.teeinblue.com/users/4965/image-layers/68c0006568e69_thumb.webp"
          },
          "width": {
            "type": "integer",
            "nullable": true,
            "description": "Width of the original file in pixels. `null` while processing.",
            "example": 4000
          },
          "height": {
            "type": "integer",
            "nullable": true,
            "description": "Height of the original file in pixels. `null` while processing.",
            "example": 4000
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:05Z"
          }
        }
      },
      "ClipartCategoryType": {
        "type": "string",
        "enum": [
          "clipart",
          "vector",
          "additional_option",
          "font_category",
          "map",
          "color_category",
          "font"
        ],
        "description": "What the category holds. Only `clipart` and `vector` categories can be created and\nfilled through this API; the other types are listed so you can see your whole library.\n"
      },
      "ClipartCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 654
          },
          "name": {
            "type": "string",
            "example": "SKU123"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/ClipartCategoryType"
          },
          "parent_id": {
            "type": "integer",
            "nullable": true,
            "description": "The category this one is nested under, or `null` for a top-level category.",
            "example": null
          },
          "clipart_max_width": {
            "type": "integer",
            "description": "The category's preview size in px (the portal's \"Preview size\"). A category made\nbefore this field was limited may hold a value outside `ClipartPreviewSize`.\n",
            "example": 1000
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          }
        }
      },
      "ClipartPreviewSize": {
        "type": "integer",
        "enum": [
          100,
          150,
          200,
          250,
          300,
          400,
          500,
          700,
          1000,
          1600
        ],
        "description": "Preview size in px: the largest width a clipart of the category is shown at on the\nstorefront -- the portal's \"Preview size\", with the same options. Defaults to your\naccount's clipart max width (500 unless changed).\n",
        "example": 1000
      },
      "ClipartUploadFields": {
        "type": "object",
        "required": [
          "category_id"
        ],
        "properties": {
          "category_id": {
            "type": "integer",
            "description": "One of your `clipart` or `vector` categories.",
            "example": 654
          },
          "name": {
            "type": "string",
            "maxLength": 191,
            "description": "Name of the clipart. Defaults to the file name without its extension.",
            "example": "SKU123_clipart_01"
          },
          "on_duplicate": {
            "type": "string",
            "enum": [
              "create",
              "skip",
              "replace"
            ],
            "default": "create",
            "description": "What to do when a clipart with the same `name` already exists in the category:\n- `create` (default): create a new clipart anyway.\n- `skip`: return the existing clipart (`200`) without uploading.\n- `replace`: replace the existing clipart's image, keeping its id (`200`).\n"
          },
          "keep_thumbnail": {
            "type": "boolean",
            "default": false,
            "description": "With `on_duplicate: replace`, keep the existing clipart's thumbnail (the portal's \"Replace items, keep thumbnails\")."
          }
        }
      },
      "Clipart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 98765
          },
          "name": {
            "type": "string",
            "example": "SKU123_clipart_01"
          },
          "category_id": {
            "type": "integer",
            "example": 654
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "Storage key of the clipart image. `null` while processing.",
            "example": "users/4965/cliparts/654/68c0006568e69_large.webp"
          },
          "thumbnail_url": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "Full URL of the clipart's thumbnail. `null` while processing.",
            "example": "https://cdn.teeinblue.com/users/4965/cliparts/654/68c0006568e69_thumb.webp"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:05Z"
          }
        }
      },
      "ClipartCategoryBulkUploadStatus": {
        "type": "string",
        "enum": [
          "created",
          "uploading",
          "extracting",
          "done",
          "error",
          "delayed"
        ],
        "description": "- `uploading`: waiting for the zip to be uploaded to `upload_url`.\n- `extracting`: categories and cliparts are being created.\n- `delayed`: too many of your bulk uploads are extracting at once; this one will start automatically.\n- `done`: finished; see `clipart_category_id`.\n- `error`: failed; see `logs`.\n"
      },
      "ClipartCategoryBulkUpload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 77
          },
          "name": {
            "type": "string",
            "description": "The zip's file name without its extension.",
            "example": "SKU123"
          },
          "status": {
            "$ref": "#/components/schemas/ClipartCategoryBulkUploadStatus"
          },
          "clipart_category_id": {
            "type": "integer",
            "nullable": true,
            "description": "The category the cliparts were created in. Set when `status` is `done`.",
            "example": 654
          },
          "logs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Progress messages, oldest first. Includes the reason when `status` is `error`.",
            "example": [
              "2026-10-08 10:30:00: Created",
              "2026-10-08 10:31:12: Extracting"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T10:31:12Z"
          }
        }
      },
      "ClipartCategoryBulkUploadStart": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ClipartCategoryBulkUpload"
          },
          {
            "type": "object",
            "properties": {
              "upload_url": {
                "type": "string",
                "format": "uri",
                "description": "Pre-signed URL to `PUT` the zip bytes to."
              },
              "upload_headers": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Headers to send with the `PUT`, exactly as given.",
                "example": {
                  "Content-Type": "application/zip"
                }
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "The `upload_url` stops working after this time.",
                "example": "2026-10-08T10:35:00Z"
              }
            }
          }
        ]
      },
      "LayerImageCategoryCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of layer image categories.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LayerImageCategory"
                }
              }
            }
          }
        ]
      },
      "LayerImagePage": {
        "type": "object",
        "description": "A page of layer images: cursor-paginated for a listing, page-numbered for a search.",
        "allOf": [
          {
            "$ref": "#/components/schemas/AssetPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LayerImage"
                }
              }
            }
          }
        ]
      },
      "ClipartCategoryPage": {
        "type": "object",
        "description": "A page of clipart categories: cursor-paginated for a listing, page-numbered for a search.",
        "allOf": [
          {
            "$ref": "#/components/schemas/AssetPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ClipartCategory"
                }
              }
            }
          }
        ]
      },
      "ClipartCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of cliparts.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Clipart"
                }
              }
            }
          }
        ]
      },
      "LibraryImageType": {
        "type": "string",
        "enum": [
          "image",
          "mask"
        ],
        "description": "- `mask`: a cut-out shape, used as the mask of an artwork or mockup layer.\n- `image`: any other picture -- backgrounds, thumbnails, reference images, map markers.\n"
      },
      "LibraryImageCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 42
          },
          "type": {
            "$ref": "#/components/schemas/LibraryImageType"
          },
          "name": {
            "type": "string",
            "example": "SKU123"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-16T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-16T10:30:00Z"
          }
        }
      },
      "LibraryImageUploadFields": {
        "type": "object",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/LibraryImageType"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the library image. Defaults to the file name without its extension.",
            "example": "SKU123_mask"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "One of your library image categories, of the same `type`.",
            "example": 42
          },
          "on_duplicate": {
            "$ref": "#/components/schemas/AssetOnDuplicate"
          }
        }
      },
      "LibraryImage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 7788
          },
          "type": {
            "$ref": "#/components/schemas/LibraryImageType"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "example": 42
          },
          "name": {
            "type": "string",
            "example": "SKU123_mask"
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "Storage key to put in a layer's mask or background field, exactly as returned. `null` while processing.",
            "example": "users/4965/library/68c0006568e69_large.webp"
          },
          "thumbnail_url": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "Full URL of a small preview. `null` while processing.",
            "example": "https://cdn.teeinblue.com/users/4965/library/68c0006568e69_thumb.webp"
          },
          "width": {
            "type": "integer",
            "nullable": true,
            "example": 2000
          },
          "height": {
            "type": "integer",
            "nullable": true,
            "example": 2000
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-16T10:30:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-16T10:30:05Z"
          }
        }
      },
      "LibraryImageInUse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "This image is still in use."
          },
          "usages": {
            "type": "array",
            "description": "What uses the image (up to 20 of each kind). Absent when the image is refused because\nit is still being processed.\n",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "product",
                    "campaign",
                    "clipart_category",
                    "mockup",
                    "campaign_mockup",
                    "artwork",
                    "global_option"
                  ]
                },
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          }
        }
      },
      "LibraryImageCategoryCursorPage": {
        "type": "object",
        "description": "Cursor-paginated list of library image categories.",
        "allOf": [
          {
            "$ref": "#/components/schemas/CursorPageEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LibraryImageCategory"
                }
              }
            }
          }
        ]
      },
      "LibraryImagePage": {
        "type": "object",
        "description": "A page of library images: `data`, `links` and `meta`. A listing fills the cursor fields\nof `meta` (as other cursor-paginated lists); a search fills the page-number fields.\n",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LibraryImage"
            }
          },
          "links": {
            "$ref": "#/components/schemas/CursorPageLinks"
          },
          "meta": {
            "type": "object",
            "properties": {
              "per_page": {
                "type": "integer"
              },
              "next_cursor": {
                "type": "string",
                "nullable": true,
                "description": "Listing only. Pass as `cursor` for the next page."
              },
              "prev_cursor": {
                "type": "string",
                "nullable": true,
                "description": "Listing only."
              },
              "current_page": {
                "type": "integer",
                "description": "Search only."
              },
              "last_page": {
                "type": "integer",
                "description": "Search only."
              },
              "total": {
                "type": "integer",
                "description": "Search only. Number of matches."
              }
            }
          }
        }
      }
    }
  }
}