ShipmentInvoiceItem
Type: schema
Description
A line on a shipment invoice.
TypeScript Definition
typescript
ShipmentInvoiceItem: {{
sku?: string | null;
product_name?: string;
product_image_url?: string | null;
listing_price?: number;
selling_price?: number;
/** @description Quantity invoiced. Sent as a numeric string, not a number. */
qty?: string;
/** @description Quantity supplied free of charge. Sent as a numeric string, not a number. */
free_qty?: string | null;
tax_type?: string;
tax_rate?: number;
hsncode?: string | null;
expiry?: string | null;
/** @description Selling-price consideration for the invoiced quantity after its allocated discounts; includes GST when the selling price includes GST. */
amount?: number;
coupon_discount_amount?: number;
promotion_discount_amount?: number;
selling_price_excluding_tax?: number;
item_name?: string | null;
order_item_id?: string | null;
batch_no?: string | null;
/** @description Line value before coupon and promotion deductions, excluding GST. */
subtotal?: number;
/** @description GST taxable value retained on the invoice. Earlier before-discount invoices may differ from net_value. Omitted when pricing_breakdown_available is false. */
taxable_value?: number;
/** @description GST on the invoiced line. Omitted when pricing_breakdown_available is false. */
tax?: number;
/** @description GST apportioned across CGST, SGST, UTGST or IGST for the recorded place of supply. Omitted when the invoice's tax breakdown is unavailable; recorded invoice totals are retained. GST components do not apply to non-GST invoices. */
tax_components?: {
CGST?: number;
SGST?: number;
UTGST?: number;
IGST?: number;
};
/** @description Taxable value and tax at each applicable GST rate for the invoiced goods. Omitted when pricing_breakdown_available is false. */
tax_lines?: {
rate: string;
taxable_value: string;
tax: string;
/** @description GST apportioned across CGST, SGST, UTGST or IGST for the recorded place of supply. Omitted when the invoice's tax breakdown is unavailable; recorded invoice totals are retained. GST components do not apply to non-GST invoices. */
tax_components?: {
CGST?: number;
SGST?: number;
UTGST?: number;
IGST?: number;
};
/** @description Units of this line taxed at this rate. A line's tax lines add up to its paid units. Omitted when an earlier invoice didn't record how its units split across rates. */
quantity?: string;
/** @description Transaction value represented by this tax-rate part, excluding tax. */
net_value?: string;
}[];
/** @description Retained invoiced quantities, discounts and tax amounts. */
pricing_snapshot?: {
[key: string]: unknown;
} | null;
/** @description Whether the unit selling price includes tax. */
price_including_tax?: boolean;
/** @description Transaction value after coupon and promotion discounts, excluding tax. Retained historical invoices may have a different GST taxable base. */
net_value?: number;
/** @description False when a retained invoice, including one issued by Commerce Engine, lacks the original place of supply or the line or charge particulars needed for reliable tax detail. When false, this item's taxable_value, tax_lines, tax and GST components are omitted. The invoice's recorded totals, including its grand total and total tax, are still returned. */
pricing_breakdown_available?: $Read<boolean>;
};
/**
* ShipmentItem
* @description Shipment item model
*/
}OpenAPI Schema
json
{
"description": "A line on a shipment invoice.",
"type": "object",
"properties": {
"sku": {
"type": [
"string",
"null"
],
"maxLength": 256
},
"product_name": {
"type": "string"
},
"product_image_url": {
"type": [
"string",
"null"
]
},
"listing_price": {
"type": "number"
},
"selling_price": {
"type": "number"
},
"qty": {
"description": "Quantity invoiced. Sent as a numeric string, not a number.",
"type": "string"
},
"free_qty": {
"description": "Quantity supplied free of charge. Sent as a numeric string, not a number.",
"type": [
"string",
"null"
]
},
"tax_type": {
"type": "string"
},
"tax_rate": {
"type": "number"
},
"hsncode": {
"type": [
"string",
"null"
]
},
"expiry": {
"type": [
"string",
"null"
]
},
"amount": {
"description": "Selling-price consideration for the invoiced quantity after its allocated discounts; includes GST when the selling price includes GST.",
"type": "number"
},
"coupon_discount_amount": {
"type": "number"
},
"promotion_discount_amount": {
"type": "number"
},
"selling_price_excluding_tax": {
"type": "number"
},
"item_name": {
"type": [
"string",
"null"
]
},
"order_item_id": {
"type": [
"string",
"null"
]
},
"batch_no": {
"type": [
"string",
"null"
]
},
"subtotal": {
"description": "Line value before coupon and promotion deductions, excluding GST.",
"type": "number"
},
"taxable_value": {
"description": "GST taxable value retained on the invoice. Earlier before-discount invoices may differ from net_value. Omitted when pricing_breakdown_available is false.",
"type": "number"
},
"tax": {
"description": "GST on the invoiced line. Omitted when pricing_breakdown_available is false.",
"type": "number"
},
"tax_components": {
"description": "GST apportioned across CGST, SGST, UTGST or IGST for the recorded place of supply. Omitted when the invoice's tax breakdown is unavailable; recorded invoice totals are retained. GST components do not apply to non-GST invoices.",
"type": "object",
"properties": {
"CGST": {
"type": "number"
},
"SGST": {
"type": "number"
},
"UTGST": {
"type": "number"
},
"IGST": {
"type": "number"
}
}
},
"tax_lines": {
"description": "Taxable value and tax at each applicable GST rate for the invoiced goods. Omitted when pricing_breakdown_available is false.",
"type": "array",
"items": {
"type": "object",
"properties": {
"rate": {
"type": "string"
},
"taxable_value": {
"type": "string"
},
"tax": {
"type": "string"
},
"tax_components": {
"description": "GST apportioned across CGST, SGST, UTGST or IGST for the recorded place of supply. Omitted when the invoice's tax breakdown is unavailable; recorded invoice totals are retained. GST components do not apply to non-GST invoices.",
"type": "object",
"properties": {
"CGST": {
"type": "number"
},
"SGST": {
"type": "number"
},
"UTGST": {
"type": "number"
},
"IGST": {
"type": "number"
}
}
},
"quantity": {
"description": "Units of this line taxed at this rate. A line's tax lines add up to its paid units. Omitted when an earlier invoice didn't record how its units split across rates.",
"type": "string"
},
"net_value": {
"description": "Transaction value represented by this tax-rate part, excluding tax.",
"type": "string"
}
},
"required": [
"rate",
"taxable_value",
"tax"
]
}
},
"pricing_snapshot": {
"description": "Retained invoiced quantities, discounts and tax amounts.",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"price_including_tax": {
"description": "Whether the unit selling price includes tax.",
"type": "boolean"
},
"net_value": {
"description": "Transaction value after coupon and promotion discounts, excluding tax. Retained historical invoices may have a different GST taxable base.",
"type": "number"
},
"pricing_breakdown_available": {
"description": "False when a retained invoice, including one issued by Commerce Engine, lacks the original place of supply or the line or charge particulars needed for reliable tax detail. When false, this item's taxable_value, tax_lines, tax and GST components are omitted. The invoice's recorded totals, including its grand total and total tax, are still returned.",
"type": "boolean",
"readOnly": true
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/ShipmentInvoiceItem"
},
"title": "ShipmentInvoiceItem",
"x-tags": [
"Shipping"
]
}Auto-generated from OpenAPI spec and TypeScript definitions