SellAuth

Tickets

Get Tickets

Retrieves the tickets.

GET
/v1/shops/{shopId}/tickets

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonOptional
pageinteger
perPageinteger

Must be at least 1. Must not be greater than 100.

orderColumnstring
Value in: "id" | "subject" | "created_at" | "closed_at"
orderDirectionstring
Value in: "asc" | "desc"
idstring
statusesarray<string>
customer_emailstring
created_at_startstring

Must be a valid date.

created_at_endstring

Must be a valid date. Must be a date after created_at_start.

closed_at_startstring

Must be a valid date.

closed_at_endstring

Must be a valid date. Must be a date after closed_at_start.

archivedstring

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/tickets" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 12,
    "perPage": 1,
    "orderColumn": "id",
    "orderDirection": "asc",
    "id": "culpa",
    "statuses": [
      "open"
    ],
    "customer_email": "morgan93@example.net",
    "created_at_start": "2026-01-25T17:40:11",
    "created_at_end": "2084-01-04",
    "closed_at_start": "2026-01-25T17:40:11",
    "closed_at_end": "2084-01-04",
    "archived": null
  }'

{
  "current_page": 1,
  "data": [
    {
      "id": "a0ec2492-c627-4b90-a390-6ca955902f27",
      "shop_id": 38,
      "shop_customer_id": 240,
      "invoice_id": 971,
      "subject": "Question",
      "status": "open",
      "closed_at": null,
      "archived_at": null,
      "created_at": "2026-01-25T17:07:43.000000Z",
      "updated_at": "2026-01-25T17:07:43.000000Z",
      "customer": {
        "id": 240,
        "shop_id": 38,
        "email": "my@customer.com"
      },
      "last_message": {
        "id": "a0ec2492-c81c-494d-b418-adbb201bd363",
        "ticket_id": "a0ec2492-c627-4b90-a390-6ca955902f27",
        "sender_type": "shop_customer",
        "sender_id": 240,
        "content": "Hello, could you assist me with setting up this product? Thank you.",
        "created_at": "2026-01-25T17:07:43.000000Z",
        "sender": {
          "id": 240,
          "email": "my@customer.com"
        }
      },
      "invoice": {
        "id": 971,
        "shop_id": 38,
        "salt": "ba1181294bc7a",
        "unique_id": "ba1181294bc7a-0000000000971"
      }
    }
  ],
  "first_page_url": "https://api.sellauth.com/v1/shops/38/tickets?page=1",
  "from": 1,
  "last_page": 1,
  "last_page_url": "https://api.sellauth.com/v1/shops/38/tickets?page=1",
  "links": [
    {
      "url": null,
      "label": "&laquo; Previous",
      "active": false
    },
    {
      "url": "https://api.sellauth.com/v1/shops/38/tickets?page=1",
      "label": "1",
      "active": true
    },
    {
      "url": null,
      "label": "Next &raquo;",
      "active": false
    }
  ],
  "next_page_url": null,
  "path": "https://api.sellauth.com/v1/shops/38/tickets",
  "per_page": 20,
  "prev_page_url": null,
  "to": 1,
  "total": 1
}

Create Ticket

Creates a new ticket.

POST
/v1/shops/{shopId}/tickets

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
customer_idRequiredstring
subjectRequiredstring

Must not be greater than 255 characters.

invoice_idstring

Path Parameters

shopIdRequiredinteger

The shop ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_id": "culpa",
    "subject": "asyzwszwtxpeqqi",
    "invoice_id": null
  }'

Get Ticket

Retrieves a specific ticket.

