Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/products/form-productProducts

Load Product Form Options

Loads tenant-scoped options (categories, brands, suppliers, storages, existing product when `id` is supplied). Dynamically enforces `product.update` when `id` is provided or `product.create` otherwise.

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
idstring (uuid) | nulloptional

id parameter.

optionenum('category' | 'brand' | 'supplier' | 'storage')optional

option parameter.

Responses

Select a status code to inspect schema.

OK — Product form metadata loaded.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/products/form-product
curl -X POST "https://api.invoger.com/api/products/form-product" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "id": null, "option": "category" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "product": null,
    "options": []
  }
}