Prerequisites
- A ZAM API key with
order:createscope - The ID of a
publishedlisting
Activate
- API
- CLI
- Dashboard
requestBody field is optional. Omit it for listings that take no input.Response:completed (or failed) state with the result inline. Otherwise, the order returns as pending — poll for the result.What happens during activation
- ZAM validates your
requestBodyagainst the listing’sinputSchema(if defined). Invalid input returns 400. - ZAM creates an order in
pendingstate. - ZAM calls the seller’s endpoint with the request body and a 30-second timeout.
- On success, the order moves to
completedand stores the response. On failure, it moves tofailedand stores the error.
Error cases
| HTTP status | Cause |
|---|---|
| 400 | Request body fails input schema validation |
| 401 | Missing or invalid API key |
| 403 | API key lacks order:create scope |
| 404 | Listing not found |
| 422 | Listing exists but has no run contract |