GET
/v1/shops/{shopId}/tickets/{ticketId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X GET "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27" \
  -H "Authorization: Bearer <token>"

{
  "id": "a0ec2492-c627-4b90-a390-6ca955902f27",
  "shop_id": 38,
  "shop_customer_id": 240,
  "invoice_id": 971,
  "subject": "Question",
  "status": "open",
  "closed_at": null,
  "archived_at": null,
  "created_at": "2026-01-25T17:07:43.000000Z",
  "updated_at": "2026-01-25T17:07:43.000000Z",
  "messages": [
    {
      "id": "a0ec2492-c81c-494d-b418-adbb201bd363",
      "ticket_id": "a0ec2492-c627-4b90-a390-6ca955902f27",
      "sender_type": "shop_customer",
      "sender_id": 240,
      "content": "Hello, could you assist me with setting up this product? Thank you.",
      "created_at": "2026-01-25T17:07:43.000000Z",
      "updated_at": "2026-01-25T17:07:43.000000Z",
      "deleted_at": null,
      "sender": {
        "id": 240,
        "email": "my@customer.com"
      }
    }
  ],
  "customer": {
    "email": "my@customer.com",
    "shop_id": 38,
    "balance": "0.00",
    "phone_number": null,
    "discord_id": null,
    "discord_username": null,
    "newsletter_at": null,
    "affiliate_code": null,
    "affiliate_referrer_id": null,
    "affiliate_referrer_earnings": "0.00",
    "affiliate_referred_at": null,
    "otp_expires_at": null,
    "total_completed": 1,
    "total_spent_usd": "1.35",
    "last_completed_at": "2025-07-27 18:04:28",
    "created_at": "2025-07-27T18:03:40.000000Z",
    "updated_at": "2026-01-25T17:07:27.000000Z",
    "deleted_at": null,
    "$id": 240
  },
  "invoice": {
    "coupon_id": 301,
    "coupon_discount": "0.00",
    "gateway_fee": "0.00",
    "paypalff_email": null,
    "shop_customer_id": 240,
    "created_at": "2025-07-27T18:03:25.000000Z",
    "updated_at": "2025-07-27T18:04:28.000000Z",
    "completed_at": "2025-07-27T18:04:28.000000Z",
    "archived_at": null,
    "salt": "ba1181294bc7a",
    "gateway": "LTC",
    "payment_method_id": 30,
    "external_url": null,
    "stripe_client_secret": null,
    "sumup_checkout_id": null,
    "email": "my@customer.com",
    "delivered": null,
    "delivered_old": null,
    "redirect_url": null,
    "status": "completed",
    "status_description": null,
    "price": "1.35",
    "tax_rate": "0.00",
    "currency": "USD",
    "customer_currency": null,
    "amount": 1,
    "price_usd": "1.35",
    "paid": "0.00",
    "paid_usd": "0.00",
    "custom_fields": null,
    "dashboard_note": null,
    "ip": "127.0.0.1",
    "country_code": null,
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
    "asn": null,
    "crypto_address": "ltc1q888adllx44nln8enswc6rhkhwfpjhd5ds6mn40",
    "crypto_amount": "0.01180304",
    "product_id": null,
    "shop_id": 38,
    "cashapp_cashtag": null,
    "cashapp_note": null,
    "cashapp_email": null,
    "variant_id": null,
    "venmo_tag": null,
    "venmo_email": null,
    "venmo_note": null,
    "manual": 0,
    "cashapp_receipt_id": null,
    "cashapp_transaction_id": null,
    "paypalff_transaction_id": null,
    "paypalff_currency": "USD",
    "paypalff_price": null,
    "paypalff_note": null,
    "stripe_pi_id": null,
    "paypal_order_id": null,
    "mollie_transaction_id": null,
    "skrill_transaction_id": null,
    "authorizenet_transaction_id": null,
    "revolutbusiness_token": null,
    "lemonsqueezy_order_number": null,
    "customer_id": null,
    "transaction_id": null,
    "proof_of_payment": null,
    "prefill_affiliate_referrer_id": null,
    "unique_id": "ba1181294bc7a-0000000000971",
    "$id": 971
  }
}

Close Ticket

Closes a ticket.

POST
/v1/shops/{shopId}/tickets/{ticketId}/close

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27/close" \
  -H "Authorization: Bearer <token>"

Reopen Ticket

Reopens a ticket.

POST
/v1/shops/{shopId}/tickets/{ticketId}/reopen

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27/reopen" \
  -H "Authorization: Bearer <token>"

Archive Ticket

Archives a ticket.

POST
/v1/shops/{shopId}/tickets/{ticketId}/archive

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27/archive" \
  -H "Authorization: Bearer <token>"

Unarchive Ticket

Unarchives a ticket.

POST
/v1/shops/{shopId}/tickets/{ticketId}/unarchive

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27/unarchive" \
  -H "Authorization: Bearer <token>"

Send Ticket Message

Sends a message to a ticket.

POST
/v1/shops/{shopId}/tickets/{ticketId}/messages

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Request Body

application/jsonRequired
contentRequiredstring

Must not be greater than 8000 characters.

Path Parameters

shopIdRequiredinteger

The shop ID.

ticketIdRequiredstring

The ticket ID.

curl -X POST "https://api.sellauth.com/v1/shops/{shopId}/tickets/a0ec2492-c627-4b90-a390-6ca955902f27/messages" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "pasyzwszwtxpeqq"
  }'

DELETE
/v1/shops/{shopId}/tickets/{ticketId}/messages/{messageId}

Authorization

AuthorizationRequiredBearer <token>

You can retrieve your API key by visiting your dashboard and clicking Account > API.

In: header

Path Parameters

shopIdRequiredinteger
ticketIdRequiredstring
messageIdRequiredstring
curl -X DELETE "https://api.sellauth.com/v1/shops/{shopId}/tickets/9f681846-2b40-42a1-8570-88bec481668c/messages/culpa" \
  -H "Authorization: Bearer <token>"