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>"
}
}
}Update the priority or status of a case. At least one field must be provided.
Status transitions:
→ CLOSED from any non-closed state (records closedBy = MERCHANT).→ OPEN only from CLOSED (reopens, clears closedAt / closedBy).→ AWAITING_CUSTOMER from any non-closed state.A SYSTEM trail message is appended to the case timeline for each transition.
Errors:
400 Nothing to update — empty body400 Case is already closed400 Only closed cases can be reopened400 Cannot set status on a closed case — when transitioning to AWAITING_CUSTOMER while closedRequires CASES_WRITE scope.
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.
Store API token. Use the sk_ prefixed secret key as the Bearer token.
Store ID (shp_ prefix)
12 - 48Case ID (cs_ prefix)
12 - 48