Appearance
Query Parent Order Children
API Information
- Request Path:
/market/order/parent/children - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Body Structure
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| parentOrderNo | String | Yes | Parent order number | Non-empty |
Request Body Example
json
{
"parentOrderNo": "ORDER_PARENT_202604090001"
}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | ParentOrderChildrenQueryResp | Response data |
ParentOrderChildrenQueryResp Object
| Field | Type | Description |
|---|---|---|
| parentOrder | MarketOrder | Parent order detail |
| content | List<ParentOrderChildItemResp> | Child order list |
ParentOrderChildItemResp Object
| Field | Type | Description |
|---|---|---|
| orderNo | String | Child order number |
| childSerial | String | Child serial number, left-padded |
| name | String | Display name (parentOrderNo-childSerial) |
| ctime | Long | Create timestamp (seconds) |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": {
"parentOrder": {
"orderNo": "ORDER_PARENT_202604090001",
"recurring": true,
"recurringDay": 7,
"recurringUnit": 1
},
"content": [
{
"orderNo": "ORDER_CHILD_202604090001",
"childSerial": "01",
"name": "ORDER_PARENT_202604090001-01",
"ctime": 1775728800
}
]
}
}Failure Response
json
{
"code": 400,
"message": "Invalid parameters",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 500 | Server internal error |
Usage Instructions
- This API is used to query child orders by parent order number.
- User authentication is required.
- Provide
parentOrderNoin request body.
Notes
contentis returned in child order sequence.