- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- LineItem
- OrderedTickets
Updates an existing Order
.
HTTP request
PATCH https://mapsbooking.googleapis.com/v1alpha/notification/{order.name=partners/*/orders/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
order.name |
Resource name of the order: |
Query parameters
Parameters | |
---|---|
updateMask |
Field mask of all order fields to be updated This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of Order
.
Response body
If successful, the response body contains data with the following structure:
An order for service appointments with a merchant.
JSON representation |
---|
{ "name": string, "clientInformation": { object ( |
Fields | |
---|---|
name |
Resource name of the order: |
clientInformation |
Personal information of the client making the order. |
paymentInformation |
Information about payment transactions that relate to the order. |
merchantId |
ID of the merchant that all services in this order belong to. |
item[] |
Line items in this order. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/mapsbooking
LineItem
A single item in an order--the booking of a single service in a single time slot.
JSON representation |
---|
{ "serviceId": string, "startSec": string, "durationSec": string, "tickets": [ { object ( |
Fields | |
---|---|
serviceId |
ID of the merchant Service. |
startSec |
Start time of the appointment slot in seconds of UTC time since Unix epoch. |
durationSec |
Duration of the appointment slot in seconds. |
tickets[] |
Number of tickets ordered by Ticket Type. |
price |
The total price (excluding taxes) of this Line Item. |
status |
Status of the Line Item. |
OrderedTickets
Number of ordered tickets by Ticket Type.
JSON representation |
---|
{ "ticketId": string, "count": integer } |
Fields | |
---|---|
ticketId |
ID of a Ticket Type. |
count |
Number of tickets ordered for this type. |