create_b2b_allowance
Generate a B2B allowance document (B0401) by providing allowance details, seller/buyer info, and itemized product list. Returns API response.
Instructions
Create a B2B allowance (B0401). Seller address is mandatory. 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": {
"allowance_number": "<allowance_number>",
"allowance_date": "<allowance_date>",
"seller_name": "<seller_name>",
"seller_address": "<seller_address>",
"buyer_identifier": "<buyer_identifier>",
"buyer_name": "<buyer_name>",
"allowance_type": "<allowance_type>",
"items": "<items>",
"tax_amount": "<tax_amount>",
"total_amount": "<total_amount>"
},
"name": "create_b2b_allowance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | List of product items. Each item: {ALLOWANCESEQUENCENUMBER, ORIGINALINVOICEDATE, ORIGINALINVOICENUMBER, ORIGINALDESCRIPTION, QUANTITY, UNITPRICE, AMOUNT, TAX, TAXTYPE, optional: UNIT, ORIGINALSEQUENCENUMBER}. | |
| buyer_name | Yes | Buyer name. | |
| tax_amount | Yes | Tax amount. | |
| buyer_email | No | Buyer email address. | |
| seller_name | Yes | Seller name. | |
| seller_email | No | Seller email address. | |
| total_amount | Yes | Total amount. | |
| buyer_address | No | Buyer address. | |
| allowance_date | Yes | Allowance date (YYYYMMDD). | |
| allowance_type | Yes | Allowance type. | |
| seller_address | Yes | Seller address (mandatory). | |
| buyer_facsimile | No | Buyer facsimile number. | |
| buyer_telephone | No | Buyer telephone number. | |
| allowance_number | Yes | Allowance number. | |
| buyer_identifier | Yes | Buyer tax ID. | |
| seller_facsimile | No | Seller facsimile (S_FACSIMILENUMBER). | |
| seller_telephone | No | Seller telephone (S_TELEPHONENUMBER). | |
| buyer_role_remark | No | Buyer role remark. | |
| seller_role_remark | No | Seller role remark. | |
| buyer_customer_number | No | Buyer customer number. | |
| buyer_person_in_charge | No | Buyer person in charge. | |
| seller_customer_number | No | Seller customer number. | |
| seller_person_in_charge | No | Seller person in charge (S_PERSONINCHARGE). | |
| original_invoice_buyer_id | No | Original invoice buyer ID. | |
| original_invoice_seller_id | No | Original invoice seller ID. |