Appearance
7.2.2 结算单申请(部分)
接口说明:
Method | URL | ContentType |
---|---|---|
POST | api/restful/apiBillPart | application/json |
请求入参说明:
参数 | 类型说明 | 是否必须 | 长度 | 描述 |
---|---|---|---|---|
bill_no | string | 必须 | 200 | 结算单号 |
order_info | json | 必须 | 订单信息:[{"order_id":"订单号","sku_info":[{"sku":"商品编号","num":"商品数量"}]}] | |
mark_id | string | 必须 | 200 | 第三方申请发票的唯一id标识 |
settle_num | int | 非必须 | 11 | 结算单订单总数 |
settle_naked_price | double | 必须 | 0 | 结算单不含税总金额(裸价) |
settle_tax_price | double | 必须 | 0 | 结算单总税价 |
invoice_type | int | 必须 | 11 | 发票类型1:增票 2:普票 3:电子发票 4:全电专票 5:全电普票 |
invoice_content | string | 必须 | 500 | 开票内容 |
invoice_date | datetime | 非必须 | 0 | 期望开票时间 yyyy-MM-dd |
invoice_title | string | 必须 | 200 | 发票抬头 |
invoice_address | string | 必须 | 500 | 发票地址 |
invoice_phone | string | 必须 | 100 | 发票电话 |
invoice_tax_num | string | 必须 | 100 | 税号 |
invoice_bank | string | 必须 | 100 | 发票开户行 |
invoice_bank_accout | string | 必须 | 100 | 银行账号 |
invoice_company_name | string | 必须 | 100 | 收票单位 |
bill_toer | string | 必须 | 50 | 收票人 |
bill_to_contact | string | 必须 | 50 | 收票人联系方式 |
bill_to_province | string | 必须 | 50 | 收票人地址(省编码) |
bill_to_city | string | 必须 | 50 | 收票人地址(市编码) |
bill_to_county | string | 必须 | 50 | 收票人地址(区编码) |
bill_to_town | string | 必须 | 50 | 收票人地址(镇编码) |
bill_to_address | string | 必须 | 500 | 收票人全量地址 |
repayment_date | datetime | 非必须 | 0 | 预计还款时间 |
bill_to_email | string | 非必须 | 200 | 邮箱 |
remark | string | 非必须 | 200 | 备注 |
请求参数示例:
json
{
"bill_no": "BO20180606162632",
"order_info" : [{
"order_id": "CG123456",
"sku_info": [{
"sku": "3041983",
"num": 2
}]
}],
"mark_id": "100001",
"settle_num": 3,
"settle_naked_price": 100.1,
"settle_tax_price": 5,
"invoice_type": 1,
"invoice_content": "明细",
"invoice_date": "2018/05/14 ",
"invoice_title": "上海晨光科力普有限公司",
"invoice_address": "上海晨光科力普有限公司古美路1528号",
"invoice_phone": " 888888888 ",
"invoice_tax_num": 666666666,
"invoice_bank": "中国银行",
"invoice_bank_accout": "99999999",
"invoice_company_name": "上海晨光科力普有限公司",
"bill_toer": "晨光测试",
"bill_to_contact": "18701744139 ",
"bill_to_province": "16",
"bill_to_city": "1315",
"bill_to_county": "1316",
"bill_to_town": "53522",
"bill_to_address": "上海市徐汇区古美路1528号",
"repayment_date": "2018/12/14"
}
返回数据示例:
json
{
"result": "",
"success": true,
"errormsg ": "",
"requestId ": "9245fe4a-d402-451c-b9ed-9c1a04247482",
"errorcode": "0"
}