简要描述:
- 科研系统新增项目经费到账后,实时推送到第三方平台。
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | 海浪 | 2023-08-06 | null |
请求URL:
- 需第三方平台提供推送地址
请求方式:
- POST
请求示例:
POST 第三方地址 HTTP/1.1
Authorization: Bearer a34000ad9f1c456f942acc4ffb5423ae
Host: yourhost
Content-Type: application/json
{
"id": "a92239e15a074c38a2f8c6bba111a4c8",
"fundCategory":"专项经费",
"directFunds": 1.00,
"actualDirectFunds": 1.00,
"indirectFunds": 3.00,
"actualIndirectFunds": 3.00,
"totalFunds": 4.00,
"actualTotalFunds": 4.00,
"projectId": "3643e421840a40feb4f13b428c3cc25e",
"projectTitle":"项目111"
}
请求头:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
Authorization | 是 | string | 请求签名 |
Content-Type | 是 | string | application/json |
请求参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | string | 项目经费到账id,唯一,不会为null或空字符串 |
fundCategory | string | 经费类别(专项经费或配套经费),不会为null或空字符串 |
directFunds | decimal | 本次到账直接经费(元),精确到小数点后2位 |
actualDirectFunds | decimal | 实际到账直接经费(元),精确到小数点后2位 |
indirectFunds | decimal | 本次到账间接经费(元),精确到小数点后2位 |
actualIndirectFunds | decimal | 实际到账间接经费(元),精确到小数点后2位 |
totalFunds | decimal | 本次到账总经费(元),精确到小数点后2位 |
actualTotalFunds | decimal | 实际到账总经费(元),精确到小数点后2位 |
projectId | string | 项目id,不会为null或空字符串 |
projectTitle | string | 项目名称 |
返回示例:
正确时返回:
第三方接口正确处理后,应该返回Http状态码 200
错误时返回:
Http状态码返回非 200 视为异常,科研平台会每隔1分钟重试 1 次,3 次后仍不成功会放弃推送。
作者:admin 创建时间:2023-08-10 11:48
最后编辑:admin 更新时间:2025-01-23 09:40
最后编辑:admin 更新时间:2025-01-23 09:40