Skip to main content

Create Item

POST/v3/service

Request Parameters

serviceString

alacarte service

Example: "alacarte"

versionString

Currently only support 'v1"

Example: "v1"

functionString

Function that provide by alacarte

Example: "create.item"

requestObject

Refer to explanation below

Example: (Refer to explanation below)

Inside request (parameter)

storeIdString

ID of the Store that Create from RM

Example: "1556079400120532579"

nameString

Item name

Example: "test123"

descriptionString

Item description

Example: "Describe"

imageUrlArray

Input your image

Example: []

isAvailableBool

Item available

Example: true

quantityUint

Item quantity

Example: 350

priceObject

Refer to explanation below

Example: (Refer to explanation below)

sidesArray

Refer to explanation below

Example: (Refer to explanation below)

preferencesArray

Refer to explanation below

Example: (Refer to explanation below)

schedulesArray

Schedules startAt and endAt

Example: ["2020-09-22T02:00:00.000Z", "2020-09-22T14:00:00.000Z"]

categoryIdsArray

ID of the Category

Example: ["5ec1bf480e7df1ca6f3f6350"]

skuString

Item SKU

Example: "fkj31i"

Inside Price (parameter)

amountUint

Amount in cent (min RM 0.10 10 = RM 0.10)

Example: 100

currencyTypeString

Current only support Ringgit Malaysia

Example: "MYR"

Inside Sides (parameter)

nameString

Side additional name

Example: "Side Category 1"

minChoiceUint

Set minimum choice

Example: 1

maxChoiceUint

Set maximum choice

Example: 2

isAvailableBool

Item sides is available

Example: true

itemsArray

Refer to explanation below

Example: (Refer to explanation below)

Inside items (parameter)

For referenceItemId is an Optional if you have a item that already create you can put inside the sides item , but the isAvailable will be default true.

You still can change the name and price

referenceItemIdString

Item reference ID

Example: "5eaa7b72e0e9cd7b01a3a2b2"

nameString

Item name

Example: "Coke"

priceArray

Refer to the Price parameter

Example: ( Refer to the Price parameter)

isAvailableBool

Item sides is available

Example: true

Inside Preferences (parameter)

nameString

Preferences name

Example: "Sweetness"

minChoiceUint

Set minimum choice

Example: 1

maxChoiceUint

Set maximum choice

Example: 3

labelsArray

Refer to explanation below

Example: (Refer to explanation below)

Inside Labels (parameter)

nameString

Label name

Example: "Basic"

Response Parameters

categoryIdString

Category ID

Example: ""

categoryNameString

Name of Category

Example: ""

createdAtDateTime

Creation date time

Example: "2020-09-22T04:44:57.950398414Z"

descriptionString

Description of the item

Example: "Describe"

imageUrlArray

Item image

Example: []

isAvailableBool

Item available

Example: true

itemIdString

Item ID

Example: "5f866a202bdcc5950fcf3c8b"

nameString

Item name

Example: "Test123"

positionUint

Current position among item

Example: 2

preferencesArray

Refer to explanation below

Example: (Refer to explanation below)

priceObject

Refer to the Price parameter

Example: ( Refer to the Price parameter)

quantityUint

Item quantity

Example: 350

schedulesArray

Schedules startAt and endAt

Example: ["2020-09-22T02:00:00.000Z", "2020-09-22T14:00:00.000Z"]

sidesArray

Refer to explanation below

Example: (Refer to explanation below)

skuString

Item SKU

Example: "fkj31i"

updatedAtDateTime

Last update date time

Example: "2020-09-22T04:44:57.950398414Z"

Inside Preferences (parameter)

idString

Preferences ID

Example: "5f698149585d7cc1ae35a38d"

nameString

Preferences name

Example: "Sweetness"

minChoiceUint

Set minimum choice

Example: 1

maxChoiceUint

Set maximum choice

Example: 3

labelsArray

Refer to explanation below

Example: (Refer to explanation below)

Inside Labels (parameter)

idString

Label ID

Example: "5f698149585d7cc1ae35a38e"

nameString

Label name

Example: "Basic"

Inside Price (parameter)

amountUint

Amount in cent (min RM 0.10 10 = RM 0.10)

Example: 100

currencyTypeString

Current only support Ringgit Malaysia

Example: "MYR"

Inside Sides (parameter)

idString

Side Category ID

Example: "5f698149585d7cc1ae35a395"

nameString

Side Category name

Example: "Side Category 1"

isAvailableBool

Side Category available

Example: true

minChoiceUint

Set minimum choice

Example: 1

maxChoiceUint

Set maximum choice

Example: 3

sideItemsArray

Refer to explanation below

Example: (Refer to explanation below)

Inside Side Items (parameter)

referenceItemIdString

Item reference ID

Example: "5eaa7b72e0e9cd7b01a3a2b2"

idString

Side Item ID

Example: "5f698149585d7cc1ae35a392"

nameString

Side Item name

Example: "Coke"

priceObject

Refer to the Price parameter

Example: ( Refer to the Price parameter)

isAvailableBool

Side Item is available

Example: true