Inbound endpoints
Product Catalog & Extensions e...

Extensions endpoints

11min

Quick reference

Verb

Path

Method

GET

/api/platform/extension/

Listing extensions

POST

/api/v1/extensions/add_extension/

Adding an extension

POST

/api/v1/extensions/add_values/

Adding values to an existing extension

Listing extensions

Description

This endpoint allows listing extensions

Example

Shell


Upon success, the response is 200 OK and returns the list of extensions

JSON


Adding an extension

Description

This endpoint allows you to create Extensions Note:

Parameters

name



values

type: string, Required

The name of the extension

type: list

The values of the extensions (must be of strings)

Example

Shell


Upon success, the response is 201 OK and returns

JSON


Once you have started creating products, this endpoint will fail. Please contact our customer engineering team in this case.

Adding values to an existing extension

Description

This endpoint allows updating extension values.

Parameters

values

type: list

Example

Say we currently have these values for the extension "Point of Sale":

JSON


Let's say we now want to add values "Lyon" and "Milan" to "Point of Sale" ; we then make the following call:

Shell


Upon success, the response is 201 OK and returns

JSON