Download OpenAPI specification:Download
Note: This is a (Limited Release) API available only to select developers approved by business units.
The Logistics API resources offer the following capabilities:
Important! Sellers must set up a payment method via their eBay account before they can use the methods in this API to create a shipment and the associated shipping label.
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.
Each rate is for a single package and is based on the following information:
| X-EBAY-C-MARKETPLACE-ID required | string This header parameter specifies the eBay marketplace for the shipping quote that is being created. For a list of valid values, refer to the section Marketplace ID Values in the Using eBay RESTful APIs guide. |
The request object for createShippingQuote.
Array of objects (Order) A seller-defined list that contains information about the orders in the package. This allows sellers to include information about the line items in the package with the shipment information. | |
object (PackageSpecification) This complex type specifies the dimensions and weight of a package. | |
object (Contact) This complex type contains contact information for an individual buyer or seller. | |
object (Contact) This complex type contains contact information for an individual buyer or seller. |
{- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}
}{- "creationDate": "string",
- "expirationDate": "string",
- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "rates": [
- {
- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "baseShippingCost": {
- "currency": "string",
- "value": "string"
}, - "destinationTimeZone": "string",
- "maxEstimatedDeliveryDate": "string",
- "minEstimatedDeliveryDate": "string",
- "pickupNetworks": [
- "string"
], - "pickupSlots": [
- {
- "pickupSlotEndTime": "string",
- "pickupSlotId": "string",
- "pickupSlotStartTime": "string",
- "pickupSlotTimeZone": "string"
}
], - "pickupType": "string",
- "rateId": "string",
- "rateRecommendation": [
- "string"
], - "shippingCarrierCode": "string",
- "shippingCarrierName": "string",
- "shippingServiceCode": "string",
- "shippingServiceName": "string"
}
], - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shippingQuoteId": "string",
- "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value.
A "shipping quote" pertains to a single specific package and contains a set of shipping "rates" that quote the cost to ship the package by different shipping carriers and services. The quotes are based on the package's origin, destination, and size.
Call createShippingQuote to create a shippingQuoteId.
| shippingQuoteId required | string This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve. The shippingQuoteId value is generated and returned by a call to createShippingQuote. |
{- "creationDate": "string",
- "expirationDate": "string",
- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "rates": [
- {
- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "baseShippingCost": {
- "currency": "string",
- "value": "string"
}, - "destinationTimeZone": "string",
- "maxEstimatedDeliveryDate": "string",
- "minEstimatedDeliveryDate": "string",
- "pickupNetworks": [
- "string"
], - "pickupSlots": [
- {
- "pickupSlotEndTime": "string",
- "pickupSlotId": "string",
- "pickupSlotStartTime": "string",
- "pickupSlotTimeZone": "string"
}
], - "pickupType": "string",
- "rateId": "string",
- "rateRecommendation": [
- "string"
], - "shippingCarrierCode": "string",
- "shippingCarrierName": "string",
- "shippingServiceCode": "string",
- "shippingServiceName": "string"
}
], - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shippingQuoteId": "string",
- "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method creates a "shipment" based on the shippingQuoteId and rateId values supplied in the request. The rate identified by the rateId value specifies the carrier and service for the package shipment, and the rate ID must be contained in the shipping quote identified by the shippingQuoteId value. Call createShippingQuote to retrieve a set of live shipping rates.
When you create a shipment, eBay generates a shipping label that you can download and use to ship your package.
In a createFromShippingQuote request, sellers can include a list of shipping options they want to add to the base service quoted in the selected rate. The list of available shipping options is specific to each quoted rate and if available, the options are listed in the rate container of the of the shipping quote.
In addition to a configurable return-to location and other details about the shipment, the response to this method includes:
Important! Sellers must set up their payment method with eBay before they can use this method to create a shipment and the associated shipping label.
The create shipment from quote request.
Array of objects (AdditionalOption) Supply a list of one or more shipping options that the seller wants to purchase for this shipment. | |
| labelCustomMessage | string Optional text to be printed on the shipping label if the selected shipping carrier supports custom messages on their labels. |
| labelSize | string The seller's desired label size. Any supplied value is applied only if the shipping carrier supports multiple label sizes, otherwise the carrier's default label size is used. |
| rateId | string The eBay-assigned ID of the shipping rate that the seller selected for the shipment. This value is generated by a call to createShippingQuote and is returned in the rates.rateId field. |
object (Contact) This complex type contains contact information for an individual buyer or seller. | |
| shippingQuoteId | string The unique eBay-assigned ID of the shipping quote that was generated by a call to createShippingQuote. |
{- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "labelCustomMessage": "string",
- "labelSize": "string",
- "rateId": "string",
- "returnTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shippingQuoteId": "string"
}{- "cancellation": {
- "cancellationRequestedDate": "string",
- "cancellationStatus": "string"
}, - "creationDate": "string",
- "labelCustomMessage": "string",
- "labelDownloadUrl": "string",
- "labelSize": "string",
- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "rate": {
- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "baseShippingCost": {
- "currency": "string",
- "value": "string"
}, - "destinationTimeZone": "string",
- "maxEstimatedDeliveryDate": "string",
- "minEstimatedDeliveryDate": "string",
- "pickupNetworks": [
- "string"
], - "pickupSlotId": "string",
- "pickupType": "string",
- "rateId": "string",
- "shippingCarrierCode": "string",
- "shippingCarrierName": "string",
- "shippingQuoteId": "string",
- "shippingServiceCode": "string",
- "shippingServiceName": "string",
- "totalShippingCost": {
- "currency": "string",
- "value": "string"
}
}, - "returnTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipmentId": "string",
- "shipmentTrackingNumber": "string",
- "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}
}This method retrieves the shipment details for the specified shipment ID. Call createFromShippingQuote to generate a shipment ID.
| shipmentId required | string This path parameter specifies the unique eBay-assigned ID of the shipment you want to retrieve. The shipmentId value is generated and returned by a call to createFromShippingQuote. |
{- "cancellation": {
- "cancellationRequestedDate": "string",
- "cancellationStatus": "string"
}, - "creationDate": "string",
- "labelCustomMessage": "string",
- "labelDownloadUrl": "string",
- "labelSize": "string",
- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "rate": {
- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "baseShippingCost": {
- "currency": "string",
- "value": "string"
}, - "destinationTimeZone": "string",
- "maxEstimatedDeliveryDate": "string",
- "minEstimatedDeliveryDate": "string",
- "pickupNetworks": [
- "string"
], - "pickupSlotId": "string",
- "pickupType": "string",
- "rateId": "string",
- "shippingCarrierCode": "string",
- "shippingCarrierName": "string",
- "shippingQuoteId": "string",
- "shippingServiceCode": "string",
- "shippingServiceName": "string",
- "totalShippingCost": {
- "currency": "string",
- "value": "string"
}
}, - "returnTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipmentId": "string",
- "shipmentTrackingNumber": "string",
- "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}
}This method returns the shipping label file that was generated for the shipmentId value specified in the request. Call createFromShippingQuote to generate a shipment ID.
Use the Accept HTTP header to specify the format of the returned file. The default file format is a PDF file.
| shipmentId required | string This path parameter specifies the unique eBay-assigned ID of the shipment associated with the shipping label you want to download. The shipmentId value is generated and returned by a call to createFromShippingQuote. |
This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted. When you cancel a shipment, the totalShippingCost of the canceled shipment is refunded to the account established by the user's billing agreement.
Note that you cannot cancel a shipment if you have used the associated shipping label.
| shipmentId required | string This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled. The shipmentId value is generated and returned by a call to createFromShippingQuote. |
{- "cancellation": {
- "cancellationRequestedDate": "string",
- "cancellationStatus": "string"
}, - "creationDate": "string",
- "labelCustomMessage": "string",
- "labelDownloadUrl": "string",
- "labelSize": "string",
- "orders": [
- {
- "channel": "string",
- "orderId": "string"
}
], - "packageSpecification": {
- "dimensions": {
- "height": "string",
- "length": "string",
- "unit": "string",
- "width": "string"
}, - "weight": {
- "unit": "string",
- "value": "string"
}
}, - "rate": {
- "additionalOptions": [
- {
- "additionalCost": {
- "currency": "string",
- "value": "string"
}, - "optionType": "string"
}
], - "baseShippingCost": {
- "currency": "string",
- "value": "string"
}, - "destinationTimeZone": "string",
- "maxEstimatedDeliveryDate": "string",
- "minEstimatedDeliveryDate": "string",
- "pickupNetworks": [
- "string"
], - "pickupSlotId": "string",
- "pickupType": "string",
- "rateId": "string",
- "shippingCarrierCode": "string",
- "shippingCarrierName": "string",
- "shippingQuoteId": "string",
- "shippingServiceCode": "string",
- "shippingServiceName": "string",
- "totalShippingCost": {
- "currency": "string",
- "value": "string"
}
}, - "returnTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipFrom": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}, - "shipmentId": "string",
- "shipmentTrackingNumber": "string",
- "shipTo": {
- "companyName": "string",
- "contactAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "countryCode": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "fullName": "string",
- "primaryPhone": {
- "phoneNumber": "string"
}
}
}