Skip to main content

GET/package/{package_id}

Important! This method is only available for Greater-China based sellers with an active eDIS account.


This method can be used to retrieve a package based on the provided package ID value.

The packageId value of the package to be retrieved must be input as a path parameter in the request. If the call is successful, information about the package is returned, such as the package's shipping information (its dimensions, weight, ship from, and ship to address) and information about the item(s) it contains.

Input

Resource URI

GET https://api.ebay.com/sell/edelivery_international_shipping/v1/package/{package_id}

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
package_idstringThis path parameter specifies the unique identifier of the package being retrieved.

This ID value is returned when creating a package through the createPackage method.

Occurrence: Required

HTTP request headers

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

All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.

OAuth scope

This request requires an access token created with the authorization code 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/scope/sell.edelivery

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

{ /* GetPackageDetailResponses */
"packageDetail" :
{ /* GetPackageDetailResponsesData */ }
}

Response fields

Output container/fieldTypeDescription
packageDetailGetPackageDetailResponsesData

This container returns the details for the specified package.

Occurrence: Always

packageDetail.agentInfoResponseAgentInfoData

This container returns EU AR agent information associated with the package.

Occurrence: Conditional

packageDetail.agentInfoResponse.agentAddressstring

The address of the EU AR agent.

Occurrence: Conditional

packageDetail.agentInfoResponse.agentNamestring

The name of the EU AR agent.

Occurrence: Conditional

packageDetail.agentInfoResponse.agentPhonestring

The phone number of the EU AR agent.

Occurrence: Conditional

packageDetail.consignPreferenceIdstring

The unique identifier of the consign address associated with the package.

Occurrence: Always

packageDetail.incotermIncotermEnum

The incoterm information associated with the package.

Supported values:

  • DDP
  • DDU

Occurrence: Conditional

packageDetail.itemsarray of ItemResponses

This array returns information about the eBay line item(s) that are included in the package.

Occurrence: Always

packageDetail.items.buyerIdstring

The buyer's eBay ID.

Occurrence: Always

packageDetail.items.buyerTaxIdstring

The buyer's tax ID.

Occurrence: Conditional

packageDetail.items.buyerTaxTypestring

The buyer's tax type.

Occurrence: Conditional

packageDetail.items.ebayCollectAndRemitTaxboolean

If returned as true, this boolean indicates that eBay will collect tax for the corresponding line item, and remit the tax to the taxing authority of the buyer's residence.

Occurrence: Conditional

packageDetail.items.ebayCollectAndRemitTaxesValuestring

The value of the collect and remit tax for the corresponding line item. This field is only returned if collect and remit tax is applied to the line item.

Occurrence: Conditional

packageDetail.items.emailstring

The buyer's eBay email address.

Occurrence: Conditional

packageDetail.items.itemTitlestring

The seller created title of the item.

Occurrence: Always

packageDetail.items.listingIdstring

The unique identifier of the eBay listing associated with the item.

Occurrence: Always

packageDetail.items.messagestring

The buyer's eBay message.

Occurrence: Conditional

packageDetail.items.orderIdstring

The unique identifier of the eBay order that the line item belongs to.

Occurrence: Always

packageDetail.items.orderLineItemstring

The unique identifier of an eBay order line item.

Occurrence: Conditional

packageDetail.items.paymentDatestring

The date and time that the payment was received by the seller. This timestamp is returned in ISO 8601 format, which uses the 24-hour Universal Coordinated Time (UTC) clock.

Occurrence: Always

packageDetail.items.payPalEmailstring

The buyer's PayPal email address.

Occurrence: Conditional

packageDetail.items.payPalMessagestring

The buyer's PayPal message

Occurrence: Conditional

packageDetail.items.postedQuantityinteger

The quantity of the line item shipped with the package.

Occurrence: Conditional

packageDetail.items.siteIdinteger

The unique identifier of the eBay site in which the order occurred.

Occurrence: Always

packageDetail.items.skuSkuRequest

