REST API

Operations

List and poll the status of asynchronous event create, update, delete, archive, and refund operations and their phases.

When you create, update, sync, delete, archive, refund or retime an event, the API responds immediately and does the follow-up work asynchronously: recurrence fan-out, ticket structure setup, and (for Shopify-installed companies) Shopify product mirroring. An operation reports the status of that work.

Each of those requests returns the operation id in the X-Event-Operation-ID response header. Delete (DELETE /events/{id}), archive (PATCH /events/{id}/archive) and retime (PATCH /events/{id}/retime) also return the operation as the response body. On a session of a parent event, or a date of a recurring series, create, update, delete and archive start no operation: they return the event, with no X-Event-Operation-ID header. If you no longer have an id, list the event’s operations. If your integration needs to wait for the work to finish before going on (for example, a bulk import that creates an event and then immediately imports tickets), poll the operation until it reaches a terminal status (completed or failed).

The operation object

Fields tagged default are always returned, unless ?fields= names a subset. Fields tagged include are returned only when named in ?include=.

A single-operation response (Get operation, and the operation returned by delete, archive and retime) also returns phases when no include is passed. Passing an include that doesn’t name phases leaves it out.

Field Type Description
id default integer The operation ID. Matches the X-Event-Operation-ID header from the request that started it.
event_id default integer The event the operation acts on.
status default string pending, running, completed or failed. Poll until completed or failed. See Status.
progress default object / null { percent, completed, total }, or null when there is no count. See Progress.
error default object / null null unless the operation failed; then { code, message, phase }. See Errors.
created_at default datetime When the operation was started.
updated_at default datetime When the operation was last updated, such as a status change. Progress counts can move without changing it.
action default string save (create, update, sync, retime, or a change to the venue’s time zone), delete, archive or refund.
phases include array The phase nodes that do the work. Empty ([]) for refund. See Phases.

A save, delete or archive operation is an aggregate. It does no work itself; it owns a set of phases that do the work, and its own status rolls theirs up. A refund operation is a single leaf with no phases.

This operation was fetched with GET /events/71390/operations/4291 while a Shopify save was still running. The tickets phase is completed, so the event’s tickets and products already exist. See Detecting partial readiness.

Sample operation

{
  "id": 4291,
  "event_id": 71390,
  "status": "running",
  "progress": { "percent": 50, "completed": 3, "total": 6 },
  "error": null,
  "created_at": "2026-05-18T11:00:00.000000Z",
  "updated_at": "2026-05-18T11:00:05.000000Z",
  "action": "save",
  "phases": [
    { "id": 4292, "status": "completed", "progress": { "percent": 100, "completed": 8, "total": 8 }, "error": null, "name": "tickets" },
    { "id": 4293, "status": "running", "progress": { "percent": 33, "completed": 1, "total": 3 }, "error": null, "name": "catalog" },
    { "id": 4294, "status": "completed", "progress": { "percent": 100, "completed": 3, "total": 3 }, "error": null, "name": "inventory" },
    { "id": 4295, "status": "running", "progress": { "percent": 50, "completed": 2, "total": 4 }, "error": null, "name": "metafields" },
    { "id": 4296, "status": "completed", "progress": { "percent": 100, "completed": 1, "total": 1 }, "error": null, "name": "delivery" },
    { "id": 4297, "status": "pending", "progress": null, "error": null, "name": "publish" }
  ]
}

Status

Status Terminal? Meaning
pending no Planned but not started: queued, or waiting on a phase it depends on.
running no In progress.
completed yes Finished successfully. On an aggregate, every fatal phase completed; a non-fatal phase may still have failed.
failed yes Finished unsuccessfully. error carries the cause. On an aggregate, a fatal phase failed.

Terminal statuses save goes pending → running → completed or failed. delete and archive are already running when they are returned. refund goes from pending straight to completed or failed, and never reports running. Treat only completed and failed as terminal.

action Status path phases
save pending → running → completed / failed Varies; see Which phases appear.
delete running → completed / failed tickets, plus catalog on Shopify
archive running → completed / failed tickets, plus catalog on Shopify
refund pending → completed / failed []

Progress

progress is { percent, completed, total } or null.

  • On an aggregate (save, delete, archive) it counts phases: completed is the number of phases that are terminal and total is the number planned. It reaches 100% once every phase is terminal, even if a non-fatal phase failed. It is null until phases are planned.
  • On a phase or a refund it counts that node’s own work: the three bulk steps of catalog under save, and background jobs for tickets with Shopify, inventory, metafields, delivery, catalog under delete and archive, and refund. It is null for schedule, publish, tickets without Shopify or under delete and archive, and any phase that hasn’t started.
  • Background job counts are kept for about a day after the work finishes. After that the node’s progress is null, and its status stays final.

Treat progress as nullable everywhere, and use status, not progress, to decide whether a node is done.

Phases

phases lists the work the aggregate planned. Their order is not significant and dependencies between them are not exposed, so track each phase by its status.

Field Description
id The phase ID. It is not an operation ID: Get operation returns 404 for it.
status pending, running, completed or failed.
progress { percent, completed, total }, or null. See Progress.
error null, or { code, message } when this phase failed, plus user_errors when there are details. See Errors.
name The subsystem the phase works on. See the table below.

