OrderCreateDiscountCodeInput specifying a fixed discount code

How do we just send in a fixed price amount?

When I try to create an order with a discountCode field.

itemFixedDiscountCode: {
  code: "CODE",
  amountSet: {
    shopMoney: {
      amount: 5,
      currencyCode: "USD",
    },
  },
};

I get an error back from the graphql response:

[
  {
    field: [ "order", "discountCode", "itemFixedDiscountCode" ],
    message: "Discount code Percentage must be greater than or equal to 0"
  },
  {
    field: [ "order" ],
    message: "Order Total discounts must be greater than or equal to 0"
  }
]

But discount code Percentage is not a field on itemFixedDiscountCode. If I try to supply a percentage discount alongside the item fixed discount I get this error:

OrderCreateDiscountCodeInput requires exactly one of item_percentage_discount_code, item_fixed_discount_code, free_shipping_discount_code

If I supply a itemPercentageDiscountCode alone, the order is created successfully with the proper discount.

So the question is how do we send in a fixed discount? and can we send in a bunch of different types of discounts, like multiple codes and percentages? It looks like the answer to the latter is no…

reference docs: orderCreate - GraphQL Admin