Sale__create Invoice
{ collectionName: 'sale__Invoice', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the `sale__Invoice` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
sale__createInvoice(input: CreateInvoiceInput!, tenant: String): InvoiceCreateOutput!{ collectionName: 'sale__Invoice', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the sale__Invoice create permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*tenant?StringReturns
- sale__createInvoice
_id*ID!paymentProvider?PAYMENT_PROVIDERBKASHSSLCOMMERZpaymentStartUrl?Stringmutation Sale__createInvoice($input: CreateInvoiceInput!) { sale__createInvoice(input: $input) { _id paymentProvider paymentStartUrl }}{ "input": { "lineItems": [ { "quantity": 10, "unitPrice": 10.5 } ] }}{ "data": { "sale__createInvoice": { "_id": "1", "paymentProvider": "BKASH", "paymentStartUrl": "string" } }}Sale__create Discount MUTATION
{ collectionName: 'sale__Discount', permissions: ['*', 'create'], } Requires a signed-in staff user. Needs the `sale__Discount` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__edit Invoice MUTATION
Edits a pending or processing order that hasn't been sent to a courier. { collectionName: 'sale__Invoice', permissions: ['*', 'update'], } Requires a signed-in staff user. Needs the `sale__Invoice` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).