Skip to content

Common Response Structure


Field Type Description
code Number Status code in the response. The following example shows a standard JSON response; for APIs such as download APIs, refer to the description on each page.
content String, Number, Array, Boolean, JSON Returned data. The specific type of data returned depends on the business logic of the actual API.
pageInfo JSON Returned when the API provides pagination; the specific hierarchy is subject to each API's description.
pageInfo.count Number Number of records on the current page
pageInfo.pageIndex Number Page number
pageInfo.pageSize Number Page size
pageInfo.totalCount Number Total number of matching records
errorCode String Returned error status code; empty indicates no error
message String Specific description corresponding to the returned error code
success Boolean Whether the API call succeeded: true for success, false for failure
traceId String Trace ID, used to track each request

Example of Request JSON Format Error

{
    "code": 400,
    "content": {"reason": "Expecting value", "line": 1, "column": 10},
    "errorCode": "ft.RequestJsonFormatError",
    "message": "请求 JSON 格式错误",
    "success": false,
    "traceId": "TRACE-XXXX"
}

Feedback

Is this page helpful?