Skip to content

ShipmentAmounts ​

Type: schema

Description ​

Amounts and references returned for every shipment.

TypeScript Definition ​

typescript
ShipmentAmounts: {{
            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;
            }[];
            sales_channel?: {
                id: string | null;
                name: string | null;
                type: string | null;
            };
        };
        /** ShipmentBox */
}

OpenAPI Schema ​

json
{
  "description": "Amounts and references returned for every shipment.",
  "type": "object",
  "properties": {
    "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"
        ]
      }
    },
    "sales_channel": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "type"
      ]
    }
  },
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/admin-pos/schemas/ShipmentAmounts"
  },
  "required": [
    "reference_number",
    "sub_total",
    "sub_total_including_tax",
    "grand_total",
    "coupon_discount_amount",
    "promotion_discount_amount",
    "loyalty_point_redeemed"
  ],
  "title": "ShipmentAmounts",
  "x-tags": [
    "Shipping"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: