# 退款单推送

请求方式: POST(HTTPS
请求地址: 第三方服务接口URL
请求示例:

	{
		"id": "",
		"receive_no": "",
		"confirm_status": "",
		"confirm_status_name": "",
		"cm_id": "",
		"cm_code": "",
		"cm_name": "",
		"supply_id": "",
		"supply_code": "",
		"supply_name": "",
		"receive_type": "",
		"receive_type_name": "",
		"capitalpool_id": "",
		"capitalpool_code": "",
		"capitalpool_name": "",
		"small_amount": "",
		"receive_date": "",
		"emp_name": "",
		"remark": "",
        "details": 
        [
			{
				"bill_id": "",
				"bill_code": "",
				"bill_type": "",
				"bill_type_name": "",
				"bill_amount": ""
			}
		],
		"pool_detail": 
		[
			{
				"pool_detail_id": "",
				"pool_detail_code": "",
				"pool_detail_amount": ""
			}
		],
		"settlement_detail": 
		[
			{
				"settlement_detail_id": "",
				"settlement_detail_name": "",
				"settlement_detail_amount": ""
			}
		],
		"ext_infos": 
		[
			{
				"ext_code": "",
				"ext_name": "",
				"ext_value": ""
			}
		]
	}

参数说明:

参数 类型 必填 说明
id INT8 退款单ID
receive_no VARCHAR(32) 退款单号
confirm_status VARCHAR(32) 状态(0:待审批,1:待入账,2、已作废,3:已入账)
confirm_status_name VARCHAR(100) 状态名称
cm_id VARCHAR(100) 客户id
cm_code VARCHAR(100) 客户编码
cm_name VARCHAR(100) 客户名称
supply_id INT8 退款单位id
supply_code VARCHAR(100) 退款单位编码
supply_name VARCHAR(100) 退款单位名称
receive_type VARCHAR(32) 业务类型(4:退货款 5:退预存款)
receive_type_name VARCHAR(100) 业务类型名称
capitalpool_id INT8 资金池id
capitalpool_code VARCHAR(100) 资金池编码
capitalpool_name VARCHAR(100) 资金池名称
receive_date VARCHAR(100) 退款日期
emp_name VARCHAR(100) 退款人
remark text 备注说明
details.bill_id INT8 关联单据.单据id
details.bill_code VARCHAR(100) 关联单据.单据号
details.bill_type VARCHAR(100) 关联单据.单据类型(CXD:车销单,ZYFHD:直营发货单,FXFHD:分销发货单,CPD:车铺单,THD:退货单)
details.bill_type_name VARCHAR(100) 关联单据.单据类型名称
details.bill_amount VARCHAR(100) 关联单据.本单结算金额
pool_detail[].pool_detail_id INT8 使用预存款子表.资金池id
pool_detail[].pool_detail_code VARCHAR(100) 使用预存款子表.资金池编码
pool_detail[].pool_detail_amount VARCHAR(100) 使用预存款子表.使用金额
settlement_detail[].settlement_detail_id INT8 退款子表.退款方式id
settlement_detail[].settlement_detail_name VARCHAR(100) 退款子表.退款方式名称
settlement_detail[].settlement_detail_amount VARCHAR(100) 退款子表.退款金额
ext_infos[].ext_code VARCHAR(100) 自定义字段-编码
ext_infos[].ext_name VARCHAR(100) 自定义字段-名称
ext_infos[].ext_value VARCHAR(100) 自定义字段-值

响应示例:

{
    "return_code": 0,
    "return_msg": "",
    "msg_id": "X0001"
}

参数说明:

参数 说明
return_code 响应编码
return_msg 响应消息内容
msg_id 消息ID