Docs menu
POST
/request-pools
Path
POST
/api/v1/partners/request-poolsAuthentication required
tokencurl example
curl -X POST "https://<your-host>/api/v1/partners/request-pools" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "content-type: application/json" \
-d '{
"order_code_of_provider": "string",
"package_name": "string",
"count_of_parcels": 0,
"rlength": 0,
"rwidth": 0,
"rheight": 0,
"rweight": 0,
"handling_unit_id": 0,
"service_id": 0,
"resource_id": 0,
"pickup_date_time": "2026-01-01T00:00:00+07:00",
"pickup_date_time_to": "2026-01-01T00:00:00+07:00",
"drop_date_time": "2026-01-01T00:00:00+07:00",
"drop_date_time_to": "2026-01-01T00:00:00+07:00",
"loading_time": 0,
"unloading_time": 0,
"sender_phone": "string",
"sender_name": "string",
"pickup_lat": 0,
"pickup_lon": 0,
"pickup_address": "string",
"pickup_post_office_code": "string",
"pickup_wid": 0,
"receiver_phone": "string",
"receiver_name": "string",
"drop_lat": 0,
"drop_lon": 0,
"drop_address": "string",
"drop_post_office_code": "string",
"drop_wid": 0
}'Parameters
This endpoint takes no parameters.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| order_code_of_provider | string | No | |
| package_name | string | Yes | |
| count_of_parcels | number | Yes | Count of parcels |
| rlength | number | No | Request length in cm |
| rwidth | number | No | Request width in cm |
| rheight | number | No | Request height in cm |
| rweight | number | Yes | Request weight in kg |
| handling_unit_id | number | Yes | good handling_unit_id of system |
| service_id | number | Yes | service id of system |
| resource_id | number | Yes | resource id of system |
| pickup_date_time | string (date-time) | No | pickup time from (Date) |
| pickup_date_time_to | string (date-time) | No | pickup time to (Date) |
| drop_date_time | string (date-time) | No | drop time from (Date) |
| drop_date_time_to | string (date-time) | No | drop time to (Date) |
| loading_time | number | No | Tổng số phút cho việc chất hàng lên xe |
| unloading_time | number | No | Tổng số phút cho việc dở hàng khỏi xe |
| sender_phone | string | Yes | Sender phone |
| sender_name | string | Yes | |
| pickup_lat | number | Yes | Pickup latitude |
| pickup_lon | number | Yes | Pickup longitude |
| pickup_address | string | Yes | |
| pickup_post_office_code | string | No | Mã bưu cục lấy hàng |
| pickup_wid | number | No | Pickup ward id |
| receiver_phone | string | Yes | Receiver phone |
| receiver_name | string | Yes | |
| drop_lat | number | Yes | Drop latitude |
| drop_lon | number | Yes | Drop longitude |
| drop_address | string | Yes | |
| drop_post_office_code | string | No | Mã bưu cục giao hàng |
| drop_wid | number | No | Drop ward id |
30 fieldsCreateRequestPoolsDto
Responses
201