curl --request POST \
--url https://api.sellauth.com/v1/customer-dashboard/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form invoice_id=9f2b3c4d5e6f7 \
--form 'subject=Order question' \
--form 'content=My keys were not delivered.' \
--form 'images=<string>' \
--form images.items='@example-file'import requests
url = "https://api.sellauth.com/v1/customer-dashboard/tickets"
files = { "images.items": ("example-file", open("example-file", "rb")) }
payload = {
"invoice_id": "9f2b3c4d5e6f7",
"subject": "Order question",
"content": "My keys were not delivered.",
"images": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('invoice_id', '9f2b3c4d5e6f7');
form.append('subject', 'Order question');
form.append('content', 'My keys were not delivered.');
form.append('images', '<string>');
form.append('images.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.sellauth.com/v1/customer-dashboard/tickets', 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.sellauth.com/v1/customer-dashboard/tickets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sellauth.com/v1/customer-dashboard/tickets"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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.sellauth.com/v1/customer-dashboard/tickets")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/customer-dashboard/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"success": true,
"ticket": {
"id": "a0ec2492-c627-4b90-a390-6ca955902f27",
"shop_id": 1,
"shop_customer_id": 1,
"invoice_id": 1,
"subject": "Order question",
"status": "open",
"created_at": "2026-07-23T12:00:00.000000Z",
"updated_at": "2026-07-23T12:00:00.000000Z",
"closed_at": null,
"archived_at": null,
"last_message": null,
"invoice": {
"id": 1,
"unique_id": "9f2b3c4d5e6f7",
"url": "https://pay.sellauth.com/invoice/9f2b3c4d5e6f7"
},
"messages": [
{
"id": 1,
"sender_type": "shop_customer",
"sender_id": 1,
"content": "My keys were not delivered.",
"created_at": "2026-07-23T12:00:00.000000Z",
"sender": {
"id": 1,
"email": "customer@sellauth.test"
},
"attachments": []
}
]
}
}{
"message": "Tickets are not enabled for this shop."
}{
"message": "Invoice not found"
}{
"message": "You already have an active ticket for this invoice.",
"ticket_id": "a0ec2492-c627-4b90-a390-6ca955902f27"
}{
"message": "Image processing is temporarily unavailable. Please try again."
}Create Ticket
Opens a support ticket against one of the customer’s invoices and posts the first message. Send as multipart/form-data to attach up to 5 images (images[], jpeg/png/webp/gif/avif, 5 MB each); content may be omitted when at least one image is attached. A customer may hold at most 5 open or pending tickets, and at most one per invoice; the per-invoice conflict response carries the existing ticket’s ticket_id.
curl --request POST \
--url https://api.sellauth.com/v1/customer-dashboard/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form invoice_id=9f2b3c4d5e6f7 \
--form 'subject=Order question' \
--form 'content=My keys were not delivered.' \
--form 'images=<string>' \
--form images.items='@example-file'import requests
url = "https://api.sellauth.com/v1/customer-dashboard/tickets"
files = { "images.items": ("example-file", open("example-file", "rb")) }
payload = {
"invoice_id": "9f2b3c4d5e6f7",
"subject": "Order question",
"content": "My keys were not delivered.",
"images": "<string>"
}
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('invoice_id', '9f2b3c4d5e6f7');
form.append('subject', 'Order question');
form.append('content', 'My keys were not delivered.');
form.append('images', '<string>');
form.append('images.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.sellauth.com/v1/customer-dashboard/tickets', 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.sellauth.com/v1/customer-dashboard/tickets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sellauth.com/v1/customer-dashboard/tickets"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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.sellauth.com/v1/customer-dashboard/tickets")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/customer-dashboard/tickets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"invoice_id\"\r\n\r\n9f2b3c4d5e6f7\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"subject\"\r\n\r\nOrder question\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"content\"\r\n\r\nMy keys were not delivered.\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"images.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"success": true,
"ticket": {
"id": "a0ec2492-c627-4b90-a390-6ca955902f27",
"shop_id": 1,
"shop_customer_id": 1,
"invoice_id": 1,
"subject": "Order question",
"status": "open",
"created_at": "2026-07-23T12:00:00.000000Z",
"updated_at": "2026-07-23T12:00:00.000000Z",
"closed_at": null,
"archived_at": null,
"last_message": null,
"invoice": {
"id": 1,
"unique_id": "9f2b3c4d5e6f7",
"url": "https://pay.sellauth.com/invoice/9f2b3c4d5e6f7"
},
"messages": [
{
"id": 1,
"sender_type": "shop_customer",
"sender_id": 1,
"content": "My keys were not delivered.",
"created_at": "2026-07-23T12:00:00.000000Z",
"sender": {
"id": 1,
"email": "customer@sellauth.test"
},
"attachments": []
}
]
}
}{
"message": "Tickets are not enabled for this shop."
}{
"message": "Invoice not found"
}{
"message": "You already have an active ticket for this invoice.",
"ticket_id": "a0ec2492-c627-4b90-a390-6ca955902f27"
}{
"message": "Image processing is temporarily unavailable. Please try again."
}Authorizations
Authenticate with a customer token, minted server-to-server with POST /v1/shops/{shopId}/customers/{customerId}/token and sent as a Bearer token. Reseller API keys are rejected with a 403 here.
Body
The invoice unique ID.
"9f2b3c4d5e6f7"
The ticket subject.
"Order question"
The first message. Required unless images is present.
"My keys were not delivered."
Up to 5 image files (jpeg, png, webp, gif, avif; 5 MB each).