Skip to main content
MUTATION
createCreditGrant(input: CreditGrantInput!): CreditGrant!

Arguments

input

Returns

additionalMetaData
JSON

Metadata associated with the entity

amount
Float!

The amount of the credit grant

automaticRechargeConfigurationId
UUID

The ID of the automatic recharge configuration that created this grant, if applicable

comment
String

The comment for the credit grant

consumedAmount
Float!

The amount of the credit grant that has been consumed

cost

The fiat cost of the credit grant

createdAt
DateTime!

Timestamp of when the record was created

currencyId
String!

The custom currency ID of the credit grant

customerId
String!

The customer ID of the credit grant

displayName
String!

The display name of the credit grant

effectiveAt
DateTime!

The effective date of the credit grant

expireAt
DateTime

The expiration date of the credit grant

grantId
String!

The auto-generated readable identifier for the credit grant

grantType

The type of the credit grant

id
UUID!

Unique identifier for the entity

invoiceId
String

The invoice ID of the credit grant

latestInvoice

The latest invoice information of the credit grant

paymentCollection

The payment collection status of the credit grant

priority
Float!

Determines which grant is drawn down first when a customer has multiple active credit grants in the same currency (0-100). Lower numbers are consumed first. Defaults to 50, the same default used for recurring credits granted by a plan or price. When priority is equal, the grant closer to expiring is drawn down first.

resourceId
String

The resource ID of the credit grant

The source type of the credit grant (plan entitlement, addon entitlement, or price)

The status of the credit grant

syncStates

The synchronization states of the entity with external systems

updatedAt
DateTime!

Timestamp of when the record was last updated

voidedAt
DateTime

The voided date of the credit grant

Mutation
Variables
Response