curl --location -g --request POST 'https://api.yonyouup.com/api/purchaseinvoice/add?from_account&to_account&app_key=&token=&tradeid&biz_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
]
}
}'