- Resource: ShippingSettings
- Service
- DeliveryTime
- HolidayCutoff
- CutoffTime
- TransitTable
- TransitTableTransitTimeRow
- TransitTableTransitTimeRowTransitTimeValue
- BusinessDayConfig
- WarehouseBasedDeliveryTime
- RateGroup
- Value
- Table
- Headers
- Weight
- LocationIdSet
- Row
- CarrierRate
- PickupCarrierService
- MinimumOrderValueTable
- MinimumOrderValueTableStoreCodeSetWithMov
- ServiceStoreConfig
- ServiceStoreConfigCutoffConfig
- ServiceStoreConfigCutoffConfigLocalCutoffTime
- Distance
- PostalCodeGroup
- PostalCodeRange
- Warehouse
- Address
- WarehouseCutoffTime
- 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 |
warehouses[] |
Optional. A list of warehouses which 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. Acceptable values are:
|
shipmentType |
Type of locations this service ships orders to. Acceptable values are:
|
pickupService |
The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved through the |
minimumOrderValueTable |
Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimumOrderValue. |
storeConfig |
A list of stores your products are delivered from. This is only available for the local delivery shipment type. |
DeliveryTime
JSON representation |
---|
{ "minTransitTimeInDays": integer, "maxTransitTimeInDays": integer, "holidayCutoffs": [ { object ( |
Fields | |
---|---|
minTransitTimeInDays |
Minimum number of business days that are spent in transit. 0 means same day delivery, 1 means next day delivery. Either |
maxTransitTimeInDays |
Maximum number of business days that are 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. If local delivery, use Service.StoreConfig.CutoffConfig. |
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. |
warehouseBasedDeliveryTimes[] |
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. |
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. For example, "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 (for example, "Europe/Zurich"). shippingsettings.list of identifiers. Required. |
visibleFromDate |
Date on which the deadline will become visible to consumers in ISO 8601 format. For example, "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 (for example, "Europe/Zurich"). shippingsettings.list of identifiers. 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, such as '"monday"'. May not be empty. |
WarehouseBasedDeliveryTime
JSON representation |
---|
{ "carrier": string, "carrierService": string, "warehouseName": string, "originPostalCode": string, "originStreetAddress": string, "originCity": string, "originAdministrativeArea": string, "originCountry": string } |
Fields | |
---|---|
carrier |
Required. Carrier, such as |
carrierService |
Required. Carrier service, such as |
warehouseName |
The name of the warehouse. Warehouse name need to be matched with |
originPostalCode |
Shipping origin. |
originStreetAddress |
Shipping origin's street address. |
originCity |
Shipping origin's city. |
originAdministrativeArea |
Shipping origin's state. |
originCountry |
Shipping origin's country represented as a CLDR territory code. |
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 (for example, 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 (for example, |
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 (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. The weight can have a maximum precision of four decimal places. |
unit |
Required. The weight unit. Acceptable values are:
|
LocationIdSet
JSON representation |
---|
{ "locationIds": [ string ] } |
Fields | |
---|---|
locationIds[] |
A non-empty list of location IDs. They must all be of the same location type (for example, 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 (for example, |
serviceName |
The name of the pickup service (for example, |
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. |
ServiceStoreConfig
Stores that provide local delivery. Only valid with local delivery fulfillment.
JSON representation |
---|
{ "storeServiceType": string, "storeCodes": [ string ], "cutoffConfig": { object ( |
Fields | |
---|---|
storeServiceType |
Indicates whether all stores listed by this merchant provide local delivery or not. Acceptable values are |
storeCodes[] |
A list of store codes that provide local delivery. If empty, then |
cutoffConfig |
Time local delivery ends for the day. This can be either |
serviceRadius |
Maximum delivery radius. Only needed for local delivery fulfillment type. |
ServiceStoreConfigCutoffConfig
Time local delivery ends for the day based on the local timezone of the store. localCutoffTime
and storeCloseOffsetHours
are mutually exclusive.
JSON representation |
---|
{
"localCutoffTime": {
object ( |
Fields | |
---|---|
localCutoffTime |
Time in hours and minutes in the local timezone when local delivery ends. |
storeCloseOffsetHours |
Represents cutoff time as the number of hours before store closing. Mutually exclusive with other fields (hour and minute). |
noDeliveryPostCutoff |
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 |
ServiceStoreConfigCutoffConfigLocalCutoffTime
Time in hours and minutes in the local timezone when local delivery ends.
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
Distance represented by an integer and unit.
JSON representation |
---|
{ "value": string, "unit": string } |
Fields | |
---|---|
value |
The distance represented as a number. |
unit |
The distance unit. Acceptable values are |
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 |
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. |
shippingAddress |
Required. Shipping address of the warehouse. |
cutoffTime |
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. |
handlingDays |
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. |
businessDayConfig |
Business days of the warehouse. If not set, will be Monday to Friday by default. |
Address
JSON representation |
---|
{ "streetAddress": string, "city": string, "administrativeArea": string, "postalCode": string, "country": string } |
Fields | |
---|---|
streetAddress |
Street-level part of the address. Use |
city |
Required. City, town or commune. May also include dependent localities or sublocalities (for example, neighborhoods or suburbs). |
administrativeArea |
Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
postalCode |
Required. Postal code or ZIP (for example, "94043"). |
country |
Required. CLDR country code (for example, "US"). |
WarehouseCutoffTime
JSON representation |
---|
{ "hour": integer, "minute": integer } |
Fields | |
---|---|
hour |
Required. Hour (24-hour clock) 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 |
|
---|---|
|
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. |