Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Billing__pay Invoice

Reopen hosted checkout for an existing pending invoice without creating a new invoice. 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__payInvoice(input: PayPgwInvoiceInput!): PgwCheckoutSessionResponseDto!

Reopen hosted checkout for an existing pending invoice without creating a new invoice. 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__payInvoice
invoiceId*String!
redirectUrl*String!
sessionId*String!
Example Request
mutation Billing__payInvoice($input: PayPgwInvoiceInput!) {  billing__payInvoice(input: $input) {    invoiceId    redirectUrl    sessionId  }}
Variables
{  "input": {    "invoiceNumber": "string"  }}
Example Response
{  "data": {    "billing__payInvoice": {      "invoiceId": "string",      "redirectUrl": "string",      "sessionId": "string"    }  }}