mutation UpdateCreditGrant($input: UpdateCreditGrantInput!) {
updateCreditGrant(input: $input) {
additionalMetaData
amount
automaticRechargeConfigurationId
comment
consumedAmount
cost {
amount
currency
}
}
}{
"input": {
"id": "value"
}
}{
"data": {
"updateCreditGrant": {
"additionalMetaData": "value",
"amount": 1.5,
"automaticRechargeConfigurationId": "value",
"comment": "string",
"consumedAmount": 1.5,
"cost": {
"amount": 1.5,
"currency": "AED"
}
}
}
}updateCreditGrant
Update an existing credit grant
updateCreditGrant(input: UpdateCreditGrantInput!): CreditGrant!Arguments
Returns
Metadata associated with the entity
The amount of the credit grant
The ID of the automatic recharge configuration that created this grant, if applicable
The comment for the credit grant
The amount of the credit grant that has been consumed
The fiat cost of the credit grant
Timestamp of when the record was created
The custom currency ID of the credit grant
The customer ID of the credit grant
The display name of the credit grant
The effective date of the credit grant
The expiration date of the credit grant
The auto-generated readable identifier for the credit grant
The type of the credit grant
Unique identifier for the entity
The invoice ID of the credit grant
The latest invoice information of the credit grant
The payment collection status of the credit grant
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.
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
The synchronization states of the entity with external systems
Timestamp of when the record was last updated
The voided date of the credit grant
mutation UpdateCreditGrant($input: UpdateCreditGrantInput!) {
updateCreditGrant(input: $input) {
additionalMetaData
amount
automaticRechargeConfigurationId
comment
consumedAmount
cost {
amount
currency
}
}
}{
"input": {
"id": "value"
}
}{
"data": {
"updateCreditGrant": {
"additionalMetaData": "value",
"amount": 1.5,
"automaticRechargeConfigurationId": "value",
"comment": "string",
"consumedAmount": 1.5,
"cost": {
"amount": 1.5,
"currency": "AED"
}
}
}
}