Skip to content

ShipmentList ​

Type: schema

TypeScript Definition ​

typescript
ShipmentList: {{
            /** @description Delivery and handling taxable values and GST, grouped by rate. Null for earlier documents without a retained breakdown. */
            charge_tax_lines?: {
                /** @enum {string} */
                charge: "shipping" | "handling";
                rate: string;
                taxable_value: string;
                tax: string;
            }[] | null;
            /** @description Explicit adjustment from the supply total to the rounded invoice amount. */
            round_off?: number | null;
        } & ({
            order_number: string;
            sales_channel: {
                id?: string | null;
                name?: string | null;
                type?: string | null;
            };
            reference_number: string;
            /** Format: double */
            sub_total: number;
            /** Format: double */
            sub_total_including_tax: number;
            /** Format: double */
            grand_total: number;
            /** Format: double */
            coupon_discount_amount: number;
            /** Format: double */
            promotion_discount_amount: number;
            /** Format: double */
            loyalty_point_redeemed: number;
            seller_id: string | null;
            marketplace_listing: {
                marketplace_id: string;
            }[];
            /** @description Per-box packing summary. Empty until packing is assigned. */
            packing: components["schemas"]["ShipmentBox"][];
        } & components["schemas"]["ShipmentInfo"]);
        /**
         * @description `refund_shortfall`: items the store could not fulfil and refunded instead, split off the order's unscheduled shipment.
         * @enum {string}
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["ShipmentBox"]ShipmentBox
components["schemas"]["ShipmentInfo"]ShipmentInfo

OpenAPI Schema ​

json
{
  "title": "ShipmentList",
  "properties": {
    "charge_tax_lines": {
      "description": "Delivery and handling taxable values and GST, grouped by rate. Null for earlier documents without a retained breakdown.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "charge": {
            "type": "string",
            "enum": [
              "shipping",
              "handling"
            ]
          },
          "rate": {
            "type": "string"
          },
          "taxable_value": {
            "type": "string"
          },
          "tax": {
            "type": "string"
          }
        },
        "required": [
          "charge",
          "rate",
          "taxable_value",
          "tax"
        ]
      }
    },
    "round_off": {
      "description": "Explicit adjustment from the supply total to the rounded invoice amount.",
      "type": [
        "number",
        "null"
      ]
    }
  },
  "allOf": [
    {
      "type": "object",
      "properties": {
        "order_number": {
          "type": "string"
        },
        "sales_channel": {
          "type": "object",
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "reference_number": {
          "type": "string"
        },
        "sub_total": {
          "type": "number",
          "format": "double"
        },
        "sub_total_including_tax": {
          "type": "number",
          "format": "double"
        },
        "grand_total": {
          "type": "number",
          "format": "double"
        },
        "coupon_discount_amount": {
          "type": "number",
          "format": "double"
        },
        "promotion_discount_amount": {
          "type": "number",
          "format": "double"
        },
        "loyalty_point_redeemed": {
          "type": "number",
          "format": "double"
        },
        "seller_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "marketplace_listing": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "marketplace_id": {
                "type": "string"
              }
            },
            "required": [
              "marketplace_id"
            ]
          }
        },
        "packing": {
          "description": "Per-box packing summary. Empty until packing is assigned.",
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ShipmentBox"
          }
        }
      },
      "required": [
        "order_number",
        "sales_channel",
        "reference_number",
        "sub_total",
        "sub_total_including_tax",
        "grand_total",
        "coupon_discount_amount",
        "promotion_discount_amount",
        "loyalty_point_redeemed",
        "seller_id",
        "marketplace_listing",
        "packing"
      ]
    },
    {
      "$ref": "#/components/schemas/ShipmentInfo"
    }
  ],
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: