POST

Customer.Tickets.Status

Open or close a ticket by setting tickets.show, same as Clientproject::hide_detail. show=0 close, show=1 open. Only the logged-in customer's my_tickets row.

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 Customer.Tickets.Status 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

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.

Required Parameters

NameTypeSampleExplanation
id
post
int900tickets.ticket_id. Aliases: ticket_id, t_id, data_id.
show
post
int00 close, 1 open.

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\/Customer.Tickets.Status",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "id": "900",
        "show": "0"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Customer.Tickets.Status",
    "url_domain": "https:\/\/{domain}\/app\/Customer.Tickets.Status"
}

Endpoint

POST /app/Customer.Tickets.Status
POST https://{user}.bull36.com/app/Customer.Tickets.Status
POST https://{domain}/app/Customer.Tickets.Status

Sample Output

{
    "success": 1,
    "output": "Your Ticket Is Close",
    "ticket_id": 900,
    "show": 0
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('id', '900');
body.set('show', '0');

const res = await fetch('/app/Customer.Tickets.Status', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data);

Error Example

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