Skip to content
On this page

7.2.1 结算单申请(整单)

接口说明:

MethodURLContentType
POSTapi/restful/apiBillapplication/json

请求入参说明:

参数类型说明是否必须长度描述
bill_nostring必须200结算单号
order_idsstring必须200发票请求订单号批量以 ,号分割
mark_idstring必须200第三方申请发票的唯一id标识
settle_numint非必须11结算单订单总数
settle_naked_pricedouble必须0结算单不含税总金额(裸价)
settle_tax_pricedouble必须0结算单总税价
invoice_typeint必须11发票类型1:增票 2:普票 3:电子发票 4:全电专票 5:全电普票
invoice_contentstring必须500开票内容
invoice_datedatetime非必须0期望开票时间 yyyy-MM-dd
invoice_titlestring必须200发票抬头
invoice_addressstring必须500发票地址
invoice_phonestring必须100发票电话
invoice_tax_numstring必须100税号
invoice_bankstring必须100发票开户行
invoice_bank_accoutstring必须100银行账号
invoice_company_namestring必须100收票单位
bill_toerstring必须50收票人
bill_to_contactstring必须50收票人联系方式
bill_to_provincestring必须50收票人地址(省编码)
bill_to_citystring必须50收票人地址(市编码)
bill_to_countystring必须50收票人地址(区编码)
bill_to_townstring必须50收票人地址(镇编码)
bill_to_addressstring必须500收票人全量地址
repayment_datedatetime非必须0预计还款时间
bill_to_emailstring非必须200邮箱
remarkstring非必须200备注
extendsjson非必须[{"ColumnName":"扩展信息名称", "ColumnRemark":"扩展信息备注", "ColumnValue”:"扩展信息值"}]

请求参数示例:

json
{
    "bill_no": "BO20180606162632",
    "order_ids": "PO201801091623,PO201801091625,PO201801091626",
    "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",
	"extends" : [{
			"ColumnName" : "DepartmentName",
			"ColumnRemark" : "下单部门",
			"ColumnValue" : "采购部"
		}
	],
}

返回数据示例:

json
{
    "result": "",
    "success": true,
    "errormsg ": "",
    "requestId ": "9245fe4a-d402-451c-b9ed-9c1a04247482",
    "errorcode": "0"
}