Query

Every GraphQL schema has a root type for both queries and mutations. The query type defines GraphQL operations that retrieve data from the server.

Connections

accountConnections (AccountConnectionTypeConnection)
Argument Type Description
accountId String!
accountConnectionsFiltersInput AccountConnectionsFiltersInput!
searchQuery String
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

accountLocations (AccountLocationConnection)
Argument Type Description
accountId String!
accountLocationsFiltersInput AccountLocationsFiltersInput
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order SortInput
searchAssignableAccounts (AccountConnectionTypeConnection)
Argument Type Description
accountId String!
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

searchAssignableAccountsFiltersInput SearchAssignableAccountsFiltersInput!
bookings (BookingConnection!)

Query bookings

Argument Type Description
active Boolean

Flag to show only active bookings

after String

Returns the elements in the list that come after the specified cursor.

archived Boolean

Flag to show archived bookings

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

onlyShipments Boolean
textContains String

Text string to search for

zencargoReferences [String!]

Limit search to specific references

packingLists (PackingListConnection)

Query packing lists

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

findBy PackingListFindBy!
first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

purchaseOrders (PurchaseOrderConnection!)

Query purchase orders

Argument Type Description
accountIds [String!]

Limit purchase orders to particular accounts

after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

bookingState [PurchaseOrderBookingStateEnum!]

Filter by the booking state of PO

cargoReadyDate Int

Filter by cargo ready date, this takes a number of seconds to by added to todays date and returns POs with CRD before this

customerUuid String

Limit purchase orders to particular customer

customerUuids [String]

Lookup by customers(s)

filterBy FilterOptionsEnum

Filter by state of purchase order

first Int

Returns the first n elements from the list.

id String

Lookup by id

ids [String!]

Lookup by multiple ids

incoterms String

Filter by incoterms

last Int

Returns the last n elements from the list.

manufacturerIds [String]

Lookup by manufacturer(s)

orderReferenceNumber String

Lookup by reference number

portOfDestinationUnlocode String

Filter by destination

portOfLoadUnlocode String

Filter by origin

textContains String

Search for text

terminals (TerminalConnection)

Query terminals

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

query String!

Search string you want to query for

terminalType TerminalTypeValue

Terminal type you want to restrict search to

coreProductAttributes (CoreProductAttributeConnection)

Query a Product Attributes for an account operation

Argument Type Description
accountId String!
search String
after String
before String
first Int
last Int
order [CoreProductAttributeOrderInput!]
coreProductCategories (CoreProductCategoryConnection)

Query a Product Categories for an account operation

Argument Type Description
accountId String!
search String
after String
before String
first Int
last Int
order [CoreProductCategoryOrderInput!]
products (ProductConnection!)

Query Products and associated information

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

archived Boolean

Show archived products

The default value is false.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

ids [String!]

Return specific products by id

last Int

Returns the last n elements from the list.

nameContains String

Search for products by name

skuContains String

Search for products by sku

textContains String

Search for products by text

Fields

accountLocation (AccountLocation)
Argument Type Description
locationId String!
legacyAccount (LegacyAccount)

Query information about the account

Argument Type Description
uuid String!

Identifier of the account to retrieve

coreProduct (CoreProduct)

Query a Product operation

Argument Type Description
id String!
coreProductAttribute (CoreProductAttribute)

Query a Product Attribute operation

Argument Type Description
id String!
coreProductCategory (CoreProductCategory)

Query a Product Category operation

Argument Type Description
id String!
productCategories ([ProductCategory!]!)

Query Product Categories