Inventory Deduction

I recently built a customizer for a Shopify store and the last step is making the customizer deduct the proper amount of inventory and i was wondering how i would achieve this as it the information would be passed through line items such as 42 x Red Rose

Hi @Chris!
So were you looking for something like inventory_remove mutation?
For example:

mutation {
  inventory_remove(
    data: {
      sku: "123456"
      warehouse_id: "V2FyZWhvtgr3jEwMzg1"
      quantity: 1
      reason: "Some reason"
    }
  ) {
    request_id
    complexity
  }
}

Let me know if that doesn’t help, thanks!
Tom