APIs & Integrations

Shwetansh07
Membre | Partenaire solutions Elite
Membre | Partenaire solutions Elite

Unable to update the price property when creating product via API

Résolue

I've been trying to create a product via Products API and the product is created successfully and in the response i can the price and its value but the price property not is reflecting in HubSpot.

 

I'm using the default data set given by HubSpot here.

https://developers.hubspot.com/docs/methods/products/create-product

0 Votes
1 Solution acceptée
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

Résolue

Hi @Shwetansh07,

 

Instead of price, can you use hs_price_usd

 

On my end, I'm able to see that hs_price_usd works just fine. 

Voir la solution dans l'envoi d'origine

0 Votes
4 Réponses
WendyGoh
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

Résolue

Hi @Shwetansh07,

 

To get a full picture of thing, can you share over your:

- Portal ID

- The POST body that you send across

 

 

0 Votes
Shwetansh07
Membre | Partenaire solutions Elite
Membre | Partenaire solutions Elite

Unable to update the price property when creating product via API

Résolue

Hi @WendyGoh , Thanks for reaching out.

My Portal Id is - 6448908
I have setup Multi Currencies may be this could be a reason.

POST data for Subscription ProductsPOST data for Subscription Products
POST data for one time charged productPOST data for one time charged product

Products are created Successfully.

 

Both of these products have been created successfully but there are missing the price valueBoth of these products have been created successfully but there are missing the price value

 

Price Value is Empty for both of the products.
image.png

0 Votes
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

Résolue

Hi @Shwetansh07,

 

Instead of price, can you use hs_price_usd

 

On my end, I'm able to see that hs_price_usd works just fine. 

0 Votes
Shwetansh07
Membre | Partenaire solutions Elite
Membre | Partenaire solutions Elite

Unable to update the price property when creating product via API

Résolue

Thank you very much @WendyGoh 
Its working fine now 🙂

0 Votes