POST

Ticket.Get

Return detailed information for one ticket, including parsed messages, notes, assigned member ids, product_id, custom fields, joined customer name, and city name when available. product_id matches dashboard tickets_edit: only products saved on the ticket (not the full customer catalog). Additive fields for dashboard parity: chat (mapped CHAT UI rows), ticket_products (stock lines), cust_enc_fields (encrypted customer fields, masked unless unlocked), enc_pwd_configured, enc_pwd_unlocked.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns Ticket information as JSON for the UI.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • product_id is only the ticket selected products — same idea as dashboard tickets_edit product_id (e.g. ["abc"]).
  • If saved value is 0 (free-text line), App returns the product name. If not 0, App returns the product id.
  • For the full customer product picker (all invoice/order lines), use Ticket.ProductsByCustomer.
  • ticket_products is stock inventory lines (ticket_products table) — not the same as product_id / ProductsByCustomer.
  • cust_enc_fields / enc_pwd_* mirror Ticket.EncryptedFields + Ticket.EncStatus; unlock with Ticket.UnlockEncrypted first to see plain values.
  • data.messages is the raw stored JSON. data.chat is the mapped CHAT panel rows (same as Ticket.Messages). Prefer Ticket.Messages for chat-only loads.
  • Send new chat lines with Ticket.Reply (dashboard insert_message).

Required Parameters

NameTypeSampleExplanation
ticket_id
post
int900Ticket id to load. Aliases: id, data_id, t_id.

Optional Parameters

No optional body parameters are defined for this function.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Ticket.Get",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "ticket_id": "900"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Ticket.Get",
    "url_domain": "https:\/\/{domain}\/app\/Ticket.Get"
}

Endpoint

POST /app/Ticket.Get
POST https://{user}.bull36.com/app/Ticket.Get
POST https://{domain}/app/Ticket.Get

Sample Output

{
    "success": 1,
    "data": {
        "id": 20095,
        "ticket_id": 20095,
        "subject": "jusr tested image",
        "status": 3,
        "cust_id": 13744708,
        "messages": [],
        "chat": [
            {
                "who": "agent",
                "name": "User",
                "role": "To customer",
                "time": "08.09.2026 14:01:00",
                "text": "Customer needs help.",
                "type": "normal",
                "file": "",
                "file_url": "",
                "user_id": 47,
                "image": ""
            }
        ],
        "assign_member_id": [
            "26183"
        ],
        "product_id": [
            "abc"
        ],
        "custom_fields": {
            "a-1731562297": "[email protected]"
        },
        "ticket_products": [
            {
                "id": 7,
                "product_id": 42,
                "product_name": "Widget A",
                "qty": 2,
                "storage_id": 3
            }
        ],
        "cust_enc_fields": [
            {
                "name": "ssn",
                "label": "SSN",
                "value": "••••••••",
                "has_value": 1,
                "locked": 1
            }
        ],
        "enc_pwd_configured": 1,
        "enc_pwd_unlocked": 0
    }
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ ticket_id: '900' });
const res = await fetch('/app/Ticket.Get', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log((await res.json()).data);

Error Example

{
    "success": 0,
    "message": "Ticket not found"
}