Chuyển đến nội dung chính
Mục lục tài liệu
POST

/orders/bulk

Mở trong ChatGPTMở trong Claude

Đường dẫn

POST/api/v1/partners/orders/bulk
Xác thực yêu cầutoken

Ví dụ gọi bằng curl

curl -X POST "https://api.route4green.com/api/v1/partners/orders/bulk" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "content-type: application/json" \
  -d '{
  "file_name": "string",
  "data": [
    {
      "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
    }
  ],
  "file_import_log_id": "string",
  "save_failed_log": false,
  "prevalidated_failed": [
    {
      "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
    }
  ]
}'

Tham số

Endpoint này không nhận tham số.

Nội dung gửi lên

TrườngKiểuBắt buộcMô tả
file_namestringCó
dataobject[]Có
file_import_log_idstringKhông
save_failed_logbooleanKhông
prevalidated_failedobject[]Không

Các trường của data

TrườngKiểuBắt buộcMô tả
order_code_of_providerstringKhông
package_namestringCó
count_of_parcelsnumberCóCount of parcels
rlengthnumberKhôngRequest length in cm
rwidthnumberKhôngRequest width in cm
rheightnumberKhôngRequest height in cm
rweightnumberCóRequest weight in kg
handling_unit_idnumberCógood handling_unit_id of system
service_idnumberCóservice id of system
resource_idnumberCóresource id of system
pickup_date_timestring (date-time)Khôngpickup time from (Date)
pickup_date_time_tostring (date-time)Khôngpickup time to (Date)
drop_date_timestring (date-time)Khôngdrop time from (Date)
drop_date_time_tostring (date-time)Khôngdrop time to (Date)
loading_timenumberKhôngTổng số phút cho việc chất hàng lên xe
unloading_timenumberKhôngTổng số phút cho việc dở hàng khỏi xe
sender_phonestringCóSender phone
sender_namestringCó
pickup_latnumberCóPickup latitude
pickup_lonnumberCóPickup longitude
pickup_addressstringCó
pickup_post_office_codestringKhôngMã bưu cục lấy hàng
pickup_widnumberKhôngPickup ward id
receiver_phonestringCóReceiver phone
receiver_namestringCó
drop_latnumberCóDrop latitude
drop_lonnumberCóDrop longitude
drop_addressstringCó
drop_post_office_codestringKhôngMã bưu cục giao hàng
drop_widnumberKhôngDrop ward id

Các trường của prevalidated_failed

TrườngKiểuBắt buộcMô tả
order_code_of_providerstringKhông
package_namestringCó
count_of_parcelsnumberCóCount of parcels
rlengthnumberKhôngRequest length in cm
rwidthnumberKhôngRequest width in cm
rheightnumberKhôngRequest height in cm
rweightnumberCóRequest weight in kg
handling_unit_idnumberCógood handling_unit_id of system
service_idnumberCóservice id of system
resource_idnumberCóresource id of system
pickup_date_timestring (date-time)Khôngpickup time from (Date)
pickup_date_time_tostring (date-time)Khôngpickup time to (Date)
drop_date_timestring (date-time)Khôngdrop time from (Date)
drop_date_time_tostring (date-time)Khôngdrop time to (Date)
loading_timenumberKhôngTổng số phút cho việc chất hàng lên xe
unloading_timenumberKhôngTổng số phút cho việc dở hàng khỏi xe
sender_phonestringCóSender phone
sender_namestringCó
pickup_latnumberCóPickup latitude
pickup_lonnumberCóPickup longitude
pickup_addressstringCó
pickup_post_office_codestringKhôngMã bưu cục lấy hàng
pickup_widnumberKhôngPickup ward id
receiver_phonestringCóReceiver phone
receiver_namestringCó
drop_latnumberCóDrop latitude
drop_lonnumberCóDrop longitude
drop_addressstringCó
drop_post_office_codestringKhôngMã bưu cục giao hàng
drop_widnumberKhôngDrop ward id
5 trườngBulkRequestSessionDto

Kết quả trả về

201

Về nhóm: Đơn hàng

POST /orders/bulk | Route4Green