Skip to main content

Update Item Quantity By ID

POST/v3/service
  • Using itemId and quantity to update item quantity

Request Parameters

serviceString

alacarte service

Example: "alacarte"

versionString

Currently only support 'v1"

Example: "v1"

functionString

Function that provide by alacarte

Example: "update.item.quantity"

requestObject

Refer to explanation below

Example: (Refer to explanation below)

itemIdString

Item ID

Example: "5f698149585d7cc1ae35a391"

quantityUint

Item quantity

Example: 300

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: "5f698149585d7cc1ae35a391"

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)

updatedAtDateTime

Last update date time

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

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

Optional, 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

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 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"