Skip to main content

GET/shipping/marketplace/{marketplace_id}/get_shipping_services

This method retrieves a list of shipping services supported for the specified marketplace, including valid shipping services, shipping times, and package constraints such as size and weight.

Manage shipping services using business policies through the fulfillment_policy resource of the Account v1 API.

Input

Resource URI

GET https://api.ebay.com/sell/metadata/v1/shipping/marketplace/{marketplace_id}/get_shipping_services

This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com root URI with api.sandbox.ebay.com

URI parameters

ParameterTypeDescription
marketplace_idstringThis path parameter specifies the eBay marketplace for which shipping services information is retrieved.

See MarketplaceIdEnum for supported eBay marketplace ID values.

Note: When listing the items on the French Canada, French Belgium, and Dutch Belgium marketplaces, also set the Accept-Language header as needed.

Occurrence: Required

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.

HeaderTypeDescription
Accept-LanguagestringThis header is required to retrieve metadata for the French Canada, French Belgium, and Dutch Belgium marketplaces.

Follow the instructions below to retrieve metadata for these three marketplaces:
  • French Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of fr-BE.
  • Dutch Belgium: Set the marketplace_id path parameter value to EBAY_BE, and include the Accept-Language header with a value of nl-BE.
  • French Canada: Set the marketplace_id path parameter value to EBAY_CA, and include the Accept-Language header with a value of fr-CA.
Note: If EBAY_CA is set as the marketplace_id path parameter and the Accept-Language header is not used, the marketplace will default to the English Canada marketplace.

Occurrence: Conditional

OAuth scope

This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):

https://api.ebay.com/oauth/api_scope

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
shippingServicesarray of ShippingService

A complete list of shipping service options that can be used on the marketplace for shipping items.

Occurrence: Always

shippingServices.descriptionstring

This field returns the localized name of the shipping service.

Occurrence: Always

shippingServices.internationalServiceboolean

A value of true indicates that the shipping service is international. An international shipping service option is required if an item is being shipped from one country (origin) to another (destination).

Occurrence: Always

shippingServices.maxShippingTimeinteger

This value indicates the maximum number of business days that it takes the shippingCarrier to ship an item using the corresponding shippingService.

Occurrence: Conditional

shippingServices.minShippingTimeinteger

This value indicates the minimum number of business days that it takes the shippingCarrier to ship an item using the corresponding shippingService.

Occurrence: Conditional

shippingServices.packageLimitsPackageLimits

This container provides name-value pairs that specify physical constraints and measurement units of packages for the shippingCarrier and the corresponding shippingService. An empty container is returned if the shipping service does not have any package limits defined.

Occurrence: Always

shippingServices.packageLimits.dimensionUnitstring

Unit of dimensional measurement, for example INCH or CENTIMETER.

Occurrence: Conditional

shippingServices.packageLimits.maxGirthnumber

The maximum girth allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.maxHeightnumber

The maximum height allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.maxLengthnumber

The maximum length allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.maxWeightnumber

The maximum weight allowed for a package shipped through the corresponding shipping service, as measured in units of weightUnit.

Occurrence: Conditional

shippingServices.packageLimits.maxWidthnumber

The maximum width allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.minGirthnumber

The minimum girth allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.minHeightnumber

The minimum height allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.minLengthnumber

The minimum length allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.minWeightnumber

The minimum weight allowed for a package shipped through the corresponding shipping service, as measured in units of weightUnit.

Occurrence: Conditional

shippingServices.packageLimits.minWidthnumber

The minimum width allowed for a package shipped through the corresponding shipping service, as measured in units of dimensionUnit.

Occurrence: Conditional

shippingServices.packageLimits.weightUnitstring

Unit of weight measurement, for example KILOGRAM or OUNCE.

Occurrence: Conditional

shippingServices.shippingCarrierstring

The code for the shipping carrier returned, for example, UPS, FedEx, and USPS.

Occurrence: Conditional

shippingServices.shippingCategorystring

The shipping category of the shipping service including: ECONOMY, STANDARD, EXPEDITED, ONE_DAY, PICKUP, and other similar categories.

Occurrence: Always

shippingServices.shippingCostTypesarray of string

A list of shipping cost types that this shipping service option supports. For example, FLAT_RATE, CALCULATED, and FREIGHT.

Occurrence: Always

shippingServices.shippingServicestring

The name of the shipping service. The shipping service named here can only be used in listings or in business policies if validForSellingFlow is true. The value returned in this field is used in listing APIs and business policies to set the shipping service.

Occurrence: Always

shippingServices.validForSellingFlowboolean

A value of true indicates that the shippingService can be set as an available shipping service in the listing or through the fulfillment business policy.

Occurrence: Always

HTTP status codes

This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.

StatusMeaning
200Success
400Bad Request
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
46000API_METADATAAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.
46001API_METADATAREQUESTThe specified marketplace ID was not found.

Warnings

This call has no warnings.

Samples

New to making API calls? Please see Making a Call.

Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.

Sample 1: Retrieve the eBay shipping services metadata for the specified marketplace

This example retrieves the eBay shipping services for the EBAY_US marketplace.

This method returns an array with each node in the response containing metadata for the shipping services returned.

Input

This method does not use a request payload. The response returns a list for the marketplace specified through the path parameter.

GEThttps://api.ebay.com/sell/metadata/v1/shipping/marketplace/EBAY_US/get_shipping_services

Output

If the call is successful, the response body contains the eBay shipping service metadata for the marketplace specified in the request.