create_b2b_invoice
Creates a B2B invoice using the A0401 named nested format and returns the API response, enabling automated e-invoice generation for business transactions.
Instructions
Create a B2B invoice using named nested format (A0401). Returns the API response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of product items. Each item: {Description, Quantity, UnitPrice, TaxType, Amount, SequenceNumber, optional: Unit, Remark, RelateNumber}. | |
| currency | No | Currency code (e.g. 'USD'). | |
| tax_rate | Yes | Tax rate. | |
| tax_type | Yes | Tax type. | |
| buyer_name | Yes | Buyer name. | |
| print_mark | Yes | Print mark ('Y' or 'N'). | |
| tax_amount | Yes | Tax amount. | |
| buyer_email | No | Buyer email address. | |
| donate_mark | Yes | Donate mark ('0'=no donate). | |
| main_remark | No | Main remark. | |
| seller_name | Yes | Seller name. | |
| buyer_remark | No | Buyer remark. | |
| check_number | No | Check number. | |
| invoice_date | Yes | Invoice date (YYYYMMDD). | |
| invoice_time | Yes | Invoice time (HHmmss). | |
| invoice_type | Yes | Invoice type code. | |
| sales_amount | Yes | Taxable sales amount. | |
| seller_email | No | Seller email address. | |
| total_amount | Yes | Total amount including tax. | |
| buyer_address | No | Buyer address. | |
| exchange_rate | No | Exchange rate. | |
| invoice_number | Yes | Invoice number. | |
| seller_address | No | Seller address. | |
| buyer_facsimile | No | Buyer facsimile number. | |
| buyer_telephone | No | Buyer telephone number. | |
| discount_amount | No | Discount amount. | |
| buyer_identifier | Yes | Buyer tax ID. | |
| seller_facsimile | No | Seller facsimile number. | |
| seller_telephone | No | Seller telephone number. | |
| buyer_role_remark | No | Buyer role remark. | |
| seller_identifier | Yes | Seller tax ID. | |
| seller_role_remark | No | Seller role remark. | |
| bonded_area_confirm | No | Bonded area confirm. | |
| zero_tax_rate_reason | No | Zero-tax-rate reason code. | |
| buyer_customer_number | No | Buyer customer number. | |
| buyer_person_in_charge | No | Buyer person in charge. | |
| customs_clearance_mark | No | Customs clearance mark. | |
| seller_customer_number | No | Seller customer number. | |
| seller_person_in_charge | No | Seller person in charge. | |
| original_currency_amount | No | Original currency amount. |