Appearance
Abonnementen
GraphQL mutations: Abonnementen.
Endpoint: POST https://graphql.persmonitor.nl/graphql
Intern · VPN
Mutations voor de monitor-app; op productie via /internal/.
cancelSubscription
Cancel the subscription at period end. Requires being a member of the organization.
Return type: Subscription
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
organizationUuid | ID! | Ja | UUID of the organization. |
Voorbeeld:
graphql
query CancelSubscription {
cancelSubscription(organizationUuid: $organizationUuid) {
# selecteer velden uit het return type
}
}changeSubscriptionPlan
Change the subscription plan for an organization. Requires being a member of the organization.
Return type: Subscription
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
organizationUuid | ID! | Ja | UUID of the organization. |
planUuid | ID! | Ja | UUID of the new plan. |
Voorbeeld:
graphql
query ChangeSubscriptionPlan {
changeSubscriptionPlan(organizationUuid: $organizationUuid, planUuid: $planUuid) {
# selecteer velden uit het return type
}
}createSubscriptionForOrganization
Create a subscription for an organization with a specific plan. Requires being a member of the organization.
Return type: Subscription
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
organizationUuid | ID! | Ja | UUID of the organization. |
planSlug | String! | Ja | Slug of the plan (e.g., "gratis", "starter"). |
Voorbeeld:
graphql
query CreateSubscriptionForOrganization {
createSubscriptionForOrganization(organizationUuid: $organizationUuid, planSlug: $planSlug) {
# selecteer velden uit het return type
}
}createSubscriptionPlan
Create a new subscription plan. Admin only.
Return type: SubscriptionPlan
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
input | CreateSubscriptionPlanInput! | Ja |
Voorbeeld:
graphql
query CreateSubscriptionPlan {
createSubscriptionPlan(input: $input) {
# selecteer velden uit het return type
}
}deleteSubscriptionPlan
Delete a subscription plan. Admin only.
Return type: Boolean!
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
uuid | ID! | Ja |
Voorbeeld:
graphql
query DeleteSubscriptionPlan {
deleteSubscriptionPlan(uuid: $uuid) {
# selecteer velden uit het return type
}
}syncStripeProducts
Sync subscription plans with Stripe products. Admin only.
Return type: [SubscriptionPlan]!
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Geen argumenten.
Voorbeeld:
graphql
query SyncStripeProducts {
syncStripeProducts {
# selecteer velden uit het return type
}
}updateSubscriptionPlan
Update an existing subscription plan. Admin only.
Return type: SubscriptionPlan
Authenticatie: Ingelogde gebruiker (sessie- of API-token)
Argumenten:
| Argument | Type | Verplicht | Beschrijving |
|---|---|---|---|
uuid | ID! | Ja | |
input | UpdateSubscriptionPlanInput! | Ja |
Voorbeeld:
graphql
query UpdateSubscriptionPlan {
updateSubscriptionPlan(uuid: $uuid, input: $input) {
# selecteer velden uit het return type
}
}