How to Create Ticket using Generic Channel

After making the channel, please try creating a ticket to confirm that it's working properly. You can create a ticket using generic channels via the provided API. Simply follow these steps to make a generic ticket:

First, you must authorize to get a token that be used to create tickets. Next, after received the token, you can create a ticket using the API available for generic channel.

Create Token

POST {channelURLonlyuntilport}/oauth/token

This is how you get tokens before you can make geeric tickets.

Authorization

Name
Value

Username

Client id

Password

Client secret

Client id and client secret on Channel Connector
Authorization

Body

Name
Value

grant_type

password

username

Client id

password

Client secret

Body Request

Response

{
  "access_token": "token",
    "token_type": "bearer",
    "expires_in": 86399,
    "scope": "read write"
}

Create Generic Ticket

POST {Channel URL}

This is used to create tickets through generic channels.

Headers

Name
Value

Authorization

Bearer <token>

Body

The request body fields are aligned with the mapping fields in the created generic channel.

Below is an example of a body request that has been agreed as a mapping field available in the 3Dolphins application.

Name
Type
Description

contact_first_name

string

This field is intended for storing the customer's first name

contact_last_name

string

This field is intended for storing the customer's last name

contact_email

string

This field is intended for storing the customer's email address

phones

string

This field is intended for storing the customer's phone number

message

string

This field is intended for storing the customer's message

ticket_number

string

This field contains the ticket number for customer interactions.

account_id

string

This field contains the unique identification number to each customer account.

dolphin.contact.id

string

This field supports for the mapping between the external contact ID and the 3Dolphins contact ID.

Response

{
}
Create Generic Ticket

Last updated

Was this helpful?