Channel (APP ID) that differs between line items

Hi,

I case of refunds, the sales channel may differ from different line items, yet only have it on the orders’ level in the API and graphql.

Is there a way to get the right channel for a line item?

Hey @hila_c , thanks for getting in touch! The refund functionality within the API really only connects to the product through our fulfillment/inventory components and is somewhat independent of the sales channel. The sales channel does connect to specific products to allow them to be visible and purchasable on the desired sales channel, but isn’t attached to the product line items on a specific order.

Line items usually represent specific product/variant quantities that are assigned to inventory/shipping locations and not how the product is represented through a sales channel. If you’re referring to the inventory location for a line item, you can set this or retrieve the information by using a standard query or mutation on the Order object through GrapQL or in REST.

Hope this helps - let me know if we can clarify anything on our end!

Hi,

Sorry , I don’t understand - I thought I was quering the order object in the first place and couldn’t see the right channel.

What am I missing here?