Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stigg.io/llms.txt

Use this file to discover all available pages before exploring further.

Archives a credit type (custom currency), preventing it from being used for new credit grants.

Archive Mutation

mutation ArchiveCreditType($input: ArchiveCreditTypeInput!) {
  archiveCreditType(input: $input) {
    id
    status
  }
}

Archive Parameters

input
ArchiveCreditTypeInput
required
Input for archiving a credit type
It is not possible to archive a credit type that is in use by an active published plan or add-on. Remove the credit type from those plans and add-ons first, then publish the updated versions before archiving.

Behavior

When a credit type is archived:
  • Customers with an existing credit pool of this type can still view it and consume credits normally. Granting additional credits to the pool is not possible.
  • Customers without a credit pool of this type cannot see it or receive credits from it.
  • The credit type cannot be used in new plans or add-ons.
Archiving is a soft operation — all credit pool data is retained.

Unarchive Mutation

mutation UnarchiveCreditType($input: UnarchiveCreditTypeInput!) {
  unarchiveCreditType(input: $input) {
    id
    status
  }
}

Unarchive Parameters

input
UnarchiveCreditTypeInput
required
Input for unarchiving a credit type