Skip to main content

Update Item Quantity By ID

Quick endpoint to update only the quantity of an item without touching other fields.

When to Use

Use this endpoint when:

  • Stock count changes (inventory adjustment)
  • Out-of-stock toggles via quantity = 0

How to Use

Endpoint
POST/v3/service

Step 1: Get the Item ID

Use the itemId returned by Create Item.

Step 2: Send the Quantity Update

POST function: "update.item.quantity" with the new 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

Request body

itemIdSTRING

Item ID

Example: "5f698149585d7cc1ae35a391"

quantityINTEGER

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: []

isAvailableBOOLEAN

Item available

Example: true

itemIdSTRING

Item ID

Example: "5f698149585d7cc1ae35a391"

nameSTRING

Item name

Example: "Test123"

positionINTEGER

Current position among item

Example: 2

preferencesARRAY

Item preferences

idSTRING

Preferences ID

Example: "5f698149585d7cc1ae35a38d"

nameSTRING

Preferences name

Example: "Sweetness"

minChoiceINTEGER

Set minimum choice

Example: 1

maxChoiceINTEGER

Set maximum choice

Example: 3

labelsARRAY

Preference labels

idSTRING

Label ID

Example: "5f698149585d7cc1ae35a38e"

nameSTRING

Label name

Example: "Basic"

priceOBJECT

Item price

amountINTEGER

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

Example: 100

currencyTypeSTRING

Current only support Ringgit Malaysia

Example: "MYR"

quantityINTEGER

Item quantity

Example: 350

schedulesARRAY

Schedules startAt and endAt

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

sidesARRAY

Item sides

idSTRING

Side Category ID

Example: "5f698149585d7cc1ae35a395"

nameSTRING

Side Category name

Example: "Side Category 1"

isAvailableBOOLEAN

Side Category available

Example: true

minChoiceINTEGER

Set minimum choice

Example: 1

maxChoiceINTEGER

Set maximum choice

Example: 3

sideItemsARRAY

Side items

idSTRING

Side Item ID

Example: "5f698149585d7cc1ae35a392"

isAvailableBOOLEAN

Side Item is available

Example: true

nameSTRING

Side Item name

Example: "Coke"

priceOBJECT

Side item price

amountINTEGER

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

Example: 100

currencyTypeSTRING

Current only support Ringgit Malaysia

Example: "MYR"

updatedAtDATETIME

Last update date time

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