Actions2
Tạo Mới
AI-generatedSummary
Create a new order or retrieve an existing order by UUID
Inputs
- operation — Operation to perform (e.g., 'Tạo Mới' for creation or 'getByUuid' for lookup)
- orderUuid (required) — UUID of an existing order to retrieve (used when operation is 'getByUuid')
- orderData — Details for creating a new order, including customer and product information
- deliveryDetail — Optional delivery details such as recipient, address, and fees
Output shape
a list of order records; for create operations each item contains an 'orderUuid' field referencing the newly created order
No pagination; returns raw API response for lookups; may include additional fields depending on the API version
Examples
Example 1: Create a new order
Set operation to 'Tạo Mới', fill orderData with required customerId, branchId, and products, optionally add deliveryDetail
Example 2: Retrieve an existing order
Set operation to 'Xem Theo UUID' and provide the orderUuid of the target order