Method: inventory.partners.merchants.services.create

  • Creates a new Service for a merchant managed by a specified aggregator.

  • Uses an HTTP POST request to https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/merchants/*}/services.

  • Requires specifying the parent merchant in the path and optionally providing a service ID in the query parameters.

  • The request body should contain a Service object, and a successful response will return the newly created Service object.

  • Authorization requires the https://www.googleapis.com/auth/mapsbooking scope.

Creates a new Service of a merchant managed by the specified aggregator, and returns it.

HTTP request

POST https://mapsbooking.googleapis.com/v1alpha/inventory/{parent=partners/*/merchants/*}/services

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent resource name for the merchant who owns this service, in the format of partners/{partner_id}/merchants/{merchantId}.

Query parameters

Parameters
serviceId

string

The service id to use for this service.

Request body

The request body contains an instance of Service.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/mapsbooking