{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rutter/json-schema/rutter-create-product-response-schema.json",
  "title": "CreateProductResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rutter-products-api-openapi.yml#/components/schemas/CreateProductResponse",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "async_response": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "response_url": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "prequeued",
                "pending",
                "success",
                "failure"
              ]
            },
            "platform_rate_limit_details": {
              "type": "object",
              "properties": {
                "lookback_window_seconds": {
                  "type": "number"
                },
                "platform_rate_limited_basis": {
                  "type": "string",
                  "enum": [
                    "platform",
                    "connection",
                    "hybrid"
                  ]
                },
                "recent_connection_rate_limited_job_count": {
                  "type": "number"
                },
                "recent_platform_rate_limited_job_count": {
                  "type": "number"
                },
                "recent_rate_limited_job_count": {
                  "type": "number"
                }
              },
              "required": [
                "lookback_window_seconds",
                "platform_rate_limited_basis",
                "recent_connection_rate_limited_job_count",
                "recent_platform_rate_limited_job_count",
                "recent_rate_limited_job_count"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "id",
            "response_url",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "async_response"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "product": {
          "$ref": "#/$defs/Product"
        }
      },
      "required": [
        "product"
      ],
      "additionalProperties": false
    }
  ],
  "$defs": {
    "Product": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Rutter generated unique ID of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WALMART": {}
          }
        },
        "platform_id": {
          "type": "string",
          "description": "The platform specific ID of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WALMART": {}
          }
        },
        "category_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The Rutter generated unique ID of the product category. This is only exposed when the `expand=category_id` parameter is used. Only supported for Shopify, Amazon, BigCommerce.",
          "x-rutter-platforms": {
            "BIG_COMMERCE": {}
          }
        },
        "description": {
          "type": "string",
          "description": "The description of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {}
          }
        },
        "name": {
          "type": "string",
          "description": "The name of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WALMART": {}
          }
        },
        "type": {
          "type": "string",
          "description": "The unstandardized type or categorization of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "WALMART": {}
          }
        },
        "product_url": {
          "type": "string",
          "description": "The consumer facing URL used to access the product online.",
          "x-rutter-platforms": {
            "BIG_COMMERCE": {},
            "SHOPIFY": {}
          }
        },
        "collection_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of Rutter IDs of [Collections](/rest/version/collections) linked to the product. Only supported for Shopify.",
          "x-rutter-platforms": {
            "SHOPIFY": {}
          }
        },
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "src": {
                "type": "string",
                "description": "The URL of the image.",
                "x-rutter-platforms": {
                  "BIG_COMMERCE": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {}
                }
              }
            },
            "required": [
              "src"
            ],
            "additionalProperties": false
          },
          "description": "An array of images linked to the product.",
          "x-rutter-platforms": {
            "BIG_COMMERCE": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {}
          }
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "string",
              "enum": [
                "active",
                "archived",
                "inactive",
                "draft",
                "unknown"
              ]
            }
          ],
          "description": "The status of the product.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WALMART": {}
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "An array of tags linked to the product.",
          "x-rutter-platforms": {
            "BIG_COMMERCE": {},
            "SHOPIFY": {}
          }
        },
        "translations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "locale": {
                "type": "string",
                "description": "The locale of this translation as a `language-REGION` tag, for example `pt-BR`, `en-US`, `ja-JP`.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The translated description of the product.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The translated name of the product.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The translated type of the product.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              }
            },
            "required": [
              "locale",
              "description",
              "name",
              "type"
            ],
            "additionalProperties": false
          },
          "description": "Translations of the product's name, description and type. Only returned when the `locales` query parameter is set. Supported for Shopify.",
          "x-rutter-platforms": {
            "SHOPIFY": {}
          }
        },
        "variants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the variant. This value can either be a Rutter-generated UUID or the ID of the variant in the platform. This ID is not guaranteed to be unique across all variants.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "platform_id": {
                "type": "string",
                "description": "The platform specific ID of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "product_id": {
                "type": "string",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "price": {
                "type": "number",
                "description": "The price of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "requires_shipping": {
                "type": "boolean",
                "description": "Whether the variant requires shipping.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "barcode": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The barcode of the variant."
              },
              "fulfillment_service": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The fulfillment service of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHOPIFY": {}
                }
              },
              "inventory_management": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The inventory management system of the variant.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "iso_currency_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHOPIFY": {},
                  "WALMART": {}
                }
              },
              "sku": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The stock keeping unit (SKU) of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The title of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "unit_cost": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The unit cost of the variant.",
                "x-rutter-platforms": {
                  "BIG_COMMERCE": {},
                  "SHOPIFY": {}
                }
              },
              "variant_url": {
                "type": "string",
                "description": "The consumer facing URL used to access the variant online."
              },
              "compare_at_price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The original price of the variant before a sale, in the currency given by `iso_currency_code`. For Shopify, this is the variant compare-at price. `null` when no sale price is set.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The description of the variant."
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string",
                      "description": "The URL of the image.",
                      "x-rutter-platforms": {
                        "BIG_COMMERCE": {},
                        "SHOPIFY": {}
                      }
                    }
                  },
                  "required": [
                    "src"
                  ],
                  "additionalProperties": false
                },
                "description": "An array of images linked to the variant.",
                "x-rutter-platforms": {
                  "BIG_COMMERCE": {},
                  "SHOPIFY": {}
                }
              },
              "short_description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "An abbreviated description of the variant."
              },
              "option_values": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The name of the variant option.",
                      "x-rutter-platforms": {
                        "BIG_COMMERCE": {},
                        "SHOPIFY": {},
                        "TIKTOKSHOP": {},
                        "WALMART": {}
                      }
                    },
                    "value": {
                      "type": "string",
                      "description": "The value of the variant option.",
                      "x-rutter-platforms": {
                        "BIG_COMMERCE": {},
                        "SHOPIFY": {},
                        "TIKTOKSHOP": {},
                        "WALMART": {}
                      }
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "description": "The option values associated with the variant. This describes how the variant is unique from other variants of the same product.",
                "x-rutter-platforms": {
                  "BIG_COMMERCE": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "currency_prices": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "iso_currency_code": {
                      "type": "string",
                      "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the price."
                    },
                    "price": {
                      "type": "number",
                      "description": "The value of the price."
                    }
                  },
                  "required": [
                    "iso_currency_code",
                    "price"
                  ],
                  "additionalProperties": false
                },
                "description": "An array of prices in different supported currencies for the variant."
              },
              "weight": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "unit": {
                    "type": "string",
                    "enum": [
                      "kg",
                      "g",
                      "oz",
                      "lb",
                      "gal"
                    ],
                    "description": "The unit the weight is being measured in.",
                    "x-rutter-platforms": {
                      "SHOPIFY": {}
                    }
                  },
                  "value": {
                    "type": "number",
                    "description": "The value of the weight.",
                    "x-rutter-platforms": {
                      "SHOPIFY": {}
                    }
                  }
                },
                "required": [
                  "unit",
                  "value"
                ],
                "additionalProperties": false,
                "description": "The weight of the variant.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "linked_products": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "variant_id": {
                      "type": "string"
                    },
                    "link_type": {
                      "type": "string"
                    },
                    "sku": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "variant_id",
                    "link_type",
                    "sku"
                  ],
                  "additionalProperties": false
                }
              },
              "translations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "locale": {
                      "type": "string",
                      "description": "The locale of this translation as a `language-REGION` tag, for example `pt-BR`, `en-US`, `ja-JP`.",
                      "x-rutter-platforms": {
                        "SHOPIFY": {}
                      }
                    },
                    "option_values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "The name of the variant option.",
                            "x-rutter-platforms": {
                              "SHOPIFY": {}
                            }
                          },
                          "value": {
                            "type": "string",
                            "description": "The value of the variant option.",
                            "x-rutter-platforms": {
                              "SHOPIFY": {}
                            }
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      "description": "The variant's option values with the option name and value translated into this locale. Parts without a translation keep the original text.",
                      "x-rutter-platforms": {
                        "SHOPIFY": {}
                      }
                    }
                  },
                  "required": [
                    "locale",
                    "option_values"
                  ],
                  "additionalProperties": false
                },
                "description": "Translations of the variant's option values. Only returned when the `locales` query parameter is set. Supported for Shopify.",
                "x-rutter-platforms": {
                  "SHOPIFY": {}
                }
              },
              "inventory": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "total_count": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The total amount of inventory of the variant.",
                    "x-rutter-platforms": {
                      "AMAZON": {},
                      "BIG_COMMERCE": {},
                      "SHOPIFY": {},
                      "WALMART": {}
                    }
                  },
                  "locations": {
                    "type": [
                      "array",
                      "null"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "The Rutter generated unique ID of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "address1": {
                          "type": "string",
                          "description": "The first address line of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "address2": {
                          "type": "string",
                          "description": "The second address line of the location."
                        },
                        "city": {
                          "type": "string",
                          "description": "The city of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "country": {
                          "type": "string",
                          "description": "The country of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "name": {
                          "type": "string",
                          "description": "The name of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "postal_code": {
                          "type": "string",
                          "description": "The postal code of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "quantity": {
                          "type": "number",
                          "description": "The quantity of inventory at the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "region": {
                          "type": "string",
                          "description": "The region of the location.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {}
                          }
                        },
                        "updated_at": {
                          "type": "string",
                          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the location was last updated."
                        }
                      },
                      "required": [
                        "id",
                        "address1",
                        "address2",
                        "city",
                        "country",
                        "name",
                        "postal_code",
                        "quantity",
                        "region",
                        "updated_at"
                      ],
                      "additionalProperties": false
                    },
                    "description": "The locations containing inventory for the variant.",
                    "x-rutter-platforms": {
                      "SHOPIFY": {}
                    }
                  }
                },
                "required": [
                  "total_count",
                  "locations"
                ],
                "additionalProperties": false,
                "description": "Details about the inventory of the variant.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "BIG_COMMERCE": {},
                  "SHOPIFY": {},
                  "WALMART": {}
                }
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the variant was created.",
                "x-rutter-platforms": {
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {}
                }
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the variant was last updated.",
                "x-rutter-platforms": {
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {}
                }
              },
              "platform_data": {
                "type": "object",
                "additionalProperties": {},
                "description": "The raw platform data corresponding to the Rutter object."
              }
            },
            "required": [
              "id",
              "product_id",
              "price",
              "requires_shipping",
              "barcode",
              "fulfillment_service",
              "inventory_management",
              "iso_currency_code",
              "sku",
              "title",
              "unit_cost",
              "images",
              "option_values",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          },
          "description": "An array of [Variants](/rest/version/variants) linked to the product. For Shopify, we only return the first 250 variants.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {},
            "WALMART": {}
          }
        },
        "created_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the product was created.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {}
          }
        },
        "updated_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the product was last updated.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "BIG_COMMERCE": {},
            "SHOPIFY": {},
            "TIKTOKSHOP": {}
          }
        },
        "platform_data": {
          "type": "object",
          "additionalProperties": {},
          "description": "The raw platform data corresponding to the Rutter object."
        }
      },
      "required": [
        "id",
        "description",
        "name",
        "type",
        "images",
        "status",
        "tags",
        "variants",
        "created_at",
        "updated_at"
      ]
    }
  }
}