Get Case
curl --request GET \
--url https://api.zinc.com/cases/{case_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.zinc.com/cases/{case_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.zinc.com/cases/{case_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zinc.com/cases/{case_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zinc.com/cases/{case_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zinc.com/cases/{case_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/cases/{case_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "not_received",
"status": "open",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"return_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credited_amount": 0,
"opened_by_name": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"messages": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Cases
Get Case
Retrieve a Zinc support case with its full message thread and attachments.
GET
/
cases
/
{case_id}
Get Case
curl --request GET \
--url https://api.zinc.com/cases/{case_id} \
--header 'Authorization: <api-key>'import requests
url = "https://api.zinc.com/cases/{case_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.zinc.com/cases/{case_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zinc.com/cases/{case_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zinc.com/cases/{case_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zinc.com/cases/{case_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zinc.com/cases/{case_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "not_received",
"status": "open",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"return_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credited_amount": 0,
"opened_by_name": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"messages": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Retrieve a support case with its whole thread, oldest message first. Any teammate who can see the order can read the case. A case that doesn’t exist or belongs to another team returns
Ordinary back-and-forth doesn’t add
404 with code: "not_found".
Messages
Each message’sauthor says who wrote it:
author | Who |
|---|---|
customer | You or a teammate. author_name is the teammate’s name, and from_you is true on messages you wrote |
zinc | Zinc support. author_name is Zinc support |
system | Status changes, reopens and credits, e.g. Case reopened or Credit of $12.00 issued to your Zinc wallet. author_name is null |
system lines. A reply already shows that the case moved to the other side. system lines mark holds, closes, reopens and credits.
Credits
credited_amount is the total wallet credit issued from this case, in cents, net of any reversals. Each credit or reversal also adds a system message and sends a case.credited webhook.
Each attachment’s
url is a signed link that expires after 7 days. Fetch the case again for fresh links. url is null if signing failed, and the next fetch retries it.Authorizations
Zinc API key (Bearer zn_...)
Headers
Path Parameters
Response
Successful Response
What a support case is about. Routing and reporting only — no reason triggers automation.
Available options:
not_received, missing_item, late, damaged_or_wrong_item, cancellation, address_change, return, billing, other open — waiting on Zinc. waiting_on_customer — Zinc replied and is waiting on you. on_hold — waiting on the retailer or carrier. closed — resolved; replying reopens it within the case window.
Available options:
open, waiting_on_customer, on_hold, closed Total wallet credit issued from this case, in cents (net of reversals).
Who opened the case: a teammate's name, or Zinc support when Zinc reached out. (The case.created webhook's opened_by is the side instead: customer or zinc.)
Show child attributes
Show child attributes

