create_b2c_invoice_named
Create a B2C invoice with nested field format (C0401N) by providing required fields like invoice number, seller/buyer details, items, amounts, and tax info. Returns the API response.
Instructions
Create a B2C invoice using named nested field format (C0401N). Returns the API response.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_number": "<invoice_number>",
"invoice_date": "<invoice_date>",
"invoice_time": "<invoice_time>",
"seller_identifier": "<seller_identifier>",
"buyer_identifier": "<buyer_identifier>",
"buyer_name": "<buyer_name>",
"invoice_type": "<invoice_type>",
"donate_mark": "<donate_mark>",
"print_mark": "<print_mark>",
"random_number": "<random_number>",
"items": "<items>",
"sales_amount": "<sales_amount>",
"free_tax_sales_amount": "<free_tax_sales_amount>",
"zero_tax_sales_amount": "<zero_tax_sales_amount>",
"amount_tax_type": "<amount_tax_type>",
"tax_rate": "<tax_rate>",
"tax_amount": "<tax_amount>",
"total_amount": "<total_amount>"
},
"name": "create_b2c_invoice_named"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of product items. Each item: {Description, Quantity, UnitPrice, TaxType, Amount, SequenceNumber}. | |
| npo_ban | No | NPO ban (love code) when donating. | |
| tax_rate | Yes | Tax rate. | |
| buyer_name | Yes | Buyer name. | |
| print_mark | Yes | Print mark ('Y' or 'N'). | |
| tax_amount | Yes | Tax amount. | |
| carrier_id1 | No | Carrier ID primary (encoded). | |
| carrier_id2 | No | Carrier ID secondary (plain). | |
| donate_mark | Yes | Donate mark ('1'=donate, '0'=no). | |
| main_remark | No | Main remark. | |
| carrier_type | No | Carrier type code. | |
| invoice_date | Yes | Invoice date (YYYYMMDD). | |
| invoice_time | Yes | Invoice time (HHmmss). | |
| invoice_type | Yes | Invoice type code. | |
| sales_amount | Yes | Taxable sales amount. | |
| total_amount | Yes | Total amount including tax. | |
| random_number | Yes | 4-digit random number. | |
| invoice_number | Yes | Invoice number. | |
| amount_tax_type | Yes | Tax type for amount section. | |
| buyer_identifier | Yes | Buyer tax ID (or empty string). | |
| seller_identifier | Yes | Seller tax ID. | |
| zero_tax_rate_reason | No | Zero-tax-rate reason code. | |
| free_tax_sales_amount | Yes | Tax-exempt sales amount. | |
| zero_tax_sales_amount | Yes | Zero-tax-rate sales amount. |