GraphqlQueryError: invalid id on discountAutomaticAppUpdate

We have an app that works perfectly in development and on dev stores. Once we installed it on a production store we could not update discounts like we can in development. The query is:

mutation UpdateDiscount($id: ID!, $discount: DiscountAutomaticAppInput!) {
     discountUpdate: discountAutomaticAppUpdate(
       id: $id
       automaticAppDiscount: $discount
     ) {
       userErrors {
         code
         message
         field
       }
   }
}

variables:

{
   discount: {
     combinesWith: {
       orderDiscounts: false,
       productDiscounts: false,
       shippingDiscounts: false
     },
     startsAt: '2023-08-15T16:58:55Z',
     endsAt: null,
     metafields: [ [Object] ],
     title: 'GO - Local - edit'
   },
   id: 'gid://shopify/DiscountAutomaticApp/1415511310614'
}

Error:

GraphqlQueryError: invalid id
 ...

As this is not a “Discount not found” error or some other permissions error it seems to indicate that the id gid://shopify/DiscountAutomaticApp/1415511310614 is malformed in someway. But that format works in dev and based on all the documentation (and the sample discounts app) this is how these should be updated. Any ideas of what to do next?

Note: this is a custom app installed on a Shopify plus store so we do have access to the discounts api.

I think the id should be DiscountAutomaticNode, not DiscountAutomaticApp.
For example,

id: 'gid://shopify/**DiscountAutomaticNode**/1415511310614'

My understanding is that DiscountAutomaticNode is for native automatic discounts. Where as DiscountAutomaticApp should be used for ones created by our app with our app extension.

The issue was that the store still had the checkout.liquid active. In order to use the DiscountAutomaticApp you need to have the checkout extensibility active and checkout.liquid disabled