action api_create_fulfillment_policy {
label: "createFulfillmentPolicy"
description: "This method creates a new fulfillment policy where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers.
Each policy targets a specific eBay marketplace and a category group type, and you can create multiple policies for each combination.
A successful request returns the getFulfillmentPolicy URI to the new policy in the Location response header and the ID for the new policy is returned in the response payload.
Tip: For details on creating and using the business policies supported by the Account API, see eBay business policies.
Using the eBay standard envelope service (eSE)
The eBay standard envelope service (eSE) is a domestic envelope service with tracking through eBay. This service applies to specific Trading Cards categories (not all categories are supported), and to Coins & Paper Money, Postcards, and Stamps. See Using the eBay standard envelope (eSE) service.
" provider: api method: POST path: "/fulfillment_policy/" encoding: json input: { type: "object" description: "Request to create a seller account fulfillment policy." properties: { categoryTypes: { type: "array" description: "This container is used to specify whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings." items: { type: "object" description: "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation"
}
}
}
}
description: {
type: "string"
description: "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. true if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.true if the seller wants to use the Global Shipping Program for international shipments. See the Global Shipping Program help topic for more details and requirements on the Global Shipping Program.false or if the field is omitted, the seller is responsible for manually specifying individual international shipping services (if the seller ships internationally)., as described in Setting up worldwide shipping. Default: false
" } handlingTime: { type: "object" description: "This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.DispatchTimeMaxDetails, then inspect the DispatchTimeMaxDetails container in the response for the time values supported by the site (typical handling times are 0, 1, 2, 3, 4, 5, 10, 15, and 20, but these can vary by site and may change over time.) This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup (\"localPickup\": \"true\"), or if it will be shipped through a freight shipping service (\"freightShipping\": \"true\").
DAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. true if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.false"
}
marketplaceId: {
type: "string"
description: "The ID of the eBay marketplace to which this fulfillment policy applies. For implementation help, refer to eBay API documentation"
}
name: {
type: "string"
description: "A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace. true if the seller offers the \"Click and Collect\" feature for an item. To enable \"Click and Collect\" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU and UK marketplaces.
In addition to setting this field to true, the merchant must also do the following to enable the \"Click and Collect\" option on a listing:
Sellers can use the createInventoryLocaion method in the Inventory API to associate physical stores to their account and they can then can add inventory to specific store locations.
When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the \"Available for Click and Collect\" option on the listing, along with information on the closest store that has the item.
Default: false" } shipToLocations: { type: "object" description: "This container consists of the regionIncluded and regionExcluded arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a shipToLocations container that can be set at the shipping service option level.ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in both the regionIncluded.regionName and in the regionExcluded.regionName fields. ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields. ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition. For valid domestic region values, look for ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields. STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post."
properties: {
regionExcluded: {
type: "array"
description: "An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option. Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.
This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.
Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
regionIncluded: {
type: "array"
description: "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.
Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
}
}
shippingOptions: {
type: "array"
description: "This array is used to provide detailed information on the domestic and international shipping options available for the policy.
A separate ShippingOption object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations).
A separate ShippingServices object will be used to specify cost and other details for every available domestic and international shipping service option.
" items: { type: "object" description: "This type is used by the shippingOptions array, which is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations)." properties: { costType: { type: "string" description: "This field defines whether the shipping cost model isFLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package). CAD.CAD.CAD.true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made. true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a purchased motor vehicle after full payment is made. CAD.true if the seller offers a free shipping option to the buyer. true for the first domestic shipping service option specified in the shippingServices container (it is ignored if set for subsequent shipping services or for any international shipping service option). 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices container.ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition.ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post."
properties: {
regionExcluded: {
type: "array"
description: "An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option. Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.
This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.
Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
regionIncluded: {
type: "array"
description: "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.
Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
}
}
shippingCarrierCode: {
type: "string"
description: "This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.
For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.
This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.
This field is returned if set."
}
shippingCost: {
type: "object"
description: "This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.
This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.
This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.
This container is returned if set for the policy."
properties: {
currency: {
type: "string"
description: "The base currency applied to the value field to establish a monetary amount.
The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.
Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation"
}
value: {
type: "string"
description: "The monetary amount in the specified currency."
}
}
}
shippingServiceCode: {
type: "string"
description: "This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.
For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.
The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.
The InternationalService boolean field is not returned at all for domestic shipping service options.
This field is required for every specified shipping service option.
This field is returned if set."
}
sortOrder: {
type: "integer"
format: "int32"
description: "The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.
Sellers can specify up to four domestic shipping services (in four separate shippingService containers), so valid values are 1, 2, 3, and 4. A shipping service option with a sortOrder value of 1 appears at the top of View Item and Checkout pages. Conversely, a shipping service option with a sortOrder value of 1 appears at the bottom of the list.
Sellers can specify up to five international shipping services (in five separate shippingService containers), so valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service options, the sortOrder value of a international shipping service option controls the placement of that shipping service option in the View Item and Checkout pages.
If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.
Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service)."
}
surcharge: {
type: "object"
description: " Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.
To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field. Shipping surcharges cannot be applied at all to international shipping service options."
properties: {
currency: {
type: "string"
description: "The base currency applied to the value field to establish a monetary amount.
The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.
Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation"
}
value: {
type: "string"
description: "The monetary amount in the specified currency."
}
}
}
}
}
}
}
}
}
}
}
output: {
type: "object"
description: "A complex type that is populated with a response containing a fulfillment policy."
properties: {
categoryTypes: {
type: "array"
description: "This container indicates whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings."
items: {
type: "object"
description: "The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings.
Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings."
properties: {
default: {
type: "boolean"
description: "Note: This field has been deprecated and is no longer used.
"
}
name: {
type: "string"
description: "The category type to which the policy applies (motor vehicles or non-motor vehicles).
The MOTORS_VEHICLES category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to eBay API documentation"
}
}
}
}
description: {
type: "string"
description: "A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy.
Max length: 250"
}
freightShipping: {
type: "boolean"
description: "If returned as true, the seller offers freight shipping. Freight shipping can be used for large items over 150 lbs."
}
fulfillmentPolicyId: {
type: "string"
description: "A unique eBay-assigned ID for a fulfillment business policy. This ID is generated when the policy is created."
}
globalShipping: {
type: "boolean"
description: "If returned as true, the eBay Global Shipping Program will be used by the seller to ship items to international locations.
Note: On the US marketplace, the Global Shipping Program is scheduled to be replaced by a new intermediated international shipping program called eBay International Shipping. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023.
eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available.
A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy."
}
handlingTime: {
type: "object"
description: "Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.
If only local pickup or freight shipping is available for the item, this container may not get returned.
" properties: { unit: { type: "string" description: "These enum values represent the time measurement unit, such asDAY. A span of time is defined when you apply the value specified in the value field to the value specified for unit. true, local pickup is available for this policy."
}
marketplaceId: {
type: "string"
description: "The ID of the eBay marketplace to which this fulfillment business policy applies. For implementation help, refer to eBay API documentation"
}
name: {
type: "string"
description: "A seller-defined name for this fulfillment business policy. Names must be unique for policies assigned to the same marketplace. true, the seller offers the \"Click and Collect\" option. Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.
This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.
Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
regionIncluded: {
type: "array"
description: "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.
Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
}
}
shippingOptions: {
type: "array"
description: "This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations).
The optionType field indicates whether the ShippingOption object applies to domestic or international shipping, and the costType field indicates whether flat-rate shipping or calculated shipping will be used.
A separate ShippingServices object is used to specify cost and other details for every available domestic and international shipping service option.
" items: { type: "object" description: "This type is used by the shippingOptions array, which is used to provide detailed information on the domestic and international shipping options available for the policy. A separate ShippingOption object covers domestic shipping service options and international shipping service options (if the seller ships to international locations)." properties: { costType: { type: "string" description: "This field defines whether the shipping cost model isFLAT_RATE (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or CALCULATED (the shipping rate varies by the ship-to location and size and weight of the package). CAD.CAD.CAD.true for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made. true for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a purchased motor vehicle after full payment is made. CAD.true if the seller offers a free shipping option to the buyer. true for the first domestic shipping service option specified in the shippingServices container (it is ignored if set for subsequent shipping services or for any international shipping service option). 1 or if the sortOrderId field is not used, it is the shipping service option that's specified first in the shippingServices container.ExcludeShippingLocationDetails, then review the ExcludeShippingLocationDetails containers in the response for the strings you use in the regionIncluded.regionName field. ExcludeShippingLocationDetails containers in the GeteBayDetails response where the Region value is Worldwide, and the valid values will be shown in the corresponding Location fields.ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is one of the defined geographical regions, and the valid values will be shown in the corresponding Location fields. Alternatively, you can find the two-digit country code values in the CountryCodeEnum type definition.ExcludeShippingLocationDetails in the GeteBayDetails response where the Region value is either Domestic Location or Additional Locations, and the valid values will be shown in the corresponding Location fields.STATE_OR_PROVINCE region type is only applicable to the US and Canada, and valid values for US states are the same two-digit abbreviations used by the United States Postal Service, and valid values for Canadian provinces and territories are the same two-digit abbreviations used by the Canada Post."
properties: {
regionExcluded: {
type: "array"
description: "An array of one or more regionName values that specify the areas to where a seller does not ship. A regionExcluded list should only be set in the top-level shipToLocations container and not within the shippingServices.shipToLocations container used to specify which shipping regions are serviced by each available shipping service option. Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.
This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.
Note: The regionExcluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
regionIncluded: {
type: "array"
description: "An array of one or more regionName fields that specify the areas to where a seller ships.
Each eBay marketplace supports its own set of allowable shipping locations.
Note: The regionIncluded array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a createFulfillmentPolicy or updateFulfillmentPolicy request, it will be ignored."
items: {
type: "object"
description: "This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box')."
properties: {
regionName: {
type: "string"
description: "A string that indicates the name of a region, as defined by eBay. A \"region\" can be either a 'world region' (e.g., the \"Middle East\" or \"Southeast Asia\"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country.
The GeteBayDetails call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call GeteBayDetails with the DetailName value set to ExcludeShippingLocationDetails."
}
regionType: {
type: "string"
description: "Reserved for future use. For implementation help, refer to eBay API documentation"
}
}
}
}
}
}
shippingCarrierCode: {
type: "string"
description: "This field sets/indicates the shipping carrier, such as USPS, FedEx, or UPS. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.
For a full list of shipping carrier enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingCarrierDetails. The enum values for each shipping carriers can be found in each ShippingCarrierDetails.ShippingCarrier field in the response payload.
This field is actually optional, as the shipping carrier is also tied into the shippingServiceCode enum value, and that field is required for every specified shipping service option.
This field is returned if set."
}
shippingCost: {
type: "object"
description: "This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table.
This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.
This value is automatically set to 0.0 for the first specified domestic shipping service option and if the corresponding freeShipping field is set to true.
This container is returned if set for the policy."
properties: {
currency: {
type: "string"
description: "The base currency applied to the value field to establish a monetary amount.
The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.
Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation"
}
value: {
type: "string"
description: "The monetary amount in the specified currency."
}
}
}
shippingServiceCode: {
type: "string"
description: "This field sets/indicates the domestic or international shipping service option, such as USPSPriority, FedEx2Day, or UPS3rdDay. Although this field uses the string type, the seller must pass in a pre-defined enumeration value here.
For a full list of shipping service option enum values for a specified eBay marketplace, the GeteBayDetails call of the Trading API can be used, and the DetailName field's value should be set to ShippingServiceDetails.
The enum values for each shipping service option can be found in each ShippingServiceDetails.ShippingService field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a true value in the corresponding ValidForSellingFlow boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an InternationalService boolean field that reads true.
The InternationalService boolean field is not returned at all for domestic shipping service options.
This field is required for every specified shipping service option.
This field is returned if set."
}
sortOrder: {
type: "integer"
format: "int32"
description: "The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages.
Sellers can specify up to four domestic shipping services (in four separate shippingService containers), so valid values are 1, 2, 3, and 4. A shipping service option with a sortOrder value of 1 appears at the top of View Item and Checkout pages. Conversely, a shipping service option with a sortOrder value of 1 appears at the bottom of the list.
Sellers can specify up to five international shipping services (in five separate shippingService containers), so valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service options, the sortOrder value of a international shipping service option controls the placement of that shipping service option in the View Item and Checkout pages.
If the sortOrder field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call.
Min: 1. Max: 4 (for domestic shipping service) or 5 (for international shipping service)."
}
surcharge: {
type: "object"
description: " Note: DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables.
To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the shippingOptions.rateTableId field. Shipping surcharges cannot be applied at all to international shipping service options."
properties: {
currency: {
type: "string"
description: "The base currency applied to the value field to establish a monetary amount.
The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD.
Default: The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to eBay API documentation"
}
value: {
type: "string"
description: "The monetary amount in the specified currency."
}
}
}
}
}
}
}
}
}
warnings: {
type: "array"
description: "An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty."
items: {
type: "object"
description: "A container that defines the elements of error and warning messages."
properties: {
category: {
type: "string"
description: "The category type for this error or warning. It is a string that can have one of three values:
Application: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.Business: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as \"Seller does not ship item to Antarctica\" or \"Buyer ineligible to purchase an alcoholic item\". Business errors are not syntactical input errors.Request: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.message error field."
}
message: {
type: "string"
description: "Information on how to correct the problem, in the end user's terms and language where applicable. Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale."
}
outputRefIds: {
type: "array"
description: "Identifies specific response elements associated with the error, if any. Path format is the same as inputRefId."
items: {
type: "string"
}
}
parameters: {
type: "array"
description: "This optional list of name/value pairs that contain context-specific ErrorParameter objects, with each item in the list being a parameter (or input field name) that caused an error condition. Each ErrorParameter object consists of two fields, a name and a value."
items: {
type: "object"
description: "A complex type that indicates a parameter that caused an error and the value of the parameter which caused the error."
properties: {
name: {
type: "string"
description: "Name of the parameter that caused the error."
}
value: {
type: "string"
description: "The value of the parameter that caused the error."
}
}
}
}
subdomain: {
type: "string"
description: "If present, indicates the subsystem in which the error occurred."
}
}
}
}
}
}
}