Altair
  • Accounts
    ×
  • Pallets
    ×
https://api.2icsoftware.com/accounts/graphql
# Returns a list of accounts, sorted by internalName, where the accountNumber begins with 1 and contains a 6
# The filtering and sorting criteria can be changed in the filterByAccountNumber variable.
► (Send query GetAccounts)
query GetAccounts($filterByAccountNumber: AccountQueryInput!) {
accounts(input: $filterByAccountNumber) {
content {
totalCount
items {
id
version
internalName
accountNumber
externalName
fullName
supplier {
kind
id
}
country
currencyCode
database { id name }
}
}
messages {
kind
key
targets
arguments {
name
value
}
}
}
}

► (Send query GetDatabases)
query GetDatabases($noFiltering: DatabaseQueryInput!) {
databases(input: $noFiltering) {
content {
totalCount
items {
id
version
name
status
sqlServerName
sqlDatabaseName
}
}
messages {
kind
key
targets
arguments {
name
value
}
}
}
}

► (Send query GetSites)
query GetSites($noFiltering: SiteQueryInput!) {
sites(input: $noFiltering) {
content {
totalCount
items {
id
version
name
database { id name }
}
}
messages {
kind
key
targets
arguments {
name
value
}
}
}
}
https://api.2icsoftware.com/pallets/graphql
# Note: all queries are filtered to records that your current login/access_token is authorised to view.

# Returns a list of all locations in the pallets database, sorted by kind
► (Send query GetLocations)
query GetLocations($sortByLocationKind: LocationQueryInput!) {
locations(input: $sortByLocationKind) {
content {
totalCount
items {
id
name
kind
}
}
messages {
kind
key
targets
arguments {
name
value
}
}
}
}

# Returns a list of all locations of a specified kind
► (Send query GetLocationsFromKind)
query GetLocationsFromKind($filterByLocationKind: LocationQueryInput!) {
Get Altair AI Assistant today to supercharge your GraphQL workflow!