Retail API

Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.

Service: retail.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://retail.googleapis.com

REST Resource: v2.projects.locations.catalogs

Methods
list GET /v2/{parent=projects/*/locations/*}/catalogs
Lists all the Catalogs associated with the project.
patch PATCH /v2/{catalog.name=projects/*/locations/*/catalogs/*}
Updates the Catalogs.

REST Resource: v2.projects.locations.catalogs.branches.operations

Methods
get GET /v2/{name=projects/*/locations/*/catalogs/*/branches/*/operations/*}
Gets the latest state of a long-running operation.

REST Resource: v2.projects.locations.catalogs.branches.products

Methods
create POST /v2/{parent=projects/*/locations/*/catalogs/*/branches/*}/products
Creates a Product.
delete DELETE /v2/{name=projects/*/locations/*/catalogs/*/branches/*/products/**}
Deletes a Product.
get GET /v2/{name=projects/*/locations/*/catalogs/*/branches/*/products/**}
Gets a Product.
import POST /v2/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:import
Bulk import of multiple Products.
patch PATCH /v2/{product.name=projects/*/locations/*/catalogs/*/branches/*/products/**}
Updates a Product.

REST Resource: v2.projects.locations.catalogs.operations

Methods
get GET /v2/{name=projects/*/locations/*/catalogs/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v2/{name=projects/*/locations/*/catalogs/*}/operations
Lists operations that match the specified filter in the request.

REST Resource: v2.projects.locations.catalogs.placements

Methods
predict POST /v2/{placement=projects/*/locations/*/catalogs/*/placements/*}:predict
Makes a recommendation prediction.

REST Resource: v2.projects.locations.catalogs.userEvents

Methods
collect GET /v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect
Writes a single user event from the browser.
import POST /v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:import
Bulk import of User events.
purge POST /v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:purge
Deletes permanently all user events specified by the filter provided.
rejoin POST /v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:rejoin
Triggers a user event rejoin operation with latest product catalog.
write POST /v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:write
Writes a single user event.

REST Resource: v2.projects.locations.operations

Methods
get GET /v2/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v2/{name=projects/*/locations/*}/operations
Lists operations that match the specified filter in the request.