curl --location --request POST '/api/invoice/new' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_no": null,
"mode": 3,
"pos_id": null,
"is_auto_open": true,
"info": {
"slip": [
{
"kind": "escpos",
"content": ["1D2122", "1D4201", "1D4201"]
},
{
"kind": "text",
"content": " COUPON "
},
{
"kind": "escpos",
"content": ["1B40"]
},
{
"kind": "text",
"content": "The text line should not be wider than the"
},
{
"kind": "text",
"content": "maximum character width of the printer"
},
{
"kind": "barcode",
"code": "1234567890123",
"type": 2
}
]
}
}'{
"id": 49,
"mode": 3,
"station": null,
"invoice_no": "20260217_160847",
"discount": 0,
"discount_type": null,
"created_at": "2026-02-17T16:08:47.024242",
"updated_at": "2026-02-17T16:08:47.024242",
"printed_at": null,
"print_station": null,
"print_pos_id": null,
"print_chassis_id": null,
"check_num": null,
"total_sum": 0,
"changed_sum": 0,
"status": 10,
"comment": null,
"keep_drawer_closed": false,
"print_paper_receipt": null,
"is_auto_open": true,
"report": null,
"common_id": null,
"synchronized_at": null,
"info": {
"slip": [
{
"kind": "escpos",
"content": [
"1D2122",
"1D4201",
"1D4201"
]
},
{
"kind": "text",
"content": " COUPON "
},
{
"kind": "escpos",
"content": [
"1B40"
]
},
{
"kind": "text",
"content": "The text line should not be wider than the"
},
{
"kind": "text",
"content": "maximum character width of the printer"
},
{
"kind": "barcode",
"code": "1234567890123",
"type": 2
}
]
},
"status_name": "New",
"station_group": "1",
"rows": [],
"payments": [],
"receipts": []
}