Skip to content

ShippingRateBasedOnWeightSlabs ​

Type: schema

TypeScript Definition ​

typescript
ShippingRateBasedOnWeightSlabs: {{
            /** @enum {unknown} */
            rate_based_on: "item-weight";
            /** @enum {unknown} */
            rate_type: "weight-slabs";
            slabs: {
                weight: number;
                shipping_rate: number;
                /** @enum {unknown} */
                condition: "less-or-equal" | "greater";
            }[];
        } | null;
        /** ShippingRatePerKgFixedPrice */
}

OpenAPI Schema ​

json
{
  "title": "ShippingRateBasedOnWeightSlabs",
  "type": [
    "object",
    "null"
  ],
  "required": [
    "rate_based_on",
    "rate_type",
    "slabs"
  ],
  "properties": {
    "rate_based_on": {
      "enum": [
        "item-weight"
      ]
    },
    "rate_type": {
      "enum": [
        "weight-slabs"
      ]
    },
    "slabs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "weight",
          "shipping_rate",
          "condition"
        ],
        "properties": {
          "weight": {
            "type": "number"
          },
          "shipping_rate": {
            "type": "number"
          },
          "condition": {
            "enum": [
              "less-or-equal",
              "greater"
            ]
          }
        }
      }
    }
  },
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: