Skip to main content

GET/order/{orderId}/shipping_fulfillment/{fulfillmentId}

Use this call to retrieve the contents of a fulfillment based on its unique identifier, fulfillmentId (combined with the associated order's orderId). The fulfillmentId value was originally generated by the createShippingFulfillment call, and is returned by the getShippingFulfillments call in the members.fulfillmentId field.

Input

Resource URI

GET https://api.ebay.com/sell/fulfillment/v1/order/{orderId}/shipping_fulfillment/{fulfillmentId}

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
orderIdstringThis path parameter is used to specify the unique identifier of the order associated with the shipping fulfillment being retrieved.

Use the getOrders method to retrieve order IDs. Order ID values are also shown in My eBay/Seller Hub.

Occurrence: Required

fulfillmentIdstringThis path parameter is used to specify the unique identifier of the shipping fulfillment being retrieved.

Use the getShippingFulfillments method to retrieved fulfillment IDs.

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/api_scope/sell.fulfillment

https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly

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
fulfillmentIdstring

The unique identifier of the fulfillment; for example, 9405509699937003457459. This eBay-generated value is created with a successful createShippingFulfillment call.

Occurrence: Always

lineItemsarray of LineItemReference

This array contains a list of one or more line items (and purchased quantity) to which the fulfillment applies.

Occurrence: Always

lineItems.lineItemIdstring

This is the unique identifier of the eBay order line item that is part of the shipping fulfillment.

Line item Ids can be found in the lineItems.lineItemId field of the getOrders response.

Occurrence: Always

lineItems.quantityinteger

This is the number of lineItems associated with the trackingNumber specified by the seller. This must be a whole number greater than zero (0).

Occurrence: Always

shipmentTrackingNumberstring

The tracking number provided by the shipping carrier for the package shipped in this fulfillment. This field is returned if available.

Occurrence: Conditional

shippedDatestring

The date and time that the fulfillment package was shipped. This timestamp is in ISO 8601 format, which uses the 24-hour Universal Coordinated Time (UTC) clock. This field should only be returned if the package has been shipped.

Format: [YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z
Example: 2015-08-04T19:09:02.768Z

Occurrence: Conditional

shippingCarrierCodestring

The eBay code identifying the shipping carrier for this fulfillment. This field is returned if available.

Note: The Trading API's ShippingCarrierCodeType enumeration type contains the most current list of eBay shipping carrier codes and the countries served by each carrier. See ShippingCarrierCodeType.

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
200Success
400Bad Request
404Not Found
500Internal Server Error

Error codes

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

CodeDomainCategoryMeaning
30500API_FULFILLMENTAPPLICATIONSystem error
32100API_FULFILLMENTREQUESTInvalid order ID: {orderId}
32110API_FULFILLMENTREQUESTInvalid shipping fulfillment ID: {fulfillmentId}

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: Get a Shipping Fulfillment

This sample retrieves a particular shipping fulfillment for a seller's order corresponding to the provided order and fulfillment IDs.

Input

Use the orderid parameter and the fulfillmentid parameter to retrieve the specified shipping fulfillment associated with the specified order.

GEThttps://api.ebay.com/sell/fulfillment/v1/order/6********5!2********1/shipping_fulfillment/1********6

Output

A successful call returns one ShippingFulfillment container.

Note: Currently, eBay uses the value of the tracking number as the fulfillment ID, but don't depend on this behavior. The fulfillment ID format is subject to change in the future.

Got thoughts? Click the feedback button – your insights help us improve!