Hi Support! I need some help with the Shopify inte...
# support
j
Hi Support! I need some help with the Shopify integration. For example, SKU field string and number. But the documentation said it is a string. SKU is number:
Copy code
{
          "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:
Copy code
{
          "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?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
@jolly-vr-37035 As per the docs and examples, it should be string. Are you facing any issue ? Or is it working for both number and string for you?
j
we are facing an issue because right now, it is both. Number and String also, and we can't index this data well.
q
I will check with the team why it is accepting number but I would suggest you to use string in all your instrumentations
j
Thank you!
g
hi @jolly-vr-37035 we support
product_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)
j
Hi, @gentle-church-13189! Thanks for your answer. Super, thanks! When will you release this change?
g
We can get this by Monday EOD.
🙌 1
hey @jolly-vr-37035 This is released, please check and confirm on your end.
j
Thanks! I will check soon!
Tested it. It's working, thank you!
gratitude thank you 1