OrderShipmentDetail
Type: schema
TypeScript Definition
typescript
OrderShipmentDetail: {{
order_number: string;
/** Format: date-time */
order_date: string;
order_status: components["schemas"]["AdminOrderStatus"];
sales_channel: {
id: string | null;
name: string | null;
type: string | null;
};
payment_status: components["schemas"]["PaymentStatus"];
customer_name: string;
customer_id: string;
/** @description Type of the sales channel, repeated flat alongside `sales_channel`. */
sales_channel_type: string;
/** Format: double */
sub_total: number;
/** Format: double */
total_tax: number;
/** Format: double */
shipping_amount: number;
/**
* Format: double
* @description Goods including tax, shipping and handling, less coupons, promotions and redeemed loyalty points, rounded down to a whole currency unit. Store credit is deducted from the order's to_be_paid.
*/
grand_total: number;
coupon_code: string | null;
/** Format: double */
coupon_discount_amount: number;
/** Format: double */
coupon_discount_percent: number | null;
shipments: components["schemas"]["OrderShipmentSummary"][];
allowed_actions: components["schemas"]["InventoryAction"][];
};
/**
* OrderShipmentItem
* @description A line in an order shipment.
*/
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["AdminOrderStatus"] | AdminOrderStatus |
components["schemas"]["PaymentStatus"] | PaymentStatus |
components["schemas"]["OrderShipmentSummary"] | OrderShipmentSummary |
components["schemas"]["InventoryAction"] | InventoryAction |
OpenAPI Schema
json
{
"type": "object",
"properties": {
"order_number": {
"type": "string"
},
"order_date": {
"type": "string",
"format": "date-time"
},
"order_status": {
"$ref": "#/components/schemas/AdminOrderStatus"
},
"sales_channel": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"name": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name",
"type"
]
},
"payment_status": {
"$ref": "#/components/schemas/PaymentStatus"
},
"customer_name": {
"type": "string"
},
"customer_id": {
"type": "string"
},
"sales_channel_type": {
"description": "Type of the sales channel, repeated flat alongside `sales_channel`.",
"type": "string"
},
"sub_total": {
"type": "number",
"format": "double"
},
"total_tax": {
"type": "number",
"format": "double"
},
"shipping_amount": {
"type": "number",
"format": "double"
},
"grand_total": {
"description": "Goods including tax, shipping and handling, less coupons, promotions and redeemed loyalty points, rounded down to a whole currency unit. Store credit is deducted from the order's to_be_paid.",
"type": "number",
"format": "double"
},
"coupon_code": {
"type": [
"string",
"null"
]
},
"coupon_discount_amount": {
"type": "number",
"format": "double"
},
"coupon_discount_percent": {
"type": [
"number",
"null"
],
"format": "double"
},
"shipments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OrderShipmentSummary"
}
},
"allowed_actions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InventoryAction"
}
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/OrderShipmentDetail"
},
"required": [
"order_number",
"order_date",
"order_status",
"sales_channel",
"payment_status",
"customer_name",
"shipments",
"allowed_actions",
"customer_id",
"sales_channel_type",
"sub_total",
"shipping_amount",
"total_tax",
"coupon_code",
"coupon_discount_percent",
"coupon_discount_amount",
"grand_total"
],
"title": "OrderShipmentDetail"
}Auto-generated from OpenAPI spec and TypeScript definitions