Fluent Commerce Logo
Docs
Sign In

CreateDeltaInventoryQuantities

Rule

Changed on:

6 Mar 2025

Overview

Create an Inventory Quantity(ies) for the specified Inventory Position.

Plugin NameInventory Reference Module
Namespace[[account.id]].globalinventory

The Inventory Reference Module is the foundation for inventory related implementations. It provides reference Workflows for inventory ingestion and processing. Extensible by design, use this Module as a base to build a solution to the needs of your customers.

The Inventory Module includes the following areas:

  • Product Catalogue workflow
  • Inventory Catalogue workflow
  • Control Group workflow
  • Virtual Catalogue workflow

UI Description

Create Inventory Quantities using Event attributes.

Accepts

  • INVENTORY_POSITION

Actions

  • This Rule produces a MutationAction that will create an Inventory Quantity(ies)

Rule parameters

This Rule has no Input parameters.

Event attributes

Name

Type

Description

Required

`deltas`

[

`InventoryDelta`
]

A list of Inventory Quantities to be created for the specified Inventory Position.

See the Sub-attributes below.

Yes

InventoryDelta Object Sub-attributes

Name

Type

Description

Required?

`deltaId`

`String`

The Id of the Delta Inventory Quantity

No

`type`

`String`

The Type of the Inventory Quantity (Normally set to 

`DELTA`
)

No

`productRef`

`String`

The Reference of the Variant Product associated to the Inventory Position

No

`locationRef`

`String`

The Reference of the  Location associated to the Inventory Position

No

`qty`

`Integer`

The quantity

No

Exceptions

This Rule does not throw any validation Exceptions.

Configuration example

1{
2    "name": "[[account.id]].globalinventory.CreateDeltaInventoryQuantities",
3    "props": null
4}

Language: json

Detailed Technical Description

This Rule execution includes the following steps:

  • Parse / deserialize the 
    `deltas`
     Event attribute into a list of 
    `InventoryDelta`
     Objects (outlined above).
  • Produce a
    `MutationAction`
    with the
    `createInventoryQuantity`
    Mutations
    for each
    `InventoryDelta`
     Object.

Version History

2023-08-03

v23.8.3

Refers to the Product Release Version.

Copyright © 2025 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo