Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Sale__invoice Offers

Automatic Buy X Get Y offers an editable order qualifies for but doesn't have yet. { collectionName: 'sale__Invoice', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the `sale__Invoice` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYsale__invoiceOffers(where: CommonFindDocumentDto!): [InvoiceOffer!]!

Automatic Buy X Get Y offers an editable order qualifies for but doesn't have yet. { collectionName: 'sale__Invoice', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the sale__Invoice read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where*

Returns

  1. sale__invoiceOffers
discountId*ID!
products*
quantityMissing*Int!
rewardLabel*String!
title*String!
Example Request
query Sale__invoiceOffers($where: CommonFindDocumentDto!) {  sale__invoiceOffers(where: $where) {    discountId    products {      hasVariants      id      price      title    }    quantityMissing    rewardLabel    title  }}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "sale__invoiceOffers": [      {        "discountId": "1",        "products": [          {            "hasVariants": true,            "id": "1",            "price": 10.5,            "title": "string"          }        ],        "quantityMissing": 10,        "rewardLabel": "string",        "title": "string"      }    ]  }}