{
  "openapi": "3.0.3",
  "info": {
    "license": {
      "name": "ISC",
      "url": "https://www.isc.org/licenses/"
    },
    "title": "Printify Public API",
    "description": "## Getting started\n\nPrintify API enables you to automate product and order creation for a variety of scenarios,\nincluding integration with your on-site design generator, on-site product customization and more.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.printify.com"
    },
    {
      "url": "https://enterprise.printful.com/api/pfy/public"
    }
  ],
  "tags": [
    {
      "name": "Shops",
      "description": "Manage Printify shops and shop connections. Retrieve shop information and disconnect shops from your account."
    },
    {
      "name": "Catalog",
      "description": "Browse the Printify catalog including blueprints, print providers, product variants, and shipping information. Explore available products and their customization options."
    },
    {
      "name": "Products",
      "description": "Create, update, delete, and manage products in your shop. Publish products to sales channels and handle product lifecycle events including GPSR compliance information."
    },
    {
      "name": "Orders",
      "description": "Create and manage orders including standard orders, Printify Express orders, and order lifecycle management. Calculate shipping costs and track order fulfillment."
    },
    {
      "name": "Personalization",
      "description": "Configure custom per-buyer personalization options for a product variant, generate mockup previews, and attach a personalization to an order line item."
    },
    {
      "name": "Support Requests",
      "description": "Retrieve order-scoped support requests (refunds, reprints, address changes, and other order support cases) and their current status and outcome."
    },
    {
      "name": "Uploads",
      "description": "Upload and manage images and assets. Upload images from URLs or base64-encoded content, retrieve upload information, and archive uploaded images."
    },
    {
      "name": "Webhooks",
      "description": "Configure webhooks to receive notifications about order and product events. Create, update, and delete webhook subscriptions."
    },
    {
      "name": "V2 Catalog Blueprints",
      "description": "V2 API endpoints for catalog and shipping information. Retrieve shipping methods and variant-specific shipping details using JSON API format."
    }
  ],
  "paths": {
    "/v1/shops.json": {
      "get": {
        "tags": [
          "Shops"
        ],
        "summary": "Retrieve list of shops in a Printify account",
        "description": "This will return the list of available merchant shops (IDs and titles)",
        "operationId": "retrieveListOfShopsInAPrintifyAccount",
        "responses": {
          "200": {
            "$ref": "#/components/responses/shopsList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/v1/shops/{shop_id}/connection.json": {
      "delete": {
        "tags": [
          "Shops"
        ],
        "summary": "Disconnect a shop",
        "description": "Disconnect a shop",
        "operationId": "disconnectAShop",
        "responses": {
          "200": {
            "$ref": "#/components/responses/emptySuccess"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/variants.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a list of variants of a blueprint from a specific print provider",
        "description": "Retrieves the list of of variants options for the Print Provider and Blueprint.\n    Those form the set of options available for customization Product (Blueprint)\n    on particular manufacturer (Print Provider).",
        "operationId": "retrieveAListOfVariantsOfABlueprintFromASpecificPrintProvider",
        "parameters": [
          {
            "$ref": "#/components/parameters/show-out-of-stock"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/variantsResponse"
          },
          "404": {
            "$ref": "#/components/responses/catalogNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v1/catalog/blueprints/{blueprint_id}/print_providers.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a list of all print providers that fulfill orders for a specific blueprint",
        "description": "Retrieves the list of print providers available for the Blueprint",
        "operationId": "retrieveAListOfAllPrintProvidersThatFulfillOrdersForASpecificBlueprint",
        "responses": {
          "200": {
            "$ref": "#/components/responses/printProvidersList"
          },
          "404": {
            "$ref": "#/components/responses/catalogNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        }
      ]
    },
    "/v1/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a specific print provider of a blueprint",
        "description": "Retrieves a single print provider that fulfills orders for the blueprint, in the same shape as the list of print providers for the blueprint.",
        "operationId": "retrieveASpecificPrintProviderOfABlueprint",
        "responses": {
          "200": {
            "$ref": "#/components/responses/printProviderSimple"
          },
          "404": {
            "$ref": "#/components/responses/catalogNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v1/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve shipping information",
        "description": "Retrieves the shipping information for all variants of a blueprint from a specific print provider",
        "operationId": "retrieveShippingInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/shippingResponse"
          },
          "404": {
            "$ref": "#/components/responses/catalogNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v1/catalog/blueprints.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieves list of blueprints in the catalog",
        "description": "Retrieves the list of blueprints in the catalog to explore from",
        "operationId": "retrievesListOfBlueprintsInTheCatalog",
        "responses": {
          "200": {
            "$ref": "#/components/responses/blueprintsList"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/v1/catalog/blueprints/{blueprint_id}.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a specific blueprint",
        "description": "Retrieves the list of blueprints in the catalog to explore from",
        "operationId": "retrieveASpecificBlueprint",
        "responses": {
          "200": {
            "$ref": "#/components/responses/blueprint"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        }
      ]
    },
    "/v1/catalog/blueprints/{blueprint_id}/size_guide.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve the size guide for a blueprint",
        "description": "Retrieves the size guide (available sizes and per-size measurement ranges) for a blueprint.",
        "operationId": "retrieveTheSizeGuideForABlueprint",
        "responses": {
          "200": {
            "$ref": "#/components/responses/sizeGuide"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        }
      ]
    },
    "/v1/catalog/print_providers.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a list of available print providers",
        "description": "Retrieves the list of all print providers",
        "operationId": "retrieveAListOfAvailablePrintProviders",
        "responses": {
          "200": {
            "$ref": "#/components/responses/printProvidersFullList"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/v1/catalog/print_providers/{print_provider_id}.json": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Retrieve a specific print provider",
        "description": "Retrieves a print provider with its location and the blueprints it offers",
        "operationId": "retrieveASpecificPrintProvider",
        "responses": {
          "200": {
            "$ref": "#/components/responses/printProviderFull"
          },
          "404": {
            "$ref": "#/components/responses/catalogNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}.json": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Retrieve a product",
        "description": "Retrieve a product",
        "operationId": "retrieveAProduct",
        "responses": {
          "200": {
            "$ref": "#/components/responses/product"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/invalidProductId"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "put": {
        "tags": [
          "Products"
        ],
        "summary": "Update a product",
        "description": "Update a product",
        "operationId": "updateAProduct",
        "requestBody": {
          "$ref": "#/components/requestBodies/updateProduct"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/product"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/invalidProductId"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Products"
        ],
        "summary": "Delete a product",
        "description": "Delete a product",
        "operationId": "deleteAProduct",
        "responses": {
          "200": {
            "$ref": "#/components/responses/emptySuccess"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "409": {
            "$ref": "#/components/responses/productIsSyncing"
          },
          "422": {
            "$ref": "#/components/responses/invalidProductId"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products.json": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Retrieve a list of products",
        "description": "Retrieve a list of products",
        "operationId": "retrieveAListOfProducts",
        "parameters": [
          {
            "$ref": "#/components/parameters/limit_max_50_default_50"
          },
          {
            "$ref": "#/components/parameters/page"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/productsList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Create a new product",
        "description": "Create a new product",
        "operationId": "createANewProduct",
        "requestBody": {
          "$ref": "#/components/requestBodies/createProduct"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/product"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/invalidPlaceholder"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/publishing_succeeded.json": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Set product publish status to succeeded",
        "description": "Set product publish status to succeeded",
        "operationId": "setProductPublishStatusToSucceeded",
        "requestBody": {
          "$ref": "#/components/requestBodies/productPublishStatusSucceeded"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/productIdResponse"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/publishing_failed.json": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Set product publish status to failed",
        "description": "Set product publish status to failed",
        "operationId": "setProductPublishStatusToFailed",
        "requestBody": {
          "$ref": "#/components/requestBodies/productPublishStatusFailed"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/productIdResponse"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/unpublish.json": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Notify that a product has been unpublished",
        "description": "Notify that a product has been unpublished",
        "operationId": "notifyThatAProductHasBeenUnpublished",
        "responses": {
          "200": {
            "$ref": "#/components/responses/emptySuccess"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/publish.json": {
      "post": {
        "tags": [
          "Products"
        ],
        "summary": "Publish a product",
        "description": "Publish a product",
        "operationId": "publishAProduct",
        "requestBody": {
          "$ref": "#/components/requestBodies/publishProduct"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/emptySuccess"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "409": {
            "$ref": "#/components/responses/productIsSyncing"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/gpsr.json": {
      "get": {
        "tags": [
          "Products"
        ],
        "summary": "Retrieve product GPSR information",
        "description": "Retrieve product GPSR information",
        "operationId": "retrieveProductGpsrInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/gpsrList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders.json": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Retrieve a list of orders",
        "description": "Retrieve a list of orders",
        "operationId": "retrieveAListOfOrders",
        "parameters": [
          {
            "$ref": "#/components/parameters/limit_max_50"
          },
          {
            "$ref": "#/components/parameters/page_with_example"
          },
          {
            "$ref": "#/components/parameters/status"
          },
          {
            "$ref": "#/components/parameters/sku"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ordersList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Submit an order",
        "description": "Submit an order",
        "operationId": "submitAnOrder",
        "requestBody": {
          "$ref": "#/components/requestBodies/submitOrder"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/orderCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/orderItemNotFound"
          },
          "409": {
            "$ref": "#/components/responses/errorOrderConflict"
          },
          "422": {
            "$ref": "#/components/responses/shippingNotEligible"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/cancel.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Cancel an order",
        "description": "Cancel an order",
        "operationId": "cancelAnOrder",
        "responses": {
          "200": {
            "$ref": "#/components/responses/order"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/line_items/{line_item_id}/cancel.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Cancel an order line item",
        "description": "Cancel a single line item on a pre-production order. If this is the last active line item, the whole order is cancelled too.\n\nThis endpoint is not idempotent: calling it again for an already-cancelled line item returns a 400, not a repeated 204.\n\nEligibility is checked against the order's own pre-production flow (`PENDING`, `ON_HOLD`, `PAYMENT_NOT_RECEIVED`, `HAS_ISSUES`, `SOURCE_CHECK_FAILED`), which is intentionally broader than the statuses accepted by `POST /orders/{order_id}/cancel.json`. An order in `PENDING`, `HAS_ISSUES`, or `SOURCE_CHECK_FAILED` can have a line item cancelled here even though the whole-order cancel endpoint would reject it.",
        "operationId": "cancelAnOrderLineItem",
        "responses": {
          "204": {
            "description": "The line item was cancelled"
          },
          "400": {
            "description": "Error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "examples": {
                  "Order not eligible for line item cancellation": {
                    "value": {
                      "status": "error",
                      "code": 8507,
                      "message": "Operation failed.",
                      "errors": {
                        "reason": "Order is not in the pre-production cancellation flow.",
                        "code": 8507
                      }
                    }
                  },
                  "Line item cannot be canceled": {
                    "value": {
                      "status": "error",
                      "code": 8506,
                      "message": "Operation failed.",
                      "errors": {
                        "reason": "Can not cancel order 'ORDER_ID' item in canceled status.",
                        "code": 8506
                      }
                    }
                  },
                  "Unsupported order creation source": {
                    "value": {
                      "status": "error",
                      "code": 8500,
                      "message": "Operation failed.",
                      "errors": {
                        "reason": "Only orders created via the Public API can be cancelled with this Endpoint.",
                        "code": 8500
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        },
        {
          "$ref": "#/components/parameters/line_item_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/support-requests/reprint": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Request a reprint for an order",
        "description": "Create a reprint support request for an order. Fetches and re-hosts any provided image_urls before creating the request.",
        "operationId": "requestAnOrderReprint",
        "requestBody": {
          "$ref": "#/components/requestBodies/reprintSupportRequest"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/supportRequestCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "429": {
            "$ref": "#/components/responses/tooManySupportRequests"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/support-requests/refund": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Request a refund for an order",
        "description": "Create a refund support request for an order. Fetches and re-hosts any provided image_urls before creating the request.",
        "operationId": "requestAnOrderRefund",
        "requestBody": {
          "$ref": "#/components/requestBodies/refundSupportRequest"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/supportRequestCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "429": {
            "$ref": "#/components/responses/tooManySupportRequests"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/send_to_production.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Send an existing order to production",
        "description": "Send an existing order to production",
        "operationId": "sendAnExistingOrderToProduction",
        "responses": {
          "202": {
            "$ref": "#/components/responses/orderIdResponse"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/shipping.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Calculate the shipping cost of an order",
        "description": "Calculate the shipping cost of an order",
        "operationId": "calculateTheShippingCostOfAnOrder",
        "requestBody": {
          "$ref": "#/components/requestBodies/calculateShipping"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/shippingCosts"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/express.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Submit a Printify Express order",
        "description": "Submit a Printify Express order",
        "operationId": "submitAPrintifyExpressOrder",
        "requestBody": {
          "$ref": "#/components/requestBodies/submitExpressOrder"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/expressOrderResponse"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/orderItemNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}.json": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Get order details by ID",
        "description": "Get order details by ID",
        "operationId": "getOrderDetailsById",
        "responses": {
          "200": {
            "$ref": "#/components/responses/order"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/support-requests/address-change": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Change an order's shipping address",
        "description": "Attempts to update the order's shipping address directly. If the order can no longer be updated directly, a support request is created instead and returned with a 201 status.",
        "operationId": "submitOrderAddressChangeSupportRequest",
        "requestBody": {
          "$ref": "#/components/requestBodies/addressChangeSupportRequest"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/addressChangeUpdatedDirectly"
          },
          "201": {
            "$ref": "#/components/responses/addressChangeSupportRequestCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "429": {
            "$ref": "#/components/responses/tooManySupportRequests"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/address_change.json": {
      "post": {
        "tags": [
          "Orders"
        ],
        "summary": "Change an order's shipping address directly",
        "description": "Attempts to update the order's shipping address directly, with no support-request fallback. Returns a 422 status if the order can no longer be updated directly.",
        "operationId": "changeOrderAddressDirectly",
        "requestBody": {
          "$ref": "#/components/requestBodies/addressChangeSupportRequest"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/addressChangeUpdatedDirectly"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/personalization_options.json": {
      "get": {
        "tags": [
          "Personalization"
        ],
        "summary": "Retrieve personalization options",
        "description": "Retrieve the personalization fields configured for a product",
        "operationId": "retrievePersonalizationOptions",
        "responses": {
          "200": {
            "$ref": "#/components/responses/personalizationOptionsList"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/error"
          },
          "503": {
            "$ref": "#/components/responses/personalizationServiceUnavailable"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/personalization.json": {
      "post": {
        "tags": [
          "Personalization"
        ],
        "summary": "Create a personalization configuration",
        "description": "Configures personalization for a product variant before it's added to an order",
        "operationId": "createAPersonalizationConfiguration",
        "requestBody": {
          "$ref": "#/components/requestBodies/createPersonalizationConfig"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/personalizationConfigCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "408": {
            "$ref": "#/components/responses/personalizationImageTimeout"
          },
          "422": {
            "$ref": "#/components/responses/error"
          },
          "503": {
            "$ref": "#/components/responses/personalizationServiceUnavailable"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/personalization_previews.json": {
      "post": {
        "tags": [
          "Personalization"
        ],
        "summary": "Request a personalization preview",
        "description": "Queues an asynchronous task that renders mockup previews for the given personalization input",
        "operationId": "requestAPersonalizationPreview",
        "requestBody": {
          "$ref": "#/components/requestBodies/personalizationPreview"
        },
        "responses": {
          "202": {
            "$ref": "#/components/responses/personalizationPreviewTaskCreated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          },
          "422": {
            "$ref": "#/components/responses/error"
          },
          "503": {
            "$ref": "#/components/responses/personalizationServiceUnavailable"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/products/{product_id}/personalization_previews/tasks/{task_id}.json": {
      "get": {
        "tags": [
          "Personalization"
        ],
        "summary": "Retrieve a personalization preview task status",
        "description": "Check the status of a personalization preview task",
        "operationId": "retrieveAPersonalizationPreviewTaskStatus",
        "responses": {
          "200": {
            "$ref": "#/components/responses/personalizationPreviewTaskStatus"
          },
          "404": {
            "$ref": "#/components/responses/personalizationPreviewTaskNotFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/product_id"
        },
        {
          "$ref": "#/components/parameters/task_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/support-requests": {
      "get": {
        "tags": [
          "Support Requests"
        ],
        "summary": "Retrieve a list of support requests for an order",
        "description": "Retrieve a list of support requests for an order",
        "operationId": "retrieveAListOfOrderSupportRequests",
        "responses": {
          "200": {
            "$ref": "#/components/responses/supportRequestsList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/orders/{order_id}/support-requests/{supportRequestId}": {
      "get": {
        "tags": [
          "Support Requests"
        ],
        "summary": "Get an order support request by ID",
        "description": "Get an order support request by ID",
        "operationId": "getOrderSupportRequestById",
        "responses": {
          "200": {
            "$ref": "#/components/responses/supportRequest"
          },
          "400": {
            "$ref": "#/components/responses/error"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/order_id"
        },
        {
          "$ref": "#/components/parameters/support_request_id"
        }
      ]
    },
    "/v1/uploads.json": {
      "get": {
        "tags": [
          "Uploads"
        ],
        "summary": "Retrieve a list of uploaded images",
        "description": "Retrieve a list of uploaded images",
        "operationId": "retrieveAListOfUploadedImages",
        "parameters": [
          {
            "$ref": "#/components/parameters/limit_max_50"
          },
          {
            "$ref": "#/components/parameters/page"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/uploadsList"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/v1/uploads/{image_id}.json": {
      "get": {
        "tags": [
          "Uploads"
        ],
        "summary": "Retrieve an uploaded image by id",
        "description": "Retrieve an uploaded image by id",
        "operationId": "retrieveAnUploadedImageById",
        "responses": {
          "200": {
            "$ref": "#/components/responses/upload"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/image_id"
        }
      ]
    },
    "/v1/uploads/images.json": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "summary": "Upload an image",
        "description": "Upload an image",
        "operationId": "uploadAnImage",
        "requestBody": {
          "$ref": "#/components/requestBodies/uploadImage"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/upload"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/v1/uploads/{image_id}/archive.json": {
      "post": {
        "tags": [
          "Uploads"
        ],
        "summary": "Archive an uploaded image",
        "description": "Archive an uploaded image",
        "operationId": "archiveAnUploadedImage",
        "responses": {
          "200": {
            "$ref": "#/components/responses/emptySuccess"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/image_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/webhooks.json": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Retrieve a list of webhooks",
        "description": "Retrieve a list of webhooks",
        "operationId": "retrieveAListOfWebhooks",
        "responses": {
          "200": {
            "$ref": "#/components/responses/webhooksList"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a new webhook",
        "description": "Create a new webhook",
        "operationId": "createANewWebhook",
        "requestBody": {
          "$ref": "#/components/requestBodies/createWebhook"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/webhook"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/webhooks/{webhook_id}.json": {
      "put": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Modify a webhook",
        "description": "Modify a webhook",
        "operationId": "modifyAWebhook",
        "requestBody": {
          "$ref": "#/components/requestBodies/modifyWebhook"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/webhook"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Delete a webhook",
        "description": "Delete a webhook",
        "operationId": "deleteAWebhook",
        "parameters": [
          {
            "$ref": "#/components/parameters/host"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/webhookDeleted"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/webhook_id"
        }
      ]
    },
    "/v1/shops/{shop_id}/webhooks/{webhook_id}/simulate": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Simulate a webhook",
        "description": "Simulate a webhook",
        "operationId": "simulateWebhook",
        "responses": {
          "204": {
            "description": "The webhook event was simulated"
          },
          "400": {
            "$ref": "#/components/responses/error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/shop_id"
        },
        {
          "$ref": "#/components/parameters/webhook_id"
        }
      ]
    },
    "/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping.json": {
      "get": {
        "tags": [
          "V2 Catalog Blueprints"
        ],
        "summary": "Retrieve available shipping list information",
        "description": "Retrieves the available shipping methods for all variants of a blueprint from a specific print provider",
        "operationId": "retrieveAvailableShippingListInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/v2ShippingResponse"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/standard.json": {
      "get": {
        "tags": [
          "V2 Catalog Blueprints"
        ],
        "summary": "Retrieve standard shipping method information",
        "description": "Retrieves the standard shipping handling time and shipping costs for all variants of a blueprint from a specific print provider",
        "operationId": "retrieveSpecificShippingMethodInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/v2ShippingStandardResponse"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/priority.json": {
      "get": {
        "tags": [
          "V2 Catalog Blueprints"
        ],
        "summary": "Retrieve priority shipping method information",
        "description": "Retrieves the priority shipping handling time and shipping costs for all variants of a blueprint from a specific print provider",
        "operationId": "retrievePriorityShippingMethodInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/v2ShippingStandardResponse"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/express.json": {
      "get": {
        "tags": [
          "V2 Catalog Blueprints"
        ],
        "summary": "Retrieve express shipping method information",
        "description": "Retrieves the express shipping handling time and shipping costs for all variants of a blueprint from a specific print provider",
        "operationId": "retrieveExpressShippingMethodInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/v2ShippingStandardResponse"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    },
    "/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/economy.json": {
      "get": {
        "tags": [
          "V2 Catalog Blueprints"
        ],
        "summary": "Retrieve economy shipping method information",
        "description": "Retrieves the economy shipping handling time and shipping costs for all variants of a blueprint from a specific print provider",
        "operationId": "retrieveEconomyShippingMethodInformation",
        "responses": {
          "200": {
            "$ref": "#/components/responses/v2ShippingStandardResponse"
          },
          "404": {
            "$ref": "#/components/responses/notFound"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/blueprint_id"
        },
        {
          "$ref": "#/components/parameters/print_provider_id"
        }
      ]
    }
  },
  "x-webhooks": {
    "shop:disconnected": {
      "post": {
        "operationId": "shopDisconnected",
        "summary": "Shop disconnected event",
        "description": "Triggered when a shop is disconnected from a Printify account",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/shopDisconnected"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "product:deleted": {
      "post": {
        "operationId": "productDeleted",
        "summary": "Product deleted event",
        "description": "Triggered when a product is deleted from a shop",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/productDeleted"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "product:created": {
      "post": {
        "operationId": "productCreated",
        "summary": "Product created event",
        "description": "Triggered when a product is created in a shop",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/productCreated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "product:updated": {
      "post": {
        "operationId": "productUpdated",
        "summary": "Product updated event",
        "description": "Triggered when a product is updated in a shop",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/productUpdated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "product:publish:started": {
      "post": {
        "operationId": "productPublishStarted",
        "summary": "Product publish started event",
        "description": "Triggered when a product publish process starts. Can be for creation or deletion.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/productPublishStarted"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:created": {
      "post": {
        "operationId": "orderCreatedEvent",
        "summary": "Order created event",
        "description": "Triggered when a new order is created",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderCreatedEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:updated": {
      "post": {
        "operationId": "orderUpdated",
        "summary": "Order updated event",
        "description": "Triggered when an order is updated",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderUpdated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:line-item:canceled": {
      "post": {
        "operationId": "orderLineItemCanceled",
        "summary": "Order line item canceled event",
        "description": "Triggered when a single line item of an order is canceled, whoever canceled it (merchant, support or system). If it was the last remaining item the order itself is canceled as well.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderLineItemCanceled"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:shipment:created": {
      "post": {
        "operationId": "orderShipmentCreated",
        "summary": "Order shipment created event",
        "description": "Triggered when a shipment is created for an order",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderShipmentCreated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:shipment:delivered": {
      "post": {
        "operationId": "orderShipmentDelivered",
        "summary": "Order shipment delivered event",
        "description": "Triggered when a shipment is delivered",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderShipmentDelivered"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "order:sent-to-production": {
      "post": {
        "operationId": "orderSentToProduction",
        "summary": "Order sent to production event",
        "description": "Triggered when an order is sent to production",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/orderSentToProduction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "personalization-preview-task:processed": {
      "post": {
        "operationId": "personalizationPreviewTaskProcessed",
        "summary": "Personalization preview task processed event",
        "description": "Triggered when a personalization preview task reaches a terminal state (completed, corrupt, or failed)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/personalizationPreviewTaskProcessed"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    },
    "support-request:updated": {
      "post": {
        "operationId": "supportRequestUpdated",
        "summary": "Support request updated event",
        "description": "Triggered when the status of a support request on one of your orders changes",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/supportRequestUpdated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook received successfully"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "shop": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 5432
          },
          "title": {
            "type": "string",
            "example": "My new store"
          },
          "sales_channel": {
            "type": "string",
            "description": "Lowercase identifier of the connected sales channel, for example shopify, etsy, woocommerce, ebay, tiktok or custom_integration. \"disconnected\" when no sales channel is connected.",
            "example": "shopify"
          }
        }
      },
      "errorDetails": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "example": "Image has low quality"
          },
          "code": {
            "type": "integer",
            "example": 8203
          }
        }
      },
      "errorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "code": {
            "type": "integer",
            "example": 8203
          },
          "message": {
            "type": "string",
            "example": "Validation failed."
          },
          "errors": {
            "$ref": "#/components/schemas/errorDetails"
          }
        }
      },
      "variantOptions": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string",
            "example": "Heather Grey"
          },
          "size": {
            "type": "string",
            "example": "XS"
          }
        }
      },
      "variantPlaceholder": {
        "type": "object",
        "properties": {
          "position": {
            "type": "string",
            "example": "back"
          },
          "decoration_method": {
            "type": "string",
            "example": "dtf"
          },
          "height": {
            "type": "integer",
            "example": 3995
          },
          "width": {
            "type": "integer",
            "example": 3153
          }
        }
      },
      "variant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 17390
          },
          "title": {
            "type": "string",
            "example": "Heather Grey / XS"
          },
          "options": {
            "$ref": "#/components/schemas/variantOptions"
          },
          "placeholders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/variantPlaceholder"
            }
          },
          "decoration_methods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "dtg",
              "embroidery"
            ]
          }
        }
      },
      "variantsResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 3
          },
          "title": {
            "type": "string",
            "example": "DJ"
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/variant"
            }
          }
        }
      },
      "catalogNotFoundResponse": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Why the resource was not found",
            "example": "Blueprint Print Provider of blueprint \"3\" and print provider \"1\" could not be found"
          },
          "status": {
            "type": "integer",
            "example": 404
          }
        }
      },
      "productionTime": {
        "type": "object",
        "nullable": true,
        "description": "Average production time of the blueprint at this print provider, based on recent orders. `null` when no production time is recorded for the print provider yet. Print providers with only a few recent orders report a default estimate of 2.9 business days.",
        "properties": {
          "average": {
            "type": "number",
            "format": "float",
            "description": "Average production time, rounded to one decimal.",
            "example": 2.9
          },
          "unit": {
            "type": "string",
            "enum": [
              "business_days"
            ],
            "example": "business_days"
          }
        }
      },
      "printProviderSimple": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 3
          },
          "title": {
            "type": "string",
            "example": "DJ"
          },
          "decoration_methods": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "dtg",
              "embroidery"
            ]
          },
          "production_time": {
            "$ref": "#/components/schemas/productionTime"
          }
        }
      },
      "handlingTime": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "example": 10
          },
          "unit": {
            "type": "string",
            "example": "day"
          }
        }
      },
      "shippingCost": {
        "type": "object",
        "properties": {
          "cost": {
            "type": "integer",
            "example": 450
          },
          "currency": {
            "type": "string",
            "example": "USD"
          }
        }
      },
      "shippingProfile": {
        "type": "object",
        "properties": {
          "variant_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              42716,
              42717,
              42718
            ]
          },
          "first_item": {
            "$ref": "#/components/schemas/shippingCost"
          },
          "additional_items": {
            "$ref": "#/components/schemas/shippingCost"
          },
          "countries": {
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes this profile applies to. `REST_OF_THE_WORLD` means every country not listed in another profile.",
            "items": {
              "type": "string"
            },
            "example": [
              "US"
            ]
          }
        }
      },
      "shippingResponse": {
        "type": "object",
        "properties": {
          "handling_time": {
            "$ref": "#/components/schemas/handlingTime"
          },
          "profiles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/shippingProfile"
            }
          }
        }
      },
      "blueprintListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 3
          },
          "title": {
            "type": "string",
            "example": "Kids Regular Fit Tee"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "example": "Description goes here"
          },
          "brand": {
            "type": "string",
            "example": "Delta"
          },
          "model": {
            "type": "string",
            "example": "11736"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "example": [
              "https://images.printify.com/5853fe7dce46f30f8327f5cd",
              "https://images.printify.com/5c487ee2a342bc9b8b2fc4d2"
            ]
          }
        }
      },
      "blueprint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 3
          },
          "title": {
            "type": "string",
            "example": "Kids Regular Fit Tee"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "example": "Description goes here"
          },
          "brand": {
            "type": "string",
            "example": "Delta"
          },
          "model": {
            "type": "string",
            "example": "11736"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "example": [
              "https://images.printify.com/5853fe7dce46f30f8327f5cd",
              "https://images.printify.com/5c487ee2a342bc9b8b2fc4d2"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Early Access"
            ]
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "With side seams"
                },
                "description": {
                  "type": "string",
                  "example": "Located along the sides, they help hold the garment's shape longer and give it structural support"
                },
                "image": {
                  "type": "string",
                  "format": "uri",
                  "nullable": true,
                  "example": "https://images.printify.com/59e0e9dfb8e7e30b9f57668b/icons_v4_outlined_33_with_side_seams.svg"
                }
              }
            },
            "example": [
              {
                "name": "With side seams",
                "description": "Located along the sides, they help hold the garment's shape longer and give it structural support",
                "image": "https://images.printify.com/59e0e9dfb8e7e30b9f57668b/icons_v4_outlined_33_with_side_seams.svg"
              }
            ]
          },
          "care_instructions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Machine wash: cold (max 30C or 90F)",
              "Non-chlorine: bleach as needed"
            ]
          }
        }
      },
      "sizeGuide": {
        "type": "object",
        "properties": {
          "sizes": {
            "type": "array",
            "description": "Available sizes, in order.",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "type": "array",
            "description": "Measurement types (e.g. width, length), each with one range per size.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "units": {
                  "type": "string"
                },
                "ranges": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "string",
                        "nullable": true
                      },
                      "to": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "location": {
        "type": "object",
        "properties": {
          "address1": {
            "type": "string",
            "description": "Omitted when not set",
            "example": "89 Weirfield St"
          },
          "address2": {
            "type": "string",
            "description": "Omitted when not set",
            "example": "Suite 2"
          },
          "city": {
            "type": "string",
            "example": "Brooklyn"
          },
          "country": {
            "type": "string",
            "example": "US"
          },
          "region": {
            "type": "string",
            "example": "NY"
          },
          "zip": {
            "type": "string",
            "example": "11221-5120"
          }
        }
      },
      "printProviderListItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1
          },
          "title": {
            "type": "string",
            "example": "SPOKE Custom Products"
          },
          "location": {
            "$ref": "#/components/schemas/location"
          }
        }
      },
      "printProviderBlueprint": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 3
          },
          "title": {
            "type": "string",
            "example": "Kids Regular Fit Tee"
          },
          "brand": {
            "type": "string",
            "example": "Delta"
          },
          "model": {
            "type": "string",
            "example": "11736"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            },
            "example": [
              "https://images.printify.com/5853fe7dce46f30f8327f5cd.png"
            ]
          }
        }
      },
      "printProvider": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1
          },
          "title": {
            "type": "string",
            "example": "SPOKE Custom Products"
          },
          "location": {
            "$ref": "#/components/schemas/location"
          },
          "blueprints": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/printProviderBlueprint"
            }
          }
        }
      },
      "optionValue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1189
          },
          "title": {
            "type": "string",
            "example": "11oz"
          }
        }
      },
      "productOption": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Sizes"
          },
          "type": {
            "type": "string",
            "example": "size"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/optionValue"
            }
          }
        }
      },
      "productVariant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 33719
          },
          "sku": {
            "type": "string",
            "example": "866366009"
          },
          "cost": {
            "type": "integer",
            "example": 516
          },
          "price": {
            "type": "integer",
            "example": 860
          },
          "title": {
            "type": "string",
            "example": "11oz"
          },
          "grams": {
            "type": "integer",
            "example": 460
          },
          "is_enabled": {
            "type": "boolean",
            "example": true
          },
          "is_default": {
            "type": "boolean",
            "example": true
          },
          "is_available": {
            "type": "boolean",
            "example": true
          },
          "is_printify_express_eligible": {
            "type": "boolean",
            "example": true
          },
          "options": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1189
            ]
          }
        }
      },
      "productImage": {
        "type": "object",
        "properties": {
          "src": {
            "type": "string",
            "format": "uri",
            "example": "https://images.printify.com/mockup/5d39b159e7c48c000728c89f/33719/145/mug-11oz.jpg"
          },
          "variant_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              33719
            ]
          },
          "position": {
            "type": "string",
            "example": "front"
          },
          "is_default": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "pattern": {
        "type": "object",
        "nullable": true,
        "description": "Requests must send all four values as numbers. In responses a value can be null when the product was last edited outside the Public API and the stored pattern lacks it.",
        "required": [
          "spacing_x",
          "spacing_y",
          "angle",
          "offset"
        ],
        "properties": {
          "spacing_x": {
            "type": "number",
            "nullable": true,
            "example": 1
          },
          "spacing_y": {
            "type": "number",
            "nullable": true,
            "example": 2
          },
          "angle": {
            "type": "number",
            "nullable": true,
            "example": 3
          },
          "offset": {
            "type": "number",
            "nullable": true,
            "example": 4
          }
        }
      },
      "placeholderImage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5c7665205342af161e1cb26e"
          },
          "src": {
            "type": "string",
            "format": "uri",
            "readOnly": true,
            "description": "Filled in from the uploaded image. In list, create and update responses it can be an empty string or missing; the single product endpoint always returns it.",
            "example": "https://image-storage.example.com/5d39b159e7c48c000728c89f"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "example": "Test.png"
          },
          "type": {
            "type": "string",
            "readOnly": true,
            "example": "image/png"
          },
          "height": {
            "type": "number",
            "readOnly": true,
            "example": 5850
          },
          "width": {
            "type": "number",
            "readOnly": true,
            "example": 4350
          },
          "x": {
            "type": "number",
            "format": "float",
            "example": 0.5
          },
          "y": {
            "type": "number",
            "format": "float",
            "example": 0.5
          },
          "scale": {
            "type": "number",
            "format": "float",
            "example": 1.01
          },
          "angle": {
            "type": "number",
            "description": "Rotation in degrees. Requests must send an integer. Responses can contain a fractional angle when the product was last edited outside the Public API.",
            "example": 0
          },
          "font_family": {
            "type": "string",
            "nullable": true,
            "example": "ABeeZee"
          },
          "font_size": {
            "type": "integer",
            "nullable": true,
            "example": 200
          },
          "font_weight": {
            "type": "integer",
            "nullable": true,
            "example": 400
          },
          "font_color": {
            "type": "string",
            "nullable": true,
            "example": "#ffffff"
          },
          "font_style": {
            "type": "string",
            "nullable": true,
            "example": "normal"
          },
          "input_text": {
            "type": "string",
            "nullable": true,
            "example": "Text example"
          },
          "text_align": {
            "type": "string",
            "nullable": true,
            "example": "left"
          },
          "pattern": {
            "$ref": "#/components/schemas/pattern"
          }
        }
      },
      "placeholder": {
        "type": "object",
        "properties": {
          "position": {
            "type": "string",
            "example": "front"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/placeholderImage"
            }
          }
        }
      },
      "printArea": {
        "type": "object",
        "properties": {
          "variant_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              33719
            ]
          },
          "placeholders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/placeholder"
            }
          },
          "background": {
            "type": "string",
            "example": "#ffffff"
          }
        }
      },
      "printDetails": {
        "type": "object",
        "properties": {
          "print_on_side": {
            "type": "string",
            "nullable": true,
            "description": "Side printing for canvases: `regular` extends the print area to the sides, `mirror` mirrors it to the sides, `off` stops printing on the sides.",
            "example": "mirror"
          }
        }
      },
      "viewFile": {
        "type": "object",
        "properties": {
          "src": {
            "type": "string",
            "format": "uri",
            "example": "https://images.printify.com/api/catalog/618e1792f80e2001a840687b.svg"
          },
          "variant_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              33719
            ]
          }
        }
      },
      "view": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 34395
          },
          "label": {
            "type": "string",
            "example": "Front side"
          },
          "position": {
            "type": "string",
            "example": "front"
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/viewFile"
            }
          }
        }
      },
      "product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5d39b159e7c48c000728c89f"
          },
          "title": {
            "type": "string",
            "example": "Mug 11oz"
          },
          "description": {
            "type": "string",
            "example": "Perfect for coffee, tea and hot chocolate..."
          },
          "safety_information": {
            "type": "string",
            "description": "Omitted when the product has no safety information",
            "example": "GPSR information: John Doe..."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Home & Living",
              "Mugs",
              "11 oz"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/productOption"
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/productVariant"
            }
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/productImage"
            }
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2019-07-25 13:40:41+00:00"
          },
          "updated_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2019-07-25 13:40:59+00:00"
          },
          "visible": {
            "type": "boolean",
            "example": true
          },
          "external": {
            "type": "object",
            "description": "References to the product in the sales channel, set with the publishing succeeded endpoint. Omitted when the product has not been published.",
            "properties": {
              "id": {
                "type": "string",
                "example": "A123abceASd"
              },
              "handle": {
                "type": "string",
                "example": "/path/to/product"
              },
              "shipping_template_id": {
                "type": "string",
                "example": "B123abceASd"
              }
            }
          },
          "is_locked": {
            "type": "boolean",
            "example": false
          },
          "is_printify_express_eligible": {
            "type": "boolean",
            "example": true
          },
          "is_printify_express_enabled": {
            "type": "boolean",
            "example": true
          },
          "is_economy_shipping_eligible": {
            "type": "boolean",
            "description": "Whether the product can be eligible for Economy shipping, depending on the selection of its variants. Read-only.",
            "example": true
          },
          "is_economy_shipping_enabled": {
            "type": "boolean",
            "description": "Whether Economy shipping is enabled for the product. Set it when creating or updating the product. An order can use Economy shipping (`shipping_method` 4) only if every product in it has this flag enabled.",
            "example": true
          },
          "blueprint_id": {
            "type": "integer",
            "example": 68
          },
          "user_id": {
            "type": "integer",
            "example": 1337
          },
          "shop_id": {
            "type": "integer",
            "example": 1337
          },
          "print_provider_id": {
            "type": "integer",
            "example": 9
          },
          "print_areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/printArea"
            }
          },
          "print_details": {
            "description": "Print details of the product. An empty array `[]` when the product has none.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/printDetails"
              },
              {
                "type": "array",
                "maxItems": 0
              }
            ]
          },
          "views": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/view"
            }
          },
          "sales_channel_properties": {
            "description": "Sales channel specific properties of the product. An empty array `[]` when the product has none.",
            "oneOf": [
              {
                "type": "object"
              },
              {
                "type": "array",
                "maxItems": 0
              }
            ],
            "example": []
          }
        }
      },
      "notFoundResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "example": "Not found"
          },
          "request_id": {
            "type": "string",
            "example": "1755000000@1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
          }
        }
      },
      "salesChannelPropertiesInput": {
        "type": "object",
        "description": "Properties specific to the sales channel of the shop. Which keys apply depends on the sales channel: Amazon - `free_shipping`, `bullet_points`, `no_variation_parent`, `brand_name`; Etsy - `free_shipping`, `personalisation`; BigCommerce - `categories`, `free_shipping`; eBay - `free_shipping`; Shopify - `collections`, `free_shipping`; Squarespace - `store_page`; TikTok - `delivery_service_id`, `warehouse_id`, `free_shipping`, `personalisation`. Custom integrations have no sales channel properties, so the object is ignored for them. A key that isn't a known sales channel property returns `400`. On update, the object replaces the stored properties: keys that are left out go back to their defaults.",
        "properties": {
          "free_shipping": {
            "type": "boolean",
            "description": "Amazon, Etsy, BigCommerce, eBay, Shopify and TikTok.",
            "example": false
          },
          "bullet_points": {
            "type": "array",
            "description": "Amazon only.",
            "minItems": 1,
            "maxItems": 5,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 550
            },
            "example": [
              "Machine-washable",
              "100% cotton"
            ]
          },
          "no_variation_parent": {
            "type": "boolean",
            "description": "Amazon only.",
            "example": false
          },
          "brand_name": {
            "type": "string",
            "nullable": true,
            "description": "Amazon only. An Amazon approved brand name set on the Printify store.",
            "example": "Some brand name"
          },
          "categories": {
            "type": "array",
            "description": "BigCommerce only. Category IDs.",
            "maxItems": 10,
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "collections": {
            "type": "array",
            "description": "Shopify only. Collection names.",
            "maxItems": 10,
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "example": [
              "T-shirts"
            ]
          },
          "personalisation": {
            "type": "object",
            "nullable": true,
            "description": "Etsy and TikTok.",
            "properties": {
              "instructions": {
                "type": "string",
                "maxLength": 256,
                "example": "Please provide the name you would like to be printed on the mug"
              },
              "buyer_response_limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1024,
                "example": 30
              }
            }
          },
          "delivery_service_id": {
            "type": "string",
            "description": "TikTok only.",
            "example": "123"
          },
          "warehouse_id": {
            "type": "string",
            "description": "TikTok only.",
            "example": "456"
          },
          "store_page": {
            "type": "string",
            "description": "Squarespace only.",
            "example": "https://some-store.squarespace.com"
          }
        }
      },
      "updateProductRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "Product"
          },
          "description": {
            "type": "string",
            "example": "Good product"
          },
          "safety_information": {
            "type": "string",
            "nullable": true,
            "maxLength": 1000,
            "example": "GPSR information: John Doe..."
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "price"
              ],
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 45740
                },
                "sku": {
                  "type": "string",
                  "description": "An empty string counts as not provided, and the generated SKU is kept.",
                  "example": "SKU-123"
                },
                "price": {
                  "type": "integer",
                  "description": "Price in cents",
                  "example": 400
                },
                "is_enabled": {
                  "type": "boolean",
                  "example": true
                }
              }
            }
          },
          "print_areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/printArea"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Home & Living"
            ]
          },
          "visible": {
            "type": "boolean",
            "example": true
          },
          "is_printify_express_enabled": {
            "type": "boolean",
            "example": true
          },
          "is_economy_shipping_enabled": {
            "type": "boolean",
            "description": "Enables or disables Economy shipping for the product. An order can use Economy shipping (`shipping_method` 4) only if every product in it has this flag enabled. When omitted, the current value is kept. Setting it to `true` for a product where `is_economy_shipping_eligible` is `false` returns a validation error.",
            "example": true
          },
          "external": {
            "type": "object",
            "properties": {
              "shipping_template_id": {
                "type": "string",
                "description": "Shipping template ID in the sales channel",
                "example": "B123abceASd"
              }
            }
          },
          "print_details": {
            "$ref": "#/components/schemas/printDetails"
          },
          "sales_channel_properties": {
            "$ref": "#/components/schemas/salesChannelPropertiesInput"
          }
        }
      },
      "paginatedResponse": {
        "type": "object",
        "properties": {
          "current_page": {
            "type": "integer",
            "example": 1
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "first_page_url": {
            "type": "string",
            "example": "/?page=1"
          },
          "from": {
            "type": "integer",
            "nullable": true,
            "example": 1
          },
          "last_page": {
            "type": "integer",
            "example": 22
          },
          "last_page_url": {
            "type": "string",
            "example": "/?page=22"
          },
          "next_page_url": {
            "type": "string",
            "nullable": true,
            "example": "/?page=2"
          },
          "path": {
            "type": "string",
            "example": "/"
          },
          "per_page": {
            "type": "integer",
            "example": 1
          },
          "prev_page_url": {
            "type": "string",
            "nullable": true,
            "example": null
          },
          "to": {
            "type": "integer",
            "nullable": true,
            "example": 1
          },
          "total": {
            "type": "integer",
            "example": 22
          }
        }
      },
      "createProductRequest": {
        "type": "object",
        "required": [
          "title",
          "blueprint_id",
          "print_provider_id",
          "variants",
          "print_areas"
        ],
        "properties": {
          "title": {
            "type": "string",
            "example": "Product"
          },
          "description": {
            "type": "string",
            "example": "Good product"
          },
          "safety_information": {
            "type": "string",
            "nullable": true,
            "maxLength": 1000,
            "example": "GPSR information: John Doe..."
          },
          "blueprint_id": {
            "type": "integer",
            "example": 384
          },
          "print_provider_id": {
            "type": "integer",
            "example": 1
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "price"
              ],
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 45740
                },
                "sku": {
                  "type": "string",
                  "description": "An empty string counts as not provided, and the generated SKU is kept.",
                  "example": "SKU-123"
                },
                "price": {
                  "type": "integer",
                  "minimum": 1,
                  "description": "Price in cents",
                  "example": 400
                },
                "is_enabled": {
                  "type": "boolean",
                  "example": true
                }
              }
            }
          },
          "print_areas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/printArea"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Home & Living"
            ]
          },
          "visible": {
            "type": "boolean",
            "example": true
          },
          "is_printify_express_enabled": {
            "type": "boolean",
            "example": true
          },
          "is_economy_shipping_enabled": {
            "type": "boolean",
            "description": "Enables Economy shipping for the product. An order can use Economy shipping (`shipping_method` 4) only if every product in it has this flag enabled. Applies only to products where `is_economy_shipping_eligible` is `true`; for other products the value is ignored. Defaults to `false`.",
            "example": true
          },
          "external": {
            "type": "object",
            "properties": {
              "shipping_template_id": {
                "type": "string",
                "description": "Shipping template ID in the sales channel",
                "example": "B123abceASd"
              }
            }
          },
          "print_details": {
            "$ref": "#/components/schemas/printDetails"
          },
          "sales_channel_properties": {
            "$ref": "#/components/schemas/salesChannelPropertiesInput"
          }
        }
      },
      "externalProduct": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5941187eb8e7e37b3f0e62e5"
          },
          "handle": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/path/to/product"
          }
        }
      },
      "publishingSucceededRequest": {
        "type": "object",
        "properties": {
          "external": {
            "$ref": "#/components/schemas/externalProduct"
          }
        }
      },
      "publishingFailedRequest": {
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "type": "string",
            "example": "Request timed out"
          }
        }
      },
      "publishRequest": {
        "type": "object",
        "required": [
          "title",
          "description",
          "images",
          "variants",
          "tags"
        ],
        "properties": {
          "title": {
            "type": "boolean",
            "example": true
          },
          "description": {
            "type": "boolean",
            "example": true
          },
          "images": {
            "type": "boolean",
            "example": true
          },
          "variants": {
            "type": "boolean",
            "example": true
          },
          "tags": {
            "type": "boolean",
            "example": true
          },
          "keyFeatures": {
            "type": "boolean",
            "example": true
          },
          "shipping_template": {
            "type": "boolean",
            "example": true
          }
        }
      },
      "gpsrInfo": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "EU representative"
          },
          "text": {
            "type": "string",
            "example": "John Doe, test@example.com, 123 Main St, Apt 1, New York, NY, 10001, US"
          }
        }
      },
      "addressTo": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "example": "Jane"
          },
          "last_name": {
            "type": "string",
            "example": "Smith"
          },
          "region": {
            "type": "string",
            "nullable": true,
            "example": ""
          },
          "address1": {
            "type": "string",
            "example": "ExampleBaan 121"
          },
          "address2": {
            "type": "string",
            "example": "Apt 4B"
          },
          "city": {
            "type": "string",
            "example": "Retie"
          },
          "zip": {
            "type": "string",
            "example": "2470"
          },
          "email": {
            "type": "string",
            "format": "email",
            "example": "example@msn.com"
          },
          "phone": {
            "type": "string",
            "example": "0574 69 21 90"
          },
          "country": {
            "type": "string",
            "example": "BE"
          },
          "company": {
            "type": "string",
            "nullable": true,
            "example": "MSN"
          }
        }
      },
      "lineItemMetadata": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "example": "18K gold plated Necklace"
          },
          "price": {
            "type": "integer",
            "example": 2200
          },
          "variant_label": {
            "type": "string",
            "example": "Golden indigocoin"
          },
          "sku": {
            "type": "string",
            "example": "168699843"
          },
          "country": {
            "type": "string",
            "example": "United States"
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "line-item-abc-001"
          },
          "reprinted_line_item_id": {
            "type": "string",
            "description": "ID of the line item in the reprinted order (see the order's `metadata.reprinted_order_ids`) that this line item reprints. Present only on line items of reprint orders.",
            "example": "5d6c3b0f2a1e4c0012345678"
          }
        }
      },
      "lineItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5a96f649b2439217d070f508"
          },
          "product_id": {
            "type": "string",
            "example": "5b05842f3921c9547531758d"
          },
          "blueprint_id": {
            "type": "integer",
            "example": 384
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "variant_id": {
            "type": "integer",
            "example": 17887
          },
          "print_provider_id": {
            "type": "integer",
            "example": 5
          },
          "cost": {
            "type": "integer",
            "example": 1050
          },
          "shipping_cost": {
            "type": "integer",
            "example": 400
          },
          "status": {
            "type": "string",
            "example": "fulfilled"
          },
          "status_details": {
            "type": "string",
            "description": "Reason for the line item's current status, when it is known and exposed. Omitted otherwise. out_of_stock and discontinued are returned only when the line item is on-hold or canceled; item_is_canceled_by_ip_detection, item_is_canceled_due_missing_external_shipping_label and canceled_by_print_provider only when it is canceled.",
            "enum": [
              "out_of_stock",
              "discontinued",
              "item_is_canceled_by_ip_detection",
              "item_is_canceled_due_missing_external_shipping_label",
              "canceled_by_print_provider",
              "shipment_undeliverable",
              "shipment_undeliverable_restricted",
              "shipment_delayed",
              "issue_address_change",
              "issue_delivery_refused",
              "issue_delivery_delayed_customs",
              "issue_delivery_delayed",
              "issue_incorrect_address",
              "issue_rejected",
              "issue_damaged",
              "issue_lost"
            ],
            "example": "out_of_stock"
          },
          "metadata": {
            "$ref": "#/components/schemas/lineItemMetadata"
          },
          "sent_to_production_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "fulfilled_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "estimated_ship_at": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date the line item ships, in UTC. Returned when retrieving a single order and in Printify Express order responses, and omitted when there is no estimate.",
            "example": "2026-10-23T00:00:00.000Z"
          },
          "estimated_delivery_at": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date the line item is delivered, in UTC. Returned when retrieving a single order and in Printify Express order responses, and omitted when there is no estimate.",
            "example": "2026-10-28T00:00:00.000Z"
          }
        }
      },
      "orderMetadata": {
        "type": "object",
        "required": [
          "is_reprint",
          "costs_covered",
          "reprinted_order_ids",
          "child_reprinted_order_ids"
        ],
        "properties": {
          "order_type": {
            "type": "string",
            "example": "external"
          },
          "shop_order_id": {
            "type": "string",
            "example": "1370762297"
          },
          "shop_order_label": {
            "type": "string",
            "example": "1370762297"
          },
          "shop_fulfilled_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format. Omitted when the order has not been fulfilled in the sales channel.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "is_reprint": {
            "type": "boolean",
            "description": "Whether this order is a reprint or replacement order. Always present; `false` when the order is not a reprint/replacement.",
            "example": false
          },
          "costs_covered": {
            "type": "boolean",
            "description": "Whether the production and shipping costs of this order are covered, for example a reprint or replacement issued at no charge to the store. Cost fields still show the order's calculated cost. Always present; `false` when the costs are not covered.",
            "example": false
          },
          "reprinted_order_ids": {
            "type": "array",
            "description": "IDs of the original orders this order reprints or replaces. Always present; an empty array when the order is not a reprint/replacement.",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "child_reprinted_order_ids": {
            "type": "array",
            "description": "IDs of orders that reprint or replace this order. Always present; an empty array when this order has no reprints/replacements.",
            "items": {
              "type": "string"
            },
            "example": []
          }
        }
      },
      "shipment": {
        "type": "object",
        "properties": {
          "carrier": {
            "type": "string",
            "example": "usps"
          },
          "number": {
            "type": "string",
            "example": "94001116990045395649372"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "http://example.com/94001116990045395649372"
          },
          "delivered_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Null until set.",
            "nullable": true,
            "example": "2017-04-18 13:24:28+00:00"
          },
          "line_item_ids": {
            "type": "array",
            "description": "Ids of the order line items (line_items[].id) included in the shipment.",
            "items": {
              "type": "string"
            },
            "example": [
              "5e7b3a9c1f2d4a0012345678"
            ]
          }
        }
      },
      "printifyConnect": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/printify_connect_hash"
          },
          "id": {
            "type": "string",
            "example": "printify_connect_hash"
          }
        }
      },
      "order": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5a6e03bd2f7d8055768923c8"
          },
          "app_order_id": {
            "type": "string",
            "nullable": true,
            "example": "215014.44"
          },
          "address_to": {
            "$ref": "#/components/schemas/addressTo"
          },
          "line_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/lineItem"
            }
          },
          "metadata": {
            "$ref": "#/components/schemas/orderMetadata"
          },
          "total_price": {
            "type": "integer",
            "example": 2200
          },
          "total_shipping": {
            "type": "integer",
            "example": 400
          },
          "total_tax": {
            "type": "integer",
            "example": 0
          },
          "status": {
            "type": "string",
            "example": "fulfilled"
          },
          "shipping_method": {
            "type": "integer",
            "example": 1
          },
          "is_printify_express": {
            "type": "boolean",
            "description": "Omitted when false.",
            "example": true
          },
          "is_economy_shipping": {
            "type": "boolean",
            "description": "Omitted when false.",
            "example": true
          },
          "shipments": {
            "type": "array",
            "description": "Omitted when the order has no shipments yet.",
            "items": {
              "$ref": "#/components/schemas/shipment"
            }
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "sent_to_production_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "fulfilled_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "printify_connect": {
            "$ref": "#/components/schemas/printifyConnect"
          }
        }
      },
      "personalisation": {
        "type": "object",
        "description": "Attaches a personalization created via the Create a personalization configuration endpoint to an order line item.",
        "properties": {
          "personalisation_strategy": {
            "type": "string",
            "nullable": true,
            "description": "Pass this value exactly as returned by the Create a personalization configuration response — it is an opaque value and should not be constructed manually. The one value worth knowing about explicitly is `manual`, which indicates a mapping issue caused by a label inconsistency (the personalizable product was changed). The order will require manual adjustment from the merchant and won't be sent to production automatically.",
            "example": "pstudio_pre_order_headless"
          },
          "personalisation_instructions": {
            "type": "string",
            "nullable": true,
            "description": "Pass this value exactly as returned by the Create a personalization configuration response. It is an opaque reference token for most strategies, or human-readable free text when personalisation_strategy is manual.",
            "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
          }
        }
      },
      "lineItemWithProduct": {
        "type": "object",
        "required": [
          "product_id",
          "variant_id",
          "quantity"
        ],
        "properties": {
          "product_id": {
            "type": "string",
            "example": "5bfd0b66a342bcc9b5563216"
          },
          "variant_id": {
            "type": "integer",
            "example": 17887
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "line-item-abc-001"
          },
          "personalisation": {
            "$ref": "#/components/schemas/personalisation"
          },
          "personalisation_instructions": {
            "type": "string",
            "nullable": true,
            "deprecated": true,
            "description": "Deprecated. Use personalisation.personalisation_instructions instead.",
            "example": "Please add text"
          }
        }
      },
      "printAreasSimple": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "format": "uri"
        },
        "example": {
          "front": "https://images.example.com/image.png"
        }
      },
      "positionedImage": {
        "type": "object",
        "properties": {
          "src": {
            "type": "string",
            "format": "uri",
            "example": "https://images.example.com/image.png"
          },
          "scale": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "example": 0.15
          },
          "x": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "example": 0.8
          },
          "y": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "example": 0.34
          },
          "angle": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "example": 0.34
          }
        }
      },
      "printAreasAdvanced": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/positionedImage"
          }
        },
        "example": {
          "front": [
            {
              "src": "https://images.example.com/image.png",
              "scale": 0.15,
              "x": 0.8,
              "y": 0.34,
              "angle": 0.34
            },
            {
              "src": "https://images.example.com/image.png",
              "scale": 1,
              "x": 0.5,
              "y": 0.5,
              "angle": 1
            }
          ]
        }
      },
      "lineItemWithBlueprint": {
        "type": "object",
        "required": [
          "print_provider_id",
          "blueprint_id",
          "variant_id",
          "quantity"
        ],
        "properties": {
          "print_provider_id": {
            "type": "integer",
            "example": 5
          },
          "blueprint_id": {
            "type": "integer",
            "example": 9
          },
          "variant_id": {
            "type": "integer",
            "example": 17887
          },
          "print_areas": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/printAreasSimple"
              },
              {
                "$ref": "#/components/schemas/printAreasAdvanced"
              }
            ]
          },
          "print_details": {
            "$ref": "#/components/schemas/printDetails"
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "line-item-abc-001"
          },
          "personalisation": {
            "$ref": "#/components/schemas/personalisation"
          },
          "personalisation_instructions": {
            "type": "string",
            "nullable": true,
            "deprecated": true,
            "description": "Deprecated. Use personalisation.personalisation_instructions instead.",
            "example": "Please add text"
          }
        }
      },
      "lineItemWithSku": {
        "type": "object",
        "required": [
          "sku",
          "quantity"
        ],
        "properties": {
          "sku": {
            "type": "string",
            "example": "MY-SKU"
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "line-item-abc-001"
          },
          "personalisation": {
            "$ref": "#/components/schemas/personalisation"
          },
          "personalisation_instructions": {
            "type": "string",
            "nullable": true,
            "deprecated": true,
            "description": "Deprecated. Use personalisation.personalisation_instructions instead.",
            "example": "Please add text"
          }
        }
      },
      "submitOrderRequest": {
        "type": "object",
        "required": [
          "line_items",
          "address_to"
        ],
        "properties": {
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "2750e210-39bb-11e9-a503-452618153e4a"
          },
          "label": {
            "type": "string",
            "nullable": true,
            "example": "00012"
          },
          "line_items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/lineItemWithProduct"
                },
                {
                  "$ref": "#/components/schemas/lineItemWithBlueprint"
                },
                {
                  "$ref": "#/components/schemas/lineItemWithSku"
                }
              ]
            }
          },
          "shipping_method": {
            "type": "integer",
            "nullable": true,
            "description": "Shipping method of the order: 1 standard, 2 priority, 3 Printify Express, 4 Economy. Defaults to 1. Economy (4) is available only when every product in the order is eligible for it and has `is_economy_shipping_enabled` set to `true`, and the order ships to the US (excluding US islands). Otherwise the request fails with 422.",
            "example": 1
          },
          "is_printify_express": {
            "type": "boolean",
            "nullable": true,
            "example": false
          },
          "is_economy_shipping": {
            "type": "boolean",
            "nullable": true,
            "example": false
          },
          "send_shipping_notification": {
            "type": "boolean",
            "nullable": true,
            "example": false
          },
          "address_to": {
            "$ref": "#/components/schemas/addressTo"
          }
        }
      },
      "orderCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5a96f649b2439217d070f507"
          }
        }
      },
      "errorOrderConflictResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/errorResponse"
          },
          {
            "type": "object",
            "properties": {
              "order": {
                "type": "object",
                "required": [
                  "id"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "example": "69e53a28c07ff9d99800d244"
                  },
                  "external_id": {
                    "type": "string",
                    "nullable": true,
                    "example": "2750e210-39bb-11e9-a503-452618153e4a"
                  }
                }
              }
            }
          }
        ]
      },
      "supportRequestLineItem": {
        "type": "object",
        "required": [
          "line_item_id",
          "quantity"
        ],
        "properties": {
          "line_item_id": {
            "type": "string",
            "example": "5b05842f3921c9547531758d"
          },
          "quantity": {
            "type": "integer",
            "example": 1
          }
        }
      },
      "reprintSupportRequestRequest": {
        "type": "object",
        "required": [
          "reason",
          "description",
          "line_items"
        ],
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "image_quality",
              "incorrect_item",
              "shipping_issues",
              "stained_or_damaged_item",
              "wrong_color_or_size",
              "wrong_design"
            ],
            "example": "wrong_design"
          },
          "description": {
            "type": "string",
            "maxLength": 400,
            "example": "The design printed on the wrong side."
          },
          "image_urls": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "format": "uri"
            },
            "example": [
              "https://example.com/photo-of-issue.png"
            ]
          },
          "line_items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/supportRequestLineItem"
            }
          }
        }
      },
      "supportRequestCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "9f8b6c1a-2d3e-4f5a-8b7c-1a2b3c4d5e6f"
          },
          "order_id": {
            "type": "string",
            "readOnly": true,
            "example": "5a96f649b2439217d070f507"
          },
          "type": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "order_reprint",
              "order_refund"
            ],
            "example": "order_reprint"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "description": "`processing` while the provided `image_urls` are still being attached to the request, `pending` when no images were provided.",
            "enum": [
              "pending",
              "processing"
            ],
            "example": "processing"
          },
          "status_details": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "example": null
          },
          "outcome": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "positive",
              "negative",
              "unresolved"
            ],
            "example": "unresolved"
          },
          "line_item_ids": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "example": [
              "5b05842f3921c9547531758d"
            ]
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format",
            "readOnly": true,
            "example": "2026-08-24 10:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format",
            "readOnly": true,
            "example": "2026-08-24 10:00:00+00:00"
          }
        }
      },
      "refundSupportRequestRequest": {
        "type": "object",
        "required": [
          "reason",
          "description",
          "line_items"
        ],
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "image_quality",
              "incorrect_item",
              "shipping_issues",
              "stained_or_damaged_item",
              "wrong_color_or_size",
              "wrong_design"
            ],
            "example": "stained_or_damaged_item"
          },
          "description": {
            "type": "string",
            "maxLength": 400,
            "example": "Item arrived stained."
          },
          "image_urls": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "format": "uri"
            },
            "example": [
              "https://example.com/photo-of-issue.png"
            ]
          },
          "line_items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/supportRequestLineItem"
            }
          }
        }
      },
      "calculateShippingRequest": {
        "type": "object",
        "required": [
          "line_items",
          "address_to"
        ],
        "properties": {
          "line_items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/lineItemWithProduct"
                },
                {
                  "$ref": "#/components/schemas/lineItemWithBlueprint"
                },
                {
                  "$ref": "#/components/schemas/lineItemWithSku"
                }
              ]
            }
          },
          "address_to": {
            "$ref": "#/components/schemas/addressTo"
          }
        }
      },
      "shippingCosts": {
        "type": "object",
        "properties": {
          "standard": {
            "type": "integer",
            "example": 1000
          },
          "express": {
            "type": "integer",
            "example": 5000
          },
          "priority": {
            "type": "integer",
            "example": 5000
          },
          "printify_express": {
            "type": "integer",
            "example": 799
          },
          "economy": {
            "type": "integer",
            "example": 399
          }
        }
      },
      "expressOrderRequest": {
        "type": "object",
        "required": [
          "line_items",
          "address_to"
        ],
        "properties": {
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "2750e210-39bb-11e9-a503-452618153e4a"
          },
          "label": {
            "type": "string",
            "nullable": true,
            "example": "00012"
          },
          "line_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/lineItemWithProduct"
            }
          },
          "shipping_method": {
            "type": "integer",
            "nullable": true,
            "example": 3
          },
          "send_shipping_notification": {
            "type": "boolean",
            "nullable": true,
            "example": false
          },
          "address_to": {
            "$ref": "#/components/schemas/addressTo"
          }
        }
      },
      "expressOrderLineItem": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "example": "5b05842f3921c9547531758d"
          },
          "quantity": {
            "type": "integer",
            "example": 1
          },
          "variant_id": {
            "type": "integer",
            "example": 12359
          },
          "print_provider_id": {
            "type": "integer",
            "example": 5
          },
          "cost": {
            "type": "integer",
            "example": 2200
          },
          "shipping_cost": {
            "type": "integer",
            "example": 799
          },
          "status": {
            "type": "string",
            "example": "pending"
          },
          "metadata": {
            "$ref": "#/components/schemas/lineItemMetadata"
          },
          "sent_to_production_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2023-10-18 13:24:28+00:00"
          },
          "fulfilled_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format. Omitted until set.",
            "example": "2017-04-18 13:24:28+00:00"
          },
          "estimated_ship_at": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date the line item ships, in UTC. Returned when retrieving a single order and in Printify Express order responses, and omitted when there is no estimate.",
            "example": "2026-10-23T00:00:00.000Z"
          },
          "estimated_delivery_at": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date the line item is delivered, in UTC. Returned when retrieving a single order and in Printify Express order responses, and omitted when there is no estimate.",
            "example": "2026-10-28T00:00:00.000Z"
          }
        }
      },
      "expressOrderAttributes": {
        "type": "object",
        "properties": {
          "app_order_id": {
            "type": "string",
            "nullable": true,
            "example": "215014.44"
          },
          "fulfilment_type": {
            "type": "string",
            "example": "express"
          },
          "line_items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/expressOrderLineItem"
            }
          }
        }
      },
      "expressOrderItem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "order"
          },
          "id": {
            "type": "string",
            "example": "5a96f649b2439217d070f508"
          },
          "attributes": {
            "$ref": "#/components/schemas/expressOrderAttributes"
          }
        }
      },
      "expressOrderResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/expressOrderItem"
            }
          }
        }
      },
      "addressChangeRequest": {
        "type": "object",
        "required": [
          "first_name",
          "last_name",
          "address1",
          "city",
          "country",
          "zip"
        ],
        "properties": {
          "first_name": {
            "type": "string",
            "example": "Jane"
          },
          "last_name": {
            "type": "string",
            "example": "Smith"
          },
          "address1": {
            "type": "string",
            "example": "ExampleBaan 121"
          },
          "address2": {
            "type": "string",
            "nullable": true,
            "example": "Apt 4B"
          },
          "city": {
            "type": "string",
            "example": "Retie"
          },
          "region": {
            "type": "string",
            "nullable": true,
            "example": ""
          },
          "country": {
            "type": "string",
            "example": "BE"
          },
          "zip": {
            "type": "string",
            "example": "2470"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "example": "example@msn.com"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "example": "0574 69 21 90"
          }
        }
      },
      "addressChangeUpdatedDirectly": {
        "type": "object",
        "properties": {
          "resolution": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "updated_directly"
            ],
            "example": "updated_directly"
          },
          "order_id": {
            "type": "string",
            "readOnly": true,
            "example": "5a96f649b2439217d070f507"
          },
          "address_to": {
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/addressTo"
              }
            ]
          }
        }
      },
      "addressChangeSupportRequestCreated": {
        "type": "object",
        "properties": {
          "resolution": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "support_request_created"
            ],
            "example": "support_request_created"
          },
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "8f14e45f-ceea-4b5f-8c1e-3d9a4a2f1e11"
          },
          "order_id": {
            "type": "string",
            "readOnly": true,
            "example": "5a96f649b2439217d070f507"
          },
          "type": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "order_cancellation",
              "order_address_editing",
              "order_shipping_upgrade",
              "order_has_issues",
              "order_tracking_status",
              "order_refund",
              "order_reprint"
            ],
            "example": "order_address_editing"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "pending",
              "in_progress",
              "resolved"
            ],
            "example": "pending"
          },
          "status_details": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "example": null
          },
          "outcome": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "positive",
              "negative",
              "unresolved"
            ],
            "example": "unresolved"
          },
          "created_at": {
            "type": "string",
            "readOnly": true,
            "example": "2017-04-18 13:24:28+00:00"
          },
          "updated_at": {
            "type": "string",
            "readOnly": true,
            "example": "2017-04-18 13:24:28+00:00"
          }
        }
      },
      "personalizationTextOptions": {
        "type": "object",
        "properties": {
          "character_limit": {
            "type": "integer",
            "example": 40
          }
        }
      },
      "personalizationOption": {
        "type": "object",
        "required": [
          "field_id",
          "label",
          "type"
        ],
        "properties": {
          "field_id": {
            "type": "string",
            "example": "front_text"
          },
          "label": {
            "type": "string",
            "example": "Front text"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "textbox"
            ],
            "example": "textbox"
          },
          "text_options": {
            "$ref": "#/components/schemas/personalizationTextOptions"
          }
        }
      },
      "personalizationConfigItemInput": {
        "type": "object",
        "properties": {
          "image_url": {
            "type": "string",
            "format": "uri",
            "description": "Required when the item type is \"image\".",
            "example": "https://images.example.com/photo.jpg"
          },
          "text": {
            "type": "string",
            "example": "Happy Birthday!"
          }
        }
      },
      "personalizationConfigItem": {
        "type": "object",
        "required": [
          "field_id",
          "type",
          "input"
        ],
        "properties": {
          "field_id": {
            "type": "string",
            "example": "front_text"
          },
          "type": {
            "type": "string",
            "enum": [
              "image",
              "textbox"
            ],
            "example": "textbox"
          },
          "input": {
            "$ref": "#/components/schemas/personalizationConfigItemInput"
          }
        }
      },
      "createPersonalizationConfigRequest": {
        "type": "object",
        "required": [
          "variant_id",
          "items"
        ],
        "properties": {
          "variant_id": {
            "type": "integer",
            "example": 17887
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "description": "At most 12 items can have the type \"image\".",
            "items": {
              "$ref": "#/components/schemas/personalizationConfigItem"
            }
          },
          "approval": {
            "type": "object",
            "required": [
              "is_approved"
            ],
            "description": "Optional buyer approval of this personalization.\n\n- Send it only after the buyer approves this personalization.\n- It applies to every order that uses this config.\n- It is ignored if any buyer input could not be applied, and the merchant reviews the order.\n- Automatic submission needs the merchant setting \"Automatically submit personalized orders that were approved by the buyer\".\n- The order then follows the merchant's submission rule.",
            "properties": {
              "is_approved": {
                "type": "boolean",
                "example": true
              }
            }
          },
          "require_all_personalization_fields": {
            "type": "boolean",
            "default": false,
            "description": "Optional. When `true`, the request must include an item for every field returned by the personalization options endpoint.\n\n- If any field is missing, the request fails with `400` and lists the missing `field_id` values.\n- Use it to make sure no personalization field falls back to the product's placeholder design.\n- Defaults to `false`.",
            "example": true
          }
        }
      },
      "personalizationConfigWarning": {
        "type": "object",
        "required": [
          "field_id",
          "code",
          "message"
        ],
        "properties": {
          "field_id": {
            "type": "string",
            "description": "The `field_id` of the request item that could not be applied to the personalized product.",
            "example": "front_text"
          },
          "code": {
            "type": "integer",
            "description": "Identifies the warning. `8510` means that the item could not be applied. More codes can be added later, so handle an unknown code as a generic warning.",
            "example": 8510
          },
          "message": {
            "type": "string",
            "description": "Human-readable description of the warning. Do not parse it, because it can change.",
            "example": "Cannot apply personalization."
          }
        }
      },
      "createPersonalizationConfigResponse": {
        "type": "object",
        "properties": {
          "personalisation_strategy": {
            "type": "string",
            "description": "An opaque value. Pass it exactly as returned to the `personalisation` object of the order line item. `manual` means the personalization couldn't be resolved automatically, and the order will need a manual adjustment from the merchant.",
            "example": "pstudio_pre_order_headless"
          },
          "personalisation_instructions": {
            "type": "string",
            "description": "Pass it exactly as returned, together with `personalisation_strategy`. An opaque reference for most strategies, or human-readable free text when `personalisation_strategy` is `manual`.",
            "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
          },
          "warnings": {
            "type": "array",
            "description": "Request items that couldn't be applied to the personalized product. The request still succeeds, and you can decide whether to use the returned personalization. Empty when every item was applied.",
            "items": {
              "$ref": "#/components/schemas/personalizationConfigWarning"
            }
          }
        }
      },
      "personalizationPreviewRequest": {
        "type": "object",
        "properties": {
          "external_id": {
            "type": "string",
            "nullable": true,
            "maxLength": 100,
            "example": "preview-abc-001"
          },
          "variant_ids": {
            "type": "array",
            "nullable": true,
            "maxItems": 30,
            "items": {
              "type": "integer",
              "minimum": 1
            },
            "example": [
              17887
            ]
          },
          "personalization": {
            "type": "array",
            "nullable": true,
            "description": "At most 12 items can have the type \"image\".",
            "items": {
              "$ref": "#/components/schemas/personalizationConfigItem"
            }
          },
          "format": {
            "type": "string",
            "nullable": true,
            "enum": [
              "jpeg",
              "png"
            ],
            "description": "Optional preview image format. \"png\" renders the previews with a transparent background. Omit it to keep the default format and the mockup's default background.",
            "example": "png"
          },
          "priority": {
            "type": "boolean",
            "nullable": true,
            "description": "Queues the task in a separate priority lane so it is processed independently of the shop's regular previews. Honoured only for accounts with an agreed priority allowance; ignored for everyone else.",
            "example": true
          }
        }
      },
      "personalizationMockup": {
        "type": "object",
        "properties": {
          "variant_id": {
            "type": "integer",
            "example": 38191
          },
          "mockup_id": {
            "type": "string",
            "example": "Front"
          },
          "src": {
            "type": "string",
            "format": "uri",
            "example": "https://dsaujk5puqrkx.cloudfront.net/buyer-preview/145/buyer-preview/38191/97992/4715046825664400772_2048.jpeg"
          },
          "personalized": {
            "type": "boolean",
            "description": "Whether src is a personalized buyer-preview render. False when the product's mockup had nothing to personalize and src falls back to the product's plain, unpersonalized mockup image instead.",
            "example": true
          }
        }
      },
      "personalizationPreviewError": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Designer API request failed"
          },
          "code": {
            "type": "integer",
            "example": 500
          }
        }
      },
      "personalizationPreviewTask": {
        "type": "object",
        "properties": {
          "task_id": {
            "type": "string",
            "description": "Opaque task identifier. A request for the same product with the same external_id, variant_ids, personalization and format returns the existing task with the same task_id.",
            "example": "12345-67890-5d41402abc4b2a76b9719d911017c592"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed",
              "corrupt"
            ],
            "example": "completed"
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "preview-abc-001"
          },
          "preview_count": {
            "type": "integer",
            "description": "Present only when status is \"completed\".",
            "example": 1
          },
          "mockups": {
            "type": "array",
            "description": "Present only when status is \"completed\".",
            "items": {
              "$ref": "#/components/schemas/personalizationMockup"
            }
          },
          "error": {
            "description": "Present only when status is \"failed\" or \"corrupt\".",
            "allOf": [
              {
                "$ref": "#/components/schemas/personalizationPreviewError"
              }
            ]
          }
        }
      },
      "supportRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "9f8b6c1a-2d3e-4f5a-8b7c-1a2b3c4d5e6f"
          },
          "order_id": {
            "type": "string",
            "readOnly": true,
            "example": "5a96f649b2439217d070f507"
          },
          "type": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "order_cancellation",
              "order_address_editing",
              "order_shipping_upgrade",
              "order_has_issues",
              "order_tracking_status",
              "order_refund",
              "order_reprint"
            ],
            "example": "order_refund"
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "pending",
              "in_progress",
              "resolved"
            ],
            "example": "in_progress"
          },
          "status_details": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "example": "Awaiting carrier confirmation"
          },
          "outcome": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "positive",
              "negative",
              "unresolved"
            ],
            "example": "unresolved"
          },
          "line_item_ids": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            },
            "example": [
              "5b05842f3921c9547531758d"
            ]
          },
          "created_at": {
            "type": "string",
            "readOnly": true,
            "example": "2024-01-01 10:00:00+00:00"
          },
          "updated_at": {
            "type": "string",
            "readOnly": true,
            "example": "2024-01-02 12:30:00+00:00"
          }
        }
      },
      "upload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5e16d66791287a0006e522b2"
          },
          "file_name": {
            "type": "string",
            "example": "png-images-logo-1.jpg"
          },
          "height": {
            "type": "integer",
            "example": 5979
          },
          "width": {
            "type": "integer",
            "example": 17045
          },
          "size": {
            "type": "integer",
            "example": 1138575
          },
          "mime_type": {
            "type": "string",
            "example": "image/png"
          },
          "preview_url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/image-storage/uuid1"
          },
          "upload_time": {
            "type": "string",
            "example": "2020-01-09 07:29:43"
          }
        }
      },
      "uploadImageFromUrl": {
        "type": "object",
        "required": [
          "file_name",
          "url"
        ],
        "properties": {
          "file_name": {
            "type": "string",
            "example": "1x1-ff00007f.png"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "http://png-pixel.com/1x1-ff00007f.png"
          }
        }
      },
      "uploadImageFromContents": {
        "type": "object",
        "required": [
          "file_name",
          "contents"
        ],
        "properties": {
          "file_name": {
            "type": "string",
            "example": "image.png"
          },
          "contents": {
            "type": "string",
            "description": "Base64-encoded image content",
            "example": "base-64-encoded-content"
          }
        }
      },
      "uploadImageRequest": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/uploadImageFromUrl"
          },
          {
            "$ref": "#/components/schemas/uploadImageFromContents"
          }
        ]
      },
      "webhook": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "example": "order:created"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/webhooks/order/created"
          },
          "shop_id": {
            "type": "integer",
            "example": 1
          },
          "id": {
            "type": "string",
            "example": "5cb87a8cd490a2ccb256cec4"
          }
        }
      },
      "modifyWebhookRequest": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/callback/order/created"
          },
          "secret": {
            "type": "string",
            "nullable": true,
            "description": "Optional new secret used to sign webhook payloads. Omit it or send null to keep the current secret, or send an empty string to remove it. It is never returned in responses.",
            "example": "my-new-webhook-secret"
          }
        }
      },
      "webhookDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "5cb87a8cd490a2ccb256cec4"
          }
        }
      },
      "shippingMethodAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "standard"
          }
        }
      },
      "shippingMethodItem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "shipping_method"
          },
          "id": {
            "type": "string",
            "example": "1"
          },
          "attributes": {
            "$ref": "#/components/schemas/shippingMethodAttributes"
          }
        }
      },
      "shippingLinks": {
        "type": "object",
        "properties": {
          "standard": {
            "type": "string",
            "example": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/standard.json"
          },
          "priority": {
            "type": "string",
            "example": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/priority.json"
          },
          "express": {
            "type": "string",
            "example": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/express.json"
          },
          "economy": {
            "type": "string",
            "example": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/economy.json"
          }
        }
      },
      "v2ShippingResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/shippingMethodItem"
            }
          },
          "links": {
            "$ref": "#/components/schemas/shippingLinks"
          }
        }
      },
      "countryCode": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code, or `REST_OF_THE_WORLD` for every country not listed separately.",
            "example": "US"
          }
        }
      },
      "handlingTimeRange": {
        "type": "object",
        "nullable": true,
        "description": "Handling time range in business days. null when there is no delivery time estimate for the destination, which can happen for express and economy shipping outside the US.",
        "properties": {
          "from": {
            "type": "integer",
            "example": 4
          },
          "to": {
            "type": "integer",
            "example": 8
          }
        }
      },
      "shippingCostAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "example": 399
          },
          "currency": {
            "type": "string",
            "example": "USD"
          }
        }
      },
      "v2ShippingCost": {
        "type": "object",
        "properties": {
          "firstItem": {
            "$ref": "#/components/schemas/shippingCostAmount"
          },
          "additionalItems": {
            "$ref": "#/components/schemas/shippingCostAmount"
          }
        }
      },
      "variantShippingAttributes": {
        "type": "object",
        "properties": {
          "shippingType": {
            "type": "string",
            "enum": [
              "standard",
              "priority",
              "express",
              "economy"
            ],
            "example": "standard"
          },
          "country": {
            "$ref": "#/components/schemas/countryCode"
          },
          "variantId": {
            "type": "integer",
            "example": 23494
          },
          "shippingPlanId": {
            "type": "string",
            "example": "65a7c0825b50fcd56a018e02"
          },
          "handlingTime": {
            "$ref": "#/components/schemas/handlingTimeRange"
          },
          "shippingCost": {
            "$ref": "#/components/schemas/v2ShippingCost"
          }
        }
      },
      "variantShippingItem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "variant_shipping_standard_us"
          },
          "id": {
            "type": "string",
            "example": "23494"
          },
          "attributes": {
            "$ref": "#/components/schemas/variantShippingAttributes"
          }
        }
      },
      "v2ShippingStandardResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/variantShippingItem"
            }
          }
        }
      },
      "shopDisconnected": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "shop:disconnected"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "example": 815256
              },
              "type": {
                "type": "string",
                "example": "shop"
              },
              "data": {
                "type": "object",
                "nullable": true,
                "example": null
              }
            }
          }
        }
      },
      "productDeletedData": {
        "type": "object",
        "required": [
          "shop_id"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          }
        }
      },
      "productDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "product:deleted"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5cb87a8cd490a2ccb256cec4"
              },
              "type": {
                "type": "string",
                "example": "product"
              },
              "data": {
                "$ref": "#/components/schemas/productDeletedData"
              }
            }
          }
        }
      },
      "productCreatedData": {
        "type": "object",
        "required": [
          "shop_id"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          }
        }
      },
      "productCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "product:created"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2026-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5cb87a8cd490a2ccb256cec4"
              },
              "type": {
                "type": "string",
                "example": "product"
              },
              "data": {
                "$ref": "#/components/schemas/productCreatedData"
              }
            }
          }
        }
      },
      "productUpdatedData": {
        "type": "object",
        "required": [
          "shop_id"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          }
        }
      },
      "productUpdated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "product:updated"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5cb87a8cd490a2ccb256cec4"
              },
              "type": {
                "type": "string",
                "example": "product"
              },
              "data": {
                "$ref": "#/components/schemas/productUpdatedData"
              }
            }
          }
        }
      },
      "productPublishStartedDataCreate": {
        "type": "object",
        "required": [
          "shop_id",
          "publish_details",
          "action"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "publish_details": {
            "type": "object",
            "properties": {
              "title": {
                "type": "boolean",
                "example": true
              },
              "variants": {
                "type": "boolean",
                "example": false
              },
              "description": {
                "type": "boolean",
                "example": true
              },
              "tags": {
                "type": "boolean",
                "example": true
              },
              "images": {
                "type": "boolean",
                "example": false
              },
              "key_features": {
                "type": "boolean",
                "example": false
              },
              "shipping_template": {
                "type": "boolean",
                "example": true
              }
            }
          },
          "action": {
            "type": "string",
            "enum": [
              "create"
            ],
            "example": "create"
          },
          "out_of_stock_publishing": {
            "type": "integer",
            "example": 0
          }
        }
      },
      "productPublishStartedDataDelete": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "delete"
            ],
            "example": "delete"
          }
        }
      },
      "productPublishStarted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "product:publish:started"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5cb87a8cd490a2ccb256cec4"
              },
              "type": {
                "type": "string",
                "example": "product"
              },
              "data": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/productPublishStartedDataCreate"
                  },
                  {
                    "$ref": "#/components/schemas/productPublishStartedDataDelete"
                  }
                ]
              }
            }
          }
        }
      },
      "orderCreatedEventData": {
        "type": "object",
        "required": [
          "shop_id"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          }
        }
      },
      "orderCreatedEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:created"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderCreatedEventData"
              }
            }
          }
        }
      },
      "orderUpdatedData": {
        "type": "object",
        "required": [
          "shop_id",
          "status"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "status": {
            "type": "string",
            "example": "in-production"
          }
        }
      },
      "orderUpdated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:updated"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderUpdatedData"
              }
            }
          }
        }
      },
      "orderLineItemCanceledData": {
        "type": "object",
        "required": [
          "shop_id",
          "line_item_id",
          "status"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "line_item_id": {
            "type": "string",
            "example": "5a96f649b2439217d070f508"
          },
          "status": {
            "type": "string",
            "example": "canceled"
          },
          "status_details": {
            "type": "string",
            "nullable": true,
            "description": "Reason for the cancellation when it is known and exposed, for example out_of_stock or item_is_canceled_by_ip_detection. null when the line item was canceled without an exposed reason, for example by the merchant.",
            "example": "out_of_stock"
          }
        }
      },
      "orderLineItemCanceled": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:line-item:canceled"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderLineItemCanceledData"
              }
            }
          }
        }
      },
      "orderShipmentCarrier": {
        "type": "object",
        "required": [
          "code",
          "tracking_number"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "USPS"
          },
          "tracking_number": {
            "type": "string",
            "example": "9400110200828911663274"
          },
          "tracking_url": {
            "type": "string",
            "format": "uri",
            "example": "https://example.com/track/9400110200828911663274"
          }
        }
      },
      "orderShipmentCreatedData": {
        "type": "object",
        "required": [
          "shop_id",
          "shipped_at",
          "carrier",
          "skus"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "shipped_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "carrier": {
            "$ref": "#/components/schemas/orderShipmentCarrier"
          },
          "skus": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "6202"
            ]
          },
          "line_item_ids": {
            "type": "array",
            "description": "Ids of the order line items (line_items[].id) included in the shipment.",
            "items": {
              "type": "string"
            },
            "example": [
              "5e7b3a9c1f2d4a0012345678"
            ]
          }
        }
      },
      "orderShipmentCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:shipment:created"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderShipmentCreatedData"
              }
            }
          }
        }
      },
      "orderShipmentDeliveredData": {
        "type": "object",
        "required": [
          "shop_id",
          "delivered_at",
          "carrier",
          "skus"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "delivered_at": {
            "type": "string",
            "description": "Date and time in UTC, in `YYYY-MM-DD HH:MM:SS+00:00` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "carrier": {
            "$ref": "#/components/schemas/orderShipmentCarrier"
          },
          "skus": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "6202"
            ]
          }
        }
      },
      "orderShipmentDelivered": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:shipment:delivered"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderShipmentDeliveredData"
              }
            }
          }
        }
      },
      "orderSentToProductionData": {
        "type": "object",
        "required": [
          "shop_id"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          }
        }
      },
      "orderSentToProduction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "order:sent-to-production"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "order"
              },
              "data": {
                "$ref": "#/components/schemas/orderSentToProductionData"
              }
            }
          }
        }
      },
      "personalizationPreviewTaskProcessedData": {
        "type": "object",
        "required": [
          "task_id",
          "status",
          "shop_id"
        ],
        "properties": {
          "task_id": {
            "type": "string",
            "example": "12345-67890-5d41402abc4b2a76b9719d911017c592"
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "corrupt",
              "failed"
            ],
            "example": "completed"
          },
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "external_id": {
            "type": "string",
            "nullable": true,
            "example": "preview-abc-001"
          },
          "preview_count": {
            "type": "integer",
            "description": "Present only when status is \"completed\".",
            "example": 1
          },
          "mockups": {
            "type": "array",
            "description": "Present only when status is \"completed\".",
            "items": {
              "$ref": "#/components/schemas/personalizationMockup"
            }
          },
          "error": {
            "type": "object",
            "description": "Present only when status is \"failed\" or \"corrupt\".",
            "properties": {
              "message": {
                "type": "string",
                "example": "Designer API request failed"
              },
              "code": {
                "type": "integer",
                "example": 401
              }
            }
          }
        }
      },
      "personalizationPreviewTaskProcessed": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "personalization-preview-task:processed"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "12345-67890-5d41402abc4b2a76b9719d911017c592"
              },
              "type": {
                "type": "string",
                "example": "personalization-preview-task"
              },
              "data": {
                "$ref": "#/components/schemas/personalizationPreviewTaskProcessedData"
              }
            }
          }
        }
      },
      "supportRequestUpdatedData": {
        "type": "object",
        "required": [
          "shop_id",
          "order_id",
          "status",
          "outcome"
        ],
        "properties": {
          "shop_id": {
            "type": "integer",
            "example": 815256
          },
          "order_id": {
            "type": "string",
            "example": "5a96f649b2439217d070f507"
          },
          "type": {
            "type": "string",
            "nullable": true,
            "example": "order_refund"
          },
          "status": {
            "type": "string",
            "example": "resolved"
          },
          "status_details": {
            "type": "string",
            "nullable": true,
            "example": "Refund approved by print provider"
          },
          "outcome": {
            "type": "string",
            "example": "positive"
          }
        }
      },
      "supportRequestUpdated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "653b6be8-2ff7-4ab5-a7a6-6889a8b3bbf5"
          },
          "type": {
            "type": "string",
            "example": "support-request:updated"
          },
          "created_at": {
            "type": "string",
            "description": "Date and time in `YYYY-MM-DD HH:MM:SS±HH:MM` format",
            "example": "2022-05-17 15:00:00+00:00"
          },
          "resource": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "example": "5a96f649b2439217d070f507"
              },
              "type": {
                "type": "string",
                "example": "support-request"
              },
              "data": {
                "$ref": "#/components/schemas/supportRequestUpdatedData"
              }
            }
          }
        }
      }
    },
    "responses": {
      "shopsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/shop"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "id": 5432,
                    "title": "My new store",
                    "sales_channel": "shopify"
                  },
                  {
                    "id": 9876,
                    "title": "My other new store",
                    "sales_channel": "disconnected"
                  }
                ]
              }
            }
          }
        }
      },
      "error": {
        "description": "Error response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Validation error": {
                "value": {
                  "status": "error",
                  "code": 8203,
                  "message": "Validation failed.",
                  "errors": {
                    "reason": "Image has low quality",
                    "code": 8203
                  }
                }
              }
            }
          }
        }
      },
      "emptySuccess": {
        "description": "Successful operation"
      },
      "variantsResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/variantsResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": 3,
                  "title": "DJ",
                  "variants": [
                    {
                      "id": 17390,
                      "title": "Heather Grey / XS",
                      "options": {
                        "color": "Heather Grey",
                        "size": "XS"
                      },
                      "placeholders": [
                        {
                          "position": "back",
                          "decoration_method": "dtf",
                          "height": 3995,
                          "width": 3153
                        },
                        {
                          "position": "front",
                          "decoration_method": "embroidery",
                          "height": 3995,
                          "width": 3153
                        }
                      ],
                      "decoration_methods": [
                        "dtf",
                        "embroidery"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "catalogNotFound": {
        "description": "The blueprint or print provider was not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/catalogNotFoundResponse"
            },
            "examples": {
              "Blueprint not found": {
                "value": {
                  "title": "The blueprint was not found.",
                  "status": 404
                }
              },
              "Print provider of the blueprint not found": {
                "value": {
                  "title": "Blueprint Print Provider of blueprint \"3\" and print provider \"1\" could not be found",
                  "status": 404
                }
              },
              "Print provider not found": {
                "value": {
                  "title": "Print Provider of ID \"99999\" could not be found.",
                  "status": 404
                }
              }
            }
          }
        }
      },
      "printProvidersList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/printProviderSimple"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "id": 3,
                    "title": "DJ",
                    "decoration_methods": [
                      "dtg",
                      "embroidery"
                    ],
                    "production_time": {
                      "average": 2.9,
                      "unit": "business_days"
                    }
                  },
                  {
                    "id": 8,
                    "title": "Fifth Sun",
                    "decoration_methods": [
                      "dtg"
                    ],
                    "production_time": {
                      "average": 1.8,
                      "unit": "business_days"
                    }
                  },
                  {
                    "id": 16,
                    "title": "MyLocker",
                    "decoration_methods": [
                      "dtg"
                    ],
                    "production_time": null
                  },
                  {
                    "id": 24,
                    "title": "Inklocker",
                    "decoration_methods": [
                      "dtf",
                      "dtg",
                      "embroidery"
                    ],
                    "production_time": {
                      "average": 3.4,
                      "unit": "business_days"
                    }
                  }
                ]
              }
            }
          }
        }
      },
      "printProviderSimple": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/printProviderSimple"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": 3,
                  "title": "DJ",
                  "decoration_methods": [
                    "dtg",
                    "embroidery"
                  ],
                  "production_time": {
                    "average": 2.9,
                    "unit": "business_days"
                  }
                }
              }
            }
          }
        }
      },
      "shippingResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/shippingResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "handling_time": {
                    "value": 10,
                    "unit": "day"
                  },
                  "profiles": [
                    {
                      "variant_ids": [
                        42716,
                        42717,
                        42718
                      ],
                      "first_item": {
                        "cost": 450,
                        "currency": "USD"
                      },
                      "additional_items": {
                        "cost": 0,
                        "currency": "USD"
                      },
                      "countries": [
                        "US"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "blueprintsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/blueprintListItem"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "id": 3,
                    "title": "Kids Regular Fit Tee",
                    "description": "Description goes here",
                    "brand": "Delta",
                    "model": "11736",
                    "images": [
                      "https://images.printify.com/5853fe7dce46f30f8327f5cd",
                      "https://images.printify.com/5c487ee2a342bc9b8b2fc4d2"
                    ]
                  },
                  {
                    "id": 5,
                    "title": "Men's Cotton Crew Tee",
                    "description": "Description goes here",
                    "brand": "Next Level",
                    "model": "3600",
                    "images": [
                      "https://images.printify.com/5a2ffc81b8e7e3656268fb44",
                      "https://images.printify.com/5cdc0126b97b6a00091b58f7"
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "blueprint": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/blueprint"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": 3,
                  "title": "Kids Regular Fit Tee",
                  "description": "Description goes here",
                  "brand": "Delta",
                  "model": "11736",
                  "images": [
                    "https://images.printify.com/5853fe7dce46f30f8327f5cd",
                    "https://images.printify.com/5c487ee2a342bc9b8b2fc4d2"
                  ],
                  "features": [
                    {
                      "name": "With side seams",
                      "description": "Located along the sides, they help hold the garment's shape longer and give it structural support",
                      "image": "https://images.printify.com/59e0e9dfb8e7e30b9f57668b/icons_v4_outlined_33_with_side_seams.svg"
                    }
                  ],
                  "care_instructions": [
                    "Machine wash: cold (max 30C or 90F)",
                    "Non-chlorine: bleach as needed"
                  ]
                }
              }
            }
          }
        }
      },
      "sizeGuide": {
        "description": "Successful operation. `sizes` and `types` are empty when the blueprint has no size guide.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/sizeGuide"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "sizes": [
                    "S",
                    "M",
                    "L"
                  ],
                  "types": [
                    {
                      "name": "Width",
                      "units": "in",
                      "ranges": [
                        {
                          "from": "18",
                          "to": "20"
                        },
                        {
                          "from": "20",
                          "to": "22"
                        },
                        {
                          "from": "22",
                          "to": "24"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "printProvidersFullList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/printProviderListItem"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "id": 1,
                    "title": "SPOKE Custom Products",
                    "location": {
                      "address1": "89 Weirfield St",
                      "city": "Brooklyn",
                      "country": "US",
                      "region": "NY",
                      "zip": "11221-5120"
                    }
                  }
                ]
              }
            }
          }
        }
      },
      "printProviderFull": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/printProvider"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": 1,
                  "title": "SPOKE Custom Products",
                  "location": {
                    "address1": "89 Weirfield St",
                    "city": "Brooklyn",
                    "country": "US",
                    "region": "NY",
                    "zip": "11221-5120"
                  },
                  "blueprints": [
                    {
                      "id": 265,
                      "title": "Slim Iphone 8",
                      "brand": "Case Mate",
                      "model": "Slim Iphone 8",
                      "images": [
                        "https://images.printify.com/59b261c9b8e7e361c9147b1b.png"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "product": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/product"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5d39b159e7c48c000728c89f",
                  "title": "Mug 11oz",
                  "description": "Perfect for coffee, tea and hot chocolate...",
                  "safety_information": "GPSR information: John Doe...",
                  "tags": [
                    "Home & Living",
                    "Mugs",
                    "11 oz"
                  ],
                  "options": [
                    {
                      "name": "Sizes",
                      "type": "size",
                      "values": [
                        {
                          "id": 1189,
                          "title": "11oz"
                        }
                      ]
                    }
                  ],
                  "variants": [
                    {
                      "id": 33719,
                      "sku": "866366009",
                      "cost": 516,
                      "price": 860,
                      "title": "11oz",
                      "is_enabled": true
                    }
                  ],
                  "images": [
                    {
                      "src": "https://images.printify.com/mockup/5d39b159e7c48c000728c89f/33719/145/mug-11oz.jpg",
                      "variant_ids": [
                        33719
                      ],
                      "position": "front"
                    }
                  ],
                  "created_at": "2019-07-25 13:40:41+00:00",
                  "updated_at": "2019-07-25 13:40:59+00:00",
                  "visible": true,
                  "blueprint_id": 68,
                  "shop_id": 1337,
                  "print_provider_id": 9,
                  "print_areas": [
                    {
                      "variant_ids": [
                        33719
                      ],
                      "placeholders": [
                        {
                          "position": "front",
                          "images": [
                            {
                              "id": "5c7665205342af161e1cb26e",
                              "name": "Test.png",
                              "type": "image/png",
                              "height": 5850,
                              "width": 4350,
                              "x": 0.5,
                              "y": 0.5,
                              "scale": 1.01,
                              "angle": 0,
                              "src": "https://image-storage.example.com/5d39b159e7c48c000728c89f"
                            },
                            {
                              "id": "0bd183ab-7bd0-e327-8329-7f77ee2a3f51",
                              "type": "text/svg",
                              "height": 1,
                              "width": 1,
                              "x": 0.5,
                              "y": 0.5000090815098948,
                              "scale": 0.7444,
                              "angle": 345,
                              "font_family": "ABeeZee",
                              "font_size": 200,
                              "font_weight": 400,
                              "font_color": "#ffffff",
                              "font_style": "normal",
                              "input_text": "Text example",
                              "text_align": "left"
                            }
                          ]
                        }
                      ],
                      "background": "#ffffff"
                    }
                  ],
                  "views": [
                    {
                      "id": 34395,
                      "label": "Front side",
                      "position": "front",
                      "files": [
                        {
                          "src": "https://images.printify.com/api/catalog/618e1792f80e2001a840687b.svg",
                          "variant_ids": [
                            33719
                          ]
                        }
                      ]
                    }
                  ],
                  "sales_channel_properties": []
                }
              }
            }
          }
        }
      },
      "notFound": {
        "description": "Not found response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/notFoundResponse"
            },
            "examples": {
              "Not found": {
                "value": {
                  "error": "Not found",
                  "request_id": "1755000000@1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
                }
              }
            }
          }
        }
      },
      "invalidProductId": {
        "description": "The product ID is not a valid ID, or the product can't be updated right now (for example while embroidery digitization is in progress)",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/notFoundResponse"
            },
            "examples": {
              "Invalid product ID": {
                "value": {
                  "error": "Invalid product ID format.",
                  "request_id": "1755000000@1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
                }
              }
            }
          }
        }
      },
      "productIsSyncing": {
        "description": "The product is currently syncing from its sales channel. Try again later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Product is syncing": {
                "value": {
                  "status": "error",
                  "code": 8259,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Product \"5d39b159e7c48c000728c89f\" is currently syncing from its sales channel. Try again later",
                    "code": 8259
                  }
                }
              }
            }
          }
        }
      },
      "productsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/paginatedResponse"
                },
                {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/product"
                      }
                    }
                  }
                }
              ]
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "current_page": 1,
                  "data": [
                    {
                      "id": "5d39b159e7c48c000728c89f",
                      "title": "Mug 11oz",
                      "description": "Perfect for coffee, tea and hot chocolate...",
                      "safety_information": "GPSR information: John Doe...",
                      "tags": [
                        "Home & Living",
                        "Mugs"
                      ],
                      "options": [
                        {
                          "name": "Sizes",
                          "type": "size",
                          "values": [
                            {
                              "id": 1189,
                              "title": "11oz"
                            }
                          ]
                        }
                      ],
                      "variants": [
                        {
                          "id": 33719,
                          "sku": "866366009",
                          "cost": 516,
                          "price": 860,
                          "title": "11oz",
                          "is_enabled": true
                        }
                      ],
                      "images": [
                        {
                          "src": "https://images.printify.com/mockup/5d39b159e7c48c000728c89f/33719/145/mug-11oz.jpg",
                          "variant_ids": [
                            33719
                          ],
                          "position": "front"
                        }
                      ],
                      "created_at": "2019-07-25 13:40:41+00:00",
                      "updated_at": "2019-07-25 13:40:59+00:00",
                      "visible": true,
                      "blueprint_id": 68,
                      "shop_id": 1337,
                      "print_provider_id": 9
                    }
                  ],
                  "first_page_url": "/?page=1",
                  "from": 1,
                  "last_page": 22,
                  "last_page_url": "/?page=22",
                  "next_page_url": "/?page=2",
                  "path": "/",
                  "per_page": 1,
                  "prev_page_url": null,
                  "to": 1,
                  "total": 22
                }
              }
            }
          }
        }
      },
      "invalidPlaceholder": {
        "description": "A placeholder position in print_areas does not exist on the blueprint",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/notFoundResponse"
            },
            "examples": {
              "Invalid placeholder position": {
                "value": {
                  "error": "Placeholder: sleeve is invalid",
                  "request_id": "1755000000@1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
                }
              }
            }
          }
        }
      },
      "productIdResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "product_id": {
                  "type": "string",
                  "example": "5d39b159e7c48c000728c89f"
                }
              }
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "product_id": "5d39b159e7c48c000728c89f"
                }
              }
            }
          }
        }
      },
      "gpsrList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/gpsrInfo"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "title": "EU representative",
                    "text": "John Doe, test@example.com, 123 Main St, Apt 1, New York, NY, 10001, US"
                  },
                  {
                    "title": "Product information",
                    "text": "Gildan 5000, two year warranty in the EU and Northern Ireland"
                  },
                  {
                    "title": "Warnings, Hazard",
                    "text": "Not suitable for children under 3"
                  },
                  {
                    "title": "Care instructions",
                    "text": "Machine wash: warm (max 40C or 105F), Non-chlorine: bleach as needed, Tumble dry: medium, Do not iron, Do not dryclean"
                  }
                ]
              }
            }
          }
        }
      },
      "ordersList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/paginatedResponse"
                },
                {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/order"
                      }
                    }
                  }
                }
              ]
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "current_page": 1,
                  "data": [
                    {
                      "id": "5a6e03bd2f7d8055768923c8",
                      "app_order_id": "215014.44",
                      "address_to": {
                        "first_name": "Jane",
                        "last_name": "Smith",
                        "region": "",
                        "address1": "ExampleBaan 121",
                        "city": "Retie",
                        "zip": "2470",
                        "email": "example@msn.com",
                        "phone": "0574 69 21 90",
                        "country": "BE",
                        "company": "MSN"
                      },
                      "line_items": [
                        {
                          "product_id": "5b05842f3921c9547531758d",
                          "quantity": 1,
                          "variant_id": 17887,
                          "print_provider_id": 5,
                          "cost": 1050,
                          "shipping_cost": 400,
                          "status": "fulfilled",
                          "metadata": {
                            "title": "18K gold plated Necklace",
                            "price": 2200,
                            "variant_label": "Golden indigocoin",
                            "sku": "168699843",
                            "country": "United States"
                          },
                          "sent_to_production_at": "2017-04-18 13:24:28+00:00",
                          "fulfilled_at": "2017-04-18 13:24:28+00:00"
                        }
                      ],
                      "metadata": {
                        "order_type": "external",
                        "shop_order_id": "1370762297",
                        "shop_order_label": "1370762297",
                        "shop_fulfilled_at": "2017-04-18 13:24:28+00:00",
                        "is_reprint": true,
                        "costs_covered": true,
                        "reprinted_order_ids": [
                          "6a72ef76c6503ada3c069ecc"
                        ],
                        "child_reprinted_order_ids": [
                          "6a72f40c351dc156610b500a"
                        ]
                      },
                      "total_price": 2200,
                      "total_shipping": 400,
                      "total_tax": 0,
                      "status": "fulfilled",
                      "shipping_method": 1,
                      "is_printify_express": false,
                      "is_economy_shipping": false,
                      "shipments": [
                        {
                          "carrier": "usps",
                          "number": "94001116990045395649372",
                          "url": "http://example.com/94001116990045395649372",
                          "delivered_at": "2017-04-18 13:24:28+00:00",
                          "line_item_ids": [
                            "5e7b3a9c1f2d4a0012345678"
                          ]
                        }
                      ],
                      "created_at": "2017-04-18 13:24:28+00:00",
                      "sent_to_production_at": "2017-04-18 13:24:28+00:00",
                      "fulfilled_at": "2017-04-18 13:24:28+00:00",
                      "printify_connect": {
                        "url": "https://example.com/printify_connect_hash",
                        "id": "printify_connect_hash"
                      }
                    }
                  ],
                  "first_page_url": "/?page=1",
                  "from": 1,
                  "last_page": 22,
                  "last_page_url": "/?page=22",
                  "next_page_url": "/?page=2",
                  "path": "/",
                  "per_page": 1,
                  "prev_page_url": null,
                  "to": 1,
                  "total": 22
                }
              }
            }
          }
        }
      },
      "orderCreated": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/orderCreated"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5a96f649b2439217d070f507"
                }
              }
            }
          }
        }
      },
      "orderItemNotFound": {
        "description": "A product or variant in the order was not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Product not found": {
                "value": {
                  "status": "error",
                  "code": 0,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Product with id \"5d39b159e7c48c000728c89f\" and shop 123 is missing.",
                    "code": 0
                  }
                }
              }
            }
          }
        }
      },
      "errorOrderConflict": {
        "description": "Error order response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorOrderConflictResponse"
            },
            "examples": {
              "External ID conflict": {
                "value": {
                  "status": "error",
                  "code": 8503,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Order already exists for the given external_id.",
                    "code": 8503
                  },
                  "order": {
                    "id": "69e53a28c07ff9d99800d244",
                    "external_id": "2750e210-39bb-11e9-a503-452618153e4a"
                  }
                }
              }
            }
          }
        }
      },
      "shippingNotEligible": {
        "description": "The order contains products that are not eligible for the selected Printify Express or Economy shipping. For Economy shipping this also happens when a product doesn't have `is_economy_shipping_enabled` set to `true`, or when the shipping address is not in the US (excluding US islands).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Not eligible for Printify Express": {
                "value": {
                  "status": "error",
                  "code": 0,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Order contains products that are not eligible for Printify Express",
                    "code": 0
                  }
                }
              },
              "Not eligible for Economy Shipping": {
                "value": {
                  "status": "error",
                  "code": 0,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Order contains products that are not eligible for Economy Shipping",
                    "code": 0
                  }
                }
              }
            }
          }
        }
      },
      "order": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/order"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5a96f649b2439217d070f507",
                  "app_order_id": "215014.44",
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "city": "Retie",
                    "zip": "2470",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "company": "MSN"
                  },
                  "line_items": [
                    {
                      "product_id": "5b05842f3921c9547531758d",
                      "quantity": 1,
                      "variant_id": 17887,
                      "print_provider_id": 5,
                      "cost": 1050,
                      "shipping_cost": 400,
                      "status": "fulfilled",
                      "metadata": {
                        "title": "18K gold plated Necklace",
                        "price": 2200,
                        "variant_label": "Golden indigocoin",
                        "sku": "168699843",
                        "country": "United States",
                        "external_id": "line-item-abc-001"
                      },
                      "sent_to_production_at": "2017-04-18 13:24:28+00:00",
                      "fulfilled_at": "2017-04-18 13:24:28+00:00"
                    }
                  ],
                  "metadata": {
                    "order_type": "external",
                    "shop_order_id": "1370762297",
                    "shop_order_label": "1370762297",
                    "shop_fulfilled_at": "2017-04-18 13:24:28+00:00",
                    "is_reprint": true,
                    "costs_covered": true,
                    "reprinted_order_ids": [
                      "6a72ef76c6503ada3c069ecc"
                    ],
                    "child_reprinted_order_ids": [
                      "6a72f40c351dc156610b500a"
                    ]
                  },
                  "total_price": 2200,
                  "total_shipping": 400,
                  "total_tax": 0,
                  "status": "fulfilled",
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "shipments": [
                    {
                      "carrier": "usps",
                      "number": "94001116990045395649372",
                      "url": "http://example.com/94001116990045395649372",
                      "delivered_at": "2017-04-18 13:24:28+00:00",
                      "line_item_ids": [
                        "5e7b3a9c1f2d4a0012345678"
                      ]
                    }
                  ],
                  "created_at": "2017-04-18 13:24:28+00:00",
                  "sent_to_production_at": "2017-04-18 13:24:28+00:00",
                  "fulfilled_at": "2017-04-18 13:24:28+00:00",
                  "printify_connect": {
                    "url": "https://example.com/printify_connect_hash",
                    "id": "printify_connect_hash"
                  }
                }
              }
            }
          }
        }
      },
      "supportRequestCreated": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/supportRequestCreated"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "9f8b6c1a-2d3e-4f5a-8b7c-1a2b3c4d5e6f",
                  "order_id": "5a96f649b2439217d070f507",
                  "type": "order_reprint",
                  "status": "processing",
                  "status_details": null,
                  "outcome": "unresolved",
                  "line_item_ids": [
                    "5b05842f3921c9547531758d"
                  ],
                  "created_at": "2026-08-24 10:00:00+00:00",
                  "updated_at": "2026-08-24 10:00:00+00:00"
                }
              }
            }
          }
        }
      },
      "tooManySupportRequests": {
        "description": "Too many support requests. Each user can create one support request per minute, shared across reprint, refund and address change requests. Wait for the time in the Retry-After header.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before the next request",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/notFoundResponse"
            },
            "examples": {
              "Too many attempts": {
                "value": {
                  "error": "Too Many Attempts.",
                  "request_id": "1755000000@1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
                }
              }
            }
          }
        }
      },
      "orderIdResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/orderCreated"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5a96f649b2439217d070f507"
                }
              }
            }
          }
        }
      },
      "shippingCosts": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/shippingCosts"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "standard": 1000,
                  "express": 5000,
                  "priority": 5000,
                  "printify_express": 799,
                  "economy": 399
                }
              }
            }
          }
        }
      },
      "expressOrderResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/expressOrderResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "data": [
                    {
                      "type": "order",
                      "id": "5a96f649b2439217d070f508",
                      "attributes": {
                        "app_order_id": "215014.44",
                        "fulfilment_type": "express",
                        "line_items": [
                          {
                            "product_id": "5b05842f3921c9547531758d",
                            "quantity": 1,
                            "variant_id": 12359,
                            "print_provider_id": 5,
                            "cost": 2200,
                            "shipping_cost": 799,
                            "status": "pending",
                            "metadata": {
                              "title": "T-shirt",
                              "price": 2200,
                              "variant_label": "Blue / S",
                              "sku": "168699843",
                              "country": "United States"
                            },
                            "sent_to_production_at": "2023-10-18 13:24:28+00:00"
                          }
                        ]
                      }
                    },
                    {
                      "type": "order",
                      "id": "5a96f649b2439597d020a9b4",
                      "attributes": {
                        "fulfilment_type": "ordinary",
                        "line_items": [
                          {
                            "product_id": "5b05842f3921c34764fa478bc",
                            "quantity": 1,
                            "variant_id": 17887,
                            "print_provider_id": 5,
                            "cost": 1050,
                            "shipping_cost": 400,
                            "status": "pending",
                            "metadata": {
                              "title": "Mug 11oz",
                              "price": 1050,
                              "variant_label": "11oz",
                              "sku": "168699843",
                              "country": "United States"
                            },
                            "sent_to_production_at": "2023-10-18 13:24:28+00:00"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "addressChangeUpdatedDirectly": {
        "description": "Order address was updated directly; no support request was created.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/addressChangeUpdatedDirectly"
            },
            "examples": {
              "Address updated directly": {
                "value": {
                  "resolution": "updated_directly",
                  "order_id": "5a96f649b2439217d070f507",
                  "address_to": {
                    "first_name": "Jane",
                    "last_name": "Smith",
                    "address1": "ExampleBaan 121",
                    "address2": "Apt 4B",
                    "city": "Retie",
                    "region": "",
                    "country": "BE",
                    "zip": "2470",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90"
                  }
                }
              }
            }
          }
        }
      },
      "addressChangeSupportRequestCreated": {
        "description": "The order could not be updated directly, so a support request was created to handle the address change instead.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/addressChangeSupportRequestCreated"
            },
            "examples": {
              "Support request created": {
                "value": {
                  "resolution": "support_request_created",
                  "id": "8f14e45f-ceea-4b5f-8c1e-3d9a4a2f1e11",
                  "order_id": "5a96f649b2439217d070f507",
                  "type": "order_address_editing",
                  "status": "pending",
                  "status_details": null,
                  "outcome": "unresolved",
                  "created_at": "2017-04-18 13:24:28+00:00",
                  "updated_at": "2017-04-18 13:24:28+00:00"
                }
              }
            }
          }
        }
      },
      "personalizationOptionsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/personalizationOption"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "field_id": "front_text",
                    "label": "Front text",
                    "type": "textbox",
                    "text_options": {
                      "character_limit": 40
                    }
                  },
                  {
                    "field_id": "back_image",
                    "label": "Back image",
                    "type": "image"
                  }
                ]
              }
            }
          }
        }
      },
      "personalizationServiceUnavailable": {
        "description": "The personalization service is temporarily unavailable. Retry the request later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Service unavailable": {
                "value": {
                  "status": "error",
                  "code": 0,
                  "message": "Operation failed.",
                  "errors": {
                    "reason": "Personalisation service is temporarily unavailable.",
                    "code": 0
                  }
                }
              }
            }
          }
        }
      },
      "personalizationConfigCreated": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/createPersonalizationConfigResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "personalisation_strategy": "pstudio_pre_order_headless",
                  "personalisation_instructions": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                  "warnings": []
                }
              },
              "Some items not applied": {
                "value": {
                  "personalisation_strategy": "pstudio_pre_order_headless",
                  "personalisation_instructions": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                  "warnings": [
                    {
                      "field_id": "front_text",
                      "code": 8510,
                      "message": "Cannot apply personalization."
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "personalizationImageTimeout": {
        "description": "A buyer image could not be downloaded right now, for example because the download timed out or the image host was temporarily unavailable. Retry after the time in the Retry-After header.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying",
            "schema": {
              "type": "integer",
              "example": 10
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/errorResponse"
            },
            "examples": {
              "Image download timed out": {
                "value": {
                  "status": "error",
                  "code": 8201,
                  "message": "Validation failed.",
                  "errors": {
                    "reason": "Request timed out, please retry.",
                    "code": 8201
                  }
                }
              }
            }
          }
        }
      },
      "personalizationPreviewTaskCreated": {
        "description": "Successful operation. Deduplicated (idempotent) requests return the existing task's current state, so this can include mockups/preview_count or error if that task has since completed or failed - the same schema the GET task-status endpoint returns.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/personalizationPreviewTask"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "task_id": "12345-67890-5d41402abc4b2a76b9719d911017c592",
                  "status": "pending",
                  "external_id": "preview-abc-001"
                }
              }
            }
          }
        }
      },
      "personalizationPreviewTaskStatus": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/personalizationPreviewTask"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "task_id": "12345-67890-5d41402abc4b2a76b9719d911017c592",
                  "status": "completed",
                  "external_id": "preview-abc-001",
                  "preview_count": 1,
                  "mockups": [
                    {
                      "variant_id": 38191,
                      "mockup_id": "Front",
                      "src": "https://dsaujk5puqrkx.cloudfront.net/buyer-preview/145/buyer-preview/38191/97992/4715046825664400772_2048.jpeg",
                      "personalized": true
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "personalizationPreviewTaskNotFound": {
        "description": "No preview task with this ID exists in the shop",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Task not found."
                }
              }
            },
            "examples": {
              "Task not found": {
                "value": {
                  "message": "Task not found."
                }
              }
            }
          }
        }
      },
      "supportRequestsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/supportRequest"
                  }
                }
              }
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "data": [
                    {
                      "id": "9f8b6c1a-2d3e-4f5a-8b7c-1a2b3c4d5e6f",
                      "order_id": "5a96f649b2439217d070f507",
                      "type": "order_refund",
                      "status": "in_progress",
                      "status_details": "Awaiting carrier confirmation",
                      "outcome": "unresolved",
                      "line_item_ids": [
                        "5b05842f3921c9547531758d"
                      ],
                      "created_at": "2024-01-01 10:00:00+00:00",
                      "updated_at": "2024-01-02 12:30:00+00:00"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "supportRequest": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "$ref": "#/components/schemas/supportRequest"
                }
              }
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "data": {
                    "id": "9f8b6c1a-2d3e-4f5a-8b7c-1a2b3c4d5e6f",
                    "order_id": "5a96f649b2439217d070f507",
                    "type": "order_refund",
                    "status": "in_progress",
                    "status_details": "Awaiting carrier confirmation",
                    "outcome": "unresolved",
                    "line_item_ids": [
                      "5b05842f3921c9547531758d"
                    ],
                    "created_at": "2024-01-01 10:00:00+00:00",
                    "updated_at": "2024-01-02 12:30:00+00:00"
                  }
                }
              }
            }
          }
        }
      },
      "uploadsList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/paginatedResponse"
                },
                {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/upload"
                      }
                    }
                  }
                }
              ]
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "current_page": 1,
                  "data": [
                    {
                      "id": "5e16d66791287a0006e522b2",
                      "file_name": "png-images-logo-1.jpg",
                      "height": 5979,
                      "width": 17045,
                      "size": 1138575,
                      "mime_type": "image/png",
                      "preview_url": "https://example.com/image-storage/uuid1",
                      "upload_time": "2020-01-09 07:29:43"
                    }
                  ],
                  "first_page_url": "/?page=1",
                  "from": 1,
                  "last_page": 2,
                  "last_page_url": "/?page=2",
                  "next_page_url": "/?page=2",
                  "path": "/",
                  "per_page": 1,
                  "prev_page_url": null,
                  "to": 2,
                  "total": 2
                }
              }
            }
          }
        }
      },
      "upload": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/upload"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5941187eb8e7e37b3f0e62e5",
                  "file_name": "image.png",
                  "height": 200,
                  "width": 400,
                  "size": 1021,
                  "mime_type": "image/png",
                  "preview_url": "https://example.com/image-storage/uuid3",
                  "upload_time": "2020-01-09 07:29:43"
                }
              }
            }
          }
        }
      },
      "webhooksList": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/webhook"
              }
            },
            "examples": {
              "Successful operation": {
                "value": [
                  {
                    "topic": "order:created",
                    "url": "https://example.com/webhooks/order/updated",
                    "shop_id": 1,
                    "id": "5cb87a8cd490a2ccb256cec4"
                  },
                  {
                    "topic": "order:updated",
                    "url": "https://example.com/webhooks/order/updated",
                    "shop_id": 1,
                    "id": "5cb87a8cd490a2ccb256cec5"
                  }
                ]
              }
            }
          }
        }
      },
      "webhook": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/webhook"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "topic": "order:created",
                  "url": "https://example.com/webhooks/order/created",
                  "shop_id": 1,
                  "id": "5cb87a8cd490a2ccb256cec4"
                }
              }
            }
          }
        }
      },
      "webhookDeleted": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/webhookDeleted"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "id": "5cb87a8cd490a2ccb256cec4"
                }
              }
            }
          }
        }
      },
      "v2ShippingResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/v2ShippingResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "data": [
                    {
                      "type": "shipping_method",
                      "id": "1",
                      "attributes": {
                        "name": "standard"
                      }
                    },
                    {
                      "type": "shipping_method",
                      "id": "2",
                      "attributes": {
                        "name": "priority"
                      }
                    },
                    {
                      "type": "shipping_method",
                      "id": "3",
                      "attributes": {
                        "name": "express"
                      }
                    },
                    {
                      "type": "shipping_method",
                      "id": "4",
                      "attributes": {
                        "name": "economy"
                      }
                    }
                  ],
                  "links": {
                    "standard": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/standard.json",
                    "priority": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/priority.json",
                    "express": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/express.json",
                    "economy": "https://api.printify.com/v2/catalog/blueprints/{blueprint_id}/print_providers/{print_provider_id}/shipping/economy.json"
                  }
                }
              }
            }
          }
        }
      },
      "v2ShippingStandardResponse": {
        "description": "Successful operation",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/v2ShippingStandardResponse"
            },
            "examples": {
              "Successful operation": {
                "value": {
                  "data": [
                    {
                      "type": "variant_shipping_standard_us",
                      "id": "23494",
                      "attributes": {
                        "shippingType": "standard",
                        "country": {
                          "code": "US"
                        },
                        "variantId": 23494,
                        "shippingPlanId": "65a7c0825b50fcd56a018e02",
                        "handlingTime": {
                          "from": 4,
                          "to": 8
                        },
                        "shippingCost": {
                          "firstItem": {
                            "amount": 399,
                            "currency": "USD"
                          },
                          "additionalItems": {
                            "amount": 219,
                            "currency": "USD"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "shop_id": {
        "name": "shop_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer"
        }
      },
      "blueprint_id": {
        "name": "blueprint_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer"
        }
      },
      "print_provider_id": {
        "name": "print_provider_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer"
        }
      },
      "show-out-of-stock": {
        "name": "show-out-of-stock",
        "in": "query",
        "schema": {
          "type": "string",
          "enum": [
            "0",
            "1"
          ],
          "default": "0",
          "example": "0"
        },
        "description": "Depending on the value, it shows all variants or only those not out of stock. Without passing this query param, the list will contain only those variants in stock.\n0 - show only variants that are in stock.\n1 - also show variants out of stock (all variants).\nOnly `0` and `1` are accepted; `true` and `false` are not."
      },
      "product_id": {
        "name": "product_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "limit_max_50_default_50": {
        "name": "limit",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "default": 50
        },
        "description": "Results per page\n(default: 50, maximum: 50)"
      },
      "page": {
        "name": "page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1
        },
        "description": "Paginate through list of results "
      },
      "limit_max_50": {
        "name": "limit",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "default": 10
        },
        "description": "Results per page\n(default: 10, maximum: 50)"
      },
      "page_with_example": {
        "name": "page",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 1,
          "example": 1
        },
        "description": "Paginate through list of results "
      },
      "status": {
        "name": "status",
        "in": "query",
        "schema": {
          "type": "string"
        },
        "description": " Filter results by order status "
      },
      "sku": {
        "name": "sku",
        "in": "query",
        "schema": {
          "type": "string"
        },
        "description": " Filter results by product SKU - response will contain only those orders that have at least one product with passed SKU "
      },
      "order_id": {
        "name": "order_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "line_item_id": {
        "name": "line_item_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "task_id": {
        "name": "task_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "support_request_id": {
        "name": "supportRequestId",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "image_id": {
        "name": "image_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "webhook_id": {
        "name": "webhook_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "host": {
        "name": "host",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "example": "{{webhook_host}}"
        },
        "description": "Host works as a safeguard: the deletion will only be performed if the host matches the webhook's host"
      }
    },
    "requestBodies": {
      "updateProduct": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/updateProductRequest"
            },
            "examples": {
              "Update a product": {
                "value": {
                  "title": "Product",
                  "description": "Good product",
                  "variants": [
                    {
                      "id": 45740,
                      "price": 400,
                      "is_enabled": true
                    }
                  ],
                  "print_areas": [
                    {
                      "variant_ids": [
                        45740
                      ],
                      "placeholders": [
                        {
                          "position": "front",
                          "images": [
                            {
                              "id": "5d15ca551163cde90d7b2203",
                              "x": 0.5,
                              "y": 0.5,
                              "scale": 1,
                              "angle": 0
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "createProduct": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/createProductRequest"
            },
            "examples": {
              "Create a new product": {
                "value": {
                  "title": "Product",
                  "description": "Good product",
                  "safety_information": "GPSR information: John Doe, test@example.com, 123 Main St, Apt 1, New York, NY, 10001, US",
                  "blueprint_id": 384,
                  "print_provider_id": 1,
                  "variants": [
                    {
                      "id": 45740,
                      "price": 400,
                      "is_enabled": true
                    },
                    {
                      "id": 45742,
                      "price": 400,
                      "is_enabled": true
                    },
                    {
                      "id": 45744,
                      "price": 400,
                      "is_enabled": false
                    },
                    {
                      "id": 45746,
                      "price": 400,
                      "is_enabled": false
                    }
                  ],
                  "print_areas": [
                    {
                      "variant_ids": [
                        45740,
                        45742,
                        45744,
                        45746
                      ],
                      "placeholders": [
                        {
                          "position": "front",
                          "images": [
                            {
                              "id": "5d15ca551163cde90d7b2203",
                              "x": 0.5,
                              "y": 0.5,
                              "scale": 1,
                              "angle": 0,
                              "pattern": {
                                "spacing_x": 1,
                                "spacing_y": 2,
                                "angle": 3,
                                "offset": 4
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "productPublishStatusSucceeded": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/publishingSucceededRequest"
            },
            "examples": {
              "Set product publish status to succeeded": {
                "value": {
                  "external": {
                    "id": "5941187eb8e7e37b3f0e62e5",
                    "handle": "https://example.com/path/to/product"
                  }
                }
              }
            }
          }
        }
      },
      "productPublishStatusFailed": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/publishingFailedRequest"
            },
            "examples": {
              "Set product publish status to failed": {
                "value": {
                  "reason": "Request timed out"
                }
              }
            }
          }
        }
      },
      "publishProduct": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/publishRequest"
            },
            "examples": {
              "Publish a product": {
                "value": {
                  "title": true,
                  "description": true,
                  "images": true,
                  "variants": true,
                  "tags": true,
                  "keyFeatures": true,
                  "shipping_template": true
                }
              }
            }
          }
        }
      },
      "submitOrder": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/submitOrderRequest"
            },
            "examples": {
              "Submit an order": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e4a",
                  "label": "00012",
                  "line_items": [
                    {
                      "product_id": "5bfd0b66a342bcc9b5563216",
                      "variant_id": 17887,
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              },
              "Submit an order with simple print areas": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e5a",
                  "label": "00012",
                  "line_items": [
                    {
                      "print_provider_id": 5,
                      "blueprint_id": 9,
                      "variant_id": 17887,
                      "print_areas": {
                        "front": "https://images.example.com/image.png"
                      },
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              },
              "Submit an order with advanced print areas": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e5a",
                  "label": "00012",
                  "line_items": [
                    {
                      "print_provider_id": 5,
                      "blueprint_id": 9,
                      "variant_id": 17887,
                      "print_areas": {
                        "front": [
                          {
                            "src": "https://images.example.com/image.png",
                            "scale": 0.15,
                            "x": 0.8,
                            "y": 0.34,
                            "angle": 0.34
                          },
                          {
                            "src": "https://images.example.com/image.png",
                            "scale": 1,
                            "x": 0.5,
                            "y": 0.5,
                            "angle": 1
                          }
                        ]
                      },
                      "quantity": 1
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              },
              "Submit an order with SKU": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e6a",
                  "label": "00012",
                  "line_items": [
                    {
                      "sku": "MY-SKU",
                      "quantity": 1
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              },
              "Submit an order with print details": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e5a",
                  "label": "00012",
                  "line_items": [
                    {
                      "print_provider_id": 5,
                      "blueprint_id": 9,
                      "variant_id": 17887,
                      "print_areas": {
                        "front": "https://images.example.com/image.png"
                      },
                      "print_details": {
                        "print_on_side": "mirror"
                      },
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              },
              "Submit an order with a personalization": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e6a",
                  "label": "00012",
                  "line_items": [
                    {
                      "product_id": "5bfd0b66a342bcc9b5563216",
                      "variant_id": 17887,
                      "quantity": 1,
                      "external_id": "line-item-abc-001",
                      "personalisation": {
                        "personalisation_strategy": "pstudio_pre_order_headless",
                        "personalisation_instructions": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                      }
                    }
                  ],
                  "shipping_method": 1,
                  "is_printify_express": false,
                  "is_economy_shipping": false,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              }
            }
          }
        }
      },
      "reprintSupportRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/reprintSupportRequestRequest"
            },
            "examples": {
              "Request a reprint": {
                "value": {
                  "reason": "wrong_design",
                  "description": "The design printed on the wrong side.",
                  "image_urls": [
                    "https://example.com/photo-of-issue.png"
                  ],
                  "line_items": [
                    {
                      "line_item_id": "5b05842f3921c9547531758d",
                      "quantity": 1
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "refundSupportRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/refundSupportRequestRequest"
            },
            "examples": {
              "Request a refund": {
                "value": {
                  "reason": "stained_or_damaged_item",
                  "description": "Item arrived stained.",
                  "image_urls": [
                    "https://example.com/photo-of-issue.png"
                  ],
                  "line_items": [
                    {
                      "line_item_id": "5b05842f3921c9547531758d",
                      "quantity": 1
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "calculateShipping": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/calculateShippingRequest"
            },
            "examples": {
              "Calculate the shipping cost of an order": {
                "value": {
                  "line_items": [
                    {
                      "product_id": "5bfd0b66a342bcc9b5563216",
                      "variant_id": 17887,
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    },
                    {
                      "print_provider_id": 5,
                      "blueprint_id": 9,
                      "variant_id": 17887,
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    },
                    {
                      "sku": "MY-SKU",
                      "quantity": 1,
                      "external_id": "line-item-abc-001"
                    }
                  ],
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@msn.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              }
            }
          }
        }
      },
      "submitExpressOrder": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/expressOrderRequest"
            },
            "examples": {
              "Submit a Printify Express order": {
                "value": {
                  "external_id": "2750e210-39bb-11e9-a503-452618153e4a",
                  "label": "00012",
                  "line_items": [
                    {
                      "product_id": "5b05842f3921c9547531758d",
                      "variant_id": 12359,
                      "quantity": 1
                    },
                    {
                      "product_id": "5b05842f3921c34764fa478bc",
                      "variant_id": 17887,
                      "quantity": 1
                    }
                  ],
                  "shipping_method": 3,
                  "send_shipping_notification": false,
                  "address_to": {
                    "first_name": "John",
                    "last_name": "Smith",
                    "email": "example@example.com",
                    "phone": "0574 69 21 90",
                    "country": "BE",
                    "region": "",
                    "address1": "ExampleBaan 121",
                    "address2": "45",
                    "city": "Retie",
                    "zip": "2470"
                  }
                }
              }
            }
          }
        }
      },
      "addressChangeSupportRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/addressChangeRequest"
            },
            "examples": {
              "Change an order's address": {
                "value": {
                  "first_name": "Jane",
                  "last_name": "Smith",
                  "address1": "ExampleBaan 121",
                  "address2": "Apt 4B",
                  "city": "Retie",
                  "region": "",
                  "country": "BE",
                  "zip": "2470",
                  "email": "example@msn.com",
                  "phone": "0574 69 21 90"
                }
              }
            }
          }
        }
      },
      "createPersonalizationConfig": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/createPersonalizationConfigRequest"
            },
            "examples": {
              "Create a personalization configuration": {
                "value": {
                  "variant_id": 17887,
                  "items": [
                    {
                      "field_id": "front_text",
                      "type": "textbox",
                      "input": {
                        "text": "Happy Birthday!"
                      }
                    }
                  ],
                  "approval": {
                    "is_approved": true
                  }
                }
              }
            }
          }
        }
      },
      "personalizationPreview": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/personalizationPreviewRequest"
            },
            "examples": {
              "Request a personalization preview": {
                "value": {
                  "external_id": "preview-abc-001",
                  "variant_ids": [
                    17887
                  ],
                  "personalization": [
                    {
                      "field_id": "front_text",
                      "type": "textbox",
                      "input": {
                        "text": "Happy Birthday!"
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "uploadImage": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/uploadImageRequest"
            },
            "examples": {
              "Upload an image from URL": {
                "value": {
                  "file_name": "1x1-ff00007f.png",
                  "url": "http://png-pixel.com/1x1-ff00007f.png"
                }
              },
              "Upload an image from base64": {
                "value": {
                  "file_name": "image.png",
                  "contents": "base-64-encoded-content"
                }
              }
            }
          }
        }
      },
      "createWebhook": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "topic",
                "url"
              ],
              "properties": {
                "topic": {
                  "type": "string",
                  "enum": [
                    "product:created",
                    "product:updated",
                    "product:publish:started",
                    "product:deleted",
                    "order:created",
                    "order:updated",
                    "order:sent-to-production",
                    "order:line-item:canceled",
                    "order:shipment:created",
                    "order:shipment:delivered",
                    "shop:disconnected",
                    "personalization-preview-task:processed",
                    "support-request:updated"
                  ],
                  "example": "order:created"
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "example": "https://example.com/webhooks/order/created"
                },
                "secret": {
                  "type": "string",
                  "nullable": true,
                  "description": "Optional secret used to sign webhook payloads. It is never returned in responses.",
                  "example": "my-webhook-secret"
                }
              }
            },
            "examples": {
              "Create a new webhook": {
                "value": {
                  "topic": "order:created",
                  "url": "https://example.com/webhooks/order/created"
                }
              }
            }
          }
        }
      },
      "modifyWebhook": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/modifyWebhookRequest"
            },
            "examples": {
              "Modify a webhook": {
                "value": {
                  "url": "https://example.com/callback/order/created"
                }
              }
            }
          }
        }
      }
    }
  }
}