Fluent Commerce Logo
Docs
Sign In

Virtual Position Queries

Essential knowledge

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 timeframe

Example Query:

1query QueryVirtualPositions($virtualCatalogueRef: String!, $from: DateTime!, $to: DateTime) {
2  virtualPositions(catalogue: {ref: $virtualCatalogueRef}, updatedOn: {from: $from, to: $to}) {
3    edges {
4      node {
5        ref
6        catalogue {
7          ref
8        }
9        quantity
10        status
11      }
12    }
13  }
14}

Language: json

Name: Virtual positions - Query

Description:

Virtual positions - Query

Example Parameters:

1
2{
3  "virtualCatalogueRef": "BASE:1",
4  "from": "2019-10-01T00:00:00.000Z",
5  "to": "2019-10-01T23:59:59.999Z"
6}

Language: json

Name: Virtual positions - Parameter

Description:

Virtual positions - Parameter