> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Shipping Settings

> Add or update shipping services on a Google Merchant Center account: rates, free shipping thresholds, delivery countries and delivery times

Add or update shipping services on a Google Merchant Center account: rates, free shipping thresholds, delivery countries and delivery times.

|                       |                                |
| --------------------- | ------------------------------ |
| **App**               | Google Merchant Center         |
| **Operation ID**      | `gmc_update_shipping_settings` |
| **Type**              | Action                         |
| **Connection**        | `gmc` (required)               |
| **Credits per run**   | 1                              |
| **Agent / MCP tool**  | Yes                            |
| **Requires approval** | Yes (write operation)          |

## Inputs

| Field         | Type                      | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------- | ------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`     | DynamicAccount            | Yes      | -       | Select the Merchant Center account whose shipping settings to change.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `services`    | array of object or string | Yes      | -       | Shipping services as a JSON list of Merchant API Service objects, using Google's REST field names exactly; Google validates the content. Each service needs serviceName, active, deliveryCountries (ISO codes), currencyCode, deliveryTime and rateGroups. Money is amountMicros as a string (1000000 = 1.00). Example, flat 12 EUR below 340 EUR and free from 340 EUR for several countries: \[\{"serviceName": "EU standard", "active": true, "deliveryCountries": \["DE", "FR", "NL"], "currencyCode": "EUR", "shipmentType": "DELIVERY", "deliveryTime": \{"minHandlingDays": 0, "maxHandlingDays": 1, "minTransitDays": 2, "maxTransitDays": 5}, "rateGroups": \[\{"mainTable": \{"rowHeaders": \{"prices": \[\{"amountMicros": "340000000", "currencyCode": "EUR"}, \{"amountMicros": "-1", "currencyCode": "EUR"}]}, "rows": \[\{"cells": \[\{"flatRate": \{"amountMicros": "12000000", "currencyCode": "EUR"}}]}, \{"cells": \[\{"flatRate": \{"amountMicros": "0", "currencyCode": "EUR"}}]}]}}]}]. A single flat rate is "rateGroups": \[\{"singleValue": \{"flatRate": \{"amountMicros": "5000000", "currencyCode": "EUR"}}}]. Read the current services with gmc\_get\_shipping\_settings first. Google takes a few seconds to show a change in that read, so use the services returned by this operation rather than re-reading immediately. |
| `replace_all` | boolean                   | No       | `False` | false (default): each service given replaces the existing service with the same serviceName and new names are added; every other existing service is kept. true: the given list becomes the account's entire shipping configuration and any service not in it is removed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `warehouses`  | array of object or string | No       | -       | Optional JSON list of Merchant API Warehouse objects (name, shippingAddress, cutoffTime, handlingDays, businessDayConfig). When given it replaces the account's warehouses; when omitted the existing warehouses are kept.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

## Output

**Type**: `Dict`

Returns the shipping settings as stored after the change, the service count, the covered delivery country codes and the merge mode used.

**Fields**: `services`, `warehouses`, `service_count`, `delivery_countries`, `mode`
