Basic Usage
Rate Limit
Smake Production Preparation API - Rate Limit
The number of requests that can be made through the API is limited to 300 requests per minute, shared by all API tokens of your platform.
The rate limiting information is contained within the response headers of each request.
If X-RateLimit-Remaining reaches 0, subsequent requests receive a 429 error code until the
time given in Retry-After has passed.
Headers
| Header Name | Description |
|---|---|
| X-RateLimit-Limit | The number of requests that can be made per minute. |
| X-RateLimit-Remaining | The number of requests that remain before you hit your request limit. |
| Retry-After | Only on 429: the number of seconds until you can make requests again. |
| X-RateLimit-Reset | Only on 429: the time when you can make requests again, in UTC epoch seconds. |
Example
HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 0
Retry-After: 42
X-RateLimit-Reset: 1790949642
{
"message": "Too Many Attempts."
}HTTP Status
Smake Production Preparation API - HTTP Status
Show a preparation order GET
Returns the preparation order with the given `preparationOrderId` and its items while it awaits the approval (`released`). While the approval round is open, `rejection_comment` holds the change request of a rejected item.