Phase nodes have no event_id, timestamps or nested phases.

Stable The phase name values and the operation action values are a stable enum. New names may be added as the pipeline grows, but existing names will not change meaning. (The error.code values, by contrast, are an open set; see Errors.)

A phase’s name is the subsystem it works on. The operation’s action decides whether the phase builds or tears down that subsystem: save builds and syncs it, delete and archive tear it down. There is no per-phase action field. So under a save, tickets builds the ticket and product structure; under a delete it removes it.

name Subsystem Fatal to the operation?
schedule The dates of a recurring event. yes
tickets The local ticket and registration structure, and the Shopify products when connected. Under delete, discards the event and its products; under archive, archives the event and sets its Shopify products to archived. yes
catalog The event’s catalog metaobjects in Shopify. Built under save; removed under delete and archive. save: yes · delete, archive: no
inventory Shopify inventory levels, reconciled against ticket availability. yes
metafields Product and variant metafields in Shopify. no
delivery The delivery profile for the Shopify products. no
publish Publishing the products to the shop’s sales channels, after catalog and inventory. yes

A non-fatal phase’s failure stays visible in phases but doesn’t fail the operation. metafields and delivery are non-fatal because the products are already built and stocked by the time they run. To check that every step succeeded, read each phase’s status, not just the aggregate’s.

A save that completed with a non-fatal phase failure

{
  "id": 4291,
  "event_id": 71390,
  "status": "completed",
  "progress": { "percent": 100, "completed": 6, "total": 6 },
  "error": null,
  "created_at": "2026-05-18T11:00:00.000000Z",
  "updated_at": "2026-05-18T11:00:11.000000Z",
  "action": "save",
  "phases": [
    { "id": 4292, "status": "completed", "progress": { "percent": 100, "completed": 8, "total": 8 }, "error": null, "name": "tickets" },
    { "id": 4293, "status": "completed", "progress": { "percent": 100, "completed": 3, "total": 3 }, "error": null, "name": "catalog" },
    { "id": 4294, "status": "completed", "progress": { "percent": 100, "completed": 3, "total": 3 }, "error": null, "name": "inventory" },
    { "id": 4295, "status": "completed", "progress": { "percent": 100, "completed": 1, "total": 1 }, "error": null, "name": "delivery" },
    { "id": 4296, "status": "completed", "progress": null, "error": null, "name": "publish" },
    { "id": 4297, "status": "failed", "progress": null, "error": { "code": "METAFIELDS_RAISED", "message": null }, "name": "metafields" }
  ]
}

Which phases appear

Only the phases that apply to the company and the event are planned; the others never appear.

Company / event save phases
Without Shopify, single date tickets
Without Shopify, recurring schedule, tickets
Shopify, single date tickets, catalog, inventory, metafields, delivery, publish
Shopify, recurring schedule, then the single-date set
  • inventory is left out when the shop is set not to manage inventory.
  • A save started by a change to a venue’s time zone plans only catalog and metafields.
  • delete and archive plan tickets, plus catalog for a Shopify-installed company.
  • refund plans no phases.

The pipeline runs the same way with or without Shopify. Every company gets tickets (and schedule for recurring events); the Shopify phases are planned only for Shopify-installed companies.

Detecting partial readiness

The tickets and products can be used before a save finishes. Once the tickets phase is completed while the operation is still running, the local ticket structure and (with Shopify) the products exist and can be edited; the remaining phases are Shopify-side finishing work. If your integration only needs the tickets or products to exist, you can go on at that point.

Errors

error is null until a node fails, then { code, message }. code is a stable, machine-readable string. message is human-readable text that may change without notice, and is often null. Always switch on code, not message.

  • On an aggregate, error is the root-cause phase’s code and message, and phase names that phase (one of the phases[].name). phase is absent when the operation itself failed rather than one of its phases, as on a refund.
  • On a phase, user_errors is added when the failure has details: an array of { code, message }, such as the reasons Shopify rejected a product. It is not copied to the aggregate.
  • Phases that couldn’t run because a phase they depend on failed are failed with code UPSTREAM_FAILED.

A save whose inventory phase failed

{
  "id": 4291,
  "event_id": 71390,
  "status": "failed",
  "progress": { "percent": 100, "completed": 6, "total": 6 },
  "error": { "code": "INVENTORY_RECONCILE_RAISED", "message": null, "phase": "inventory" },
  "created_at": "2026-05-18T11:00:00.000000Z",
  "updated_at": "2026-05-18T11:00:08.000000Z",
  "action": "save",
  "phases": [
    { "id": 4292, "status": "completed", "progress": { "percent": 100, "completed": 8, "total": 8 }, "error": null, "name": "tickets" },
    { "id": 4293, "status": "completed", "progress": { "percent": 100, "completed": 3, "total": 3 }, "error": null, "name": "catalog" },
    { "id": 4294, "status": "completed", "progress": { "percent": 100, "completed": 4, "total": 4 }, "error": null, "name": "metafields" },
    { "id": 4295, "status": "completed", "progress": { "percent": 100, "completed": 1, "total": 1 }, "error": null, "name": "delivery" },
    { "id": 4296, "status": "failed", "progress": { "percent": 100, "completed": 3, "total": 3 }, "error": { "code": "INVENTORY_RECONCILE_RAISED", "message": null }, "name": "inventory" },
    { "id": 4297, "status": "failed", "progress": null, "error": { "code": "UPSTREAM_FAILED", "message": null }, "name": "publish" }
  ]
}

