Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

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).

MUTATIONsale__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?String

Returns

  1. sale__createInvoice
_id*ID!
paymentProvider?PAYMENT_PROVIDER
Value inBKASHSSLCOMMERZ
paymentStartUrl?String
Example Request
mutation Sale__createInvoice($input: CreateInvoiceInput!) {  sale__createInvoice(input: $input) {    _id    paymentProvider    paymentStartUrl  }}
Variables
{  "input": {    "lineItems": [      {        "quantity": 10,        "unitPrice": 10.5      }    ]  }}
Example Response
{  "data": {    "sale__createInvoice": {      "_id": "1",      "paymentProvider": "BKASH",      "paymentStartUrl": "string"    }  }}