Appearance
获取结算单信息接口
接口说明:
Method | URL | ContentType |
---|---|---|
GET | api/restful/orderinvoice/{order_id}/query | application/json |
URL 参数说明:
参数 | 类型说明 | 是否必须 | 长度 | 描述 |
---|---|---|---|---|
order_id | string | 必须 | 50 | 订单号 |
返回结果:
参数 | 类型说明 | 描述 |
---|---|---|
mark_id | string | 第三方申请发票唯一标识 |
bill_no | string | 结算单号 |
settle_tax_price | double | 结算单总税价 |
settle_naked_price | double | 结算单不含税总金额(裸价) |
settle_price | double | 结算单含税总金额 |
invoice_type | int | 发票类型1:增票 2:普票 3:电子发票 4:全电专票 5:全电普票 |
invoice_title | string | 发票抬头 |
invoice_address | string | 发票地址 |
invoice_phone | string | 发票电话 |
invoice_tax_num | string | 税号 |
invoice_bank | string | 发票开户行 |
invoice_bank_accout | string | 银行账号 |
invoice_company_name | string | 收票单位 |
bill_toer | string | 收票人 |
bill_to_contact | string | 收票人联系方式 |
bill_to_address | string | 收票人全量地址 |
order_items | stirng | [{Items JSON}]订单明细实体对象 |
order_items 字段为实体对象,以下是对象的参数释义:
参数 | 类型说明 | 描述 |
---|---|---|
order_id | string | 订单号 |
skus | json | [{"sku" : "商品货号","price" : 商品价格,"num" : 商品数量 }] |
返回数据示例:
json
{
"success": true,
"errormsg ": "",
"requestId ": "9245fe4a-d402-451c-b9ed-9c1a04247482",
"errorcode": 0,
"result": {
"mark_id":"JO001",
"bill_no ": "RO001",
"settle_tax_price": "12.5",
"settle_naked_price": "5",
"settle_price": "17.5",
"invoice_type": 1,
"invoice_title": "发票抬头",
"invoice_address": "发票地址",
"invoice_phone": "发票电话",
"invoice_tax_num": "15691248121566512",
"invoice_bank": "发票开户行",
"invoice_bank_accout": "银行账号",
"invoice_company_name": "收票单位",
"bill_toer": "张三",
"bill_to_contact": "15023568974",
"bill_to_address": "收票人全量地址",
"order_items": [{
"order_id": "Mo000001",
"skus": [{
"sku": "101091",
"price": 1.35,
"num": 100
},
{
"sku": "102018",
"price": 5.63,
"num": 100
}
]
},
{
"order_id": "Mo000002",
"skus": [{
"sku": "101091",
"price": 1.35,
"num": 100
},
{
"sku": "102018",
"price": 5.63,
"num": 100
}
]
}
]
}
}