publish depends on inventory, so it never ran.

A failed schedule phase with user_errors

{
  "id": 4311,
  "status": "failed",
  "progress": null,
  "error": {
    "code": "SESSION_BUILD_RAISED",
    "message": "We couldn't update your slot times because this event's sessions no longer match its schedule. Nothing was changed. Please contact support so we can sort out the schedule for you.",
    "user_errors": [
      { "code": "retime_convergence", "message": "We couldn't update your slot times because this event's sessions no longer match its schedule. Nothing was changed. Please contact support so we can sort out the schedule for you." }
    ]
  },
  "name": "schedule"
}

Preview The error.code set is open and additive. New, more specific codes will be added as failure modes become worth telling apart; existing codes will not change meaning. Match coarsely and treat any code you don’t recognize as a generic failure.

Code Meaning
FAILED The work failed after its retries. message, when present, has the detail.
UPSTREAM_FAILED A phase this one depends on failed, so this phase never ran. Look at the other phases for the cause.
STRANDED The work stopped making progress, so it was failed to give the operation a terminal status. See Polling guidance.
PRODUCT_SET_USER_ERRORS Shopify rejected one or more product writes in tickets. user_errors lists the reasons.
*_RAISED A phase raised while running, such as PHASE_START_RAISED, SESSION_BUILD_RAISED, INVENTORY_RECONCILE_RAISED, METAFIELDS_RAISED or DELIVERY_RAISED.
catalog codes Failures of the catalog bulk steps, such as BULK_OP_FAILED, METAFIELDS_ROW_ERRORS, RESULT_FILE_ROW_ERRORS and POLL_EXHAUSTED.

Polling guidance

  • Start polling after a short delay. A single-date event without Shopify usually finishes in 1 to 5 seconds; recurring events with many dates, and Shopify catalog mirroring, take longer.
  • Back off exponentially: 1s, 2s, 4s, 8s, capped at 15s.
  • Stop polling only when status is completed or failed. pending and running are both non-terminal. Work that stops making progress is failed with STRANDED after about two hours, or up to a day while its jobs are still retrying, so set your own timeout if you need a shorter one.
  • A 404 Not Found means the operation id doesn’t exist, doesn’t belong to the event in the URL, or is a phase id rather than an operation id. Poll with the id from X-Event-Operation-ID, not a phases[].id.
  • Operations are kept, so you can fetch the final status long after completion. If you lose an id, find it with List operations.

List operations

GET /events/{event_id}/operations

Returns a page of the event’s operations under data, newest first. Rows carry only the default fields, plus phases when include=phases is passed. Use it to find an operation whose id you no longer have, or to check the outcome of earlier work on the event.

curl -X GET \
  'https://app.guestmanager.com/api/public/v2/events/71390/operations?page[cursor]=&filter[status]=failed' \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json'

List parameters

Parameter Type Description
page[cursor] string Opaque cursor token. Send empty for the first page. See Pagination.
page[size] integer Records per page. Default 10, maximum 100.
sort[{field}] string Sort by id, created_at or updated_at. Value is asc or desc. Without it, operations are returned newest first.
include string phases adds each operation’s phases.
filter[action] string Comma separated: save, delete, archive, refund. Any other value returns a 400.
filter[status] string Comma separated: pending, running, completed, failed. Any other value returns a 400.

The filter[id] and filter[created_at] filters described in Filtering & sorting also apply.

Sample response

{
  "data": [
    {
      "id": 4330,
      "event_id": 71390,
      "status": "failed",
      "progress": null,
      "error": { "code": "FAILED", "message": "Shopify rejected the refund." },
      "created_at": "2026-05-18T13:00:00.000000Z",
      "updated_at": "2026-05-18T13:00:04.000000Z",
      "action": "refund"
    },
    {
      "id": 4291,
      "event_id": 71390,
      "status": "completed",
      "progress": { "percent": 100, "completed": 2, "total": 2 },
      "error": null,
      "created_at": "2026-05-18T11:00:00.000000Z",
      "updated_at": "2026-05-18T11:00:11.000000Z",
      "action": "save"
    }
  ],
  "meta": {
    "count": 2,
    "page": { "size": 10, "next_cursor": null, "last": true, "first": true },
    "links": {
      "self": "https://app.guestmanager.com/api/public/v2/events/71390/operations",
      "next": null
    }
  }
}

Get operation

GET /events/{event_id}/operations/{id}

Returns an operation object, with its phases. Returns 404 when the id isn’t an operation of this event.

curl -X GET \
  https://app.guestmanager.com/api/public/v2/events/71390/operations/4291 \
  -H 'Authorization: Token abcdefg' \
  -H 'Content-Type: application/json'