Skip to main content
POST
/
ticket
/
create
Create support ticket
curl --request POST \
  --url https://demo.onlinebillingform.com/api/v2/ticket/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "user_id": 123,
  "message": "<string>",
  "support_department": "<string>",
  "priority": "low",
  "status": "open",
  "assignee_by": 123
}
'
{
  "success": true,
  "ticket": {
    "id": 1,
    "subject": "Cannot access my invoices",
    "user_id": 42,
    "assignee_by": null,
    "status": "open",
    "support_department": "Billing",
    "priority": "low",
    "last_action": "Created",
    "messages": [
      {
        "id": 10,
        "support_ticket_id": 1,
        "replay_by": 5,
        "message": "<p>Thanks for reaching out, we are looking into this.</p>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <live_api_key>.

Body

application/json
subject
string
required

Ticket subject. Letters, numbers, spaces, and basic punctuation only.

user_id
integer
required

ID of the customer the ticket belongs to.

message
string
required

Initial ticket message. Standard rich text formatting is allowed; emojis and unsupported HTML tags are rejected.

support_department
string
required

Support department the ticket is filed under. Required when departments are configured.

priority
enum<string>
default:low
Available options:
low,
medium,
high,
emergency
status
enum<string>
default:open
Available options:
open,
pending,
close,
awaiting_reply
assignee_by
integer

Staff user ID to assign the ticket to.

Response

OK

success
boolean