- Resource: ShippingSettings
- Service
- DeliveryTime
- CutoffTime
- TransitTable
- TransitTimeRow
- TransitTimeValue
- BusinessDayConfig
- Weekday
- WarehouseBasedDeliveryTime
- RateGroup
- Value
- Table
- Headers
- Weight
- WeightUnit
- LocationIdSet
- Row
- CarrierRate
- ShipmentType
- MinimumOrderValueTable
- StoreCodeSetWithMov
- StoreConfig
- StoreServiceType
- CutoffConfig
- LocalCutoffTime
- Distance
- Unit
- LoyaltyProgram
- LoyaltyProgramTiers
- Warehouse
- Address
- WarehouseCutoffTime
- Methods
Resource: ShippingSettings
The merchant account's shipping setting.
JSON representation |
---|
{ "name": string, "services": [ { object ( |
Fields | |
---|---|
name |
Identifier. The resource name of the shipping setting. Format: |
services[] |
Optional. The target account's list of services. |
warehouses[] |
Optional. A list of warehouses which can be referred to in |
etag |
Required. This field is used for avoid async issue. Make sure shipping setting data didn't change between get call and insert call. The user should do following steps:
|
Service
Shipping service.
JSON representation |
---|
{ "deliveryCountries": [ string ], "rateGroups": [ { object ( |
Fields | |
---|---|
delivery |
Required. The CLDR territory code of the countries to which the service applies. |
rate |
Optional. Shipping rate group definitions. Only the last one is allowed to have an empty |
loyalty |
Optional. Loyalty programs that this shipping service is limited to. |
service |
Required. Free-form name of the service. Must be unique within target account. |
active |
Required. A boolean exposing the active status of the shipping service. |
currency |
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
delivery |
Required. Time spent in various aspects from order to the delivery of the product. |
shipment |
Type of locations this service ships orders to. |
minimum |
Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimumOrderValueTable. |
minimum |
Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimumOrderValue. |
store |
A list of stores your products are delivered from. This is only valid for the local delivery shipment type. |
DeliveryTime
Time spent in various aspects from order to the delivery of the product.
JSON representation |
---|
{ "warehouseBasedDeliveryTimes": [ { object ( |
Fields | |
---|---|
warehouse |
Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in [delivery time][[google.shopping.content.bundles.ShippingSetting.DeliveryTime] should be set. |
min |
Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either |
max |
Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to |
cutoff |
Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
min |
Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. 'minHandlingDays' and 'maxHandlingDays' should be either set or not set at the same time. |
max |
Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to |
transit |
Transit time table, number of business days spent in transit based on row and column dimensions. Either |
handling |
The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
transit |
The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
CutoffTime
Business days cutoff time definition.
JSON representation |
---|
{ "hour": integer, "minute": integer, "timeZone": string } |
Fields | |
---|---|
hour |
Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day. |
minute |
Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day. |
time |
Required. Timezone identifier For example "Europe/Zurich". |
TransitTable
Transit time table, number of business days spent in transit based on row and column dimensions. Either minTransitDays
, maxTransitDays
or transitTimeTable
can be set, but not both.
JSON representation |
---|
{
"postalCodeGroupNames": [
string
],
"transitTimeLabels": [
string
],
"rows": [
{
object ( |
Fields | |
---|---|
postal |
Required. A list of region names |
transit |
Required. A list of transit time labels. The last value can be |
rows[] |
Required. If there's only one dimension set of |
TransitTimeRow
If there's only one dimension set of postalCodeGroupNames
or transitTimeLabels
, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a postalCodeGroupNames
, and columns (values) to a transitTimeLabels
.
JSON representation |
---|
{
"values": [
{
object ( |
Fields | |
---|---|
values[] |
Required. Transit time range (min-max) in business days. |
TransitTimeValue
Transit time range (min-max) in business days.
JSON representation |
---|
{ "minTransitDays": integer, "maxTransitDays": integer } |
Fields | |
---|---|
min |
Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery. |
max |
Must be greater than or equal to |
BusinessDayConfig
Business days of the warehouse.
JSON representation |
---|
{
"businessDays": [
enum ( |
Fields | |
---|---|
business |
Required. Regular business days. May not be empty. |
Weekday
Enums | |
---|---|
WEEKDAY_UNSPECIFIED |
|
MONDAY |
|
TUESDAY |
|
WEDNESDAY |
|
THURSDAY |
|
FRIDAY |
|
SATURDAY |
|
SUNDAY |
WarehouseBasedDeliveryTime
Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in deliveryTime
should be set.
JSON representation |
---|
{ "carrier": string, "carrierService": string, "warehouse": string } |
Fields | |
---|---|
carrier |
Required. Carrier, such as |
carrier |
Required. Carrier service, such as |
warehouse |
Required. Warehouse name. This should match [warehouse][ShippingSetting.warehouses.name] |
RateGroup
Shipping rate group definitions. Only the last one is allowed to have an empty applicableShippingLabels
, which means "everything else". The other applicableShippingLabels
must not overlap.
JSON representation |
---|
{ "applicableShippingLabels": [ string ], "subtables": [ { object ( |
Fields | |
---|---|
applicable |
Required. A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. |
subtables[] |
Optional. A list of subtables referred to by |
carrier |
Optional. A list of carrier rates that can be referred to by |
single |
The value of the rate group (For example flat rate $10). Can only be set if |
main |
A table defining the rate group, when |
name |
Optional. Name of the rate group. If set has to be unique within shipping service. |
Value
The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping
, flatRate
, pricePercentage
, carrier_rateName
, subtable_name
must be set.
JSON representation |
---|
{
"noShipping": boolean,
"flatRate": {
object ( |
Fields | |
---|---|
no |
If true, then the product can't be shipped. Must be true when set, can only be set if all other fields are not set. |
flat |
A flat rate. Can only be set if all other fields are not set. |
price |
A percentage of the price represented as a number in decimal notation (For example, |
carrier |
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set. |
subtable |
The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set. |
Table
A table defining the rate group, when singleValue
is not expressive enough.
JSON representation |
---|
{ "rows": [ { object ( |
Fields | |
---|---|
rows[] |
Required. The list of rows that constitute the table. Must have the same length as |
name |
Name of the table. Required for subtables, ignored for the main table. |
row |
Required. Headers of the table's rows. |
column |
Headers of the table's columns. Optional: if not set then the table has only one dimension. |
Headers
A non-empty list of row or column headers for a table. Exactly one of prices
, weights
, num_items
, postalCodeGroupNames
, or location
must be set.
JSON representation |
---|
{ "prices": [ { object ( |
Fields | |
---|---|
prices[] |
Required. A list of inclusive order price upper bounds. The last price's value can be infinity by setting price amountMicros = -1. For example |
weights[] |
Required. A list of inclusive order weight upper bounds. The last weight's value can be infinity by setting price amountMicros = -1. For example |
number |
Required. A list of inclusive number of items upper bounds. The last value can be |
postal |
Required. A list of postal group names. The last value can be |
locations[] |
Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
Weight
The weight represented as the value in string and the unit.
JSON representation |
---|
{
"unit": enum ( |
Fields | |
---|---|
unit |
Required. The weight unit. Acceptable values are: kg and lb |
amount |
Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value. |
WeightUnit
The weight unit.
Enums | |
---|---|
WEIGHT_UNIT_UNSPECIFIED |
unit unspecified |
POUND |
lb unit. |
KILOGRAM |
kg unit. |
LocationIdSet
A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
JSON representation |
---|
{ "locationIds": [ string ] } |
Fields | |
---|---|
location |
Required. A non-empty list of location IDs. They must all be of the same location type (For example, state). |
Row
Include a list of cells.
JSON representation |
---|
{
"cells": [
{
object ( |
Fields | |
---|---|
cells[] |
Required. The list of cells that constitute the row. Must have the same length as |
CarrierRate
A list of carrier rates that can be referred to by mainTable
or singleValue
. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?hl=en&ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
JSON representation |
---|
{
"name": string,
"carrier": string,
"carrierService": string,
"originPostalCode": string,
"percentageAdjustment": string,
"flatAdjustment": {
object ( |
Fields | |
---|---|
name |
Required. Name of the carrier rate. Must be unique per rate group. |
carrier |
Required. Carrier service, such as |
carrier |
Required. Carrier service, such as |
origin |
Required. Shipping origin for this carrier rate. |
percentage |
Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example |
flat |
Optional. Additive shipping rate modifier. Can be negative. For example |
ShipmentType
Shipment type of shipping service.
Enums | |
---|---|
SHIPMENT_TYPE_UNSPECIFIED |
This service did not specify shipment type. |
DELIVERY |
This service ships orders to an address chosen by the customer. |
LOCAL_DELIVERY |
This service ships orders to an address chosen by the customer. The order is shipped from a local store near by. |
COLLECTION_POINT |
This service ships orders to an address chosen by the customer. The order is shipped from a collection point. |
MinimumOrderValueTable
Table of per store minimum order values for the pickup fulfillment type.
JSON representation |
---|
{
"storeCodeSetWithMovs": [
{
object ( |
Fields | |
---|---|
store |
Required. A list of store code sets sharing the same minimum order value (MOV). At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency. |
StoreCodeSetWithMov
A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
JSON representation |
---|
{
"storeCodes": [
string
],
"value": {
object ( |
Fields | |
---|---|
store |
Optional. A list of unique store codes or empty for the catch all. |
value |
The minimum order value for the given stores. |
StoreConfig
A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
JSON representation |
---|
{ "storeCodes": [ string ], "storeServiceType": enum ( |
Fields | |
---|---|
store |
Optional. A list of store codes that provide local delivery. If empty, then |
store |
Indicates whether all stores, or selected stores, listed by this merchant provide local delivery. |
cutoff |
Configs related to local delivery ends for the day. |
service |
Maximum delivery radius. This is only required for the local delivery shipment type. |
StoreServiceType
Indicates whether all stores, or selected stores, listed by the merchant provide local delivery.
Enums | |
---|---|
STORE_SERVICE_TYPE_UNSPECIFIED |
Did not specify store service type. |
ALL_STORES |
Indicates whether all stores, current and future, listed by this merchant provide local delivery. |
SELECTED_STORES |
Indicates that only the stores listed in storeCodes are eligible for local delivery. |
CutoffConfig
Configs related to local delivery ends for the day.
JSON representation |
---|
{
"localCutoffTime": {
object ( |
Fields | |
---|---|
local |
Time that local delivery ends for the day. |
store |
Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with |
no |
Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to |
LocalCutoffTime
Time that local delivery ends for the day.
JSON representation |
---|
{ "hour": string, "minute": string } |
Fields | |
---|---|
hour |
Hour local delivery orders must be placed by to process the same day. |
minute |
Minute local delivery orders must be placed by to process the same day. |
Distance
Maximum delivery radius. This is only required for the local delivery shipment type.
JSON representation |
---|
{
"value": string,
"unit": enum ( |
Fields | |
---|---|
value |
Integer value of distance. |
unit |
Unit can differ based on country, it is parameterized to include miles and kilometers. |
Unit
Unit can differ based on country, it is parameterized to include miles and kilometers.
Enums | |
---|---|
UNIT_UNSPECIFIED |
Unit unspecified |
MILES |
Unit in miles |
KILOMETERS |
Unit in kilometers |
LoyaltyProgram
Loyalty program provided by a merchant.
JSON representation |
---|
{
"loyaltyProgramTiers": [
{
object ( |
Fields | |
---|---|
loyalty |
Optional. Loyalty program tier of this shipping service. |
program |
This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers. |
LoyaltyProgramTiers
Subset of a merchants loyalty program.
JSON representation |
---|
{ "tierLabel": string } |
Fields | |
---|---|
tier |
The tier label [tierLabel] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier. |
Warehouse
A fulfillment warehouse, which stores and handles inventory.
JSON representation |
---|
{ "name": string, "shippingAddress": { object ( |
Fields | |
---|---|
name |
Required. The name of the warehouse. Must be unique within account. |
shipping |
Required. Shipping address of the warehouse. |
cutoff |
Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. |
handling |
Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item. |
business |
Business days of the warehouse. If not set, will be Monday to Friday by default. |
Address
Shipping address of the warehouse.
JSON representation |
---|
{ "streetAddress": string, "city": string, "administrativeArea": string, "postalCode": string, "regionCode": string } |
Fields | |
---|---|
street |
Street-level part of the address. For example: |
city |
Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs). |
administrative |
Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
postal |
Required. Postal code or ZIP (For example "94043"). |
region |
Required. CLDR country code (For example "US"). |
WarehouseCutoffTime
The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
JSON representation |
---|
{ "hour": integer, "minute": integer } |
Fields | |
---|---|
hour |
Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse. |
minute |
Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse. |
Methods |
|
---|---|
|
Retrieve shipping setting information. |
|
Replace the shipping setting of a merchant with the request shipping setting. |