AI-generated Key Takeaways
- 
          
Updates an existing Order using an HTTP PATCH request to a specific resource URL.
 - 
          
Requires
order.nameas a path parameter and optionallyupdateMaskas a query parameter for specifying fields to update. - 
          
The request body should contain an
Orderobject with details like client information, payment information, merchant ID, and line items. - 
          
The response body, on success, includes an updated
Orderobject with the same structure as the request body. - 
          
Authorization requires the
https://www.googleapis.com/auth/mapsbookingOAuth scope. 
- 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. | 
                
                   
 Resource name of the order:   | 
              
Query parameters
| Parameters | |
|---|---|
update | 
                
                   
 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
An order for service appointments with a merchant.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{ "name": string, "clientInformation": { object (  | 
                  
| Fields | |
|---|---|
name | 
                    
                       
 Resource name of the order:   | 
                  
client | 
                    
                       
 Personal information of the client making the order.  | 
                  
payment | 
                    
                       
 Information about payment transactions that relate to the order.  | 
                  
merchant | 
                    
                       
 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 | |
|---|---|
service | 
                
                   
 ID of the merchant Service.  | 
              
start | 
                
                   
 Start time of the appointment slot in seconds of UTC time since Unix epoch.  | 
              
duration | 
                
                   
 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 | |
|---|---|
ticket | 
                
                   
 ID of a Ticket Type.  | 
              
count | 
                
                   
 Number of tickets ordered for this type.  |