API reference
Catalog
Autofill catalog for subscriptions and hardware.
Search the catalog
GET /api/v1/catalog/suggest
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
q | query | string | no | Search text (name, alias or domain). |
currency | query | string | no | Defaults to THB. |
type | query | "subscription" | "hardware" | "career" | "revenue" | "liability" | no |
Responses
200— Best match, suggestions and a favicon fallback.object401— Missing or invalid credential (session token or API key; only when auth is configured). Error
curl "$API_URL/api/v1/catalog/suggest" \
-H "Authorization: Bearer $TOKEN"Resolve autofill values
POST /api/v1/catalog/resolve
Smart resolver that skips fields the user already touched.
Request body (application/json)
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
currency | string | no | |
type | "subscription" | "hardware" | "career" | "revenue" | "liability" | no | |
touchedFields | object | no | |
touchedFields.amount | boolean | no | |
touchedFields.cycle | boolean | no | |
touchedFields.category | boolean | no | |
touchedFields.imageUrl | boolean | no | |
currentValues | object | no | |
currentValues.amount | number | string | no | |
currentValues.cycle | string | no | |
currentValues.category | string | no | |
currentValues.imageUrl | string | no |
Responses
200— Autofill values.object401— Missing or invalid credential (session token or API key; only when auth is configured). Error
curl -X POST "$API_URL/api/v1/catalog/resolve" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Schemas
Error
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |