A case is a help request between a signed-in shopper and the store: it has a number in the store (reference, such as C-1042), a status and messages. The shopper opens one about an order ("Get help with this order") or not, writes in it, and reads the store's answers. The same cases reach the store's Inbox, and the store's emails about them quote the number.
Who the shopper is#
Cases belong to the signed-in customer of the shopper session: the storefront's own cookie on the store's pages, or a headless site's signed-in shopper session (Tringify-Shop-Session, with a storefront or server key of the headless storefront that started it; see Customer accounts). A guest gets 401 STOREFRONT_CUST_SIGN_IN_REQUIRED. A shopper sees only their own cases in this store; another store's or another customer's case number answers 404 SHOP_API_NOT_FOUND. Writes take Content-Type: application/json only, and with the cookie only from the store's own pages.
Endpoints#
Request |
Does |
|---|---|
|
The shopper's cases, 20 a page, most recently updated first: |
|
One case ( |
|
Body |
|
Body |
Statuses#
Status |
Means |
|---|---|
|
The store is on it. |
|
The store answered and waits for the shopper. Seven days without a reply solve it. |
|
Closed. A new message from the shopper opens it again. |
Statuses are values; word them in your own translations. Themes get the same cases in customer.cases and customer.case on the account page (/account/cases and /account/cases/{number}) and post replies to customer.case.reply_url.