Skip to content
Developerhome

Example GraphQL queries for Suppliers

  Less than to read

Query active suppliers

{
  xtremX3MasterData {
    supplier {
      query(filter: "{isActive: true}") {
        edges {
          node {
            code {
              code
            }  
            companyName
            shortCompanyName
            isActive         
            addressByDefault{
              code
              description
            }
            location
          }
        }
      }
    }
  }
}

Read supplier with its code and address

{ xtremX3MasterData {
    supplier {
      query(filter: "{code : 'AE022', addressByDefault : 'A01'}") {
        edges {
          node {
            code
            companyName
            shortCompanyName
            isActive         
            addressByDefault{
              code
              description
            }
            location
          }
        }
      }
    }
  }
}