I have a scenario that I made that is supposed to upload an image from google sheets to printify and then make a new printify product using that image.
Everything is working as expected, except for the last module that is supposed to grab the image and create the new product in printify. I keep getting an error:
"The operation failed with an error. [400] blueprint_id: The blueprint id must be an integer. | print_provider_id: The print provider id must be an integer. | variants.0.id: The variants.0.id must be an integer."
INPUT:
[
{
"title": "Motivation and Affirmation Ceramic Coffee Mug 15oz",
"shopId": "2567425",
"variants": [
{
"id": "75654",
"price": 18,
"is_enabled": false
}
],
"description": "Stay inspired with each sip from this 15oz ceramic mug that boasts a collage of motivational and affirmational phrases in varying fonts and orientations. Sporting phrases like 'ENJOY THE LITTLE SHIT' and 'CELEBRATE EVERY DAMN WIN,' this staple beverage partner promises a mindful start to your day. Leaf, star, arrow accents coupled with shades of brown, black, and a dash of red give it an appealing aesthetic. Ideal for anyone seeking a gentle push of motivation or encouragement over their warm beverage.",
"print_areas": [
{
"variant_ids": [
"484"
],
"placeholders": [
{
"images": [
{
"x": 0.5,
"y": 0.5,
"id": "65df9f8657a21731b0190138",
"angle": 360,
"scale": 1
}
],
"position": "front"
}
]
}
],
"blueprint_id": "484",
"print_details": {
"print_on_side": "regular"
},
"print_provider_id": "65222"
}
]
OUTPUT:
[
null
]
I realize that it’s looking for an integer, but the problem is the image ID that I’m getting after uploading the image to printify is not an integer, it’s a long string of numbers and letters.
Thanks in advance!