Why all the cart_token is null in every orders of the store

Hi everyone,

I am using https://{shop}.myshopify.com/admin/api/{api_version}/orders.json to get all all orders of the store

But I see that cart_token of all the orders is null

Could you please tell me why and how to fix it,

Some orders of the list has addition field is note_attributes, note_attributes is an array and some of them has item

cart_token,

for example:

https://xxxxxx.myshopify.com/admin/api/2023-10/orders.json?fields=cart_token&limit=100

[

{cart_token: null},

{cart_token: null},

{cart_token: null},

{cart_token: null, note_attributes: },

{cart_token: null, note_attributes: [{name: ‘cart_token’, value: ‘xxxxxxxxxxxxxxx’}]},

{cart_token: null, note_attributes: },

{cart_token: null, note_attributes: },

]

And I wonder if there is a way for us to get cart_token in front store → pass through payment → and add the value to cart_token of the order info

@dustin565 any solutions or update you found on this, i am also stuck with same problem.