We call product_create Return:
{
"errors":[
{
"message":"SF customers cannot create products in 3PL warehouses",
"operation":"product_create",
"field":"product_create",
"request_id":"659bd50119fe47867413fe17",
"code":9
}
],
"data":{
"product_create":null
},
"extensions":{
"throttling":{
"estimated_complexity":10,
"cost":10,
"cost_detail":{
"product_create":{
"items_count":0,
"cost":10,
"total_cost":10,
"fields":{
}
}
},
"user_quota":{
"credits_remaining":1992,
"max_available":2002,
"increment_rate":30
}
}
}
}
request body :
{
"query":"mutation{product_create(data:{name:\"Test-Create-Product-Fail-Default Title\",sku:\"Test-Create-Product-Fail\",warehouse_products:{warehouse_id:\"V2FyZWhvdXNlOjIyNjM=\",on_hand:0,inventory_bin:\"\",reserve_inventory:0,replenishment_level:0,reorder_level:0,reorder_amount:0,custom:false,price:\"0.89\",value:\"0.89\",value_currency:\"USD\"},barcode:\"\",dimensions:{weight:\"0\",height:\"0\",width:\"0\",length:\"0\"},kit:false,kit_build:false,no_air:false,final_sale:false,customs_value:\"0.0\",customs_description:\"\",not_owned:true,dropship:false,images:[ ]}){request_id complexity product{ id sku }}}"
}