Skip to Content
API ReferenceTickets

Update several tickets

Close, reopen, archive, restore or mark as unread up to 50 tickets in one request.

Send one action and up to 50 ticket IDs in resources. Every ID must belong to the selected store; one unknown ID returns 404 and no ticket changes. The response has one entry per ticket, in the order you sent them.

Each ticket is changed on its own. Check result for every entry: changed, skipped when the ticket was already in the requested state, not_found, or failed with the reason in message. A failed ticket does not undo the others, so retry only that ticket.

close needs an outcome and emails each customer that their ticket was closed, at most once an hour per ticket. To close a single ticket, use Retrieve specific ticket, which also documents PATCH /v2/tickets/{ticket}.

PATCH
/v2/tickets/batch

Close, reopen, archive, restore or mark as unread up to 50 tickets in one request, and get one result per ticket in the order you sent them. Every ID must be a ticket of the selected store: one unknown ID returns 404 and changes nothing. Each ticket is then changed on its own, so one refusal does not undo the others. close needs an outcome, which is recorded on every ticket it closes, and emails each customer that the ticket was closed, at most once an hour per ticket. mark_unread marks the ticket unread for your store (read_status.store becomes false). Requires the ticket API-key ability and the ticket permission in your team role. Repeating the same request is safe: a ticket already in the requested state comes back as skipped. Send an optional Idempotency-Key with an identical body to get the original response back after a lost connection. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

Idempotency-Key?string

Reuse this key only for an identical retry. A replay returns Idempotent-Replayed: true.

Length8 <= length <= 255
X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
action*string

What to do with every listed ticket. restore takes a ticket out of the archive.

Value in"close""reopen""archive""restore""mark_unread"
outcome?string

Why the ticket was closed: refunded, refunded_partial (partly refunded), delivered, no_action, duplicate or other. Required for close and refused for every other action.

Value in"refunded""refunded_partial""delivered""no_action""duplicate""other"
resources*array<>

Between 1 and 50 different ticket IDs.

Items1 <= items <= 50

Response Body

Successful response.

application/json
  1. response
data*array<>
Example Request
curl -X PATCH 'https://sell.app/api/v2/tickets/batch' \  -H 'Idempotency-Key: project-library-2026-09-04' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "action": "close",  "outcome": "delivered",  "resources": [    311,    313  ]}'
{  "data": [    {      "ticket_id": 311,      "result": "changed",      "message": null,      "ticket": {        "id": 311,        "title": "Cannot open the design kit",        "status": "CLOSED",        "customer": {          "id": 57,          "email": "jordan.patel@example.com"        },        "reference": {          "type": "product",          "id": 120        },        "store_id": 1,        "read_status": {          "customer": false,          "store": true        },        "order_id": null,        "archived": 0,        "reason": "Technical issue with product",        "message_count": 2,        "created_at": "2026-09-04T09:00:00.000000Z",        "updated_at": "2026-09-04T10:00:00.000000Z"      }    },    {      "ticket_id": 313,      "result": "skipped",      "message": "It changed since the change was prepared, so it was left as it is.",      "ticket": {        "id": 313,        "title": "Need a copy of my receipt",        "status": "CLOSED",        "customer": {          "id": 63,          "email": "sofia.rivera@example.com"        },        "reference": {          "type": null,          "id": null        },        "store_id": 1,        "read_status": {          "customer": true,          "store": true        },        "order_id": null,        "archived": 0,        "reason": "Payment / billing issue",        "message_count": 4,        "created_at": "2026-09-04T09:00:00.000000Z",        "updated_at": "2026-09-04T09:20:00.000000Z"      }    }  ]}