APIs & Integrations

saurabh100
Member

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi I'm able to create the tickets using the default property but i want to create the custom pipeline property there name is xyz and all the tickets will create under this can it is possible.

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi @saurabh442,

Yes, you can check all of your existing pipelines with this endpoint.

As I described in my last message, you will use the URL https://api.hubapi.com/crm-pipelines/v1/pipelines/tickets?hapikey={your_hapikey}. (Make sure to replace {your_hapikey} with your API key.)

If you copy the JSON response below, I can help you interpret it.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
7 Replies 7
IsaacTakushi
HubSpot Employee
HubSpot Employee

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi @saurabh442,

The INVALID_OPTION error seems to indicate that no ticket pipeline with the pipelineId "2" exists for your account.

Please send me the JSON response you receive from https://api.hubapi.com/crm-pipelines/v1/pipelines/tickets?hapikey={your_hapikey} per this method.

Isaac Takushi

Associate Certification Manager
0 Upvotes
saurabh100
Member

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hello @Isaac_Takushi, is there Any API documents to get the custom ticket pipeline ID.

0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi @saurabh442,

Yes, you can check all of your existing pipelines with this endpoint.

As I described in my last message, you will use the URL https://api.hubapi.com/crm-pipelines/v1/pipelines/tickets?hapikey={your_hapikey}. (Make sure to replace {your_hapikey} with your API key.)

If you copy the JSON response below, I can help you interpret it.

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi @saurabh442,

If you've created a custom ticket pipeline with the CRM Pipelines API, you can use the pipelineId value for hs_pipeline when creating a ticket.

For example:

{
    "name": "hs_pipeline",
    "value": "custom_pipeline_id"
}

Isaac Takushi

Associate Certification Manager
0 Upvotes
saurabh100
Member

Can we sent the custom tickets pipelines values in tickets

SOLVE

Hi @Isaac_Takushi
but when I was getting error i'm already try this:-

$str_post = '[
{
"name": "source_type",
"value": "CHAT"
},
{
"name": "created_by",
"value": "33333"
},
{
"name": "subject",
"value": "testing subject"
},
{
"name": "hs_pipeline",
"value": "2"
},
{
"name": "hs_pipeline_stage",
"value": "1"
},
{
"name": "content",
"value": "Here is the details of the ticket."
}
]';

Error : 400 {"status":"error","message":"Property values were not valid","correlationId":"chdjdj6dhgd","validationResults":[{"isValid":false,"message":"Pipeline 2 is not valid","error":"INVALID_OPTION","name":"hs_pipeline_stage"}],"requestId":"bc66161cf9557f"}

0 Upvotes
saurabh100
Member

Can we sent the custom tickets pipelines values in tickets

SOLVE

and when I'm put 0 it goes support default
{
"name": "hs_pipeline",
"value": "0"
}

0 Upvotes
saurabh100
Member

Can we sent the custom tickets pipelines values in tickets

SOLVE

Still waiting for reply please Reply me with the solution.

0 Upvotes