← providers

Google Merchant Center

Manage product listings in Google Merchant Center

Endpoints

Call these through the okoro proxy at https://okoro.ai/p/google-merchant-center

ActionMethodPathMin scope
List productsGETread
Read productGETread
Insert product inputPOSTwrite
Delete product inputDELETEdelete

Examples

Every request requires a short-lived operation token scoped to a single action.

1. Get an operation token

Exchange your service token for a short-lived operation token scoped to a single action.

TOKEN=$(curl -sX POST "https://okoro.ai/t/tokens" \
  -H "Authorization: Bearer $OKORO_SERVICE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"provider": "google-merchant-center", "scope": "read", "intent": "describe what you are doing"}' \
  | jq -r '.token')

2. Call the API

Use the operation token as a Bearer token. The proxy forwards the request to Google Merchant Center and logs the action.

List products
curl -X GET "https://okoro.ai/p/google-merchant-center/accounts/{id}/products" \
  -H "Authorization: Bearer $TOKEN"
Read product
curl -X GET "https://okoro.ai/p/google-merchant-center/accounts/{id}/products/{id}" \
  -H "Authorization: Bearer $TOKEN"
Insert product input
curl -X POST "https://okoro.ai/p/google-merchant-center/accounts/{id}/productInputs:insert" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Delete product input
curl -X DELETE "https://okoro.ai/p/google-merchant-center/accounts/{id}/productInputs/{id}" \
  -H "Authorization: Bearer $TOKEN"

Scopes

Your service token must be configured with at least the required scope level.

read
GET
/accounts/*/products /accounts/*/products/*
write
GET POST
/accounts/*/products /accounts/*/products/* /accounts/*/productInputs:insert
update
GET POST
/accounts/*/products /accounts/*/products/* /accounts/*/productInputs:insert
delete
GET POST DELETE
/accounts/*/products /accounts/*/products/* /accounts/*/productInputs:insert /accounts/*/productInputs/*
all
GET POST DELETE
/**