Zalando does not publish official REST API guidelines for external developers. Its public APIs, such as those for the Zalando Fashion API, follow general industry standards but do not include a dedicated style guide or internal documentation made publicly available. If you are building an API for Zalando integration, you should follow widely accepted REST best practices and adapt them to Zalando’s documented API endpoints.
Public APIs Zalando Offers
Zalando provides a limited set of public APIs, primarily through its Zalando Fashion API. This API allows partners to retrieve product data, including images, sizes, prices, and availability, for integration into websites or apps. It uses standard HTTP methods (GET, POST, PUT, DELETE), returns JSON-formatted responses, and requires authentication via OAuth 2.0. The API documentation is hosted at developer.zalando.com and includes endpoint examples, request headers, and error codes. You must register for a developer account and obtain API keys before making requests.
Authentication Requirements
All calls to Zalando’s public APIs require a valid OAuth 2.0 access token. You obtain this token by sending a POST request to the /oauth/token endpoint with your client ID and client secret. The token expires after a set period (typically 3600 seconds), so your integration must refresh it using the refresh token provided. Headers must include Authorization: Bearer <access_token> and Accept: application/json. Requests without valid authentication return a 401 Unauthorized status with an error message in JSON format.
REST Design Patterns Used
Zalando’s APIs follow common REST conventions. Endpoints are noun-based (e.g., /products/{sku}, /collections/{collection_id}/items), and versioning is handled via URL path or header (e.g., /v1/products). Filtering, sorting, and pagination are supported through query parameters: ?page=2&size=50&sort=price,asc. Responses include standard HTTP status codes: 200 for success, 201 for resource creation, 400 for bad requests, 401 for unauthorized, 403 for forbidden, 404 for not found, and 429 for rate limiting. Pagination uses page, size, and total_pages fields in the response body.
Rate Limiting and Quotas
Rate limits are enforced per API key and vary by endpoint. For the Fashion API, typical limits are 100–200 requests per minute for authenticated users. Exceeding this returns a 429 status with a Retry-After header indicating seconds to wait before retrying. Long-running integrations should implement exponential backoff: wait 1 second after the first failure, 2 seconds after the second, 4 seconds after the third, and so on, up to a maximum of 60 seconds. Most integrations do not hit these limits unless processing high-volume data.
What You Need to Start
To begin using Zalando’s APIs, you must first sign up at developer.zalando.com and create a project. During setup, you receive a client ID and client secret. Store these securely—never in client-side code or public repositories. Use the credentials to request an access token. Then, review the endpoint documentation for your target resource (e.g., products, categories, or collections). Test with the sandbox environment first; it mirrors production behavior but uses dummy data and relaxed rate limits. Once tests pass, switch to production. All changes to your integration should go through testing before deployment.
Common Integration Mistakes
A frequent error is assuming Zalando provides a full CRUD API for order or user management. In fact, the public API is read-only for product and catalog data; order processing, shipping, and returns must be handled through Zalando’s partner portals or separate contractual integrations. Another mistake is ignoring pagination: fetching all products in one request fails due to size limits. Instead, use ?page=0&size=25 and loop through pages until total_pages is reached. Also, some developers forget to set the Accept-Language header, which affects localized fields like product names and descriptions.
Working Example with Real Values
Suppose you want to retrieve the first 20 clothing items in the “summer-dresses” collection. You send a GET request to:
https://api.zalando.com/fashion/v1/collections/summer-dresses/items?page=0&size=20&sort=price,asc
Include headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.x...
Accept: application/json
Accept-Language: en-GB
The response body includes:
{
"content": [
{
"sku": "Z00123456",
"name": "Cotton Midi Dress",
"price": {
"value": 39.99,
"currency": "EUR"
},
"availability": {
"status": "IN_STOCK",
"quantity": 12
}
}
],
"page": 0,
"size": 20,
"total_pages": 5,
"total_elements": 100
}
This confirms 100 items exist, 20 per page, 5 pages total. You would loop through pages 0 to 4 to retrieve all items. If any item’s price changes, your system should compare new values against stored data and update accordingly.
What to Do If You Hit an Error
Check the HTTP status code and error object in the response. For example, a 400 Bad Request includes:
{
"error": "invalid_request",
"error_description": "Missing required parameter: page"
}
Fix the missing parameter and retry. A 403 Forbidden means your token lacks scope for that endpoint—verify your OAuth scopes during token request. A 5xx error means a server-side issue; wait at least 30 seconds before retrying. Keep a log of all requests and responses for debugging. If an issue persists, contact Zalando’s developer support via their portal using your project ID.
Security and Compliance
Never expose client secrets in frontend code or logs. Use environment variables or secure vaults for storage. Store access tokens in memory only when possible; avoid saving them to disk. All API traffic must use HTTPS. Zalando requires GDPR-compliant handling of any user data, even if indirectly processed. If your integration caches product data, ensure you check for updates using the last_modified timestamp in responses and refresh caches within 24 hours. Do not scrape Zalando’s website; always use official APIs to avoid IP blocking.
When to Use Webhooks
Zalando’s public API does not currently support webhooks for real-time updates. If you need push notifications for price or stock changes, you must poll endpoints at regular intervals. For high-frequency updates, increase polling only up to the rate limit (e.g., every 5 minutes for product data), not more. Some enterprise partners with direct contracts receive webhook access, but this is not available for standard developer accounts.
Common Questions
Zalando API for Third-Party Sellers
Sellers on Zalando use a separate integration method called Zalando Partner Program APIs, which are not publicly documented and require approval through Zalando’s seller onboarding process. These APIs support order management, inventory sync, and shipping updates, but access is restricted to approved partners. If you are a seller, contact your Zalando account manager for details.
Testing Without an API Key
Some endpoints in the sandbox environment allow unauthenticated requests for basic discovery, like GET /v1/products without a token. However, most operations require valid credentials. The sandbox uses fixed dummy data and does not reflect live inventory. Always verify behavior in production with a test product before scaling.
API Changes and Deprecation
Zalando typically provides 90 days’ notice before deprecating an endpoint or changing a response format. Deprecation announcements appear in the developer portal’s changelog and email notifications for registered developers. Check the Deprecation and Sunset headers in responses to confirm if an endpoint is outdated. Update your code before the sunset date to avoid failures.
Internationalization and Localization
Use the Accept-Language header to control language: en-GB, de-DE, fr-FR, etc. Responses include localized product names, descriptions, and price formatting based on region. Currency is always returned in ISO 4217 format (e.g., EUR, GBP) and does not change with language. If you omit the header, English (UK) is used by default.