This container returns SKU-related information relating to the item being shipped in the package.

Occurrence: Conditional

packageDetail.items.sku.elecQualificationIdstring

The unique identifier of the battery's electric qualification, which indicates that the battery has a certificate of approval for global shipping.

This value is returned in the getBatteryQualifications method.

Occurrence: Conditional

packageDetail.items.sku.fdcSkusarray of FDCSkuRequest

This array lists the FDC SKUs associated with the item. An FDC SKU is the SKU label in a forward deployment center.

Important! Please contact customer service before using these fields.

Occurrence: Conditional

packageDetail.items.sku.fdcSkus.quantityinteger

The quantity of the FDC SKU.

Occurrence: Conditional

packageDetail.items.sku.fdcSkus.skuIdstring

The unique identifier of the FDC SKU.

Occurrence: Conditional

packageDetail.items.sku.heightnumber

The height of the item in centimeters.

Occurrence: Conditional

packageDetail.items.sku.isLiBatteryboolean

This boolean indicates if the item contains a battery.

Occurrence: Conditional

packageDetail.items.sku.lengthnumber

The length of the item in centimeters.

Occurrence: Conditional

packageDetail.items.sku.liBatteryTypeLiBatteryTypeEnum

If the item contains a battery, this field indicates the type of battery the item contains.

Occurrence: Conditional

packageDetail.items.sku.nameEnstring

The English name of the item.

Occurrence: Conditional

packageDetail.items.sku.nameZhstring

The Chinese name of the item.

Occurrence: Conditional

packageDetail.items.sku.originstring

The country of origin of the item.

Occurrence: Conditional

packageDetail.items.sku.priceAmount

The declared price of the item.

Occurrence: Conditional

packageDetail.items.sku.price.currencyCurrencyCodeEnum

This enum value represents the type of currency being used. Both the value and currency fields are required/always returned when expressing cost.

See the CurrencyCodeEnum type for the full list of supported values.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.items.sku.price.valuestring

The monetary amount, in the currency specified by the currency field.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.items.sku.remarkstring

A remark to the seller themselves.

Occurrence: Conditional

packageDetail.items.sku.skuNumberstring

The stock keeping unit (SKU) identifier of the item.

Occurrence: Conditional

packageDetail.items.sku.tariffCodestring

The Harmonized System code for custom declaration. This value declares the category of the item..

Occurrence: Conditional

packageDetail.items.sku.weightnumber

The weight of the item in grams.

Occurrence: Conditional

packageDetail.items.sku.widthnumber

The width of the item in centimeters.

Occurrence: Conditional

packageDetail.items.soldDatestring

The date the item was sold.

Occurrence: Always

packageDetail.items.soldPriceAmount

The price for which the item was sold.

Occurrence: Always

packageDetail.items.soldPrice.currencyCurrencyCodeEnum

This enum value represents the type of currency being used. Both the value and currency fields are required/always returned when expressing cost.

See the CurrencyCodeEnum type for the full list of supported values.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.items.soldPrice.valuestring

The monetary amount, in the currency specified by the currency field.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.items.soldQuantityinteger

The quantity of the line item that was sold.

Occurrence: Always

packageDetail.items.transactionIdstring

The unique identifier of the eBay transaction.

Occurrence: Always

packageDetail.lastMileTrackingNumberstring

The last-mile tracking number of the package.

This field is only returned if the last-mile tracking number is provided by the carrier.

Occurrence: Conditional

packageDetail.packageCommentstring

The seller-defined remark to the buyer associated with the package.

Occurrence: Conditional

packageDetail.packageHeightnumber

The height of the package in centimeters.

Occurrence: Always

packageDetail.packageIdstring

The unique identifier of the package.

Occurrence: Always

packageDetail.packageLengthnumber

The length of the package in centimeters.

Occurrence: Always

packageDetail.packageStatusPackageStatusEnum

The current status of the package.

Occurrence: Always

packageDetail.packageWeightnumber

The weight of the package in grams.

Occurrence: Always

