I think there is an issue with validation in relation to the associations. I've just re-tested the request but removed the associations parameter and it's worked. See my payload here:
I think there is an issue with validation in relation to the associations. I've just re-tested the request but removed the associations parameter and it's worked. See my payload here:
Custom Product Property Not Updating via Ecommerce Bridge API
SOLVE
@eibach-cv well, now we have a bug (or similary) and we have done our best to find out what is wrong.
@natsumimori please get in touch with the product team through your internal channels to investigate why custom properties within the Ecommerce Bridge API and /v2/sync/messages does not work when updating. Se above thread for more info.
Custom Product Property Not Updating via Ecommerce Bridge API
SOLVE
Hey @MichaelC , thanks for the extensive digging on this one - @natsumimori has reached out to me now to take a look into this one for you guys!
@eibach-cv are you able to DM me your Portal ID that you're using with the Ecomm Bridge? I assume you're not using a Developer App to work with the bridge, if you are, can you forward along the App ID.
Thats an old version of the API. If I read up correctly you should now update the products and its properties directly in the v3 api > objects > products.
For B2C users, these endpoints allow you to list available products on your website through HubSpot. You can also personalize your product library for each visitor using smart content.
What you are looking for:
PATCH /crm/v3/objects/products/{productId}
There are also batch solutions for working with many products at the same time. For instance searching all object with the property availability = OUT_OF_STOCK or objects (products) with a certain store id.
Everything you need should be found in v3 docs.
If that doesnt help you - please get back to this thread and we can discuss options further. Me myself use v3 objects products to code solutions towards b2b and I know it works smooth and good. 🙂
Correct, the products don't get a value assigned to the "availability" property, it is left blank and no errors show up. All other properties (that aren't custom) have the correct values assigned.
I do not understand the messages array - why whould the property be a part of the messages? I think the solution might be to move the properies object to an later stage (se picture below) of the code removing it from the messages array. But it might be due to lack of understanding your code fully. Please explain more in the URL you call and the method you use together with the full json of the call (as above).