Node.js
import { ShoplyCustomer } from "@shoplygg/node";
const buyer = new ShoplyCustomer({ storeId: "YOUR_STORE_ID", token });
const result = await buyer.tickets.resolve("TICKET_ID");<?php
require 'vendor/autoload.php';
$buyer = new Shoply\Customer(['storeId' => 'YOUR_STORE_ID', 'token' => $token]);
$result = $buyer->tickets->resolve('TICKET_ID');
import shoply
buyer = shoply.Customer("YOUR_STORE_ID", token=token)
result = buyer.tickets.resolve("TICKET_ID")
curl --request POST \
--url https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve"
req, _ := http.NewRequest("POST", 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.post("https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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",
"orderId": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"subject": "Key says it is already in use",
"status": "resolved",
"messages": 3,
"pictures": 0,
"lastMessageAt": "2026-10-22T16:20:19Z",
"lastFrom": "buyer",
"lastLine": "That worked, thank you.",
"firstReplyAt": "2026-10-22T16:20:19Z",
"answeredAt": "2026-10-22T16:20:19Z",
"resolvedAt": "2026-10-22T16:20:19Z",
"resolvedBy": "buyer",
"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"
},
{
"id": "fb5187b3-26e9-4f1a-bfba-265d93cb8a51",
"from": "store",
"body": "Sorry about that. Open your order in the customer panel and press Reset Key, then try it again.",
"html": "<p>Sorry about that. Open your order in the customer panel and press Reset Key, then try it again.</p>",
"pictures": [],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"canReopenUntil": "2026-11-21T16:20:19Z",
"limits": {
"body": 500,
"subject": 100,
"picturesPerMessage": 3,
"picturesPerTicket": 25,
"pictureBytes": 5242880
},
"orderLabel": "Northwind Pro · Order bc44febe-0f25-4076-92eb-03a5045a57e7",
"orderProducts": [
"Northwind Pro"
],
"orderMore": 0
}
}{
"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": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Customer API
Resolve a support ticket
Marks the buyer’s ticket resolved, as their “Mark as Resolved” does. Answers the ticket.
Needs the buyer’s token: Authorization: Bearer shoply_ct_..., from Sign in with the code.
It is counted for the buyer’s token: 30 changes in ten minutes.
POST
/
stores
/
{storeId}
/
customer
/
tickets
/
{ticketId}
/
resolve
Node.js
import { ShoplyCustomer } from "@shoplygg/node";
const buyer = new ShoplyCustomer({ storeId: "YOUR_STORE_ID", token });
const result = await buyer.tickets.resolve("TICKET_ID");<?php
require 'vendor/autoload.php';
$buyer = new Shoply\Customer(['storeId' => 'YOUR_STORE_ID', 'token' => $token]);
$result = $buyer->tickets->resolve('TICKET_ID');
import shoply
buyer = shoply.Customer("YOUR_STORE_ID", token=token)
result = buyer.tickets.resolve("TICKET_ID")
curl --request POST \
--url https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve"
req, _ := http.NewRequest("POST", 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.post("https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shoply.gg/v1/stores/{storeId}/customer/tickets/{ticketId}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.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",
"orderId": "bc44febe-0f25-4076-92eb-03a5045a57e7",
"subject": "Key says it is already in use",
"status": "resolved",
"messages": 3,
"pictures": 0,
"lastMessageAt": "2026-10-22T16:20:19Z",
"lastFrom": "buyer",
"lastLine": "That worked, thank you.",
"firstReplyAt": "2026-10-22T16:20:19Z",
"answeredAt": "2026-10-22T16:20:19Z",
"resolvedAt": "2026-10-22T16:20:19Z",
"resolvedBy": "buyer",
"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"
},
{
"id": "fb5187b3-26e9-4f1a-bfba-265d93cb8a51",
"from": "store",
"body": "Sorry about that. Open your order in the customer panel and press Reset Key, then try it again.",
"html": "<p>Sorry about that. Open your order in the customer panel and press Reset Key, then try it again.</p>",
"pictures": [],
"createdAt": "2026-10-22T16:20:19Z"
}
],
"canReopenUntil": "2026-11-21T16:20:19Z",
"limits": {
"body": 500,
"subject": 100,
"picturesPerMessage": 3,
"picturesPerTicket": 25,
"pictureBytes": 5242880
},
"orderLabel": "Northwind Pro · Order bc44febe-0f25-4076-92eb-03a5045a57e7",
"orderProducts": [
"Northwind Pro"
],
"orderMore": 0
}
}{
"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": {}
}{
"success": false,
"message": "<string>",
"code": "<string>",
"data": null,
"errors": {}
}Authorizations
A buyer's token, from Sign in with the code: Authorization: Bearer shoply_ct_.... It reaches that buyer's own orders at one store, and no route that takes a key.
Path Parameters
The store's ID, from Settings, General in its dashboard. It is not a secret: a page may show it.
One of the buyer's support tickets, from List support tickets.

