How do I extend a customers free Trial to my App

cammark
Shopify Partner
11 0 0

Hi,

 

I have an App and I want to extend a users free trial by another 30 days

 

I saw that the GraphQL api should enable it via

 

 
mutation AppSubscriptionTrialExtend {
    appSubscriptionTrialExtend(id: "[id number]", days: 30) {
        userErrors {
            field
            message
        }
    }
}

However, the id i am trying does not work and I just get the error of 

 

Invalid global id
What id needs to be used in this call and where can I find out the retrieve it
 
Thanks
Mark
 
Replies 0 (0)