packageDetail.packageWidthnumber

The width of the package in centimeters.

Occurrence: Always

packageDetail.paymentCostAmount

The actual payment cost of the package.

Occurrence: Conditional

packageDetail.paymentCost.currencyCurrencyCodeEnum

This enum value represents the type of currency being used. Both the value and currency fields are required/always returned when expressing cost.

See the CurrencyCodeEnum type for the full list of supported values.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.paymentCost.valuestring

The monetary amount, in the currency specified by the currency field.

Both the value and currency fields are required/always returned when expressing cost.

Occurrence: Conditional

packageDetail.shipFromAddressIdstring

The unique identifier of the ship-from address associated with the package.

Occurrence: Always

packageDetail.shippingServiceIdstring

The unique identifier of the shipping service used for the package.

Occurrence: Always

packageDetail.shipToAddressShipToAddressResponsesData

This container returns information about the address the package is being shipped to.

Occurrence: Always

packageDetail.shipToAddress.citystring

The city code of the ship-to address.

See 商户API地址编码主数据 for valid city codes.

Occurrence: Always

packageDetail.shipToAddress.companystring

The name of the company associated with the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.contactstring

The name of the contact person associated with the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.countryCodestring

The two-letter country code of the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.countryNamestring

The country name of the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.districtstring

The district code of the ship-to address.

See 商户API地址编码主数据 for valid district codes.

Occurrence: Always

packageDetail.shipToAddress.phonestring

The phone number associated with the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.postcodestring

The postal code of the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.provincestring

The province code of the ship-to address.

See 商户API地址编码主数据 for valid province codes.

Occurrence: Always

packageDetail.shipToAddress.street1string

The first line of the street address of the ship-to address.

Occurrence: Always

packageDetail.shipToAddress.street2string

The second line of the street address of the ship-to address.

Occurrence: Conditional

packageDetail.shipToAddress.street3string

The third line of the street address of the ship-to address.

Occurrence: Conditional

packageDetail.specialServiceDetailSpecialServiceDetail

This container returns any special services associated with this package.

Note: This field is always returned, but will show as null or have an empty value if not defined/applicable.

Occurrence: Always

packageDetail.specialServiceDetail.insuranceFeestring

The insurance fee, if applicable, on the package.

The insurance amount and currency are consistent with the currency of the destination country

Occurrence: Conditional

packageDetail.specialServiceDetail.packagingTypestring

The package type.

Valid values:

  • PAK (limited weight ≤ 2.5KG)
  • PACKAGE (limited weight 68KG)

Occurrence: Conditional

packageDetail.specialServiceDetail.signatureTypestring

The signature type, if applicable, for the package.

Valid values:

  • ISR (Indirect Signature Required)
  • DSR (Direct Signature Required)
  • ASR (Adult Signature Required)

Occurrence: Conditional

packageDetail.specialServiceDetail.specialServiceTypesarray of string

Any special service types supported for the package.

For example, SATURDAY_DELIVERY indicates that the item is eligible for Saturday delivery.

Occurrence: Conditional

packageDetail.valueForCarriagestring

The declared value of the package.

Occurrence: Conditional

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
200OK
400Bad Request
401Unauthorized
404Not found
500Internal Server Error

Error codes

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

CodeDomainCategoryMeaning
355000API_EDISAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.
355004API_EDISREQUESTThe specified packageId {packageId} is not recognized. Please check and try again.
355400API_EDISREQUESTThe access token provided in the Authorization header is not for an eBay user account that is currently allowed to call this API. Please go to account settings to add to your account list.

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 a package

This method can be used to retrieve a package based on the provided package ID value.

Input

To use this method, the ID of the packages you wish to retrieve must be input in the package_id path parameter. No other request payload is required.

GEThttps://api.ebay.com/sell/edelivery_international_shipping/v1/package/1********6

Output

If the call is successful, detailed information about the package is returned, such as the package's shipping information (its dimensions, weight, ship from, and ship to address) and information about the item(s) it contains.