Jump to content

Department required to create ticket API, by default none exists


Recommended Posts

A fresh new install of WHMCS (tested with 8.11) doesn't create support departments for tickets, not even the "1" one. But create ticket API requires a support department ID... any way to handle this from a practical standpoint ? Should WHMCS change that in the API for not being mandatory, perhaps ? 

Link to comment
Share on other sites

On 8/12/2024 at 4:16 AM, WhmTools said:

You can create departments from the whmcs admin

Go to <your-whmcs-url>/admin/configticketdepartments.php

Then you can assign ticket to a any department of your choice. 

Sure, but from the API ? 

Link to comment
Share on other sites

  • 2 weeks later...

Creating a ticket using any method would assume you already have a ticket department.
Just like accepting an order would assume you have an order to accept. Deleting a user would assume you have a user.

Installing WHMCS does not configure any support departments by default, just like it doesn't provide any placeholder products or users.

Link to comment
Share on other sites

You need to create the departments when you setup WHMCS. That's not going to be done 'automatically' for you. 

Each business has it's own needs, so it's up to the business admin to setup the software to meet those needs. That includes support departments.

Link to comment
Share on other sites

16 minutes ago, twhiting9275 said:

You need to create the departments when you setup WHMCS. That's not going to be done 'automatically' for you. 

Each business has it's own needs, so it's up to the business admin to setup the software to meet those needs. That includes support departments.

I agree with that, but that API should follow that and have department as optional parameter, not a required one. 

Or, the initial setup should mandate setting up a department. 

It just needs to be consistent. 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated