What's your biggest current challenge? Have your say in Community Polls along the right column.

How to get taxLines when creating an order and pass it to the api

How to get taxLines when creating an order and pass it to the api

zuko_bnb
Shopify Partner
1 0 0

I am new to shopify. I need to use a third party payment, so I need the backend developer to call shopify api to create an order. I created a checkout-ui extension in the checkout interface, in the backend development to create an order when I want to give him some parameters, we read the documentation: https://shopify.dev/ docs/api/admin-graphql/2024-10/mutations/orderCreate, the example request in the docs passes a parameter: taxLines, this field is under lineItems, it should be an attribute of the line item, right? How do I get the taxLines? We tried to create an order without passing this parameter it worked, but the subsequent return will involve the return of an item in the order, so the tax information associated with the item will also need to be used.

any advice will appreciate

Replies 0 (0)