GET 附加费用单详情
GET 查询。query 参数:id(必填,附加费用单 ID)。返回表头(含 version)、明细 lines(含行 id、约定/实际税率)、分配、财务记录与日志。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
sales.additional-fee.detail | sales:read | GET /v1/additional-fees/detail(comap-sales) |
请求参数(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | 是 | — |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "sales.additional-fee.detail",
"query": {
"id": "1961000000000000001"
}
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | string | — | — |
feeNo | string | — | — |
sourceType | string | — | — |
sourceTypeName | string | — | — |
sourceId | string | — | — |
sourceNo | string | — | — |
sourceName | string | — | — |
customerId | string | — | — |
customerName | string | — | — |
projectId | string | — | — |
projectName | string | — | — |
ownerId | string | — | — |
ownerName | string | — | — |
bearerType | string | — | — |
bearerTypeName | string | — | — |
settlementLevel | string | — | — |
settlementLevelName | string | — | — |
status | string | — | — |
statusName | string | — | — |
financeStatus | string | — | — |
invoiceStatus | string | — | — |
collectionStatus | string | — | — |
paymentStatus | string | — | — |
financePaymentRequestId | string | — | 费用付款申请 ID |
expectedSettlementDate | string(date) | — | — |
payeeType | string | — | — |
payeeId | string | — | — |
payeeName | string | — | — |
inputTaxDeductible | boolean | — | — |
description | string | — | — |
attachmentIds | string[] | — | — |
createdFrom | string | — | 附加费用单创建来源 |
originalFeeId | string | — | 调整单关联的原附加费用单 ID |
relationType | string | — | — |
linkedAmount | number | — | — |
linkedExpectedCostAmount | number | — | — |
linkedActualCostAmount | number | — | — |
linkedAllocationId | string | — | — |
flowInstanceCode | string | — | — |
totalAmountExclTax | number | — | — |
totalTaxAmount | number | — | — |
totalAmountInclTax | number | — | — |
effectiveAmount | number | — | — |
allocatedAmount | number | — | — |
unallocatedAmount | number | — | — |
invoicedAmount | number | — | — |
receivedAmount | number | — | — |
paymentRequestedAmount | number | — | — |
paidAmount | number | — | — |
payableAmount | number | — | — |
confirmedCostAmount | number | — | — |
recognizedCostAmount | number | — | — |
expectedCostAmount | number | — | — |
actualCostAmount | number | — | — |
createTime | string(date-time) | — | — |
updateTime | string(date-time) | — | — |
version | integer(int32) | — | — |
lines10 | LineVO[] | — | — |
allocations8 | AllocationVO[] | — | — |
adjustments8 | AdjustmentVO[] | — | — |
financeRecords8 | FinanceRecordVO[] | — | — |
logs5 | LogVO[] | — | — |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 sales:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-sales 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回additional-fee