create_b2c_allowance
Creates a B2C allowance (credit note) in positional field format (D0401), accepting buyer details and line items, and returns the API response.
Instructions
Create a B2C allowance using positional field format (D0401). Returns the API response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of allowance items. Each item: {D1: seq, D2: original_date, D3: original_inv_number, D4: seq_number, D5: description, D6: qty, D8: unit_price, D9: amount, D10: tax, D11: tax_type}. | |
| buyer_id | Yes | Buyer identifier (tax ID or empty string). | |
| buyer_name | Yes | Buyer name. | |
| tax_amount | Yes | Tax amount (C2). | |
| buyer_email | No | Buyer email (B7). | |
| total_amount | Yes | Total amount (C3). | |
| buyer_address | No | Buyer address (B3). | |
| allowance_date | Yes | Allowance date (YYYYMMDD). | |
| allowance_type | Yes | Allowance type ('2'=seller notice). | |
| buyer_facsimile | No | Buyer facsimile (B6). | |
| buyer_telephone | No | Buyer telephone (B5). | |
| allowance_number | Yes | Allowance number. | |
| buyer_role_remark | No | Buyer role remark (B9). | |
| original_buyer_id | No | Original buyer ID (C5). | |
| original_seller_id | No | Original seller ID (C4). | |
| buyer_customer_number | No | Buyer customer number (B8). | |
| buyer_person_in_charge | No | Buyer person in charge (B4). |