Hi Community,
After creating the following product:
mutation {
product_create(
data: {
customer_account_id: "QWNjb3VudDo1ODgy"
name: "Banana"
sku: "BANANA-001"
price: "150.00"
vendors: {
vendor_id:"VmVuZG9yOjE2NzMyMw=="
vendor_sku:"BANANA-001"
}
warehouse_products: [{
warehouse_id: "V2FyZWhvdXNlOjExMjg4"
on_hand: 0
}]
value: "150.00"
barcode: "BANANA-001"
country_of_manufacture: "FR"
dimensions: { weight: "2", height: "25", width: "10", length: "25" }
images: { src: "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/237/banana_1f34c.png", position: 1 }
}
)
{
request_id
complexity
product {
id
sku
}
}
}
I ran the following query:
query {
product(sku: "BANANA-001") {
complexity
request_id
data {
account_id
id
sku
name
dimensions {
length
width
height
weight
}
warehouse_products {
id
warehouse_id
warehouse_identifier
on_hand
}
vendors {
vendor_id
vendor_sku
price
}
}
}
}
And got the following response (which is correct):
{
"data": {
"product": {
"complexity": 1,
"request_id": "5e1da392ec407a68d9b07d5f",
"data": {
"account_id": "QWNjb3VudDo1ODgy",
"id": "UHJvZHVjdEluZm86MjY5MjE5NTQx",
"sku": "BANANA-001",
"name": "Banana",
"dimensions": {
"length": "25.00 cm",
"width": "10.00 cm",
"height": "25.00 cm",
"weight": "2.0000 kg"
},
"warehouse_products": [
{
"id": "UHJvZHVjdDozMDA1NzE0NzM=",
"warehouse_id": "V2FyZWhvdXNlOjExMjg4",
"warehouse_identifier": null,
"on_hand": 0
}
],
"vendors": [
{
"vendor_id": "VmVuZG9yOjE2NzMyMw==",
"vendor_sku": "BANANA-001",
"price": "0.00"
}
]
}
}
}
}
The issue is I do not have the same data displayed in my Shiphero dashboard even though Iām using the ācentimetersā setting:
Any idea where this issue could come from? Is there some kind of unit conversion at work?
Cheers,
Paul