Skip to main content
PATCH
/
stores
/
{storeId}
/
cases
/
{caseId}
Update case priority or status
curl --request PATCH \
  --url https://api.pandabase.io/v2/core/stores/{storeId}/cases/{caseId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "priority": "LOW",
  "status": "AWAITING_CUSTOMER"
}
'
{
  "ok": true,
  "data": {
    "id": "<string>",
    "subject": "<string>",
    "status": "OPEN",
    "priority": "LOW",
    "orderId": "<string>",
    "customerId": "<string>",
    "lastMessageAt": "2023-11-07T05:31:56Z",
    "lastMessageBy": "CUSTOMER",
    "unreadCount": 123,
    "escalated": true,
    "closedAt": "2023-11-07T05:31:56Z",
    "closedBy": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "customer": {
      "id": "<string>",
      "email": "<string>",
      "firstName": "<string>",
      "lastName": "<string>"
    },
    "order": {
      "id": "<string>",
      "orderNumber": "<string>",
      "amount": 123,
      "currency": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pandabase.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Store API token. Use the sk_ prefixed secret key as the Bearer token.

Path Parameters

storeId
string
required

Store ID (shp_ prefix)

Required string length: 12 - 48
caseId
string
required

Case ID (cs_ prefix)

Required string length: 12 - 48

Body

application/json

At least one field is required.

priority
enum<string>
Available options:
LOW,
NORMAL,
HIGH,
URGENT
status
enum<string>

Allowed values via PATCH. AWAITING_MERCHANT is set by the system (e.g. when the customer replies) and cannot be set directly.

Available options:
AWAITING_CUSTOMER,
OPEN,
CLOSED

Response

Updated case

ok
boolean
required
data
object
required

A customer support case.