update draft order properties with GraphQL

update draft order properties with GraphQL

techticarti1
Shopify Partner
6 0 0

The thing i am trying to achieve with this API is totally dependent on properties of order as it's the way things are being handled for normal orders as well so custom attributes will not work, Also i am trying to update order not create one so the mutation draftOrderCreate will also not work.

 

If we can have any replacement of REST API mentioned here, then it will be great

 

await axios.put(

          `https://${shop}/admin/api/2024-01/draft_orders/${id}.json`,
          {
            draft_order: {
              id: id,
              line_items: line_items,
            },
          },
          axiosConfig
        );
Replies 0 (0)