Create credit checkout

createCreditCheckout(input: CreditCheckoutInput!): CreditCheckout!

Requires account.billing.manage.

Arguments

ArgumentTypeRequired
inputCreditCheckoutInput!Yes

Input fields

input

CreditCheckoutInput

FieldTypeRequiredDescription
packageIdString!Yes
projectReferenceStringNoProject UUID or slug for an owner-pays top-up: the project owner’s wallet and effective price apply. Naming a project also requires project.read on it.
successUrlStringNo
cancelUrlStringNo

Response

Returns CreditCheckout!. Open the type for its fields and nested types.

FieldType
statusString!
checkoutUrlString!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateCreditCheckout($input: CreditCheckoutInput!) {
  createCreditCheckout(input: $input) {
    status
    checkoutUrl
  }
}
json
{
  "input": {
    "packageId": "small"
  }
}