- Resource: ShippingSettings
- Service
- DeliveryTime
- HolidayCutoff
- CutoffTime
- TransitTable
- TransitTableTransitTimeRow
- TransitTableTransitTimeRowTransitTimeValue
- BusinessDayConfig
- RateGroup
- Value
- Table
- Headers
- Weight
- LocationIdSet
- Row
- CarrierRate
- PickupCarrierService
- MinimumOrderValueTable
- MinimumOrderValueTableStoreCodeSetWithMov
- PostalCodeGroup
- PostalCodeRange
- Methods
Resource: ShippingSettings
The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
JSON representation | |
---|---|
{ "accountId": string, "services": [ { object ( |
Fields | |
---|---|
accountId |
The ID of the account to which these account shipping settings belong. Ignored upon update, always present in get request responses. |
services[] |
The target account's list of services. Optional. |
postalCodeGroups[] |
A list of postal code groups that can be referred to in |
Service
JSON representation | |
---|---|
{ "name": string, "deliveryCountry": string, "currency": string, "deliveryTime": { object ( |
Fields | |
---|---|
name |
Free-form name of the service. Must be unique within target account. Required. |
deliveryCountry |
The CLDR territory code of the country to which the service applies. Required. |
currency |
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. |
deliveryTime |
Time spent in various aspects from order to the delivery of the product. Required. |
rateGroups[] |
Shipping rate group definitions. Only the last one is allowed to have an empty |
active |
A boolean exposing the active status of the shipping service. Required. |
minimumOrderValue |
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. |
eligibility |
Eligibility for this service.
|
shipmentType |
Type of locations this service ships orders to.
|
pickupService |
The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the |
minimumOrderValueTable |
Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimumOrderValue. |
DeliveryTime
JSON representation | |
---|---|
{ "minTransitTimeInDays": integer, "maxTransitTimeInDays": integer, "holidayCutoffs": [ { object ( |
Fields | |
---|---|
minTransitTimeInDays |
Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either |
maxTransitTimeInDays |
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 |
holidayCutoffs[] |
Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
cutoffTime |
Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
minHandlingTimeInDays |
Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
maxHandlingTimeInDays |
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 |
transitTimeTable |
Transit time table, number of business days spent in transit based on row and column dimensions. Either |
handlingBusinessDayConfig |
The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
transitBusinessDayConfig |
The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
HolidayCutoff
JSON representation | |
---|---|
{ "holidayId": string, "deadlineDate": string, "deadlineHour": integer, "deadlineTimezone": string, "visibleFromDate": string } |
Fields | |
---|---|
holidayId |
Unique identifier for the holiday. Required. |
deadlineDate |
Date of the order deadline, in ISO 8601 format. E.g. "2016-11-29" for 29th November 2016. Required. |
deadlineHour |
Hour of the day on the deadline date until which the order has to be placed to qualify for the delivery guarantee. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Required. |
deadlineTimezone |
Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. |
visibleFromDate |
Date on which the deadline will become visible to consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October 2016. Required. |
CutoffTime
JSON representation | |
---|---|
{ "hour": integer, "minute": integer, "timezone": string } |
Fields | |
---|---|
hour |
Hour of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
minute |
Minute of the cutoff time until which an order has to be placed to be processed in the same day. Required. |
timezone |
Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. |
TransitTable
JSON representation | |
---|---|
{
"postalCodeGroupNames": [
string
],
"transitTimeLabels": [
string
],
"rows": [
{
object ( |
Fields | |
---|---|
postalCodeGroupNames[] |
A list of postal group names. The last value can be |
transitTimeLabels[] |
A list of transit time labels. The last value can be |
rows[] |
|
TransitTableTransitTimeRow
JSON representation | |
---|---|
{
"values": [
{
object ( |
Fields | |
---|---|
values[] |
TransitTableTransitTimeRowTransitTimeValue
JSON representation | |
---|---|
{ "minTransitTimeInDays": integer, "maxTransitTimeInDays": integer } |
Fields | |
---|---|
minTransitTimeInDays |
Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
maxTransitTimeInDays |
Must be greater than or equal to |
BusinessDayConfig
JSON representation | |
---|---|
{ "businessDays": [ string ] } |
Fields | |
---|---|
businessDays[] |
Regular business days. May not be empty. |
RateGroup
JSON representation | |
---|---|
{ "applicableShippingLabels": [ string ], "singleValue": { object ( |
Fields | |
---|---|
applicableShippingLabels[] |
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. Required. |
singleValue |
The value of the rate group (e.g. flat rate $10). Can only be set if |
mainTable |
A table defining the rate group, when |
subtables[] |
A list of subtables referred to by |
carrierRates[] |
A list of carrier rates that can be referred to by |
name |
Name of the rate group. Optional. 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
, carrierRateName
, subtableName
must be set.
JSON representation | |
---|---|
{
"noShipping": boolean,
"flatRate": {
object ( |
Fields | |
---|---|
noShipping |
If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set. |
flatRate |
A flat rate. Can only be set if all other fields are not set. |
pricePercentage |
A percentage of the price represented as a number in decimal notation (e.g., |
carrierRateName |
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. |
subtableName |
The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set. |
Table
JSON representation | |
---|---|
{ "name": string, "rowHeaders": { object ( |
Fields | |
---|---|
name |
Name of the table. Required for subtables, ignored for the main table. |
rowHeaders |
Headers of the table's rows. Required. |
columnHeaders |
Headers of the table's columns. Optional: if not set then the table has only one dimension. |
rows[] |
The list of rows that constitute the table. Must have the same length as |
Headers
A non-empty list of row or column headers for a table. Exactly one of prices
, weights
, numItems
, postalCodeGroupNames
, or location
must be set.
JSON representation | |
---|---|
{ "prices": [ { object ( |
Fields | |
---|---|
prices[] |
A list of inclusive order price upper bounds. The last price's value can be |
weights[] |
A list of inclusive order weight upper bounds. The last weight's value can be |
numberOfItems[] |
A list of inclusive number of items upper bounds. The last value can be |
postalCodeGroupNames[] |
A list of postal group names. The last value can be |
locations[] |
A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set. |
Weight
JSON representation | |
---|---|
{ "value": string, "unit": string } |
Fields | |
---|---|
value |
Required. The weight represented as a number. |
unit |
Required. The weight unit.
|
LocationIdSet
JSON representation | |
---|---|
{ "locationIds": [ string ] } |
Fields | |
---|---|
locationIds[] |
A non-empty list of location IDs. They must all be of the same location type (e.g., state). |
Row
JSON representation | |
---|---|
{
"cells": [
{
object ( |
Fields | |
---|---|
cells[] |
The list of cells that constitute the row. Must have the same length as |
CarrierRate
JSON representation | |
---|---|
{
"name": string,
"carrierName": string,
"carrierService": string,
"originPostalCode": string,
"percentageAdjustment": string,
"flatAdjustment": {
object ( |
Fields | |
---|---|
name |
Name of the carrier rate. Must be unique per rate group. Required. |
carrierName |
Carrier service, such as |
carrierService |
Carrier service, such as |
originPostalCode |
Shipping origin for this carrier rate. Required. |
percentageAdjustment |
Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example |
flatAdjustment |
Additive shipping rate modifier. Can be negative. For example |
PickupCarrierService
JSON representation | |
---|---|
{ "carrierName": string, "serviceName": string } |
Fields | |
---|---|
carrierName |
The name of the pickup carrier (e.g., |
serviceName |
The name of the pickup service (e.g., |
MinimumOrderValueTable
JSON representation | |
---|---|
{
"storeCodeSetWithMovs": [
{
object ( |
Fields | |
---|---|
storeCodeSetWithMovs[] |
MinimumOrderValueTableStoreCodeSetWithMov
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 | |
---|---|
storeCodes[] |
A list of unique store codes or empty for the catch all. |
value |
The minimum order value for the given stores. |
PostalCodeGroup
JSON representation | |
---|---|
{
"name": string,
"country": string,
"postalCodeRanges": [
{
object ( |
Fields | |
---|---|
name |
The name of the postal code group, referred to in headers. Required. |
country |
The CLDR territory code of the country the postal code group applies to. Required. |
postalCodeRanges[] |
A range of postal codes. Required. |
PostalCodeRange
JSON representation | |
---|---|
{ "postalCodeRangeBegin": string, "postalCodeRangeEnd": string } |
Fields | |
---|---|
postalCodeRangeBegin |
A postal code or a pattern of the form |
postalCodeRangeEnd |
A postal code or a pattern of the form |
Methods |
|
---|---|
|
Retrieves and updates the shipping settings of multiple accounts in a single request. |
|
Retrieves the shipping settings of the account. |
|
Retrieves supported carriers and carrier services for an account. |
|
Retrieves supported holidays for an account. |
|
Retrieves supported pickup services for an account. |
|
Lists the shipping settings of the sub-accounts in your Merchant Center account. |
|
Updates the shipping settings of the account. |