Skip to content

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:

ArgumentTypeVerplichtBeschrijving
organizationUuidID!JaUUID 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:

ArgumentTypeVerplichtBeschrijving
organizationUuidID!JaUUID of the organization.
planUuidID!JaUUID 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:

ArgumentTypeVerplichtBeschrijving
organizationUuidID!JaUUID of the organization.
planSlugString!JaSlug 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:

ArgumentTypeVerplichtBeschrijving
inputCreateSubscriptionPlanInput!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:

ArgumentTypeVerplichtBeschrijving
uuidID!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:

ArgumentTypeVerplichtBeschrijving
uuidID!Ja
inputUpdateSubscriptionPlanInput!Ja

Voorbeeld:

graphql
query UpdateSubscriptionPlan {
  updateSubscriptionPlan(uuid: $uuid, input: $input) {
    # selecteer velden uit het return type
  }
}