B/S Invoice
Frequency |
---|
Real time |
请求地址
- API
环境 | URL |
---|---|
测试 | 对接方提供 |
正式 | 对接方提供 |
请求参数
字段 | 类型 | 长度 | 示例 | 描述 |
---|---|---|---|---|
billingDocument | Map<Document> | 集合字段 | ||
billingItem | List<Item> | 集合字段 |
Document 结构
字段 | 类型 | 长度 | 描述 |
---|---|---|---|
billingDocumentDate | Integer | 8 | Billing Date |
soldToParty | String | 10 | Sold-To Party |
transactionCurrency | String | 5 | SD document currency |
salesOrganization | String | 4 | Sales Organization |
billingDocumentType | String | 4 | Billing Type |
billingDocumentIsCancelled | String | 1 | Billing document is canceled |
cancelledBillingDocument | String | 10 | Number of canceled billing document |
Item 结构
字段 | 类型 | 长度 | 描述 |
---|---|---|---|
billingDocument | String | 10 | Billing Document |
billingDocumentItem | String | 6 | Billing Item |
material | String | 40 | Material Number |
billingQuantity | String | 13 | Actual billed quantity |
netAmount | Decimal | 15 | Net value of the billing item in document currency |
OdmPold | String | 35 | ODM customer PO |
OdmPoItem | Integer | 6 | ODM PO item |
响应参数
参数 | 必填 | 类型 | 定义 | 描述 |
---|---|---|---|---|
code | Y | String | 状态码 | "0"代表成功,其他失败可参考返回码 |
msg | N | String | 提示消息 | 非"0"时,会提示错误消息 |
result | N | object/array | 数据体 |
请求示例
json
{
"batch_id": "90397",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"billingDocument": {
"billingDocumentDate": 20250310,
"soldToParty": "1213265575",
"transactionCurrency": null,
"salesOrganization": "IE10",
"billingDocumentType":"YBF2",
"billingDocumentIsCancelled":null,
"cancelledBillingDocument":null
},
"billingItems": [{
"billingDocument":"6246172313",
"billingDocumentItem": "000010",
"material":"4X41C12469",
"billingQuantity":"1.000",
"netAmount":31.00,
"OdmPold": "axx",
"OdmPoItem": "xx123"
}]
}
]
}
成功响应示例
json
{
"code":"0",
"msg":"request success"
}
异常响应示例
json
{
"code": "-1",
"msg": "system error!"
}