- 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 | |
---|---|
account |
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. |
postal |
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. |
delivery |
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. |
delivery |
Time spent in various aspects from order to the delivery of the product. Required. |
rate |
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. |
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. |
eligibility |
Eligibility for this service. Acceptable values are:
|
shipment |
Type of locations this service ships orders to. Acceptable values are:
|
pickup |
The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved through the |
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 available for the local delivery shipment type. |
DeliveryTime
JSON representation |
---|
{ "minTransitTimeInDays": integer, "maxTransitTimeInDays": integer, "holidayCutoffs": [ { object ( |
Fields | |
---|---|
min |
Minimum number of business days that are spent in transit. 0 means same day delivery, 1 means next day delivery. Either |
max |
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 |
holiday |
Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. |
cutoff |
Business days cutoff time definition. If not configured, the cutoff time will be defaulted to 8AM PST. If local delivery, use Service.StoreConfig.CutoffConfig. |
min |
Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. |
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. |
warehouse |
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 | |
---|---|
holiday |
Unique identifier for the holiday. Required. |
deadline |
Date of the order deadline, in ISO 8601 format. For example, "2016-11-29" for 29th November 2016. Required. |
deadline |
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. |
deadline |
Timezone identifier for the deadline hour (for example, "Europe/Zurich"). shippingsettings.list of identifiers. Required. |
visible |
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 | |
---|---|
postal |
A list of postal group names. The last value can be |
transit |
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 | |
---|---|
min |
Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. |
max |
Must be greater than or equal to |
BusinessDayConfig
JSON representation |
---|
{ "businessDays": [ string ] } |
Fields | |
---|---|
business |
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 |
carrier |
Required. Carrier service, such as |
warehouse |
The name of the warehouse. Warehouse name need to be matched with |
origin |
Shipping origin. |
origin |
Shipping origin's street address. |
origin |
Shipping origin's city. |
origin |
Shipping origin's state. |
origin |
Shipping origin's country represented as a CLDR territory code. |
RateGroup
JSON representation |
---|
{ "applicableShippingLabels": [ string ], "singleValue": { object ( |
Fields | |
---|---|
applicable |
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. |
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 |
subtables[] |
A list of subtables referred to by |
carrier |
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 | |
---|---|
no |
If true, then the product can't ship. 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 (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. |
row |
Headers of the table's rows. Required. |
column |
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 |
number |
A list of inclusive number of items upper bounds. The last value can be |
postal |
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 | |
---|---|
location |
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. |
carrier |
Carrier service, such as |
carrier |
Carrier service, such as |
origin |
Shipping origin for this carrier rate. Required. |
percentage |
Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example |
flat |
Additive shipping rate modifier. Can be negative. For example |
PickupCarrierService
JSON representation |
---|
{ "carrierName": string, "serviceName": string } |
Fields | |
---|---|
carrier |
The name of the pickup carrier (for example, |
service |
The name of the pickup service (for example, |
MinimumOrderValueTable
JSON representation |
---|
{
"storeCodeSetWithMovs": [
{
object ( |
Fields | |
---|---|
store |
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 | |
---|---|
store |
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 | |
---|---|
store |
Indicates whether all stores listed by this merchant provide local delivery or not. Acceptable values are |
store |
A list of store codes that provide local delivery. If empty, then |
cutoff |
Time local delivery ends for the day. This can be either |
service |
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 | |
---|---|
local |
Time in hours and minutes in the local timezone when local delivery ends. |
store |
Represents cutoff time as the number of hours before store closing. Mutually exclusive with other fields (hour and minute). |
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 |
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. |
postal |
A range of postal codes. Required. |
PostalCodeRange
JSON representation |
---|
{ "postalCodeRangeBegin": string, "postalCodeRangeEnd": string } |
Fields | |
---|---|
postal |
A postal code or a pattern of the form |
postal |
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. |
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
JSON representation |
---|
{ "streetAddress": string, "city": string, "administrativeArea": string, "postalCode": string, "country": string } |
Fields | |
---|---|
street |
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). |
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"). |
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. |