亮色模式
回款登记核销
POST
/v1/invoices/receiptRegistration/allocate请求参数
Body 参数application/json
cash_collection_invoice_id
integer
回款登记ID
ID或编号选传一个。
record_list
array [object {5}]
必需
核销明细,只能新增核销,不支持编辑已有核销。如需编辑,请删除明细内的对应回款单后再进行核销
refer_id
integer
必需
源单ID:即需要核销的销售订单 order_id / 商机 opportunity_id
refer_type
integer
必需
源单类型:1-销售订单,2-商机
cash_collection_amount
number
必需
回款金额(源单币种),不能大于回款登记当前待回款金额
cash_collection_invoice_amount
number
必需
核销金额(回款登记币种)
cash_collection_comment
string
可选
核销备注,即核销生成的回款单备注
示例
{
"cash_collection_invoice_id": 19732908350293,
"record_list": [
{
"refer_id": 19733434680417,
"refer_type": 1,
"cash_collection_amount": 1,
"cash_collection_invoice_amount": 1,
"cash_collection_comment": "备注文本"
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
错误码
now
string
当前时间
message
string
错误信息
data
object
响应数据
cash_collection_invoice_id
integer
回款登记ID
cash_collection_invoice_no
string
回款登记编号
record_list
array [object {18}]
核销明细
示例
{
"code": 0,
"now": "string",
"message": "string",
"data": {
"cash_collection_invoice_id": 0,
"cash_collection_invoice_no": "string",
"record_list": [
{
"cash_collection_id": 0,
"cash_collection_no": "string",
"cash_collection_currency": "string",
"cash_collection_exchange_rate": 0,
"cash_collection_exchange_rate_usd": 0,
"cash_collection_amount": 0,
"cash_collection_bank_charge": 0,
"cash_collection_invoice_amount": 0,
"cash_collection_invoice_bank_charge": 0,
"cash_collection_comment": "string",
"refer_id": 0,
"refer_type": 0,
"refer_no": "string",
"refer_amount": 0,
"cash_collection_collect_amount": 0,
"cash_collection_not_collect_amount": 0,
"exchange_loss_amount": 0,
"exchange_loss_amount_usd": 0
}
]
}
}
最后修改时间: 3 个月前