Actions2
Xem Theo UUID
AI-generatedSummary
Fetches or creates an order in KiotViet using the specified operation.
Inputs
- operation — Selected operation, either 'create' or 'getByUuid'.
- orderUuid (required) — UUID of the order to retrieve, required when operation is 'getByUuid'.
- orderData — Order details used when operation is 'create'.
- deliveryDetail — Delivery information used when operation is 'create'.
Output shape
An array of items, each containing the API response payload.
When operation is 'create', each output item includes the generated orderUuid; when 'getByUuid', the full order data is returned. The output count matches the number of input items.
Examples
Example 1: Retrieve order by UUID
operation=getByUuid&orderUuid=abc123def456
Example 2: Create new order
operation=create&orderData={"customerId":100,"branchId":1,"products":[{"productId":5,"quantity":2,"price":150}]}&deliveryDetail={"receiver":"John Doe","contactNumber":"123456789","address":"123 Main St","locationName":"District 1","wardName":"Ward X","price":100,"status":3}