Get shipping label

Market availability: CL

The Walmart Marketplace Get shipping label API helps sellers retrieve shipping label information on orders using the tracking number.


Endpoint

GET https\://marketplace.walmartapis.com/v3/orders/label/\{trackingNumber\}

Function

Use this API to:

  • Retrieve shipping label information on an order.
  • Identify a shipping label with the tracking number.
  • Access shipping label information on a returned order.
  • Provide the bulk retrieval of shipping labels in the seller’s order management and fulfillment system.

Request sample

curl --request GET \ --url https://marketplace.walmartapis.com/v3/orders/label/trackingNumber \ --header 'WM_GLOBAL_VERSION: 3.1' \ --header 'WM_MARKET: us' \ --header 'accept: application/json'

Modify your code

1. Replace the tracking number

Replace the trackingNumber parameter in the endpoint with the tracking number from the shipping label.

Example:

https://marketplace.walmartapis.com/v3/orders/label/123456789012

2. Specify the Walmart Marketplace

Example:

--header 'WM_MARKET: us'

3. Include the authentication credentials

Ensure the request includes the Walmart Marketplace authentication headers and a valid access token.


Response samples

200

[ "string"
]

application/json

400

{ "errors": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "description": "Invalid request content.", "info": "Request content is not valid.", "severity": "ERROR", "category": "DATA" } ]
}

401

{ "errors": [ { "code": "UNAUTHORIZED.GMP_ORDER_API", "description": "Unauthorized request.", "info": "Authentication failed. Verify your credentials.", "severity": "ERROR", "category": "APPLICATION" } ]
}

403

{ "errors": [ { "code": "FORBIDDEN.GMP_ORDER_API", "description": "Access denied.", "info": "You do not have permission to perform this action.", "severity": "ERROR", "category": "APPLICATION" } ]
}

404

{ "errors": [ { "code": "NOT_FOUND.GMP_ORDER_API", "description": "Resource not found.", "info": "The requested purchase order was not found.", "severity": "ERROR", "category": "DATA" } ]
}

429

{ "code": "REQUEST_THRESHOLD_VIOLATED", "description": "Too many requests in a given amount of time.", "info": "You have exceeded the rate limit for this API. Retry after the time indicated in the Retry-After header.", "severity": "ERROR", "category": "SYSTEM", "causes": [], "errorIdentifiers": {}, "field": "RateLimitExceeded"
}

500

{ "errors": [ { "code": "INTERNAL_SERVER_ERROR.GMP_ORDER_API", "description": "An internal server error occurred.", "info": "Retry the request. If the issue persists, contact support.", "severity": "ERROR", "category": "SYSTEM" } ]
}

Result

A successful request will return an HTTP 200 response code and the shipping label data associated with the specified tracking number.


Next steps

  • After successfully retrieving the shipping label, verify it corresponds to the intended shipment and tracking number.
  • Integrate label retrieval into your order management system to support shipment processing and maintain accurate shipping records.
  • For unsuccessful requests, review the HTTP status code and error response, correct any invalid tracking numbers or authentication issues, and retry as appropriate.

Did this page help you?