invoiceRequest Mutation
Request an invoice for the order using plugin.
Triggers the following webhook events:
- INVOICE_REQUESTED (async): An invoice was requested.
Applied directives
@webhookEventsInfo(asyncEvents: [INVOICE_REQUESTED], syncEvents: [])
invoiceRequest(number: String, orderId: ID!): InvoiceRequest
Returns
Show return type
type InvoiceRequest {
order: Order
invoiceErrors: [InvoiceError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [InvoiceError!]!
invoice: Invoice
}Arguments
number
number · String
Invoice number, if not provided it will be generated.
orderId
orderId · ID!
ID of the order related to invoice.
Schema: Saleor 3.23.43. Download SDL.