curl --location --request POST 'https://v4.fenxi365.com/api/invoice' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"accountSetsId": 0,
"category": "未开具发票",
"tradeDate": "string",
"invoiceCode": "string",
"invoiceNumber": "string",
"state": "正常",
"type": "OUT",
"checkDate": "string",
"customerName": "string",
"creditCode": "string",
"address": "string",
"account": "string",
"businessType": "string",
"taxAmountExcluded": 0,
"rate": 0,
"rateStr": "string",
"taxAmount": 0,
"amount": 0,
"haveDetail": true,
"invoiceBusinessTypeId": 0,
"voucherId": 0,
"voucher": "string",
"note": "string",
"items": [
{
"id": 0,
"invoiceId": 0,
"accountSetsId": 0,
"goodsName": "string",
"specification": "string",
"unit": "string",
"quantity": 0,
"amount": 0,
"taxRate": 0,
"tax": 0,
"taxedItems": "string",
"taxCalculationMethod": "string"
}
]
}'