open-api
首页
open-api
  • 快速开始
  • 授权登录
  • 客户
  • 销售订单
  • 采购订单
  • 产品
  • 回款登记
    • 回款登记
    • 回款登记详情GET
    • 回款登记字段GET
    • 回款登记新建/编辑POST
    • 回款登记列表GET
    • 回款登记核销POST
  • 回款单
  • 付款单
  • 费用单
  • 报价单
  • 供应商
  • 商机
  • 用户
  • 销售出库单
  • 库存
  • 线索
  • 资金
  • 采购入库单
  • 采购退货单
  • 统计分析
  • 示例接口(勿用)
  • 阿里账号信息GET
  • 阿里资金账户信息GET
亮色模式
  1. 回款登记

回款登记核销

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 个月前