Can't create bxgy discount with discount Percentage

I’m submitting this input to create a bxgy discount. The customer needs to buy 2 of x products and they get 2 of y products at 50% off.

{
  "bxgyCodeDiscount": {
    "title": "Chris Test BXGY - KP CHRISTESTBXGY",
    "appliesOncePerCustomer": true,
    "combinesWith": {
      "orderDiscounts": false,
      "productDiscounts": false,
      "shippingDiscounts": false
    },
    "startsAt": "1900-01-01T08:00:00",
    "endsAt": "2026-01-01T08:00:00",
    "code": "CHRISTESTBXGY",
    "customerGets": {
      "value": {
        "percentage": 0.5,
        "discountOnQuantity": {
          "quantity": "2"
        }
      },
      "items": {
        "collections": {
          "add": [
            "gid://shopify/Collection/409354993902",
            "gid://shopify/Collection/409354043630",
            "gid://shopify/Collection/409351979246"
          ],
          "remove": [
            "gid://shopify/Collection/412991127790"
          ]
        }
      }
    },
    "customerBuys": {
      "value": {
        "quantity": "2"
      },
      "items": {
        "collections": {
          "add": [
            "gid://shopify/Collection/409354993902",
            "gid://shopify/Collection/409354043630",
            "gid://shopify/Collection/409351979246"
          ]
        }
      }
    },
    "customerSelection": {
      "customerSegments": {
        "add": [
          "gid://shopify/Segment/474335838446"
        ]
      }
    }
  }
}`

And I’m getting this error:

"A discount can only have one of percentage, discountOnQuantity or discountAmount."

If I removed the “discountOnQuantity” then I get the error:

"Only discountOnQuantity permitted with bxgy discounts."

This is totally bogus. You can manually create a discount in the Shopify Admin with these parameters.

There is a topic in the old forum discussing this issue from 18 months ago and it still hasn’t been fixed. Any update on this? It seem like 18 months is more than enough time to have had this issue fixed.

Apparently, you have to create the input this way:

 "value": {
        "discountOnQuantity": {
          "quantity": "2",
          "effect": {
            "amount": 2.00
          }
        }
      },

or

 "value": {
        "discountOnQuantity": {
          "quantity": "2",
          "effect": {
            "percentage": .5
          }
        }
      },