Fluent Commerce Logo
Docs
Sign In

CreateDeltaInventoryQuantities

Rule

Changed on:

6 Mar 2025

Overview

Create an Quantity(ies) for the specified Position.

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

The is the foundation for 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 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 has no Input parameters.

Event attributes

Name

Type

Description

Required

`deltas`

[`InventoryDelta`]

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

See the Sub-attributes below.

Yes

InventoryDelta Object Sub-attributes

Name

Type

Description

Required?

`deltaId`

`String`

The Id of the Delta Quantity

No

`type`

`String`

The Type of the Quantity (Normally set to `DELTA`)

No

`productRef`

`String`

The Reference of the Variant Product associated to the Position

No

`locationRef`

`String`

The Reference of the   associated to the Position

No

`qty`

`Integer`

The quantity

No

Exceptions

This does not throw any validation Exceptions.

Configuration example

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

Detailed Technical Description

This 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.