Fluent Commerce Logo
Docs

GraphQL Cheatsheet

Topic

Author:

Holger Lierse

Changed on:

1 July 2024

Overview

  • Collection of GraphQL samples handy for accessing Fluent OMS

GraphQL Inventory Queries

Author:

Holger Lierse

Changed on:

1 July 2024

Overview

Sample Inventory Queries that can be used on a daily basis.

Key points

  • An actual example of a GraphQL query on the following:
    • Inventory Position by Details
    • Inventory Position by Reference
    • Inventory Positions
    • Inventory Quantity Updated

Inventory Position by Details

Retrieve inventory positions based on details `productRefs` and `locationRef` including the corresponding inventory quantities.Example Query:Example Parameters:


Inventory Position by Reference

Retrieve an inventory position based on a specific ref. In the default setup, an inventory position reference follows the format: "`<productRef>:<locationRef>:DEFAULT`"

Example Query:

Example Parameters:



Inventory Positions

Retrieve inventory positions and specific inventory quantities (`LAST_ON_HAND`, `RESERVED`, `CORRECTION`) by paginating through the records with a cursor.

Example Query:

Example Parameters:



Inventory Quantity Updated

Retrieve inventory quantities (type: `LAST_ON_HAND`) that have been updated in a specific timeframe.

Example Query:

Example Parameters:


GraphQL Product Queries

Author:

Holger Lierse

Changed on:

4 June 2025

Overview

Sample Product Queries that can be used on a daily basis

Key points

  • Sample Queries on the following:
    • Variant Product (SKU) by Reference
    • Variant Product (SKU) by Details
    • Variant Products (SKU)
    • Product by Name and Reference

Variant Product (SKU) by Reference

Retrieve a variant product (SKU) based on a reference.Example Query:Example Parameters:

Variant Product (SKU) by Details

Retrieve a variant product (SKU) based on details productRefs and statuses.Example Query:Example Parameters:

Variant Products (SKU) 

Retrieve variant products by paginating through the records.Example Query:Example Parameters:

Product by Name and Reference

Retrieve a product based on a name and reference.Example Query:Example Parameters:

Virtual Position Queries

Author:

Holger Lierse

Changed on:

1 July 2024

Overview

Sample Virtual Position Queries that can be used on a daily basis

Key points

  • Query sample on extract virtual position by updatedOn

Virtual Position by updatedOn

Retrieve Virtual positions which have updated in a specific timeframeExample Query:Example Parameters:

GraphQL All-In-One Inventory Queries

Author:

Holger Lierse

Changed on:

1 July 2024

Overview

Retrieve inventory position, variant product, virtual base position and virtual aggregate position records based on input parameters.

Key points

  • Sample GraphQL query that extracts inventory position, variant product, virtual position and virtual aggregate position. 

Inventory Position, Variant Product, Virtual Base & Aggregate Position

Retrieve inventory position, variant product, virtual base position and virtual aggregate position records based on input parameters.Example Query:Example Parameters:


GraphQL order by ID with flags in parameter

Author:

Holger Lierse

Changed on:

1 July 2024

Overview

Retrieve an order by `id` with flags to drive the retrieval of sub-entities.

Key points

  • Sample query on how to use flags as part of the query parameter

Inventory Position, Variant Product, Virtual Base & Aggregate Position

Retrieve inventory position, variant product, virtual base position and virtual aggregate position records based on input parameters.Example Query:Example Parameters: