Currency

Modifiers

Generated from Malapos's own code: every route in this area, what it takes and how to call it.

Method Path What it does
GET /api/v1/modifiers List modifiers
POST /api/v1/modifiers Create a modifier
DELETE /api/v1/modifiers/{id} Delete a modifier
GET /api/v1/modifiers/{id} Get a modifier
PATCH /api/v1/modifiers/{id} Update a modifier
POST /api/v1/modifiers/{id}/items Items a modifier
DELETE /api/v1/modifiers/{id}/items/{modId} Delete an item
PATCH /api/v1/modifiers/{id}/items/{modId} Update an item
GET /api/v1/modifiers/product/{productId} Get a product
PUT /api/v1/modifiers/product/{productId} Replace a product

List modifiers

GET /api/v1/modifiers

Example

curl -X GET "https://malapos.com/api/v1/modifiers" \
  -H "Authorization: Bearer sk_live_…"

Create a modifier

POST /api/v1/modifiers

Body

Field Type Required Notes
name string yes min length 1; max length 80
minSelect integer no default 0; min 0
maxSelect integer no default 1; min 1
sortOrder integer no default 0; min 0
modifiers array of object no default []

Example

curl -X POST "https://malapos.com/api/v1/modifiers" \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","minSelect":0,"maxSelect":1,"sortOrder":0,"modifiers":[]}'

Delete a modifier

DELETE /api/v1/modifiers/{id}

Path parameters

Name Type Required Notes
id string yes

Example

curl -X DELETE "https://malapos.com/api/v1/modifiers/:id" \
  -H "Authorization: Bearer sk_live_…"

Get a modifier

GET /api/v1/modifiers/{id}

Path parameters

Name Type Required Notes
id string yes

Example

curl -X GET "https://malapos.com/api/v1/modifiers/:id" \
  -H "Authorization: Bearer sk_live_…"

Update a modifier

PATCH /api/v1/modifiers/{id}

Path parameters

Name Type Required Notes
id string yes

Body

Field Type Required Notes
name string no min length 1; max length 80
minSelect integer no min 0
maxSelect integer no min 1
sortOrder integer no min 0

Example

curl -X PATCH "https://malapos.com/api/v1/modifiers/:id" \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","minSelect":0,"maxSelect":1,"sortOrder":0}'

Items a modifier

POST /api/v1/modifiers/{id}/items

Path parameters

Name Type Required Notes
id string yes

Body

Field Type Required Notes
name string yes min length 1; max length 80
price integer no default 0; min 0
sortOrder integer no min 0

Example

curl -X POST "https://malapos.com/api/v1/modifiers/:id/items" \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","price":0,"sortOrder":0}'

Delete an item

DELETE /api/v1/modifiers/{id}/items/{modId}

Path parameters

Name Type Required Notes
id string yes
modId string yes

Example

curl -X DELETE "https://malapos.com/api/v1/modifiers/:id/items/:modId" \
  -H "Authorization: Bearer sk_live_…"

Update an item

PATCH /api/v1/modifiers/{id}/items/{modId}

Path parameters

Name Type Required Notes
id string yes
modId string yes

Body

Field Type Required Notes
name string no min length 1; max length 80
price integer no min 0
sortOrder integer no min 0
isActive boolean no

Example

curl -X PATCH "https://malapos.com/api/v1/modifiers/:id/items/:modId" \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"name":"…","price":0,"sortOrder":0,"isActive":false}'

Get a product

GET /api/v1/modifiers/product/{productId}

Path parameters

Name Type Required Notes
productId string yes

Example

curl -X GET "https://malapos.com/api/v1/modifiers/product/:productId" \
  -H "Authorization: Bearer sk_live_…"

Replace a product

PUT /api/v1/modifiers/product/{productId}

Path parameters

Name Type Required Notes
productId string yes

Body

Field Type Required Notes
groupIds array of string yes

Example

curl -X PUT "https://malapos.com/api/v1/modifiers/product/:productId" \
  -H "Authorization: Bearer sk_live_…" \
  -H "Content-Type: application/json" \
  -d '{"groupIds":[]}'
CurrencyRupiah is paid by QRIS, virtual account, e-wallet or card; US dollars settle through PayPal.