import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.tickets.get("TICKET_ID");<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->tickets->get('TICKET_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.tickets.get("TICKET_ID")
curl --request GET \
--url https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "8e243e4e-58e7-4d63-a9c3-ef057672a8fd",
"email": "grace@example.com",
"customerId": null,
"orderId": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"subject": "Key says it is already in use",
"status": "open",
"messages": 1,
"pictures": 0,
"lastMessageAt": "2026-10-22T16:20:19Z",
"lastFrom": "buyer",
"lastLine": "I bought Northwind Pro this morning and the key says it is already in use.",
"unread": false,
"firstReplyAt": null,
"answeredAt": null,
"resolvedAt": null,
"resolvedBy": null,
"createdAt": "2026-10-22T16:20:19Z",
"updatedAt": "2026-10-22T16:20:19Z",
"conversation": [
{
"id": "cc08e8db-7064-4c32-9883-fe156fbe07f1",
"from": "buyer",
"body": "I bought Northwind Pro this morning and the key says it is already in use.",
"html": "<p>I bought Northwind Pro this morning and the key says it is already in use.</p>",
"pictures": [],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"canReopenUntil": null,
"limits": {
"body": 500,
"subject": 100,
"picturesPerMessage": 3,
"picturesPerTicket": 25,
"pictureBytes": 5242880
},
"customer": {
"id": null,
"email": "grace@example.com",
"tags": []
},
"order": {
"id": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"status": "completed",
"amount": "$9.99"
},
"orders": [
{
"id": "e9ae5h0p1ye-cd7fded3be6-1006662",
"status": "cancelled",
"amount": "$9.99",
"products": [
"Northwind Pro"
],
"createdAt": "2026-10-22T16:20:19Z"
},
{
"id": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"status": "completed",
"amount": "$9.99",
"products": [
"Northwind Pro"
],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"on": true
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Get a support ticket
A ticket with its conversation, oldest first: each message’s from (buyer or store), body (Markdown, as written), html (the body as Markdown draws it, escaped: links only to the web or an email, each opening in a new tab, and a picture written in Markdown a link, never loaded), pictures (each one’s name and the url the dashboard reads it at; read it with Get a ticket’s picture) and createdAt. customer is who wrote it, with their tags, order the order it is about, orders their five latest, and canReopenUntil the last moment the buyer can open a resolved ticket again by writing on it. Reading a ticket marks it read, as opening it on the dashboard does.
Needs the tickets.read permission (Read Support Tickets).
import Shoply from "@shoplygg/node";
const shoply = new Shoply({ apiKey: process.env.SHOPLY_API_KEY });
const result = await shoply.tickets.get("TICKET_ID");<?php
require 'vendor/autoload.php';
$shoply = new Shoply\Client(['apiKey' => getenv('SHOPLY_API_KEY')]);
$result = $shoply->tickets->get('TICKET_ID');
import shoply
client = shoply.Client() # reads SHOPLY_API_KEY
result = client.tickets.get("TICKET_ID")
curl --request GET \
--url https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/support-tickets/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": null,
"code": null,
"data": {
"id": "8e243e4e-58e7-4d63-a9c3-ef057672a8fd",
"email": "grace@example.com",
"customerId": null,
"orderId": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"subject": "Key says it is already in use",
"status": "open",
"messages": 1,
"pictures": 0,
"lastMessageAt": "2026-10-22T16:20:19Z",
"lastFrom": "buyer",
"lastLine": "I bought Northwind Pro this morning and the key says it is already in use.",
"unread": false,
"firstReplyAt": null,
"answeredAt": null,
"resolvedAt": null,
"resolvedBy": null,
"createdAt": "2026-10-22T16:20:19Z",
"updatedAt": "2026-10-22T16:20:19Z",
"conversation": [
{
"id": "cc08e8db-7064-4c32-9883-fe156fbe07f1",
"from": "buyer",
"body": "I bought Northwind Pro this morning and the key says it is already in use.",
"html": "<p>I bought Northwind Pro this morning and the key says it is already in use.</p>",
"pictures": [],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"canReopenUntil": null,
"limits": {
"body": 500,
"subject": 100,
"picturesPerMessage": 3,
"picturesPerTicket": 25,
"pictureBytes": 5242880
},
"customer": {
"id": null,
"email": "grace@example.com",
"tags": []
},
"order": {
"id": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"status": "completed",
"amount": "$9.99"
},
"orders": [
{
"id": "e9ae5h0p1ye-cd7fded3be6-1006662",
"status": "cancelled",
"amount": "$9.99",
"products": [
"Northwind Pro"
],
"createdAt": "2026-10-22T16:20:19Z"
},
{
"id": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"status": "completed",
"amount": "$9.99",
"products": [
"Northwind Pro"
],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"on": true
}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The ticket, by its ID.

