Skip to content
Developer home
X3

Example GraphQL queries for Sales Invoices

  Less than to read

Details and line items for a sales invoice

{
  sage {
    x3Sales {
      salesInvoice(filter: "{id : 'ATC-ES01212-000001' }") {
        edges {
          node {
            id
            category
            lines {
              edges {
                node {
                  lineNumber
                  serviceContract
                  salesOrder
                  company {
                    code
                  }
                  grossPrice
                }
              }
            }
          }
        }
      }
    }
  }
}

Try it on our demo endpoint