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.
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. |