APIs & Integrations

Not applicable

Unable to fetch a deal even if it is created in the consuming system

Hi,
I had contacted HubSpot support regarding this issue.
According to them, deal were created using custom API but it did not create from the Form submission leading to no deal on your system but deal created on the consuming system.
Tried with get a deal API but it says deal not found.
Please suggest.

0 Upvotes
5 Replies 5
IsaacTakushi
HubSpot Employee
HubSpot Employee

Unable to fetch a deal even if it is created in the consuming system

Hi @Nidhi,

I can't troubleshoot without knowing the response, but I was able to create this deal from the data above.

If you continue to see this issue, please be sure to provide the response from HubSpot.

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Unable to fetch a deal even if it is created in the consuming system

Hi @Nidhi,

Thank you for that information.

I understand there wasn't an error, but could you share the response you received from HubSpot when you successfully created a deal?

For example:

200 OK
{
 "portalId": 2704626,
 "dealId": 388232961,
 "isDeleted": false,
 "associations": {
   "associatedVids": [
     11300801
   ]
...
}

Isaac Takushi

Associate Certification Manager
0 Upvotes
Not applicable

Unable to fetch a deal even if it is created in the consuming system

Hi,
Sadly, we do not have the response received from HubSpot stored.
However, Request JSON which was sent was :
{

"associations": {

"associatedCompanyIds": [

  1013352486

],

"associatedVids": [

  11300801

]

},

"properties": [

{

  "value": "[nypost.no](http://nypost.no)",

  "name": "dealname"

},

{

  "value": "Free Trial Agreement Sent",

  "name": "ln_deal_stages"

},

{

  "value": "appointmentscheduled",

  "name": "dealstage"

},

{

  "value": "default",

  "name": "pipeline"

},

{

  "value": "0",

  "name": "amount"

},

{

  "value": "16255996",

  "name": "hubspot_owner_id"

},

{

  "value": "TRIAL",

  "name": "plan_type"

},

{

  "value": "Force",

  "name": "product_name"

},

{

  "value": "SAAS (Digital Marketing)",

  "name": "orginal_source_manually_entered"

},

{

  "value": "1548349122000",

  "name": "closedate"

},

{

  "value": "newbusiness",

  "name": "dealtype"

}

]

}

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Unable to fetch a deal even if it is created in the consuming system

Hi @Nidhi,

I need more information to troubleshoot effectively. Please share:

  1. Your Hub ID.
  2. The HubSpot support ticket number.
  3. The full request URL you used to try and retrieve the deal.
  4. The full error you received from HubSpot, including the status code.

Isaac Takushi

Associate Certification Manager
0 Upvotes
Not applicable

Unable to fetch a deal even if it is created in the consuming system

Hi Isaac,
Details are as follows :

  1. Hub ID - 2704626
  2. HubSpot Support Ticket Number - #20816213. Create deal API - https://api.hubapi.com/deals/v1/deal?hapikey=
  3. No error received while creation of deal, we got a deal id but while fetching deal using API - **https://api.hubapi.com/deals/v1/deal/388232961?hapikey= **
    ****we are unable to get a deal, even on Hubspot UI no deal id is linked against the contact created.
0 Upvotes