{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rutter/json-schema/rutter-create-order-response-schema.json",
  "title": "CreateOrderResponse",
  "description": "Companies that use Rutter can programmatically create orders on their storeowner's shops. \n    To do this, make a POST request to our orders endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rutter-orders-api-openapi.yml#/components/schemas/CreateOrderResponse",
  "type": "object",
  "properties": {
    "order": {
      "$ref": "#/$defs/Order"
    }
  },
  "required": [
    "order"
  ],
  "$defs": {
    "Order": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Rutter generated unique ID of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "platform_id": {
          "type": "string",
          "description": "The platform specific ID of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {}
          }
        },
        "cancelled_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp for when the order was cancelled. `SHOPIFY` only."
        },
        "payment_status": {
          "type": "string",
          "enum": [
            "pending",
            "paid",
            "refunded",
            "failed",
            "unknown"
          ],
          "description": "The payment status of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "archived",
            "cancelled",
            "unknown"
          ],
          "description": "The status of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "total_discount": {
          "type": "number",
          "description": "The sum of all discounts applied to the total price.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "total_price": {
          "type": "number",
          "description": "The total price of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "fulfillment_status": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "fulfilled",
            "unfulfilled",
            "partial",
            "unknown",
            "null"
          ],
          "description": "The status of the fulfillment for the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "ZID": {}
          }
        },
        "iso_currency_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "ZID": {}
          }
        },
        "name": {
          "type": "string",
          "description": "The name of the order. Supported for `SHOPIFY` only.",
          "x-rutter-platforms": {
            "SHOPIFY": {},
            "SHOPLINE": {}
          }
        },
        "order_number": {
          "type": "string",
          "description": "The merchant facing order ID.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "source_name": {
          "type": "string",
          "description": "The channel the order originated from. Supported for `SHOPIFY`, `SQUARE`, and `WAYFAIR`. In-person/point-of-sale orders are `pos` on both Shopify and Square, so `source_name !== 'pos'` filters to online orders.\n\n**`SHOPIFY`** — passed through from Shopify's `order.source_name`. Shopify's reserved values are `web` (online store), `pos` (Shopify Point of Sale), `shopify_draft_order` (created from the admin), `iphone`, and `android`. Orders created through the API default to `api`, or carry a custom string or the creating app's numeric ID. Because any app can set this field freely, non-reserved values are not guaranteed to be stable.\n\n**`SQUARE`** — derived by Rutter from the associated payment's `application_details.square_product`. Possible values: `pos` (Square Point of Sale, Square for Retail, Square for Restaurants, Square Terminal, or Virtual Terminal), `web` (Square Online / Ecommerce API / Online Store), `invoices` (Square Invoices), `appointments` (Square Appointments), and `other` (any other or unrecognized product). Returns an empty string when the order has no associated payment yet (for example, a `DRAFT` order).\n\n**`WAYFAIR`** — passed through from the dropship purchase order's `salesChannelName`.",
          "x-rutter-platforms": {
            "SHOPIFY": {},
            "WAYFAIR": {}
          }
        },
        "total_line_items_price": {
          "type": "number",
          "description": "The total price of all line items of the order. Supported for `SHOPIFY` only.",
          "x-rutter-platforms": {
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WAYFAIR": {}
          }
        },
        "total_shipping": {
          "type": [
            "number",
            "null"
          ],
          "description": "The sum of all shipping costs.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WALMART": {},
            "ZID": {}
          }
        },
        "total_shipping_discount": {
          "type": "number",
          "description": "The sum of all discounts on shipping applied to the total price.",
          "x-rutter-platforms": {
            "SHOPIFY": {},
            "SHOPLINE": {}
          }
        },
        "total_tax": {
          "type": [
            "number",
            "null"
          ],
          "description": "The total tax paid on the order.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WALMART": {},
            "ZID": {}
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The tags of the order. Supported for `SHOPIFY` only.",
          "x-rutter-platforms": {
            "SHOPIFY": {}
          }
        },
        "billing_address": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "address1": {
              "type": "string",
              "description": "The first address line of the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "address2": {
              "type": "string",
              "description": "An optional second address line of the address.",
              "x-rutter-platforms": {
                "SHOPLINE": {}
              }
            },
            "city": {
              "type": "string",
              "description": "The city, town, or village of the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "country_code": {
              "type": "string",
              "description": "The [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) country code of the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "first_name": {
              "type": "string",
              "description": "The first name of the person associated with the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "last_name": {
              "type": "string",
              "description": "The last name of the person associated with the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "postal_code": {
              "type": "string",
              "description": "The postal code of the address.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "region": {
              "type": "string",
              "description": "The abbreviation of the region of the address. For the US, this would be states, for other places, it would be provinces or equivalent.",
              "x-rutter-platforms": {
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "The phone number associated with the address.",
              "x-rutter-platforms": {
                "SHOPLINE": {}
              }
            }
          },
          "required": [
            "address1",
            "address2",
            "city",
            "country_code",
            "first_name",
            "last_name",
            "postal_code",
            "region",
            "phone"
          ],
          "additionalProperties": false,
          "x-rutter-platforms": {
            "SHOPIFY": {},
            "SHOPLINE": {}
          }
        },
        "refunds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "line_items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "line_item_id": {
                      "type": "string",
                      "description": "The id of the line item refunded.",
                      "x-rutter-platforms": {
                        "AMAZON": {},
                        "WALMART": {}
                      }
                    },
                    "quantity": {
                      "type": "number",
                      "description": "The quantity of the linked [Variant](/rest/version/variants) refunded with this line item.",
                      "x-rutter-platforms": {
                        "AMAZON": {},
                        "WALMART": {}
                      }
                    },
                    "status": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "completed",
                        "canceled",
                        "unknown",
                        "null"
                      ],
                      "description": "The status of the refund line item. Supported for Walmart.",
                      "x-rutter-platforms": {
                        "WALMART": {}
                      }
                    },
                    "amount": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The cost of the variants refunded. Supported only for Shopify, WooCommerce."
                    }
                  },
                  "required": [
                    "line_item_id",
                    "quantity",
                    "status"
                  ],
                  "additionalProperties": false
                },
                "description": "The linked [Variants](/rest/version/variants) and quantities associated with this order refund.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "WALMART": {}
                }
              }
            },
            "required": [
              "line_items"
            ],
            "additionalProperties": false
          },
          "x-rutter-platforms": {
            "AMAZON": {},
            "WALMART": {}
          }
        },
        "shipping_address": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "address1": {
              "type": "string",
              "description": "The first address line of the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SALLA": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "address2": {
              "type": "string",
              "description": "An optional second address line of the address.",
              "x-rutter-platforms": {
                "SHOPLINE": {},
                "WALMART": {}
              }
            },
            "city": {
              "type": "string",
              "description": "The city, town, or village of the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "AMAZON": {},
                "SALLA": {},
                "SHEIN": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "country_code": {
              "type": "string",
              "description": "The [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) country code of the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "AMAZON": {},
                "SALLA": {},
                "SHEIN": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "first_name": {
              "type": "string",
              "description": "The first name of the person associated with the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SALLA": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "last_name": {
              "type": "string",
              "description": "The last name of the person associated with the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "postal_code": {
              "type": "string",
              "description": "The postal code of the address.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "AMAZON": {},
                "SALLA": {},
                "SHEIN": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "region": {
              "type": "string",
              "description": "The abbreviation of the region of the address. For the US, this would be states, for other places, it would be provinces or equivalent.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "AMAZON": {},
                "SALLA": {},
                "SHEIN": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WALMART": {},
                "WAYFAIR": {}
              }
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "The phone number associated with the address.",
              "x-rutter-platforms": {
                "SALLA": {},
                "SHOPLINE": {},
                "WALMART": {}
              }
            }
          },
          "required": [
            "address1",
            "address2",
            "city",
            "country_code",
            "first_name",
            "last_name",
            "postal_code",
            "region",
            "phone"
          ],
          "additionalProperties": false,
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WALMART": {},
            "WAYFAIR": {}
          }
        },
        "customer": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ],
              "description": "The Rutter ID of the [Customer](/rest/version/customers) linked to the order.In some cases the platform does provide an ID, so we use the closest field to an ID as possible. For Amazon, this is the Amazon-masked email address of the customer.",
              "x-rutter-platforms": {
                "AMAZON": {},
                "SHOPIFY": {}
              }
            },
            "platform_id": {
              "type": [
                "string",
                "null"
              ],
              "description": "The platform specific ID of the customer.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SALLA": {},
                "SHOPLINE": {}
              }
            },
            "email": {
              "type": [
                "string",
                "null"
              ],
              "description": "The email of the customer.",
              "x-rutter-platforms": {
                "AMAZON": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WAYFAIR": {}
              }
            },
            "first_name": {
              "type": [
                "string",
                "null"
              ],
              "description": "First name of the customer.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SALLA": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WAYFAIR": {}
              }
            },
            "last_name": {
              "type": [
                "string",
                "null"
              ],
              "description": "Last name of the customer.",
              "x-rutter-platforms": {
                "ALIBABA": {},
                "SALLA": {},
                "SHOPIFY": {},
                "SHOPLINE": {},
                "WAYFAIR": {}
              }
            },
            "phone": {
              "type": [
                "string",
                "null"
              ],
              "description": "The phone number of the customer.",
              "x-rutter-platforms": {
                "SALLA": {},
                "SHOPLINE": {}
              }
            },
            "created_at": {
              "type": "string",
              "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the customer was created.",
              "x-rutter-platforms": {
                "SALLA": {},
                "SHOPIFY": {},
                "SHOPLINE": {}
              }
            },
            "updated_at": {
              "type": "string",
              "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the customer was last updated.",
              "x-rutter-platforms": {
                "SALLA": {},
                "SHOPIFY": {}
              }
            }
          },
          "required": [
            "id",
            "email",
            "first_name",
            "last_name",
            "phone",
            "created_at",
            "updated_at"
          ],
          "additionalProperties": false,
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WAYFAIR": {}
          }
        },
        "line_items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Rutter ID for the order line item. This can sometimes be the same as the platform_id. This ID is not guaranteed to be unique across orders.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "platform_id": {
                "type": "string",
                "description": "The platform specific ID of the order line item.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SALLA": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "product_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The Rutter ID of the [Product](/rest/version/products) linked to the order. `null` if the product has been deleted from the connection.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SALLA": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "variant_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The Rutter ID of the [Product](/rest/version/products) linked to the order. `null` if the product has been deleted from the connection. The `variant_id` and `product_id` can be equal if the product contains no variants.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {}
                }
              },
              "price": {
                "type": "number",
                "description": "The total cost of all of the variants associated with this line item. This is before applying any taxes or discounts, and is typically calculated by multiplying the single unit cost by the quantity purchased. For WooCommerce, this value does include discounts.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SALLA": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "quantity": {
                "type": "number",
                "description": "The quantity of the linked [Variant](/rest/version/variants) sold with this line item.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SALLA": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "iso_currency_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the order line item.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SALLA": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "TIKTOKSHOP": {}
                }
              },
              "sku": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The stock keeping unit (SKU) of the linked [Variant](/rest/version/variants).",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The `title` of the linked [Variant](/rest/version/variants).",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SALLA": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "TIKTOKSHOP": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "unit_cost": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The price per unit of the linked [Variant](/rest/version/variants).",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {},
                  "WAYFAIR": {}
                }
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the order line item was created.",
                "x-rutter-platforms": {
                  "SHEIN": {}
                }
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the order line items was last updated.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHEIN": {}
                }
              }
            },
            "required": [
              "id",
              "product_id",
              "price",
              "quantity",
              "iso_currency_code",
              "sku",
              "title",
              "unit_cost",
              "created_at",
              "updated_at"
            ],
            "additionalProperties": false
          },
          "description": "The linked [variants](/rest/version/variants) and quantities associated with this order.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {}
          }
        },
        "fulfillments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Rutter generated unique ID of the fulfillment.",
                "x-rutter-platforms": {
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "WALMART": {}
                }
              },
              "order_id": {
                "type": "string",
                "description": "The Rutter ID of the [Order](/rest/version/orders) linked to the fulfillment.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "WALMART": {}
                }
              },
              "carrier": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The carrier of the fulfillment, ex \"USPS\", \"Fedex\", \"UPS\", \"Canada Post\", etc.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {}
                }
              },
              "service": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The carrier shipping service of the fulfillment, ex \"Priority Mail\", \"2 Day Delivery\", etc.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {}
                }
              },
              "tracking_number": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The tracking number of the fulfillment. Buyers can track tracking info using this number at the carrier's website.",
                "x-rutter-platforms": {
                  "ALIBABA": {},
                  "AMAZON": {},
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {}
                }
              },
              "tracking_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The tracking URL of the fulfillment. Buyers can open this URL to look up tracking information.",
                "x-rutter-platforms": {
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {}
                }
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The fulfillment method, when the platform distinguishes one. For Square: 'shipment' | 'pickup' | 'delivery' | 'digital'."
              },
              "line_items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The Rutter generated unique ID of the fulfillment line item.",
                      "x-rutter-platforms": {
                        "SHEIN": {},
                        "SHOPIFY": {},
                        "WALMART": {}
                      }
                    },
                    "product_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The Rutter ID of the [Product](/rest/version/products) linked to the fulfillment line item. `null` if the product has been deleted from the connection.",
                      "x-rutter-platforms": {
                        "SHOPIFY": {},
                        "WALMART": {}
                      }
                    },
                    "variant_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The Rutter ID of the [Product](/rest/version/products) linked to the order. `null` if the product has been deleted from the connection. The `variant_id` and `product_id` are equal if the variant is the default variant or the product contains no variants.",
                      "x-rutter-platforms": {
                        "SHOPIFY": {},
                        "WALMART": {}
                      }
                    },
                    "price": {
                      "type": "number",
                      "description": "The total cost of all of the variants associated with this line item. This is before applying any taxes or discounts, and is typically calculated by multiplying the single unit cost by the quantity purchased. For WooCommerce, this value does include discounts.",
                      "x-rutter-platforms": {
                        "SHEIN": {},
                        "SHOPIFY": {},
                        "SHOPLINE": {},
                        "WALMART": {}
                      }
                    },
                    "quantity": {
                      "type": "number",
                      "description": "The quantity of the linked [Variant](/rest/version/variants) fulfilled with this line item.",
                      "x-rutter-platforms": {
                        "SHEIN": {},
                        "SHOPIFY": {},
                        "SHOPLINE": {},
                        "WALMART": {}
                      }
                    },
                    "sku": {
                      "type": "string",
                      "description": "The stock keeping unit (SKU) of the linked [Variant](/rest/version/variants).",
                      "x-rutter-platforms": {
                        "SHEIN": {},
                        "SHOPIFY": {},
                        "SHOPLINE": {},
                        "WALMART": {}
                      }
                    },
                    "title": {
                      "type": "string",
                      "description": "The `title` of the linked [Variant](/rest/version/variants)",
                      "x-rutter-platforms": {
                        "SHEIN": {},
                        "SHOPIFY": {},
                        "SHOPLINE": {},
                        "WALMART": {}
                      }
                    },
                    "additional_fields": {
                      "type": "object",
                      "properties": {
                        "platform_product_id": {
                          "type": "string",
                          "description": "The platform ID of the product. Supported for Walmart, eBay.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {},
                            "WALMART": {}
                          }
                        },
                        "product_type": {
                          "type": "string",
                          "description": "The product type. Supported for Walmart, eBay.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {},
                            "WALMART": {}
                          }
                        },
                        "total_amount": {
                          "type": "number",
                          "description": "The total amount of the line item (including all taxes, discounts, promotions, and delivery costs). Supported for Walmart, eBay.",
                          "x-rutter-platforms": {
                            "SHOPIFY": {},
                            "WALMART": {}
                          }
                        }
                      },
                      "additionalProperties": false,
                      "description": "Additional fields required only for a narrow set of use cases.",
                      "x-rutter-platforms": {
                        "SHOPIFY": {},
                        "WALMART": {}
                      }
                    }
                  },
                  "required": [
                    "id",
                    "product_id",
                    "variant_id",
                    "price",
                    "quantity",
                    "sku",
                    "title"
                  ],
                  "additionalProperties": false
                },
                "description": "The linked [Variants](/rest/version/variants) and quantities associated with this fulfillment.",
                "x-rutter-platforms": {
                  "SHEIN": {},
                  "SHOPIFY": {},
                  "SHOPLINE": {},
                  "WALMART": {}
                }
              }
            },
            "required": [
              "id",
              "order_id",
              "carrier",
              "service",
              "tracking_number",
              "tracking_url",
              "line_items"
            ],
            "additionalProperties": false
          },
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "WALMART": {}
          }
        },
        "transactions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrderTransaction"
          },
          "description": "An array of [Transactions](/rest/version/transactions) linked to the order. Included if you pass the expand=transactions query parameter.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "SHOPIFY": {},
            "WALMART": {}
          }
        },
        "created_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the order was created.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "updated_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the order was last updated.",
          "x-rutter-platforms": {
            "ALIBABA": {},
            "AMAZON": {},
            "SALLA": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "SHOPLINE": {},
            "TIKTOKSHOP": {},
            "WALMART": {},
            "WAYFAIR": {},
            "ZID": {}
          }
        },
        "platform_data": {
          "type": "object",
          "additionalProperties": {},
          "description": "The raw platform data corresponding to the Rutter object."
        }
      },
      "required": [
        "id",
        "payment_status",
        "status",
        "total_discount",
        "total_price",
        "fulfillment_status",
        "iso_currency_code",
        "total_shipping",
        "total_tax",
        "billing_address",
        "shipping_address",
        "customer",
        "line_items",
        "fulfillments",
        "created_at",
        "updated_at"
      ]
    },
    "OrderTransaction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Rutter generated unique ID of the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "platform_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The platform specific ID of the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "order_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The Rutter ID of the [Order](/rest/version/orders) linked to the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "SHOPIFY": {},
            "WALMART": {}
          }
        },
        "platform_customer_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The platform specific ID of the customer linked to the transaction.",
          "x-rutter-platforms": {
            "RECHARGE": {},
            "STRIPE": {}
          }
        },
        "payment_method_type": {
          "type": "string",
          "enum": [
            "cash",
            "card",
            "other"
          ],
          "description": "The payment method associated with the transaction. Some enum value clarifications:\n  - `cash` - this type will mainly appear on self-hosted platforms like WooCommerce where Cash on Delivery is available.\n  - `card` - includes credit or debit card payments",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "success",
            "failure",
            "pending",
            "cancelled",
            "refunded",
            "other"
          ],
          "description": "The status of the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "type": {
          "type": "string",
          "enum": [
            "sale",
            "refund",
            "void",
            "payout",
            "fee",
            "chargeback",
            "chargeback_reversal",
            "other"
          ],
          "description": "The transaction type associated with the transaction. Some enum value clarifications:\n  - `void` - means a cancellation of a pending transaction.\n  - `payout` - means the merchant transferred the money held in the platform to the merchant's own bank account.\n  - `chargeback` - a dispute withdrawal from the merchant.\n  - `chargeback_reversal` - funds returned to the merchant after a chargeback is won or released.\n  - `other` - If the transaction can't fit into any of the above types. This happens more often on self-hosted platforms where merchants create their own transaction types / have them in a different language.\n\n  The chargeback transaction types are rolling out behind platform feature flags. To avoid changing existing integrations' transaction type results, these values are only returned for connections where the rollout is enabled.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "amount": {
          "type": [
            "number",
            "null"
          ],
          "description": "The amount associated with the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "fee": {
          "type": "number",
          "description": "The fee associated with the transaction.",
          "x-rutter-platforms": {
            "RECHARGE": {},
            "SHEIN": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "gateway": {
          "type": [
            "string",
            "null"
          ],
          "description": "The gateway associated with the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "RECHARGE": {},
            "SHOPIFY": {},
            "STRIPE": {}
          }
        },
        "gateway_data": {
          "description": "The gateway data associated with the transaction. An object containing additional metadata. This field is only populated for commerce platforms like Shopify that do their own payment processing & partner with another processor (Stripe), which attaches metadata to the transaction. Otherwise the value is `null`. The properties depend on the payment gateway used.",
          "type": [
            "null"
          ],
          "x-rutter-platforms": {
            "AMAZON": {},
            "SHOPIFY": {},
            "STRIPE": {}
          }
        },
        "iso_currency_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code of the transaction.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "MOLLIE": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "platform_type": {
          "type": "string",
          "description": "The platform type associated with the transaction.",
          "x-rutter-platforms": {
            "RECHARGE": {},
            "SHEIN": {},
            "WALMART": {}
          }
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description of the transaction",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "SHEIN": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "created_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the transaction was created.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "AUTHORIZENET": {},
            "CLOVER": {},
            "MOLLIE": {},
            "PAYNL": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "updated_at": {
          "type": "string",
          "description": "The [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) timestamp that the transaction was last updated.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "CLOVER": {},
            "RECHARGE": {},
            "SHEIN": {},
            "SHOPIFY": {},
            "STRIPE": {},
            "WALMART": {}
          }
        },
        "platform_data": {
          "type": "object",
          "additionalProperties": {},
          "description": "The raw platform data corresponding to the Rutter object.",
          "x-rutter-platforms": {
            "AMAZON": {},
            "SHEIN": {},
            "STRIPE": {}
          }
        }
      },
      "required": [
        "id",
        "order_id",
        "payment_method_type",
        "status",
        "type",
        "amount",
        "gateway",
        "iso_currency_code",
        "created_at",
        "updated_at"
      ]
    }
  }
}