POST

Ticket.CompletionReasonList

List all_status rows with type=ticket_completion_reason for the org (dashboard Ticket Settings → Completion Reasons list). Alias of Ticket.CompletionReason. No parameters.

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

  • Runs the Ticket.CompletionReasonList function and returns JSON.

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

  • No request body parameters.
  • Enable the feature first with Ticket.SettingsUpdate ticket_completion_reason_settings=1 so the close-ticket UI shows the reason dropdown.
  • This list fills that dropdown; CRUD uses CompletionReasonAdd / Edit / Delete.
  • Same handler as Ticket.CompletionReason.

Required Parameters

No body parameters are required for this function.

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.CompletionReasonList",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": [],
    "url_user": "https:\/\/{user}.bull36.com\/app\/Ticket.CompletionReasonList",
    "url_domain": "https:\/\/{domain}\/app\/Ticket.CompletionReasonList"
}

Endpoint

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

Sample Output

{
    "success": 1,
    "count": 1,
    "data": [
        {
            "id": 10,
            "en": "Resolved",
            "he": "נפתר",
            "name_en": "Resolved",
            "name_he": "נפתר",
            "label": "Resolved",
            "color": "#64748b"
        }
    ]
}

JavaScript Example

const token = 'YOUR TOKEN';
const res = await fetch('/app/Ticket.CompletionReasonList', { method: 'POST', headers: { Authorization: 'Bearer ' + token } });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "Unauthorized"
}