正确返回码 | 描述 |
---|---|
0000 | 保存数据成功 |
错误返回码 | 描述 |
---|---|
0520 | 开票方企业税号不能为空 |
00552 | 销售单编号不能为空 |
00553 | 销售单日期不能为空 |
00554 | 销售单发票类型不能为空 |
00555 | 分盘号不能为空 |
00556 | 销售单明细不能为空 |
00550 | 销售单开票金额不能为空 |
00551 | 销售单金额不能为空 |
00548 | 销售单编号超过规定长度40位 |
00549 | 销售单备注超过规定长度230位 |
00505 | 买方银行账号超过规定长度100位 |
00506 | 买方地址电话超过规定长度100位 |
00579 | 买方邮箱超长 |
00544 | 买方手机号码超长 |
0581 | 买方税号超长 |
00504 | 抬头超过规定长度100位 |
00565 | 销售单已存在,不能重复导入 |
00559 | 商品名称不能为空 |
00560 | 商品编码长度必须为19位 |
00561 | 优惠使用标识参数错误 |
00562 | 发票使用标记为1时,增值税特殊管理不能为空 |
00563 | 明细金额不能为空 |
00564 | 明细税率不能为空 |
00509 | 单位超过规定长度20位 |
00508 | 规格型号超过规定长度40位 |
00507 | 货物名称超过规定长度90位 |
00581 | 企业自编码超过规定长度 |
00580 | 订单总折扣金额大于0时,折扣方式不能为空 |
00583 | 明细税率为零时,必须有零税率标识 |
00569 | 明细金额之和不等于总金额 |
00568 | 总金额减去折扣额不等于开票金额 |
00567 | 折扣金额大于可折扣比例金额 |
0001 | 保存数据失败 |
{
"saleNo": "string",
"saleDate": "string",
"invoiceType": "string",
"totalAmount": 0,
"totalDiscount": 0,
"invoiceAmount": 0,
"discountedPortion": 0,
"discountType": "string",
"termValidity": 0,
"remark": "string",
"buyerName": "string",
"buyerTaxNo": "string",
"buyerTelephoneAddress": "string",
"buyerAccount": "string",
"buyerEmail": "string",
"buyerMobilePhone": "string",
"taxDiscNum": "string",
"taxFlag": "string",
"items": [
{
"ownNumber": "string",
"name": "string",
"spec": "string",
"num": 0,
"unitPrice": 0,
"unit": "string",
"taxRate": 0,
"taxNumber": "string",
"zeroTaxFlag": 0,
"prePolicy": 0,
"vatException": "string",
"detailTotalAmount": 0,
"detailTotalDiscount": 0
}
]
}
curl --location --request POST 'https://api-dev.piaozone.com/test/m5/bill/save/salesOrder?access_token=&reqid=' \
--header 'Content-Type: application/json' \
--data-raw '{
"saleNo": "string",
"saleDate": "string",
"invoiceType": "string",
"totalAmount": 0,
"totalDiscount": 0,
"invoiceAmount": 0,
"discountedPortion": 0,
"discountType": "string",
"termValidity": 0,
"remark": "string",
"buyerName": "string",
"buyerTaxNo": "string",
"buyerTelephoneAddress": "string",
"buyerAccount": "string",
"buyerEmail": "string",
"buyerMobilePhone": "string",
"taxDiscNum": "string",
"taxFlag": "string",
"items": [
{
"ownNumber": "string",
"name": "string",
"spec": "string",
"num": 0,
"unitPrice": 0,
"unit": "string",
"taxRate": 0,
"taxNumber": "string",
"zeroTaxFlag": 0,
"prePolicy": 0,
"vatException": "string",
"detailTotalAmount": 0,
"detailTotalDiscount": 0
}
]
}'
{"errcode":"0000","description":"保存数据成功","data":"http://scan.piaozone.com/demo/tyqr?k=000490,12345rwyt4y4jkhlhjk,200,1656382079428,432259adea170f7da2c6cf25432139c4,$"}