Method: inventory.partners.merchants.create

  • Creates a new Merchant managed by a specified aggregator.

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

  • Requires path and query parameters including parent for partner ID and merchantId for the merchant.

  • Request body should contain a Merchant object and a successful response returns the created Merchant object.

  • Needs https://www.googleapis.com/auth/mapsbooking authorization scope.

Creates a new Merchant managed by the specified aggregator, and returns it.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

Query parameters

Parameters
merchantId

string

The merchant id to use for this merchant.

Request body

The request body contains an instance of Merchant.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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