Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Billing__create Checkout

Authenticated tenant-scoped proxy to the private PGW subscription SDK. Requires a signed-in staff user. Needs the `billing__Checkout` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONbilling__createCheckout(input: CreatePgwCheckoutInput!): PgwCheckoutSessionResponseDto!

Authenticated tenant-scoped proxy to the private PGW subscription SDK. Requires a signed-in staff user. Needs the billing__Checkout create permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

input*

Returns

  1. billing__createCheckout
invoiceId*String!
redirectUrl*String!
sessionId*String!
Example Request
mutation Billing__createCheckout($input: CreatePgwCheckoutInput!) {  billing__createCheckout(input: $input) {    invoiceId    redirectUrl    sessionId  }}
Variables
{  "input": {    "planSlug": "string"  }}
Example Response
{  "data": {    "billing__createCheckout": {      "invoiceId": "string",      "redirectUrl": "string",      "sessionId": "string"    }  }}