---
title: "The store’s promotions (time-bounded sales), newest first, with their ids: name, status (draft, scheduled, active, pause"
method: POST
path: "/api/v1/tools/promotion_list"
tags: ["read", "automation"]
---

# The store’s promotions (time-bounded sales), newest first, with their ids: name, status (draft, scheduled, active, pause

`POST /api/v1/tools/promotion_list`

## Request

- Base URL: `https://app.magistry.io`
- URL: `https://app.magistry.io/api/v1/tools/promotion_list`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://app.magistry.io/api/oauth/authorize`
    - Token URL: `https://app.magistry.io/api/oauth/token` scopes: `automation:read`

The store’s promotions (time-bounded sales), newest first, with their ids: name, status (draft, scheduled, active, paused, ended, archived), discount, window, and where each came from. Filter by `status`. Pages with `cursor`. Read-only.

## Request body

- object
  - `status` string[]
  - `cursor` string: The `page.next_cursor` of the previous page.
  - `limit` integer: Rows per page (default 50).

## Response `200`

Tool result

- object
  - `ok` boolean, required
  - `result` unknown, required

## Other responses

- `400`: `invalid_request` — The request is malformed or an argument is unusable. The message names which. `invalid_body` — The body is not a JSON object. `invalid_arguments` — The arguments do not match the tool's input schema. `details.issues` lists each one: the argument path, what was expected and what came. Nothing ran. `invalid_json` — The body does not parse as JSON. The message quotes the parser and names the shape that was expected. `idempotency_required` — This write tool has no keyless mode: it was added after 2026-10-27, when keys became required for new write tools, so a retry after a timeout can never be a second write. Nothing ran. `invalid_expiry` — An approval request must end: `expires_at` lies at least 5 minutes and at most 7 days after it is filed. A request with no decision by then closes as expired, which means not approved. `invalid_rule` — The rule could not bind as written: a fact or action outside the vocabulary, an operator that cannot compare that fact, or a limit with no bound. Nothing was saved. `unsupported_api_version` — The request pinned a `Magistry-Api-Version` this deployment does not serve. A pin that is not honoured is refused rather than silently answered as another version; the body lists the supported versions. `unsupported_behavior` — The request pinned a `Magistry-Behavior` version the finance API does not serve. A pin that is not honoured is refused rather than silently served as the current behaviour. `person_only_field` — The request tried to change a field only a person may change: the bank account customers pay into (`iban`, `bic`, `account_name`). `fields` names which. Nothing was written, including the other fields in the same request.
- `401`: `unauthorized` — No credential was presented, or the one presented is not valid. This deliberately does not say whether it was unknown or forged: a 401 that tells those apart is an oracle for guessing tokens. A credential that VERIFIED and is refused answers with its own code (expired, grant_revoked, app_disabled, address_not_allowed, store_not_installed, lifetime_exceeds_policy, creator_not_member). `expired` — The credential verified and its expiry has passed. `grant_revoked` — The OAuth token verified, and the merchant revoked this connection after it was issued. `store_not_installed` — The credential verified, and every store it names has uninstalled Magistry or had its data redacted. A credential that also names installed stores keeps those and only loses the gone one. `creator_not_member` — The store API key verified, and the person who created it no longer has access to its store: they were removed from the store, or from the workspace or agency that gave them access. Removal also revokes the key. `lifetime_exceeds_policy` — The API key verified, and it lives longer than its workspace allows: the workspace owner set a maximum key lifetime (30, 90 or 365 days) and this key expires later than that, or never. The key is blocked, not revoked. `app_disabled` — The OAuth token verified, and Magistry has disabled this application for every merchant. No token of the application is admitted and none is issued. `address_not_allowed` — The credential verified and carries an IP allowlist that this request did not come from. `credential_rejected` — Diagnose could not resolve the credential at all. `no_credential` — Diagnose was called with no Authorization header, so there is nothing to report on. `invalid_client` — The client authentication on this request did not verify.
- `403`: `forbidden` — The credential is valid and does not hold a scope this tool requires. `insufficient_scope` — As `forbidden`, and the body names `required_scopes`. A webhook subscription needs both `automation:write` to configure the store and the read scope for every type it filters — a webhook is a read. `entity_not_granted` — The credential holds a finance scope, and the entity's owner has not given this app those books (or has taken them back). A finance scope says what an app may do; the owner's grant says which entities. A natural person's books need the person's own explicit delegate grant. `app_not_reviewed` — Magistry has not reviewed this app for finance (F11-03). An unreviewed app reads sandbox books only, at 5% of the finance rate buckets, and writes nothing — not even a proposal. The owner's grant is kept. `feature_off` — The finance capability this operation uses (statement push, till day closes, batch proposals, the purchase register, an export format, a bookkeeping read) is switched off platform-wide, so nothing was read or written. `reason` or `feature` names which. Nothing about the books, the request or the credential is wrong. `person_step_required` — The step asked for is a person's and no app may take it: the consent at a bank (PSD2 strong customer authentication) or at Moneybird or Exact Online (OAuth sign-in), or ending a books connection, which only a new consent undoes. `url` is the Magistry page where the person does it, `poll` the request that shows when it is done. Nothing was started, ended or written. `provider_not_configured` — Magistry has not set up its application at this provider (Enable Banking, Moneybird or Exact Online) on this deployment, so the connection cannot be made by anyone yet. Nothing was started or written. `person_only_action` — The request asked for an act only a person may do: sending an invoice, an e-invoice or a payment reminder, or retrying a send. A send leaves Magistry and cannot be undone. `action` names which. Nothing was read, written or sent. `finance_feature_off` — The finance feature this operation belongs to is not switched on for the platform yet, so nothing was read. `feature` names it (`bi_feed` for the BI views, the XLSX values export and the OData feed). Nothing about the books or the credential is wrong. `human_only` — Only a person may make this change, in Magistry: loosening workspace security (`reason: security_weakening` — two-factor or SSO off, a longer or no session limit, an IP range removed or added to a list that already restricts, an email domain allowed), or leaving a workspace. `route` names the page. Nothing was changed or proposed, including the other fields of the same request. `workspace_role_required` — The person this credential acts for does not hold the workspace role the same change or view needs in the dashboard (owner or admin for the team and security, `viewAudit` for the security log). Nothing was read or proposed. `agency_suspended` — Magistry has suspended this manager account, so it reaches none of its clients. Billing stays readable. Nothing was read or proposed. `role_cannot_hold_credentials` — An app may give Magistry a mailbox password only on behalf of an owner or admin of the store; the person who granted this connection is neither. Nothing was saved.
- `404`: `not_found` — No tool of that name is exposed to this credential. Note that a tool hidden by a missing scope answers `forbidden`, not this — the two are told apart deliberately.
- `405`: `method_not_allowed` — This path does not answer this HTTP method: a tool is a POST, and a resource path answers the methods in `Allow`.
- `409`: `limit_reached` — The store already holds the most of this resource it may have (live webhook subscriptions, partner tool sources); the message states the cap. Nothing was created. `idempotency_conflict` — This idempotency key was already used with DIFFERENT arguments. Replaying it would be a second, different write under a key that promises one. `idempotency_in_flight` — A request with this key is still running. This is not an error — it is "ask again", and the response carries `Retry-After`. `idempotency_outcome_unknown` — A request with this key was claimed and never finished — the run died before its answer was recorded — and its replay window has passed. Whether it took effect is not known, so it is not run again, and waiting does not change this answer (there is no `Retry-After`). `idempotency_secret_not_replayed` — The first request with this key succeeded and answered a secret once (a new inbound-mail address token). Secrets are never stored, so a retry cannot repeat that answer, and it is not run again either. `secret_already_issued` — The first request with this idempotency key succeeded and answered a secret (an API key or token), which is shown once and never kept. A retry with the same key is not answered with it and runs nothing; the answer names the credential (`id`, `prefix`) so you can find it. `rotation_not_found` — No key with that id exists on this store, so nothing was rotated. `rotation_invalid_input` — The rotation was asked without a key, a new prefix and hash, or with an overlap outside 0 to 90 days. Nothing was rotated. `rotation_revoked` — The key is already revoked, and a revoked key is never rotated. Nothing was rotated. `rotation_already_rotated` — The key was already rotated; it has a successor and is in its overlap. Rotating it again would leave two successors. `rotation_blocked:fin_app_entity_grants` — The key holds a finance entity grant, which only its granter can give a new key, so it cannot be carried to a successor. Nothing was rotated. `rotation_blocked:fin_event_subscriptions` — The key holds a live finance event subscription, which only its granter can give a new key, so it cannot be carried to a successor. Nothing was rotated. `rotation_blocked:fin_firm_credentials` — The key holds a firm credential, which only its granter can give a new key, so it cannot be carried to a successor. Nothing was rotated. `rotation_blocked:app_review` — The successor would need an app review the key does not carry. Nothing was rotated. `details.reason` names the scope. `rotation_failed` — The rotation did not complete for a reason that is ours. It runs as one transaction: either all of it happened or none of it did. `no_policy` — The app has no grant for this field on this store. Owning a field is a separate, larger grant than a scope: the reconciler pushes what the owner declares, and nobody else may touch the field meanwhile. `held_by_other` — Another owner holds this field, named in `held_by`. A field has at most one owner, enforced by a unique index, and an app never takes a field over from a live holder. `raced` — Another owner took this field in the same instant as this declaration. The database let exactly one of the two through. `merchant_kept` — The merchant kept an outside change to this field. Once kept, the database refuses every new declaration on it unless a store rule allows declaring it again. `too_many_pending` — This app already has the maximum number of approval requests pending on this store (the body carries `pending` and `limit`). The bound keeps one app from burying the merchant's screen. `already_closed` — The approval request was decided, expired or withdrawn before this call; `status` says which. A closed request never reopens. `store_unavailable` — The store is not accepting approval requests because Magistry is not installed on it. `too_many_rules` — The store already holds the maximum number of rules. `in_flight` — The declaration is being written to the platform at this moment, so it cannot be reverted underneath that write. `revert_via_theme_rollback` — The declaration is an app's theme file change (theme_file.file_patch). It is undone by rolling back its deploy, never by reverting or releasing the declaration; nothing was changed. `overwritten_externally` — Someone other than this app changed the field on the platform after the app's value was applied, and the merchant has not yet decided whether that change stays. A revert now would overwrite it, so nothing was reverted. `statement_conflict` — The bank statement does not continue what the books already hold for this account: its opening balance differs from the last booked closing balance, it overlaps a period already pushed, or its duplicate lines do not balance. `reason` and `detail` name which, with the checkpoint it was tested against. Nothing was imported. `close_conflict` — The books cannot take this till day close: the day is already counted, the till settles through Shopify POS, the day lies before the store's settle-from date, the settlement channel is off, or the period is closed, filed or missing. `reason` names which. Nothing was booked. `invalid_state` — The record is not in a state this write can move it from (a note already resolved, a client request not yet answered), so nothing was written. `reason` is the database's own key and names the state. `sales_conflict` — The books cannot take this sales write in their current state: the period it books into is closed or filed (`fin.period_closed`), the invoice is no longer a draft, or an allocation exceeds what is open. `reason` is the SQL's own. Nothing was written. `finance_period_closed` — The write would land in a closed period of the books, so nothing was written. `reason` is `fin.period_closed`. An app links and unlinks documents only in open periods (finance_documents_write); a person may still attach evidence there in Books. `finance_proposal_refused` — The books refused the proposal in their current state: the entity's owner has not switched app proposals on (Books → Assistant), or the period it would land in is closed. Nothing was recorded and nothing was posted. `reason` names which. `period_closed` — The write would change a period that is closed (or filed): its entries keep what they say, and nothing is proposed into it. Nothing was written. `reason` is the books' own code (`fin.period_closed`, `fin.period_filed`, `fin.no_period` — a date with no opened period — or `fin.proposal_period_closed`). `time_import_not_connected` — Magistry holds no credential for the hours provider named in `source`, so nothing was read from it and nothing was written. A caller never sends the provider credential; Magistry holds it. `export_not_ready` — The export job has not produced its file (yet): `status` in the body says whether it is still `queued`/`running` or `failed`, with the failure's own code. `data_source_not_ours` — Merchant Center serves this market from another app's data source, not from Magistry, so nothing was pushed or switched on. `details` names that source (data_source_id, display_name, feed_label, country) and when it was read. No job was started. `data_source_missing` — The Merchant Center data source this market writes into no longer exists or is no longer a primary source, so nothing was pushed. No job was started. `no_workspace` — The store belongs to no workspace, so it has no workspace members, invitations, roles, security or security log. Its own members are read with member_list and changed with store_role_set / store_role_remove. `not_agency` — The store's workspace is a standard workspace, not a manager account, so it has no client book, credit pool or agency labels. Nothing was read or proposed.
- `410`: `finance_cursor_gone` — The change-feed cursor is older than the feed keeps (guarantees.finance_change_feed_retention_days in /api/v1/changelog.json) and events after it have been removed. The body carries `oldest_cursor`. `export_expired` — The export's file was downloadable until `expires_at` and is no longer kept.
- `413`: `payload_too_large` — The body exceeds the endpoint’s size bound. `upload_too_large` — The file is larger than its purpose allows (25 MB for images, audio and attachments, 200 MB for video). A URL fetch stops at the first byte past the cap and keeps nothing; a stored file over it is deleted. Nothing was created. `export_too_large` — The view holds more rows than one workbook export carries, so no file was produced — never a file cut short. The body carries `cap`, `view` and, when known, `row_count`.
- `415`: `upload_type_refused` — The bytes are not a type the purpose accepts. The type is read from the file itself, never from the declared mime or the file name, and a file whose first bytes carry markup (a PNG header followed by a script) is no type at all. The stored copy was deleted.
- `422`: `tool_refused` — The tool ran its own checks and refused, or the write it attempted failed. `details` is the tool's own answer, word for word: its `error` says what was wrong and its `retryable`, when present, whether the identical call can succeed later. `upload_url_refused` — The URL could not be fetched as given: not https on port 443, a name that resolves to a private or reserved address, credentials in the URL, a redirect to any of those, a status other than 200, or a server slower than the purpose allows. The operation's error names which (`scheme_refused`, `address_refused`, `fetch_too_slow`, …). `not_supported` — The books do not support what was asked for this entity: the VAT preview and the other tax views are prepared for Dutch entities only, and a year whose rules are not in the tax pack yet cannot be prepared. Nothing was prepared.
- `429`: `rate_limited` — This credential exceeded its per-minute limit. The body carries the limit and the count, and the response carries `Retry-After` and the `RateLimit-*` headers.
- `500`: `simulation_unverified` — The simulation could not prove that its transaction was aborted, so no verdict is given: an answer from a run that may have kept something would read as a clean one. Reported on our side. `server_error` — Something on our side failed. The request may or may not have taken effect.
- `502`: `sandbox_failed` — Creating or seeding the sandbox failed. Provisioning is one transaction, so nothing was created and the key shown to nobody was never stored. `time_import_provider_refused` — The hours provider named in `source` refused or failed the read, so nothing was written. A re-import adds nothing twice, so a retry is safe.
- `503`: `verification_unavailable` — The credential verified, and a live check on it (revocation, the granted stores, an address restriction) could not be read because of a temporary problem on Magistry's side. It says nothing about the credential, which is still valid. `idempotency_unavailable` — The idempotency claim could not be taken, so the write was NOT attempted. This fails closed on purpose: running an unguarded write because the guard was unreadable is how a customer gets refunded twice. `approvals_unavailable` — Approval requests are not enabled on this server yet. Nothing was written. `receipts_unavailable` — Receipts are not enabled on this server yet. Nothing was exported. `policies_unavailable` — Store rules are not enabled on this server yet. Nothing was read or written. `sandbox_unavailable` — Developer sandboxes are not open: the database fence that keeps a sandbox key on demo data is not in place, or the provisioning worker is not configured. Nothing was created. `unavailable` — A read could not be served just now. Nothing was written or exported. `overwrites_unreadable` — We could not confirm that nobody else has changed this field since it was applied, and a revert that cannot check could overwrite a merchant's change. Nothing was reverted. `rls_scoped_execution_unavailable` — This deployment is not currently running the row-level-scoped execution mode the headless surface requires, so it refuses rather than executing with wider reach than the grant. `finance_grants_unavailable` — The entities this app may read could not be established for this request, so nothing was read — an unreadable grant is never treated as a wider one, nor as "no entities". `finance_unavailable` — The books could not be read or a figure could not be computed from them just now, so nothing was returned — never a partial list or a zero that would read as the ledger. `provider_unreachable` — The bank, payment or bookkeeping provider behind a books connection did not answer just now, so nothing was stored or started. `reason` is the provider check's own key. Nothing about the request or the secret is wrong. `export_unavailable` — The export job could not be started, read or served just now — including a stored file whose bytes do not match the SHA-256 the job recorded, which is never sent. Nothing was started or sent. `ownership_unreadable` — Merchant Center's data sources could not be read completely, so who owns this market is unknown and nothing was pushed or switched on. An unread owner is never treated as permission. No job was started. `corpus_unavailable` — The corpus this endpoint reads could not be loaded.

## Changes

- **2026-12-05** `7dc0cc568fb7`: 13 warning, 1 info
  - added the new `method_not_allowed` enum value to the `error` response property for the response status `400`
  - added the new `method_not_allowed` enum value to the `error` response property for the response status `401`
  - added the new `method_not_allowed` enum value to the `error` response property for the response status `403`
  - added the new `method_not_allowed` enum value to the `error` response property for the response status `404`
  - …10 more
- **2026-12-05** `6527c2e5a440`: 13 warning
  - added the new `creator_not_member` enum value to the `error` response property for the response status `400`
  - added the new `creator_not_member` enum value to the `error` response property for the response status `401`
  - added the new `creator_not_member` enum value to the `error` response property for the response status `403`
  - added the new `creator_not_member` enum value to the `error` response property for the response status `404`
  - …9 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/magistry/apis/magistry-api/changes/api/v1/tools/promotion_list/post.md)

---

[API](https://skmtc.dev/magistry/apis/magistry-api.md) - [All operations](https://skmtc.dev/magistry/apis/magistry-api/llms.txt) - [OpenAPI document](https://skmtc.dev/magistry/apis/magistry-api/revisions/1c373c0911ac?raw)
