curl --location 'https://api.yonyouup.com/api/purchaseinvoice/add?from_account=undefined&to_account=undefined&app_key=undefined&token=undefined&tradeid=undefined&biz_id=undefined' \
--header 'Content-Type: application/json' \
--data '{
"purchaseinvoice":{
"accourtperiod":"15",
"invoicetype":"02",
"gatheringdate":"2015-02-15",
"date":"2015-01-29",
"createdate":"2015-01-31",
"vendorcode":"01005",
"delegatecode":"01005",
"departmentcode":"0401",
"personcode":"00043",
"idiscounttaxtype":"1",
"payconditioncode":"01",
"protocolcode":"02",
"bcredit":"1",
"entry":[
{
"inventorycode":"01019002066",
"quantity":"100",
"oritaxcost":"3",
"ivouchrowno":"1"
}
]
}
}'