Fluent Commerce Logo
Docs
Sign In

Product Catalogue Workflow Interface Contracts

Interface Contract

Changed on:

25 Oct 2023

Detailed Description

The below Interface Contracts document the interaction points with the Product Catalogue workflow. These allow you to ensure that any integration made into the workflow will enable the workflow to work correctly.

UPSERT_PRODUCT Event

This event is used to create or update products within the target Product Catalogue.

Request Payload

STANDARD PRODUCT

Main Payload

Property

Description

Type

Required?

Length Limit

ref

The unique reference identifier for the product

String

Required

100

name

The name of the product

String

Required

255

type

Type of the standard product

String

Required

50

status

Status of the standard product

String

Optional

50

gtin

The Global Trade Item Number (GTIN) for the product

String

Required

20

summary

A short description of the product

String

Optional

255

attributes

Array of attributes for the product

[Attribute]

Optional


categoryRefs

A list of references to the category's to which the product relates. Product categories must be a part of the same product catalogue. The category must already exist.

[String]

Optional

100

prices

Array of prices for the product

[prices]

Optional


taxType

Array of taxTypes for the product

[taxType]

Optional


Attribute Type

Property

Description

Type

Required?

Length Limit

attributes.name

Name of standard product attribute

String

Optional


attributes.type

Type of standard product attribute

String

Optional


attributes.value

Value of standard product attribute

String

Optional


Prices Type

Property

Description

Type

Required?

Length Limit

prices.type

Type of product price

String

Optional

100

prices.currency

Currency of product price

String

Optional

255

prices.value

Value of product price

Float

Optional

255

TaxType Type

Property

Description

Type

Required?

Length Limit

taxType.country

Country of the tax type

String

Optional

100

taxType.group

Group of the tax type

String

Optional

100

taxType.tariff

Tariff of the tax type

String

Optional

100

Event Request Example 

1{
2  "name": "UPSERT_PRODUCT",
3  "retailerId": "1",
4  "entityRef": "DEFAULT:1",
5  "entityType": "PRODUCT_CATALOGUE",
6  "entitySubtype": "DEFAULT",
7  "rootEntityRef": "DEFAULT:1",
8  "rootEntityType": "PRODUCT_CATALOGUE",
9  "attributes": {
10    "ref": "STANDARD_PRODUCT_1",
11    "status": "ACTIVE",
12    "type": "STANDARD",
13    "gtin": "SP",
14    "name": "Standard Product 1",
15    "summary": "Summary",
16    "attributes": [
17      {
18        "name": "imageUrl",
19        "type": "STRING",
20        "value": "ImageUrl"
21      }
22    ],
23    "categoryRefs": [
24      "CATEGORY_1"
25    ],
26    "prices": [
27      {
28        "type": "DEFAULT",
29        "currency": "AUD",
30        "value": 100
31      }
32    ],
33    "taxType": {
34      "country": "AU",
35      "group": "Tax Group",
36      "tariff": "Tax Tariff"
37    }
38  }
39}

Language: json

Name: upsert_product on standard product

Description:

[Warning: empty required content area]

VARIANT PRODUCT

Main Payload

Property

Description

Type

Required?

Length Limit

ref

The unique reference identifier for the product

String

Required

100

name

The name of the product

String

Required

255

type

Type of the variant product

String

Required

50

status

Status of the variant product

String

Optional

50

gtin

The Global Trade Item Number (GTIN) for the product

String

Required

20

summary

A short description of the product

String

Optional

255

standardProductRef

Associated base standard product of this variant product

String

Optional

100

attributes

Array of attributes for the product

[Attribute]

Optional


categoryRefs

A list of references to the category's to which the product relates. Product categories must be a part of the same product catalogue. The category must already exist.

[String]

Optional

100

prices

Array of prices for the product

[prices]

Optional


taxType

Array of taxTypes for the product

[taxType]

Optional


Attribute Type

Property

Description

Type

Required?

Length Limit

attributes.name

Name of standard product attribute

String

Optional


attributes.type

Type of standard product attribute

String

Optional


attributes.value

Value of standard product attribute

String

Optional


Prices Type

Property

Description

Type

Required?

Length Limit

prices.type

Type of product price

String

Optional

100

prices.currency

Currency of product price

String

Optional

255

prices.value

Value of product price

Float

Optional

255

TaxType Type

Property

Description

Type

Required?

Length Limit

taxType.country

Country of the tax type

String

Optional

100

taxType.group

Group of the tax type

String

Optional

100

taxType.tariff

Tariff of the tax type

String

Optional

100

Event Request Example

1{
2  "name": "UPSERT_PRODUCT",
3  "retailerId": "1",
4  "entityRef": "DEFAULT:1",
5  "entityType": "PRODUCT_CATALOGUE",
6  "entitySubtype": "DEFAULT",
7  "rootEntityRef": "DEFAULT:1",
8  "rootEntityType": "PRODUCT_CATALOGUE",
9  "attributes": {
10    "ref": "VARIANT_PRODUCT_1",
11    "status": "ACTIVE",
12    "type": "VARIANT",
13    "gtin": "VP",
14    "name": "Variant Product",
15    "summary": "Summary",
16    "standardProductRef": "STANDARD_PRODUCT_1",
17    "attributes": [
18      {
19        "name": "imageUrl",
20        "type": "STRING",
21        "value": "ImageUrl"
22      }
23    ],
24    "categoryRefs": [
25      "CATEGORY_1"
26    ],
27    "prices": [
28      {
29        "type": "DEFAULT",
30        "currency": "AUD",
31        "value": 100
32      }
33    ],
34    "taxType": {
35      "country": "AU",
36      "group": "Tax Group",
37      "tariff": "Tax Tariff"
38    }
39  }
40}

Language: json

Name: upsert_product on variant product

Description:

[Warning: empty required content area]

`
`


Copyright © 2024 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