Fluent Commerce Logo
Docs

Virtual Catalogue Workflow Interface Contracts

Interface Contract

Changed on:

12 Nov 2023

Detailed Description

When virtual positions have to be updated, this event should be sent to the virtual catalog workflow to invoke the default logic.

VirtualCatalogueEvent Event

This event is used anytime an external (anything from outside this workflow) update of Virtual Positions is triggered.

Request Payload

PropertyDescriptionTypeRequired?Notes
locationRefThe location reference associated with the virtual positionStringRequiredRequired when the virtual catalogue type is BASE
productRefThe product reference associated with the virtual positionStringRequired

Event Request Example

1{
2  "name": "VirtualCatalogueEvent",
3  "accountId": "<accountId>",
4  "retailerId": "<retailerId>",
5  "entityRef": "<VC_ref>",
6  "entitySubtype": "<VC_type>",
7  "entityType": "VIRTUAL_CATALOGUE",
8  "rootEntityRef": "<VC_ref>",
9  "rootEntityType": "VIRTUAL_CATALOGUE",
10  "attributes": {
11    "productRef": "<productRef>",
12    "locationRef": "<locationRef>"
13  }
14}