APIs & Integrations

Shwetansh07
Membro | Parceiro Elite
Membro | Parceiro Elite

Unable to update the price property when creating product via API

resolver

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 Avaliação positiva
1 Solução aceita
WendyGoh
Solução
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

resolver

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. 

Exibir solução no post original

0 Avaliação positiva
4 Respostas 4
WendyGoh
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

resolver

Hi @Shwetansh07,

 

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

- Portal ID

- The POST body that you send across

 

 

0 Avaliação positiva
Shwetansh07
Membro | Parceiro Elite
Membro | Parceiro Elite

Unable to update the price property when creating product via API

resolver

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 Avaliação positiva
WendyGoh
Solução
HubSpot Employee
HubSpot Employee

Unable to update the price property when creating product via API

resolver

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 Avaliação positiva
Shwetansh07
Membro | Parceiro Elite
Membro | Parceiro Elite

Unable to update the price property when creating product via API

resolver

Thank you very much @WendyGoh 
Its working fine now 🙂

0 Avaliação positiva