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. |
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. |