So i have an item called vanila coffee with the ID “XT7DK4WDEVDFSWQZE4MJO3PD” how can i pull the iamge ID for it?
One of the end points gives back the URL for all the images but does not tell me to which item they are associated with
So i have an item called vanila coffee with the ID “XT7DK4WDEVDFSWQZE4MJO3PD” how can i pull the iamge ID for it?
One of the end points gives back the URL for all the images but does not tell me to which item they are associated with
Hey @Providence! You can use SearchCatalogObjects to do this. The endpoint has a query
field which you can use to filter the results by the image ID that you’d like to retrieve the associated items for. Your request body would look something like:
{
"object_types": [
"ITEM_VARIATION"
],
"query": {
"exact_query": {
"attribute_name": "image_id",
"attribute_value": "{{ IMAGE ID HERE }}"
}
}
}