Google Merchant Center Terms Of Service API

The TermsOfService API from Google Merchant Center — 3 operation(s) for termsofservice.

GitHub OpenAPI

Operations 3

GET /accounts/v1/termsOfService/{termsOfServiceId} Get termsOfService #
GET /accounts/v1/termsOfService:retrieveLatest Retrieve latest termsOfService #
POST /accounts/v1/termsOfService/{termsOfServiceId}:accept Accept termsOfService #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-merchant-center:google-merchant-center-termsofservice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-merchant-center-termsofservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Merchant Terms Of Service API
  version: accounts_v1
  description: Generated from Google's published Discovery document for Merchant API (merchantapi accounts_v1, revision 20261110). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://merchantapi.googleapis.com
tags:
- name: TermsOfService
paths:
  /accounts/v1/termsOfService/{termsOfServiceId}:
    get:
      operationId: merchantapi.termsOfService.get
      summary: Get termsOfService
      description: Retrieves the `TermsOfService` associated with the provided version.
      parameters:
      - name: termsOfServiceId
        in: path
        required: true
        description: Resource name segment (termsOfServiceId).
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TermsOfService'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/content
      - apiKey: []
      tags:
      - TermsOfService
  /accounts/v1/termsOfService:retrieveLatest:
    get:
      operationId: merchantapi.termsOfService.retrieveLatest
      summary: Retrieve latest termsOfService
      description: Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.
      parameters:
      - name: kind
        in: query
        required: false
        description: Required. The Kind this terms of service version applies to.
        schema:
          enum:
          - TERMS_OF_SERVICE_KIND_UNSPECIFIED
          - MERCHANT_CENTER
          type: string
      - name: regionCode
        in: query
        required: false
        description: Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TermsOfService'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/content
      - apiKey: []
      tags:
      - TermsOfService
  /accounts/v1/termsOfService/{termsOfServiceId}:accept:
    post:
      operationId: merchantapi.termsOfService.accept
      summary: Accept termsOfService
      description: Accepts a `TermsOfService`. Executing this method requires admin access.
      parameters:
      - name: termsOfServiceId
        in: path
        required: true
        description: Resource name segment (termsOfServiceId).
        schema:
          type: string
      - name: account
        in: query
        required: false
        description: 'Required. The account for which to accept the ToS. Format: `accounts/{account}`'
        schema:
          type: string
      - name: regionCode
        in: query
        required: false
        description: Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptTermsOfServiceResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/content
      - apiKey: []
      tags:
      - TermsOfService
components:
  schemas:
    Date:
      properties:
        day:
          description: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
          type: integer
          format: int32
        year:
          description: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
          format: int32
          type: integer
        month:
          type: integer
          description: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          format: int32
      type: object
      description: 'Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp'
    Accepted:
      description: Describes the [accepted terms of service](https://developers.google.com/merchant/api/guides/accounts/manage-tos-agreements#accept-tos).
      properties:
        acceptedBy:
          type: string
          description: Required. The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the advanced account.
        termsOfService:
          type: string
          description: Required. The accepted termsOfService.
        validUntil:
          $ref: '#/components/schemas/Date'
          description: Optional. When set, it states that the accepted `TermsOfService` is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required `TermsOfService` is found in the `Required` message.
      type: object
    Required:
      description: Describes the terms of service which are required to be accepted.
      type: object
      properties:
        termsOfService:
          type: string
          description: Required. The `TermsOfService` that need to be accepted.
        tosFileUri:
          description: Required. Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
          type: string
    TermsOfServiceAgreementState:
      description: 'This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the business has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the business must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect third-party providers to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource. `valid_until` field. For more information, see [Manage Terms of Service](https://developers.google.com/merchant/api/guides/accounts/manage-tos-agreements).'
      properties:
        required:
          $ref: '#/components/schemas/Required'
          description: Optional. The required terms of service
        name:
          description: 'Identifier. The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}` The identifier format is: `{TermsOfServiceKind}-{country}` For example, an identifier could be: `MERCHANT_CENTER-EU` or `MERCHANT_CENTER-US`.'
          type: string
        termsOfServiceKind:
          description: Required. Terms of Service kind associated with the particular version.
          enum:
          - TERMS_OF_SERVICE_KIND_UNSPECIFIED
          - MERCHANT_CENTER
          type: string
        accepted:
          $ref: '#/components/schemas/Accepted'
          description: Optional. The accepted terms of service of this kind and for the associated region_code
        regionCode:
          description: Required. Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to.
          type: string
      type: object
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    AcceptTermsOfServiceResponse:
      description: Response message for the `AcceptTermsOfService` method.
      properties:
        termsOfServiceAgreementState:
          $ref: '#/components/schemas/TermsOfServiceAgreementState'
          description: The agreement state after accepting the ToS.
      type: object
    TermsOfService:
      type: object
      description: The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`. For step-by-step instructions, see [Manage Terms of Service](https://developers.google.com/merchant/api/guides/accounts/manage-tos-agreements).
      properties:
        kind:
          type: string
          description: The Kind this terms of service version applies to.
          enum:
          - TERMS_OF_SERVICE_KIND_UNSPECIFIED
          - MERCHANT_CENTER
        external:
          description: Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.
          type: boolean
        fileUri:
          type: string
          description: URI for terms of service file that needs to be displayed to signing users.
        name:
          type: string
          description: 'Identifier. The resource name of the terms of service version. Format: `termsOfService/{version}`'
        regionCode:
          type: string
          description: Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country where the ToS applies specifically to that country or `001` when the same `TermsOfService` can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/content: Manage your product listings and accounts for Google Shopping
externalDocs:
  url: https://developers.google.com/merchant/api
x-provenance:
  method: harvested
  publisher: Google
  source: https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)