内部往来新增
POST
/v1/inter-contract/save
请求参数
Header 参数
Blade-Auth
string
必需
示例值:
bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiI3MTI1NjAiLCJ0ZW5hbnRfbmFtZSI6Iuiejei1hOa1i-ivleS4k-eUqOenn-aItyIsInVzZXJfbmFtZSI6IueUsOWNjua4hSIsInJlYWxfbmFtZSI6IlRJQU4iLCJjbGllbnRfaWQiOiJzYWJlciIsInJvbGVfbmFtZSI6IiIsInVzZXJfaWQiOiIxNTYwMTYzNDU3NTM2MjA4ODk4Iiwicm9sZV9pZCI6IjE1NjAxNTYzOTcxMjE2NzkzNjEiLCJzY29wZSI6WyJhbGwiXSwibmlja19uYW1lIjoiVElBTiIsImV4cCI6MTY4NTE1NDk2MSwiZGVwdF9pZCI6IjE1ODU1MTc4MTc1NzYwNTg4ODEiLCJyb2xlX2FsaWFzIjoiIiwianRpIjoiUzB6aVVsdnEwTUo5a21KOXVNOG5feXd0OGtZIiwidXNlcm5hbWUiOiLnlLDljY7muIUifQ.9d6lnhVgIcLtiOrYTxCiMOYSb8Oks44-DFEAnSrFdGU
Body 参数application/json
credit_product_code
string
往来协议
in_house_banking_type
string
必需
opp_org_name
string
借出组织名称
currency_code
string
币种
amount
number <float>
借出金额
org_name
string
借入组织名称
is_circulate
boolean
是否循环提款
guarantee_relation
string
与出借对象关系
apply_cashier
string
借入方出纳
accounting_gl
string
计提账务Gl
accounting_ap
string
ap会计
finance_usage
string
往来说明
is_cross_currency
integer
必需
is_unified_borrow_lend
boolean
是否统借统还
is_lending
boolean
必需
credit_contract_code
string
授信合同编号
fi_credit_contract_id
integer
贷款合同ID
fi_credit_contract_product_ids
string
可选
interest_reference
string
计息基准
rate_way
integer
利率方式
base_rate
number <float>
基准利率
float_way
integer
浮动方式
float_ratio
number <float>
浮动值
fee_rate
number <float>
费用利率
loan_contract_rate
number <float>
合同利率
repay_way
integer
还本付息方式
rate_adjust_way
string
利率调整方式
first_rate_adjustment_day
string
首次利率调整日
late_charge_way
integer
逾期罚息方式
late_charge_ratio
number <float>
罚息值
late_charge_rate
number <float>
逾期利率
holiday_deal_way
integer
节假日调整方式
interest_description
string
计息说明
repay_description
string
还款说明
demo
string
备注
contract_code
string
合同编号
credit_amount
number <float>
合同金额
start_date
string <date>
签订日期
end_date
string <date>
合同到期日期
示例
{
"id": null,
"tenantId": "712560",
"fiCreditContractId": null,
"fiCreditContractProductIds": null,
"financeType": 3,
"financeTypeName": "往来-借出",
"orgId": "1585517817576058881",
"orgCode": "1005",
"orgName": "1005_体系外组织00001",
"approveState": 2,
"approveStateName": "审批中",
"source": 3,
"sourceName": "新增",
"performStatus": 1,
"performStatusName": "",
"loanContractNo": "NBWL-20230523-00000086-",
"creditContractCode": null,
"creditProductCode": "2",
"creditProductCodeName": "有协议计息",
"oppOrgId": "1585517817576058881",
"oppOrgCode": "1005",
"oppOrgName": "体系外组织1",
"amount": 888,
"amountView": "888.00",
"currencyCode": "CNY",
"currencyCodeName": "人民币",
"contractCurrencyAmount": null,
"contractCurrencyAmountView": null,
"contractCurrencyCode": null,
"bankCode": "ING",
"bankCodeName": "荷兰安智银行",
"accountNumber": "247102379",
"accountName": "阿田测试专用组织(勿动)",
"bankLocation": "荷兰安智银行股份有限公司上海分行",
"applyCashier": "",
"accountingGl": "",
"applyCashierName": null,
"accountingGlName": null,
"accountingAp": "",
"accountingApName": null,
"demo": "买房,买车,娶媳妇",
"description": "",
"interestReference": "2",
"interestReferenceName": "ACT/365",
"rateWay": "1",
"rateWayName": "浮动利率",
"floatWay": 1,
"floatWayName": "比例",
"floatRatio": 2,
"floatRatioView": "2%",
"feeRate": 2,
"feeRateView": "2.000000",
"loanContractRate": "",
"loanContractRateView": "",
"repayWay": 1,
"repayWayName": "到期还本付息",
"lateChargeWay": 1,
"lateChargeWayName": "利率上浮",
"lateChargeRatio": 0,
"lateChargeRatioView": "0.00",
"holidayDealWay": 2,
"holidayDealWayName": "顺延",
"interestDescription": "",
"repayDescription": "",
"contractCode": "",
"creditAmount": "",
"creditAmountView": "",
"startDate": "2023-05-23",
"endDate": "2023-06-10",
"financePeriod": 18,
"financePeriodType": "day",
"financePeriodTypeName": "天",
"occupiedAmount": 0,
"occupiedAmountView": "0.00",
"productAvailable": "",
"productAvailableView": "",
"remainingAmount": 888,
"remainingAmountView": "888.00",
"currentInterestVO": {
"interestStandardCode": "2",
"interestRateWay": "1",
"floatingWay": 1,
"floatingWayValue": 2,
"rate": 2,
"agreementRate": ""
},
"rateTypeId": "1660972961279635458",
"isCrossCurrency": 0,
"canOrMot": false,
"isOuter": false,
"inHouseBankingType": "FC",
"inHouseBankingTypeName": "财务公司",
"contractCurrencyCodeName": null,
"isLending": null,
"isLendingName": null,
"interTransContractAttachmentDelIds": "",
"interTransTypeName": "有协议计息",
"purposeName": null,
"accountPayInfoName": "ING-247102379-CNY/专用户",
"isCrossCurrencyName": "否",
"currencyName": "人民币",
"amountViewName": "人民币 · 888.00",
"contractCurrencyAmountViewName": "",
"baseRate": "2",
"status": 1,
"interTransContractAttachmentSubmitRequests": []
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/inter-contract/save' \
--header 'Blade-Auth: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiI3MTI1NjAiLCJ0ZW5hbnRfbmFtZSI6Iuiejei1hOa1i-ivleS4k-eUqOenn-aItyIsInVzZXJfbmFtZSI6IueUsOWNjua4hSIsInJlYWxfbmFtZSI6IlRJQU4iLCJjbGllbnRfaWQiOiJzYWJlciIsInJvbGVfbmFtZSI6IiIsInVzZXJfaWQiOiIxNTYwMTYzNDU3NTM2MjA4ODk4Iiwicm9sZV9pZCI6IjE1NjAxNTYzOTcxMjE2NzkzNjEiLCJzY29wZSI6WyJhbGwiXSwibmlja19uYW1lIjoiVElBTiIsImV4cCI6MTY4NTE1NDk2MSwiZGVwdF9pZCI6IjE1ODU1MTc4MTc1NzYwNTg4ODEiLCJyb2xlX2FsaWFzIjoiIiwianRpIjoiUzB6aVVsdnEwTUo5a21KOXVNOG5feXd0OGtZIiwidXNlcm5hbWUiOiLnlLDljY7muIUifQ.9d6lnhVgIcLtiOrYTxCiMOYSb8Oks44-DFEAnSrFdGU' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": null,
"tenantId": "712560",
"fiCreditContractId": null,
"fiCreditContractProductIds": null,
"financeType": 3,
"financeTypeName": "往来-借出",
"orgId": "1585517817576058881",
"orgCode": "1005",
"orgName": "1005_体系外组织00001",
"approveState": 2,
"approveStateName": "审批中",
"source": 3,
"sourceName": "新增",
"performStatus": 1,
"performStatusName": "",
"loanContractNo": "NBWL-20230523-00000086-",
"creditContractCode": null,
"creditProductCode": "2",
"creditProductCodeName": "有协议计息",
"oppOrgId": "1585517817576058881",
"oppOrgCode": "1005",
"oppOrgName": "体系外组织1",
"amount": 888,
"amountView": "888.00",
"currencyCode": "CNY",
"currencyCodeName": "人民币",
"contractCurrencyAmount": null,
"contractCurrencyAmountView": null,
"contractCurrencyCode": null,
"bankCode": "ING",
"bankCodeName": "荷兰安智银行",
"accountNumber": "247102379",
"accountName": "阿田测试专用组织(勿动)",
"bankLocation": "荷兰安智银行股份有限公司上海分行",
"applyCashier": "",
"accountingGl": "",
"applyCashierName": null,
"accountingGlName": null,
"accountingAp": "",
"accountingApName": null,
"demo": "买房,买车,娶媳妇",
"description": "",
"interestReference": "2",
"interestReferenceName": "ACT/365",
"rateWay": "1",
"rateWayName": "浮动利率",
"floatWay": 1,
"floatWayName": "比例",
"floatRatio": 2,
"floatRatioView": "2%",
"feeRate": 2,
"feeRateView": "2.000000",
"loanContractRate": "",
"loanContractRateView": "",
"repayWay": 1,
"repayWayName": "到期还本付息",
"lateChargeWay": 1,
"lateChargeWayName": "利率上浮",
"lateChargeRatio": 0,
"lateChargeRatioView": "0.00",
"holidayDealWay": 2,
"holidayDealWayName": "顺延",
"interestDescription": "",
"repayDescription": "",
"contractCode": "",
"creditAmount": "",
"creditAmountView": "",
"startDate": "2023-05-23",
"endDate": "2023-06-10",
"financePeriod": 18,
"financePeriodType": "day",
"financePeriodTypeName": "天",
"occupiedAmount": 0,
"occupiedAmountView": "0.00",
"productAvailable": "",
"productAvailableView": "",
"remainingAmount": 888,
"remainingAmountView": "888.00",
"currentInterestVO": {
"interestStandardCode": "2",
"interestRateWay": "1",
"floatingWay": 1,
"floatingWayValue": 2,
"rate": 2,
"agreementRate": ""
},
"rateTypeId": "1660972961279635458",
"isCrossCurrency": 0,
"canOrMot": false,
"isOuter": false,
"inHouseBankingType": "FC",
"inHouseBankingTypeName": "财务公司",
"contractCurrencyCodeName": null,
"isLending": null,
"isLendingName": null,
"interTransContractAttachmentDelIds": "",
"interTransTypeName": "有协议计息",
"purposeName": null,
"accountPayInfoName": "ING-247102379-CNY/专用户",
"isCrossCurrencyName": "否",
"currencyName": "人民币",
"amountViewName": "人民币 · 888.00",
"contractCurrencyAmountViewName": "",
"baseRate": "2",
"status": 1,
"interTransContractAttachmentSubmitRequests": []
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
id
string
单据id
loan_contract_no
string
单据编码
示例
{
"code": "",
"msg": "",
"data": {
"id": 2121212222,
"loan_contract_no": "RZDK_2025010709"
}
}
修改于 2025-01-08 09:45:50