batch_cancel_invoice
Resubmit full invoice data with cancellation date, time, and reason to cancel an invoice. Returns API response.
Instructions
Batch cancel an invoice by re-submitting full invoice data with cancellation info (B0701). Returns the API response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of invoice line items in positional format (B). Each item: {B1, B2, B3, B5, B6, B7, B13}. | |
| total | Yes | Total amount including tax (C7). | |
| buyer_id | Yes | Buyer identifier (A5). | |
| currency | No | Currency code (C11). | |
| discount | No | Discount amount (C8). | |
| free_tax | Yes | Tax-exempt sales amount (C2). | |
| tax_rate | Yes | Tax rate (C5). | |
| tax_type | Yes | Tax type (C4). | |
| zero_tax | Yes | Zero-tax-rate sales amount (C3). | |
| donate_to | No | NPO ban love code (A29). | |
| buyer_name | Yes | Buyer name (A6). | |
| print_mark | Yes | Print mark (A28). | |
| tax_amount | Yes | Tax amount (C6). | |
| cancel_date | Yes | Cancellation date (YYYYMMDD). | |
| cancel_time | Yes | Cancellation time (HHmmss). | |
| carrier_id1 | No | Carrier ID primary (A26). | |
| carrier_id2 | No | Carrier ID secondary (A27). | |
| donate_mark | Yes | Donate mark (A24). | |
| main_remark | No | Main remark (A16). | |
| carrier_type | No | Carrier type (A25). | |
| invoice_date | Yes | Invoice date (A3). | |
| invoice_time | Yes | Invoice time (A4). | |
| invoice_type | Yes | Invoice type code (A22). | |
| sales_amount | Yes | Taxable sales amount (C1). | |
| cancel_reason | Yes | Cancellation reason. | |
| exchange_rate | No | Exchange rate (C10). | |
| random_number | Yes | Random number (A30). | |
| invoice_number | Yes | Invoice number (A2, positional format). | |
| zero_tax_reason | No | Zero-tax-rate reason code (A31). | |
| customs_clearance | No | Customs clearance mark (A17). | |
| original_currency_amount | No | Original currency amount (C9). |