jolly-vr-37035
03/09/2023, 3:24 PM{
"currency": "CAD",
"name": "The Collection Snowboard: Oxygen",
"price": "1435.00",
"product_id": 8160787366167,
"sku": 8160787366167,
"variant": [
{
"available": true,
"created_at": "2023-03-09T07:57:11-05:00",
"grams": 0,
"id": 44618522788119,
"option1": "Default Title",
"position": 1,
"price": "1435.00",
"product_id": 8160787366167,
"requires_shipping": true,
"sku": "",
"taxable": true,
"title": "Default Title",
"updated_at": "2023-03-09T07:57:11-05:00"
}
]
},
SKU is string:
{
"currency": "CAD",
"name": "The Multi-managed Snowboard",
"price": "882.00",
"product_id": 8160787202327,
"sku": "sku-managed-1",
"variant": [
{
"available": true,
"created_at": "2023-03-09T07:57:11-05:00",
"grams": 0,
"id": 44618522493207,
"option1": "Default Title",
"position": 1,
"price": "882.00",
"product_id": 8160787202327,
"requires_shipping": true,
"sku": "sku-managed-1",
"taxable": true,
"title": "Default Title",
"updated_at": "2023-03-09T07:57:15-05:00"
}
]
},
I checked the documentation. There this field should be a string.
Could you help to me, please?millions-activity-52391
03/09/2023, 3:25 PMquiet-wolf-72320
03/10/2023, 10:24 AMjolly-vr-37035
03/10/2023, 10:25 AMquiet-wolf-72320
03/10/2023, 10:28 AMjolly-vr-37035
03/10/2023, 10:28 AMgentle-church-13189
03/10/2023, 12:33 PMproduct_id as an alternative to sku , when payload doesn’t have sku . Since product_id is a number hence you are seeing sku as a number. For now you can explicitly typecast it to string, as we will get this updated in the coming release (i.e passing product_id as a string to sku instead)jolly-vr-37035
03/10/2023, 12:37 PMgentle-church-13189
03/10/2023, 12:38 PMgentle-church-13189
03/13/2023, 9:07 AMjolly-vr-37035
03/13/2023, 9:08 AMjolly-vr-37035
03/13/2023, 11:57 AM