For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orders

Order creation and management

Create order from parcels

post

Create an order from existing parcels

Authorizations
AuthorizationstringRequired

Laravel Sanctum token authentication. Include the token in the Authorization header: Bearer {your-token}

Body
idsinteger[]Required

Array of parcel IDs to include in the order

Example: [1000001,1000002,1000003]
Responses
201

Order created successfully

application/json
messagestringOptionalExample: Order has been sent
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: