Orders
Order creation and management
Create an order from existing parcels
Authorizations
AuthorizationstringRequired
Laravel Sanctum token authentication.
Include the token in the Authorization header: Bearer {your-token}
Body
idsinteger[]RequiredExample:
Array of parcel IDs to include in the order
[1000001,1000002,1000003]Responses
201
Order created successfully
application/json
messagestringOptionalExample:
Order has been sent401
Authentication required
application/json
422
Validation failed
application/json
post/v3/orders
POST /api/v3/orders HTTP/1.1
Host: app.packli.hu
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"ids": [
1000001,
1000002,
1000003
]
}{
"message": "Order has been sent",
"data": {
"order_id": 123
}
}Utoljára frissítve: