Zalo OA icon

Zalo OA

Zalo Official Account API

Zalo OA → Create Order

AI-generated

Summary

Create a Zalo OA order

Inputs

  • userId (required) — ID of the user placing the order
  • shippingName (required) — Name of the recipient
  • shippingPhone (required) — Phone number of the recipient
  • shippingAddress (required) — Shipping address
  • shippingCity — City for shipping
  • orderItems — List of products in the order (productId, quantity, price)
  • shippingFee — Shipping fee
  • discount — Discount amount
  • total — Total order amount

Output shape

object

Contains the response from Zalo OA API after order creation

Examples

Example 1: Create a simple order with one product

Set userId, shippingName, shippingPhone, shippingAddress, and a single entry in orderItems

Links

Discussion