Conversational Actions will be deprecated on June 13, 2023. For more information, see Conversational Actions sunset.

Method: orders.create

Creates an order and returns the new Order.

HTTP request

POST https://actions.googleapis.com/v3/orders

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "header": {
    object(OrderRequestHeader)
  },
  "order": {
    object(Order)
  },
  "userToken": string
}
Fields
header

object(OrderRequestHeader)

Header for the create order request.

order

object(Order)

Order to be created.

userToken

string (bytes format)

Encrypted token used to uniquely identify a particular {user, partner} pair.

A base64-encoded string.

Response body

If successful, the response body contains a newly created instance of Order.