objectName required | string Example: contracts 对象API名称 |
filters | string Example: filters=[["amount", ">", 100000]] 过滤条件 |
fields | string Example: fields=["name", "amount", "created"] 字段名 |
sort | string Example: sort=created desc 排序,多个用逗号隔开 |
top | integer Example: top=10 获取条数,最多5000 |
skip | integer Example: skip=1 跳过条数 |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
{- "status": 0,
- "msg": "",
- "data": {
- "items": [
- {
- "_id": "63884b0e7afcfb99c989be03_626240ac87e5c50032d9bdc1",
- "amount": 132467,
- "name": "弱电系统工程合同",
- "created": "2022-12-01T06:34:56.658Z"
}, - {
- "_id": "63884b0e7afcfb99c989be03_6262424787e5c50032d9bdc6",
- "amount": 690700,
- "name": "变电站工程和电力线路工程进场勘察测量",
- "created": "2022-12-01T06:34:56.658Z"
}
], - "total": 28
}
}
objectName required | string Example: contracts 对象API名称 |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
doc required | object 记录内容 |
{- "doc": {
- "is_bidding": "已询价比价",
- "amount": 500000,
- "amount_type": "immobilization",
- "collection": true,
- "company_id": "ziAGMt53otTKj4iRt",
- "contract_fulfillment_state": "toperformthe",
- "contract_object": "超能城市广场灯光工程设计、调试、安装等。\n",
- "currency_type": "63884b0e7afcfb99c989be03_6261092232cc250032e1a973",
- "end_date": "2022-08-16T00:00:00.000Z",
- "name": "test",
- "othercompany": [
- "63884b0e7afcfb99c989be03_o2sunJ3vuz3uSKN4z"
], - "payment": false,
- "receive_payment_type": "single_use",
- "signed_date": "2022-07-18T00:00:00.000Z",
- "start_date": "2022-03-18T00:00:00.000Z",
- "subject": "就超能城市广场灯光工程设计、指定设备、型号及数量相关事宜签订的合同约定。",
- "space": "63884b0e7afcfb99c989be03",
- "created": "2022-12-01T06:34:56.658Z",
- "modified": "2022-12-01T06:34:56.658Z",
- "created_by": "63884b0e7afcfb99c989be04",
- "modified_by": "63884b0e7afcfb99c989be04",
- "no": "HT-2021-0005",
- "contract_type": "63884b0e7afcfb99c989be03_62623e9d87e5c50032d9bdbb",
- "contract_action_type": "新增",
- "applicant_organization": "63884b0e7afcfb99c989be03_6jJafbSSHxnCuvhEM",
- "cash_flow_type": "receive",
- "approving_invoice_amount": 0,
- "approving_paid_amount": 0,
- "project": "62620e5787e5c50032d9bd39",
- "locked": true,
- "amount_capital": "伍拾万元整",
- "amount_description": "",
- "remark": "",
- "is_valid": "valid"
}
}
{- "status": 0,
- "msg": "",
- "data": {
- "is_bidding": "已询价比价",
- "amount": 500000,
- "amount_type": "immobilization",
- "collection": true,
- "company_id": "ziAGMt53otTKj4iRt",
- "contract_fulfillment_state": "toperformthe",
- "contract_object": "超能城市广场灯光工程设计、调试、安装等。\n",
- "currency_type": "63884b0e7afcfb99c989be03_6261092232cc250032e1a973",
- "end_date": "2022-08-16T00:00:00.000Z",
- "name": "test",
- "othercompany": [
- "63884b0e7afcfb99c989be03_o2sunJ3vuz3uSKN4z"
], - "owner": "63884b0e7afcfb99c989be04",
- "payment": false,
- "receive_payment_type": "single_use",
- "signed_date": "2022-07-18T00:00:00.000Z",
- "start_date": "2022-03-18T00:00:00.000Z",
- "subject": "就超能城市广场灯光工程设计、指定设备、型号及数量相关事宜签订的合同约定。",
- "space": "63884b0e7afcfb99c989be03",
- "created": "2023-07-14T06:59:54.952Z",
- "modified": "2023-07-14T06:59:54.952Z",
- "created_by": "63884b0e7afcfb99c989be04",
- "modified_by": "63884b0e7afcfb99c989be04",
- "company_ids": [
- "ziAGMt53otTKj4iRt"
], - "no": "HT-2021-0005",
- "unmade_invoice_amount": 100000,
- "unpaid_amount": 0,
- "unreceived_amount": 0,
- "unreceived_invoice_amount": 500000,
- "all_proceeds": 500000,
- "await_amount": 0,
- "await_proceeds": 0,
- "complete_amount": 0,
- "invoice_amount": 400000,
- "made_invoice_amount": 400000,
- "paid_amount": 0,
- "received_amount": 500000,
- "received_invoice_amount": 0,
- "total_collection": 0,
- "contract_type": "63884b0e7afcfb99c989be03_62623e9d87e5c50032d9bdbb",
- "contract_action_type": "新增",
- "applicant_organization": "63884b0e7afcfb99c989be03_6jJafbSSHxnCuvhEM",
- "waiting_invoice_amount": 100000,
- "waiting_paid_amount": 500000,
- "cash_flow_type": "receive",
- "approving_invoice_amount": 0,
- "approving_paid_amount": 0,
- "project": "62620e5787e5c50032d9bd39",
- "locked": true,
- "amount_capital": "伍拾万元整",
- "amount_description": "",
- "remark": "",
- "is_valid": "valid",
- "_id": "64b0f26b6cbbfea4b1942435"
}
}
objectName required | string Example: contracts 对象API名称 |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
filters | Array of strings (过滤条件) [ items ] 如:[["amount", ">", 100000]] |
fields | Array of strings (字段名) 如:["name", "amount", "created"] |
sort | string (排序) 如:created desc,多个用逗号隔开 |
top | integer (获取条数) 最多5000 |
skip | integer (跳过条数) |
{- "filters": [
- [
- "amount",
- ">",
- 100000
]
], - "fields": [
- "name",
- "amount",
- "created"
], - "sort": "created desc",
- "top": 10,
- "skip": 1
}
{- "status": 0,
- "msg": "",
- "data": {
- "items": [
- {
- "_id": "63884b0e7afcfb99c989be03_626240ac87e5c50032d9bdc1",
- "amount": 132467,
- "name": "弱电系统工程合同",
- "created": "2022-12-01T06:34:56.658Z"
}, - {
- "_id": "63884b0e7afcfb99c989be03_6262424787e5c50032d9bdc6",
- "amount": 690700,
- "name": "变电站工程和电力线路工程进场勘察测量",
- "created": "2022-12-01T06:34:56.658Z"
}
], - "total": 28
}
}
objectName required | string Example: contracts 对象API名称 |
id required | string Example: 626240ac87e5c50032d9bdc1 记录id |
fields | string Example: fields=["name", "amount", "created"] 字段名 |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
{- "status": 0,
- "msg": "",
- "data": {
- "_id": "63884b0e7afcfb99c989be03_626240ac87e5c50032d9bdc1",
- "amount": 132467,
- "name": "弱电系统工程合同",
- "created": "2022-12-01T06:34:56.658Z"
}
}
objectName required | string Example: contracts 对象API名称 |
id required | string Example: 63884b0e7afcfb99c989be03_6262243287e5c50032d9bda5 记录id |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
doc required | object 更新的内容 |
{- "doc": {
- "name": "test",
- "amount": 800000
}
}
{- "status": 0,
- "msg": "",
- "data": {
- "_id": "63884b0e7afcfb99c989be03_6262243287e5c50032d9bda5",
- "is_bidding": "已询价比价",
- "amount": 800000,
- "amount_type": "immobilization",
- "collection": true,
- "company_id": "ziAGMt53otTKj4iRt",
- "contract_fulfillment_state": "toperformthe",
- "contract_object": "超能城市广场灯光工程设计、调试、安装等。\n",
- "currency_type": "63884b0e7afcfb99c989be03_6261092232cc250032e1a973",
- "end_date": "2022-08-16T00:00:00.000Z",
- "name": "test",
- "othercompany": [
- "63884b0e7afcfb99c989be03_o2sunJ3vuz3uSKN4z"
], - "owner": "63884b0e7afcfb99c989be04",
- "payment": false,
- "receive_payment_type": "single_use",
- "signed_date": "2022-07-18T00:00:00.000Z",
- "start_date": "2022-03-18T00:00:00.000Z",
- "subject": "就超能城市广场灯光工程设计、指定设备、型号及数量相关事宜签订的合同约定。",
- "space": "63884b0e7afcfb99c989be03",
- "created": "2022-12-01T06:34:56.658Z",
- "modified": "2023-07-14T07:07:03.775Z",
- "created_by": "63884b0e7afcfb99c989be04",
- "modified_by": "63884b0e7afcfb99c989be04",
- "company_ids": [
- "ziAGMt53otTKj4iRt"
], - "no": "HT-2021-0005",
- "unmade_invoice_amount": 100000,
- "unpaid_amount": 0,
- "unreceived_amount": 0,
- "unreceived_invoice_amount": 500000,
- "all_proceeds": 500000,
- "await_amount": 0,
- "await_proceeds": 0,
- "complete_amount": 0,
- "invoice_amount": 400000,
- "made_invoice_amount": 400000,
- "paid_amount": 0,
- "received_amount": 500000,
- "received_invoice_amount": 0,
- "total_collection": 0,
- "contract_type": "63884b0e7afcfb99c989be03_62623e9d87e5c50032d9bdbb",
- "contract_action_type": "新增",
- "applicant_organization": "63884b0e7afcfb99c989be03_6jJafbSSHxnCuvhEM",
- "waiting_invoice_amount": 100000,
- "waiting_paid_amount": 500000,
- "cash_flow_type": "receive",
- "approving_invoice_amount": 0,
- "approving_paid_amount": 0,
- "project": "62620e5787e5c50032d9bd39",
- "instance_state": "pending",
- "instances": [
- {
- "_id": "63884b0e7afcfb99c989be03_SHZST3MNNE9EEbvG3",
- "state": "pending"
}
], - "locked": true,
- "amount_capital": "伍拾万元整",
- "amount_description": "",
- "remark": "",
- "is_valid": "valid"
}
}
objectName required | string Example: contracts 对象API名称 |
id required | string Example: 5e7d1b9b9c9d4400001d1b9b 记录id |
Authorization required | string Example: Bearer apikey,${apikey} 身份验证 |
{- "status": 0,
- "msg": "",
- "data": {
- "_id": "5e7d1b9b9c9d4400001d1b9b"
}
}
file required | string <binary> |
{- "_id": "650d09cd9da18d458c2f61f4",
- "original": {
- "type": "image/jpeg",
- "size": 724081,
- "name": "gsx250r.jpg"
}, - "metadata": {
- "owner": "64b5026f15b58356a29a6c0c"
}, - "uploadedAt": "2023-09-22T03:28:13.147Z",
- "copies": {
- "files": {
- "name": "gsx250r.jpg",
- "type": "image/jpeg",
- "size": 724081,
- "key": "2023/9//files-650d09cd9da18d458c2f61f4-gsx250r.jpg",
- "updatedAt": "2023-09-22T03:28:13.147Z",
- "createdAt": "2023-09-22T03:28:13.147Z"
}
}
}