New mutation to provide multiple trial extensions via the API
October 6th, 2023
We just added the batch_extend_trial_period
mutation, which enables apps monetized by monday to provide trial extensions via the API!
The available arguments ask for the same information required when extending a trial through the Developer Center. However, the most significant difference between the API and the Developer Center is that you can batch up to five trial extensions in one call via the API.
The available fields then return information about the batch itself, as well as individual operations. Check out the sample mutation below, and then give it a go!
mutation {
batch_extend_trial_period (account_slugs: ["test", "monday"], app_id: 12345678, plan_id: "Plan_1", duration_in_days: 21) {
details {
account_slug
reason
success
}
reason
success
}
}
Please note that you must make multiple calls if the plan ID and durations vary for different accounts.