Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/promotions/update-promotionPromotionsPermission: promotion.update

Update Promotion

Updates an existing promotion's rules, value, or active status.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body application/json
namestringoptional

name parameter.

typestringoptional

type parameter.

valuenumber | nulloptional

value parameter.

descriptionstring | nulloptional

description parameter.

displayStylestring | nulloptional

display Style parameter.

productIdsarray<string (uuid)>optional

product Ids parameter.

categoriesarray<string>optional

categories parameter.

isActivebooleanoptionaldefault: true

is Active parameter.

minQuantityinteger | nulloptional

min Quantity parameter.

tiersobject | nulloptional

tiers parameter.

idstring (uuid)required

id parameter.

Responses

Select a status code to inspect schema.

OK — Promotion updated successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/promotions/update-promotion
curl -X POST "https://api.invoger.com/api/promotions/update-promotion" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": "p1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c", "isActive": false }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "id": "p1a2b3c4-d5e6-7f8a-9b0c-1d2e3f4a5b6c",
    "isActive": false
  }
}