openapi: 3.0.0
info:
title: eBay Account Advertising_eligibility Shipping_quote API
description: The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information.
For details on the availability of the methods in this API, see Account API requirements and restrictions.
contact:
name: eBay Inc,
license:
name: eBay API License Agreement
url: https://go.developer.ebay.com/api-license-agreement
version: v1.9.2
servers:
- url: https://api.ebay.com{basePath}
description: Production
variables:
basePath:
default: /sell/account/v1
tags:
- name: Shipping_quote
paths:
/shipping_quote:
post:
tags:
- Shipping_quote
description: 'The createShippingQuote method returns a shipping quote that contains a list of live "rates."
Each rate represents an offer made by a shipping carrier for a specific service and each offer has a live quote for the base service cost. Rates have a time window in which they are "live," and rates expire when their purchase window ends. If offered by the carrier, rates can include shipping options (and their associated prices), and users can add any offered shipping option to the base service should they desire. Also, depending on the services required, rates can also include pickup and delivery windows.
Note: The Logistics API only supports USPS shipping rates and labels.
Each rate is for a single package and is based on the following information:
US represents the United States and DE represents Germany. For implementation help, refer to eBay API documentation
county:
type: string
description: The county (not country) in which the address is located. Counties typically contain multiple cities or towns.
postalCode:
type: string
description: The postal code of the address.
stateOrProvince:
type: string
description: The state or province in which the address is located. States and provinces often contain multiple counties.
description: This complex type specifies the details of a geographical address.
PhoneNumber:
type: object
properties:
phoneNumber:
type: string
description: A telephone number.
description: This complex type contains a string field representing a telephone number.
ErrorParameter:
type: object
properties:
name:
type: string
description: Name of the entity that threw the error.
value:
type: string
description: A description of the error.
description: Container for an error parameter.
Contact:
type: object
properties:
companyName:
type: string
description: The company name with which the contact is associated.
contactAddress:
description: The details of the contact's geographical address.
$ref: '#/components/schemas/ContactAddress'
fullName:
type: string
description: The contact's full name.
primaryPhone:
description: The contact's primary telephone number.
$ref: '#/components/schemas/PhoneNumber'
description: This complex type contains contact information for an individual buyer or seller.
Dimensions:
type: object
properties:
height:
type: string
description: The numeric value of the height of the package.
length:
type: string
description: The numeric value of the length of the package.
unit:
type: string
description: The unit of measure used to express the height, length, and width of the package. For implementation help, refer to eBay API documentation
width:
type: string
description: The numeric value of the width of the package.
description: This complex type defines the dimensions of a package to be shipped.
PackageSpecification:
type: object
properties:
dimensions:
description: Declares the height, length, width, and unit of measure for the package to be shipped.
$ref: '#/components/schemas/Dimensions'
weight:
description: Declares the weight of the package.
$ref: '#/components/schemas/Weight'
description: This complex type specifies the dimensions and weight of a package.
Order:
type: object
properties:
channel:
type: string
description: The marketplace where the order was created.EBAY to get the rates available for eBay orders.
orderId:
type: string
description: The unique identifier of the order. The getOrders method of the Fulfillment API can be used to retrieve order IDs.
description: This complex type defines an order from which a seller is including one or more line items in a single package to be shipped.
Rate:
type: object
properties:
additionalOptions:
type: array
description: Contains service and pricing information for one or more shipping options that are offered by the carrier and can be purchased in addition to the base shipping service provided by this rate. Shipping options can include items such as INSURANCE and SIGNATURE.
items:
$ref: '#/components/schemas/AdditionalOption'
baseShippingCost:
description: A live quote for the cost that the carrier (identified by shippingCarrierCode) is charging for the shipping service being offered (identified by shippingServiceCode), excluding any additional shipping options.
$ref: '#/components/schemas/Amount'
destinationTimeZone:
type: string
description: The name of the time zone region, as defined in the IANA Time Zone Database, to which the package is being shipped. -08:00, but so do several other time zones, including America/Tijuana,America/Dawson, and Pacific/Pitcairn.
maxEstimatedDeliveryDate:
type: string
description: The latest stated date and time the shipment will be delivered at this rate. [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z 2018-08-20T07:09:00.000Z
minEstimatedDeliveryDate:
type: string
description: The estimated earliest date and time the shipment will be delivered at this rate. The time stamp is formatted as an ISO 8601 UTC string.
pickupNetworks:
type: array
description: A list of pickup networks compatible with the shipping service.
items:
type: string
pickupSlots:
type: array
description: A list of available pickup slots for the package.
items:
$ref: '#/components/schemas/PickupSlot'
pickupType:
type: string
description: The type of pickup or drop-off service associated with the pickupSlots time frames. For implementation help, refer to eBay API documentation
rateId:
type: string
description: The unique eBay-assigned ID for this shipping rate.
rateRecommendation:
type: array
description: 'A list of reasons this rate is recommended. Available values are: BUYER_CHOSEN — The rate meets or exceeds the requirements of the buyer''s preferred shipping option.CHEAPEST_ON_TIME — The rate is the cheapest rate available that will provide delivery within the seller''s time frame commitment.EBAY_PLUS_OK — The rate complies with the shipping requirements of the eBay Plus program.FASTEST_ON_TIME — The rate has the fastest shipping time, and will provide delivery within the seller''s time frame commitment.GUARANTEED_DELIVERY_OK — The rate complies with the shipping requirements of the eBay Guaranteed Delivery program.CAD. POUND and OUNCE. If the metric system of measurement is being used, the applicable values for weight units are KILOGRAM and GRAM. The metric system is used by most countries outside of the US. For implementation help, refer to eBay API documentation
value:
type: string
description: The numeric value of the weight of the package, as measured by the value of unit.
description: This complex type contains information about the weight of an object such as a shipping package.
AdditionalOption:
type: object
properties:
additionalCost:
description: The monetary cost of the additional shipping option identified by the optionType field.
$ref: '#/components/schemas/Amount'
optionType:
type: string
description: The name of a shipping option that can be purchased in addition to the base shipping cost of this rate. The value supplied in this field must match exactly the option name as supplied by the selected rate.
description: This complex type contains information about a shipping option that can be purchased in addition to the base shipping cost of a recommended rate. Additional options for each rate are defined, named, and offered by the selected shipping carrier. Examples include shipping insurance or the requirement for a recipient signature.
ShippingQuoteRequest:
type: object
properties:
orders:
type: array
description: In this array, the seller specifies one or more orders that will be shipped in the shipping package. 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.inputRefId.
items:
type: string
parameters:
type: array
description: This optional complex field type contains a list of one or more context-specific ErrorParameter objects, with each item in the list entry 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:
$ref: '#/components/schemas/ErrorParameter'
subdomain:
type: string
description: Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain.
description: A container that defines the elements of error and warning message.
PickupSlot:
type: object
properties:
pickupSlotEndTime:
type: string
description: The date and time the pickup slot ends, formatted as an ISO 8601 string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z 2018-08-20T07:09:00.000Z
pickupSlotId:
type: string
description: Seller-defined name for the pickup slot.
pickupSlotStartTime:
type: string
description: The date and time the pickup slot begins, formatted as an ISO 8601 UTC string.
pickupSlotTimeZone:
type: string
description: The time zone of the pickup location, returned as Time Zone Database ID (also know as an Olson time zone ID).
description: This complex type defines a time window for the pickup of a package.
securitySchemes:
api_auth:
type: oauth2
description: The security definitions for this API. Please check individual operations for applicable scopes.
flows:
authorizationCode:
authorizationUrl: https://auth.ebay.com/oauth2/authorize
tokenUrl: https://api.ebay.com/identity/v1/oauth2/token
scopes:
https://api.ebay.com/oauth/api_scope/sell.account.readonly: View your account settings
https://api.ebay.com/oauth/api_scope/sell.account: View and manage your account settings