ShipmentInvoiceDetail
Type: schema
Description
An invoice for a shipment.
TypeScript Definition
typescript
ShipmentInvoiceDetail: {{
invoice_number: string;
/** @description Current state of the invoice, e.g. `"printed"`. */
status: string;
/** Format: date */
invoice_date: string | null;
/** @description Invoice Reference Number */
irn_number: string | null;
/** @description Acknowledgement Number */
ack_number: string | null;
/**
* Format: date-time
* @description Acknowledgement Date
*/
ack_date: string | null;
signed_qr_code: string | null;
gatepass_barcode: string | null;
/** @description Party the invoice is raised by: the seller record for marketplace seller invoices, the warehouse for single-seller stores, or `null`. */
seller_details: components["schemas"]["AdminSellerInfo"] | components["schemas"]["Warehouse"] | null;
billing_address?: components["schemas"]["AdminOrderAddress"];
shipping_address?: components["schemas"]["AdminOrderAddress"];
subtotal?: number;
sub_total: number;
sub_total_including_tax: number;
shipping_amount: number;
shipping_amount_including_tax: number;
coupon_code?: string | null;
coupon_discount_amount: number | null;
promotion_discount_amount: number;
loyalty_point_redeemed: number;
total_tax?: number;
/** @description Full supply value, including tax, charges and rounding. Loyalty points and store credit reduce the amount due, not this value. Earlier sales retain their original totals. */
grand_total: number;
/** @description GST totals grouped by rate. Omitted when pricing_breakdown_available is false because the retained invoice's place of supply, line particulars or charge particulars are unavailable. Recorded totals, including the grand total and total tax, are still returned. */
tax_summary?: {
tax_rate?: number;
taxable_value?: number;
tax?: number;
cgst?: number;
sgst?: number;
utgst?: number;
igst?: number;
}[];
/** Format: date-time */
created_at: string;
/** Format: date-time */
modified_at: string;
items: components["schemas"]["ShipmentInvoiceItem"][];
billing_business_name: string | null;
/** @description Taxable value of the invoiced goods and charges. Omitted when pricing_breakdown_available is false. */
taxable_value?: number;
/** @description Taxable value and GST for each shipping or handling charge part, by rate. Null only when pricing_breakdown_available is false and the invoice has no recorded charge breakdown. */
charge_tax_lines?: components["schemas"]["AdminChargeTaxLine"][] | null;
/**
* @description Signed rounding adjustment included in the invoice value. Loyalty points and store credit are payments against that value.
* @example -0.04
*/
round_off?: number | null;
/** @description Supplier, recipient addresses and GST place of supply retained when the document is issued. */
document_context?: ({
/**
* @description UNRESOLVED means the place of supply couldn't be established; the tax is shown without a CGST/SGST/IGST split.
* @enum {string}
*/
heads?: "IGST" | "CGST+SGST" | "CGST+UTGST" | "UNRESOLVED";
supplier_state?: string;
/** @description GST place-of-supply state code. */
place_of_supply?: string;
billing_gstin?: string;
supplier?: {
[key: string]: unknown;
};
billing?: {
[key: string]: unknown;
};
shipping?: {
[key: string]: unknown;
};
} & {
[key: string]: unknown;
}) | null;
/** @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 a reliable tax breakdown. When false, invoice-level taxable_value and tax_summary, and item tax_lines and tax, are omitted. Recorded totals, including the grand total and total tax, are still returned. */
pricing_breakdown_available?: $Read<boolean>;
};
/**
* ShipmentInvoiceItem
* @description A line on a shipment invoice.
*/
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["AdminSellerInfo"] | AdminSellerInfo |
components["schemas"]["Warehouse"] | Warehouse |
components["schemas"]["AdminOrderAddress"] | AdminOrderAddress |
components["schemas"]["ShipmentInvoiceItem"] | ShipmentInvoiceItem |
components["schemas"]["AdminChargeTaxLine"] | AdminChargeTaxLine |
OpenAPI Schema
json
{
"description": "An invoice for a shipment.",
"type": "object",
"properties": {
"invoice_number": {
"type": "string"
},
"status": {
"description": "Current state of the invoice, e.g. `\"printed\"`.",
"type": "string"
},
"invoice_date": {
"type": [
"string",
"null"
],
"format": "date"
},
"irn_number": {
"description": "Invoice Reference Number",
"type": [
"string",
"null"
]
},
"ack_number": {
"description": "Acknowledgement Number",
"type": [
"string",
"null"
]
},
"ack_date": {
"description": "Acknowledgement Date",
"type": [
"string",
"null"
],
"format": "date-time"
},
"signed_qr_code": {
"type": [
"string",
"null"
]
},
"gatepass_barcode": {
"type": [
"string",
"null"
]
},
"seller_details": {
"description": "Party the invoice is raised by: the seller record for marketplace seller invoices, the warehouse for single-seller stores, or `null`.",
"anyOf": [
{
"$ref": "#/components/schemas/AdminSellerInfo"
},
{
"$ref": "#/components/schemas/Warehouse"
},
{
"type": "null"
}
]
},
"billing_address": {
"$ref": "#/components/schemas/AdminOrderAddress"
},
"shipping_address": {
"$ref": "#/components/schemas/AdminOrderAddress"
},
"subtotal": {
"type": "number"
},
"sub_total": {
"type": "number"
},
"sub_total_including_tax": {
"type": "number"
},
"shipping_amount": {
"type": "number"
},
"shipping_amount_including_tax": {
"type": "number"
},
"coupon_code": {
"type": [
"string",
"null"
]
},
"coupon_discount_amount": {
"type": [
"number",
"null"
]
},
"promotion_discount_amount": {
"type": "number"
},
"loyalty_point_redeemed": {
"type": "number"
},
"total_tax": {
"type": "number"
},
"grand_total": {
"description": "Full supply value, including tax, charges and rounding. Loyalty points and store credit reduce the amount due, not this value. Earlier sales retain their original totals.",
"type": "number"
},
"tax_summary": {
"description": "GST totals grouped by rate. Omitted when pricing_breakdown_available is false because the retained invoice's place of supply, line particulars or charge particulars are unavailable. Recorded totals, including the grand total and total tax, are still returned.",
"type": "array",
"items": {
"type": "object",
"properties": {
"tax_rate": {
"type": "number"
},
"taxable_value": {
"type": "number"
},
"tax": {
"type": "number"
},
"cgst": {
"type": "number"
},
"sgst": {
"type": "number"
},
"utgst": {
"type": "number"
},
"igst": {
"type": "number"
}
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"modified_at": {
"type": "string",
"format": "date-time"
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ShipmentInvoiceItem"
}
},
"billing_business_name": {
"type": [
"string",
"null"
]
},
"taxable_value": {
"description": "Taxable value of the invoiced goods and charges. Omitted when pricing_breakdown_available is false.",
"type": "number"
},
"charge_tax_lines": {
"description": "Taxable value and GST for each shipping or handling charge part, by rate. Null only when pricing_breakdown_available is false and the invoice has no recorded charge breakdown.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/AdminChargeTaxLine"
}
},
"round_off": {
"description": "Signed rounding adjustment included in the invoice value. Loyalty points and store credit are payments against that value.",
"type": [
"number",
"null"
],
"example": -0.04
},
"document_context": {
"description": "Supplier, recipient addresses and GST place of supply retained when the document is issued.",
"type": [
"object",
"null"
],
"additionalProperties": true,
"properties": {
"heads": {
"description": "UNRESOLVED means the place of supply couldn't be established; the tax is shown without a CGST/SGST/IGST split.",
"type": "string",
"enum": [
"IGST",
"CGST+SGST",
"CGST+UTGST",
"UNRESOLVED"
]
},
"supplier_state": {
"type": "string"
},
"place_of_supply": {
"description": "GST place-of-supply state code.",
"type": "string"
},
"billing_gstin": {
"type": "string"
},
"supplier": {
"type": "object",
"additionalProperties": true
},
"billing": {
"type": "object",
"additionalProperties": true
},
"shipping": {
"type": "object",
"additionalProperties": true
}
}
},
"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 a reliable tax breakdown. When false, invoice-level taxable_value and tax_summary, and item tax_lines and tax, are omitted. Recorded totals, including the grand total and total tax, are still returned.",
"type": "boolean",
"readOnly": true
}
},
"externalDocs": {
"url": "https://llm-docs.commercengine.io/admin-pos/schemas/ShipmentInvoiceDetail"
},
"required": [
"invoice_number",
"invoice_date",
"status",
"seller_details",
"irn_number",
"ack_number",
"ack_date",
"signed_qr_code",
"gatepass_barcode",
"created_at",
"modified_at",
"items",
"sub_total",
"sub_total_including_tax",
"promotion_discount_amount",
"coupon_discount_amount",
"grand_total",
"loyalty_point_redeemed",
"shipping_amount",
"shipping_amount_including_tax",
"billing_business_name"
],
"title": "ShipmentInvoiceDetail",
"x-tags": [
"Shipping"
]
}Auto-generated from OpenAPI spec and TypeScript definitions