API · Catalogs and rules

Catalogs

Organization catalogs (products, outlets and others): reading, changes since a version, item upload.

Organization catalogs

GET/catalogs

All of the organization's catalogs by code, including inactive ones (active: false): a client that kept a copy learns about the deactivation. No pagination — an organization has dozens of catalogs (meta.cursor.next is always null). Ability catalogs:read; a catalog is shared across the organization, the project plays no part. The item field schema — GET /schema/catalog:<code>. Any query parameter — VALIDATION_FAILED (“Unknown parameter”).

Responses

  • 200

    Catalogs

    application/json

    object

  • 401

    UNAUTHENTICATED — the Bearer token is missing or invalid

    Error format and codes

  • 403

    FORBIDDEN — the token lacks an ability (details.ability) or a project (details.project)

    Error format and codes

  • 422

    VALIDATION_FAILED — details.fields with errors by field

    Error format and codes

  • 429

    RATE_LIMITED — the client's rate limit is exceeded: details.limit — the limit per minute, details.retry_after — in how many seconds to retry; the same values are in the headers X-RateLimit-Limit and Retry-After.

    Headers

    • Retry-Afterinteger

      Seconds until the window resets
    • X-RateLimit-Limitinteger

    • X-RateLimit-Remaininginteger

    Error format and codes

Catalog with categories

GET/catalogs/{code}

The catalog header and all its categories, including inactive ones, as a flat list: parents before children (level by level from the roots, by code within a level), the parent given by its code. Category codes in items and in the change feed match this list. For a catalog without has_categories the list is empty. An inactive catalog can be read. Ability catalogs:read.

Parameters

  • codestringpathrequired

    Catalog code (snake_case in Latin letters, up to 64 characters; converted to lower case). If the organization has no such catalog or the code fails the format — NOT_FOUND with details.code as sent (first 64 characters).
    Example
    sku

Responses

  • 200

    Catalog

    application/json

    object

  • 401

    UNAUTHENTICATED — the Bearer token is missing or invalid

    Error format and codes

  • 403

    FORBIDDEN — the token lacks an ability (details.ability) or a project (details.project)

    Error format and codes

  • 404

    NOT_FOUND — the organization has no catalog with this code, or the code does not match the format (details.code — as in the path, the first 64 characters)

    Error format and codes

  • 422

    VALIDATION_FAILED — details.fields with errors by field

    Error format and codes

  • 429

    RATE_LIMITED — the client's rate limit is exceeded: details.limit — the limit per minute, details.retry_after — in how many seconds to retry; the same values are in the headers X-RateLimit-Limit and Retry-After.

    Headers

    • Retry-Afterinteger

      Seconds until the window resets
    • X-RateLimit-Limitinteger

    • X-RateLimit-Remaininginteger

    Error format and codes

Catalog items

GET/catalogs/{code}/items

Catalog items, including inactive ones, by code in database sort order, with a cursor (meta.cursor.next). An inactive catalog can be read. Ability catalogs:read.

Syncing a copy: meta.version is the catalog version read before the rows of the first page; all pages of one pass return the same value. After the pass the client requests GET /catalogs/{code}/changes?since=<meta.version> — changes made during the pass arrive there (possibly repeating state already received — apply them by code).

Filters (all combined with AND): active; category — the category and its descendants (an unknown code gives an empty list); attributes[<code>]=<value> — equality on a field of the catalog:<code> schema visible to the API: the value is converted to its stored form (decimal by scale, phone in E.164, email in lower case, boolean — true/false/1/0, date — YYYY-MM-DD, datetime — RFC 3339 with a time zone, reference — item code), for multi_enum — “contains the option”. Only the type's format is checked, not the write rules (bounds, options, length, existence of the reference): no such value gives an empty list. An unknown, inactive or API-hidden field, or an empty or malformed value — VALIDATION_FAILED under attributes.<code>. category on a catalog without categories — VALIDATION_FAILED. A catalog with the campaign role accepts project (the code of a project assigned to the API client; any other gives an empty list) and at (RFC 3339 with a time zone: the campaign window [starts_at, ends_at) covers the moment); on other catalogs — VALIDATION_FAILED.

All campaigns (role campaign) are visible; projects lists only the codes of projects assigned to the API client (including deactivated ones); a campaign of other projects only comes with projects: [].

Parameters

  • codestringpathrequired

    Catalog code (snake_case in Latin letters, up to 64 characters; converted to lower case). If the organization has no such catalog or the code fails the format — NOT_FOUND with details.code as sent (first 64 characters).
    Example
    sku
  • activestringquery

    true or 1 — active only, false or 0 — inactive only (case-insensitive); without the parameter — all
    Example
    true
  • categorystringquery

    Category code — items of the category and its descendants
  • attributesobjectquery

    attributes[<field code>]=<value> — equality (for multi_enum — contains the option)

    Sent as keys: name[key]=value

    Key values: string

    Example
    {"brand":"acme"}
  • projectstringquery

    Campaign catalog only — campaigns of the project (code)
  • atstring (date-time)query

    Campaign catalog only — campaigns running at this moment (RFC 3339 with a time zone)
  • limitintegerquery

    List page size, 1…200; 50 when omitted
    Default
    50
    Constraints
    minimum: 1maximum: 200
  • cursorstringquery

    Opaque cursor from meta.cursor.next of the previous page; valid only with the same filters — otherwise VALIDATION_FAILED under cursor. Without the parameter — the first page.
    Constraints
    maxLength: 512

Responses

  • 200

    Page of items

    application/json

    object

    • dataarray<CatalogItem>required

    • metaobjectrequired

      Service data of the response; for lists it contains cursor
      Fields
      • cursorobjectrequired

        Fields
        • nextstring | nullrequired

          Cursor of the next page, null — there are no more pages
      • redirected_fromstring (uuid)

        Only on a redirect: the request came with the ID of a customer merged into another one (in the path or in the body's customer_id), the response is for the primary one; the value is the original ID (normalized, lower case). Without a redirect the key is absent. A retry with the same Idempotency-Key returns the response stored by the first execution as is.
      • idempotent_replayboolean

        Only on a retry: the response is taken from the idempotency store, data is byte-for-byte the same as in the first response; or a retry by the interaction's natural key external_id — data is the existing interaction in its current state; or a repeated void of an already voided one. The first execution has no such field.
        Always
        true
      • versionintegerrequired

        Only in catalog lists: the catalog version — for items it is read before the rows of the first page of the traversal, for changes it is the upper bound of the feed. The next sync is changes?since=<version>.
        Constraints
        minimum: 0
      • recordedinteger

        Only when recording consents: how many rows were inserted; 0 — the whole batch was already recorded (a retry by natural key).
        Constraints
        minimum: 0
      • effectsInteractionEffects

  • 401

    UNAUTHENTICATED — the Bearer token is missing or invalid

    Error format and codes

  • 403

    FORBIDDEN — the token lacks an ability (details.ability) or a project (details.project)

    Error format and codes

  • 404

    NOT_FOUND — the organization has no catalog with this code, or the code does not match the format (details.code — as in the path, the first 64 characters)

    Error format and codes

  • 422

    VALIDATION_FAILED — details.fields: active, category, attributes.<code>, project, at, limit, cursor (cursor from another request or corrupted), an unknown parameter — under its own name.

    Error format and codes

  • 429

    RATE_LIMITED — the client's rate limit is exceeded: details.limit — the limit per minute, details.retry_after — in how many seconds to retry; the same values are in the headers X-RateLimit-Limit and Retry-After.

    Headers

    • Retry-Afterinteger

      Seconds until the window resets
    • X-RateLimit-Limitinteger

    • X-RateLimit-Remaininginteger

    Error format and codes

Batch write of categories and items by code

PUT/catalogs/{code}/items

Upsert of catalog categories and items in a single version: a record with a new code is created, one with an existing code is partially updated (a missing key leaves the field unchanged); there is no deletion — use active: false. If nothing changed, the version stays the same and changed: false. Ability catalogs:write (it does not grant reading). A catalog in import mode accepts the call: the API is the channel of the accounting system; manual mode accepts it too (an organization without an accounting system uploads the initial list). No Idempotency-Key: repeating the same body gives unchanged and the same version. An inactive catalog — NOT_FOUND.

Category: code (required; up to 64 characters without whitespace, case-sensitive), label ({ru, en}, required on creation), parent (code, or null for a root), active. Requires has_categories.

Item: code (string or integer — a barcode), label (required on creation), attributes — fields of the catalog:<code> schema visible to the API (GET /schema/catalog:<code>), merged field by field: null removes a field, an empty string also becomes null; required schema fields are required on creation; a field hidden from the API is “unknown”. components — [{code, qty}] of items of the same catalog (replaced as a whole; a component exists, is active and is not a bundle itself; requires has_components), category (code or null), active. A catalog with the campaign role also takes starts_at, ends_at (RFC 3339 with a time zone) and projects (codes of the organization's active projects — not only those assigned to the API client); they are required on creation.

At most 1000 categories and 1000 items per call; a duplicate code in the batch is an error. Order of errors: body shape (a JSON object, lists, extra keys — body and field names) → catalog (NOT_FOUND) → limit → record errors, which all arrive at once under body paths.

Parameters

  • codestringpathrequired

    Catalog code (snake_case in Latin letters, up to 64 characters; converted to lower case). If the organization has no such catalog or the code fails the format — NOT_FOUND with details.code as sent (first 64 characters).
    Example
    sku

Request body

application/json

CatalogUpsertInput

A catalog upsert batch; both lists are optional
  • categoriesarray<object>

    Constraints
    maxItems: 1000
    Items
    • codestring | integerrequired

    • labelLocalizedText

    • parentstring | integer | null

    • activeboolean

  • itemsarray<object>

    Constraints
    maxItems: 1000
    Items
    • codestring | integerrequired

    • labelLocalizedText

    • attributesobject

    • componentsarray<object>

      Items
      • codestring | integerrequired

      • qtyintegerrequired

        Constraints
        minimum: 1
    • categorystring | integer | null

    • activeboolean

    • starts_atstring (date-time)

    • ends_atstring (date-time)

    • projectsarray<string>

No other keys

Responses

  • 200

    Batch result

    application/json

    object

  • 401

    UNAUTHENTICATED — the Bearer token is missing or invalid

    Error format and codes

  • 403

    FORBIDDEN — the token lacks an ability (details.ability) or a project (details.project)

    Error format and codes

  • 404

    NOT_FOUND — the organization has no catalog with this code, or the code does not match the format (details.code — as in the path, the first 64 characters)

    Error format and codes

  • 422

    VALIDATION_FAILED — details.fields: body (the body is not a JSON object: malformed JSON, another Content-Type, an empty body, a list), categories, items (not a list, more than 1000), any other body key — under its own name; categories.<i>.<field>, items.<i>.<field>, items.<i>.attributes.<code>, items.<i>.components.<j>.code, items.<i>.projects.<j>.

    Error format and codes

  • 429

    RATE_LIMITED — the client's rate limit is exceeded: details.limit — the limit per minute, details.retry_after — in how many seconds to retry; the same values are in the headers X-RateLimit-Limit and Retry-After.

    Headers

    • Retry-Afterinteger

      Seconds until the window resets
    • X-RateLimit-Limitinteger

    • X-RateLimit-Remaininginteger

    Error format and codes

Catalog changes since version N

GET/catalogs/{code}/changes

Rows of the catalog log with since < version <= meta.version in version order (within a version — the catalog, categories, items), with a cursor. One operation (an upsert batch, an import, a header edit) is one version, with a row per changed catalog, category or item. An inactive catalog can be read — the row of its deactivation (subject: catalog, operation: deactivated) is visible. Ability catalogs:read.

Syncing: meta.version is the catalog version read before the rows of the first page; all pages of the pass return the same value and no rows newer than it. After the pass, the next sync uses since=<meta.version>. A request with since equal to the current version returns an empty list and the same version. since greater than the catalog version — VALIDATION_FAILED under since: the client's copy comes from another database, and the catalog is reloaded in full (GET /catalogs/{code}/items).

diff — {"<path>": {"old", "new"}} for changed paths only; on creation — all non-empty ones with old: null. Paths are the field names of API resources: for a catalog — label, active, has_categories, has_components; for a category — label, active, parent (code); for an item — label, active, category (code), components, attributes.<code> (a key of the attributes map; API-visible fields only), for campaigns — starts_at, ends_at (UTC), projects (codes of projects assigned to the API client; a path that then has old = new is not shown; empty — null). A row with no visible paths comes with diff: {}. Apply a version as a whole (a category's parent may come after the child), and a version may continue on the next page: accumulate rows until the version number changes or cursor.next becomes null.

Parameters

  • codestringpathrequired

    Catalog code (snake_case in Latin letters, up to 64 characters; converted to lower case). If the organization has no such catalog or the code fails the format — NOT_FOUND with details.code as sent (first 64 characters).
    Example
    sku
  • sinceintegerqueryrequired

    Catalog version the client is already synced to (0 — from the beginning)
    Constraints
    minimum: 0
  • limitintegerquery

    List page size, 1…200; 50 when omitted
    Default
    50
    Constraints
    minimum: 1maximum: 200
  • cursorstringquery

    Opaque cursor from meta.cursor.next of the previous page; valid only with the same filters — otherwise VALIDATION_FAILED under cursor. Without the parameter — the first page.
    Constraints
    maxLength: 512

Responses

  • 200

    Page of changes

    application/json

    object

    • dataarray<CatalogChange>required

    • metaobjectrequired

      Service data of the response; for lists it contains cursor
      Fields
      • cursorobjectrequired

        Fields
        • nextstring | nullrequired

          Cursor of the next page, null — there are no more pages
      • redirected_fromstring (uuid)

        Only on a redirect: the request came with the ID of a customer merged into another one (in the path or in the body's customer_id), the response is for the primary one; the value is the original ID (normalized, lower case). Without a redirect the key is absent. A retry with the same Idempotency-Key returns the response stored by the first execution as is.
      • idempotent_replayboolean

        Only on a retry: the response is taken from the idempotency store, data is byte-for-byte the same as in the first response; or a retry by the interaction's natural key external_id — data is the existing interaction in its current state; or a repeated void of an already voided one. The first execution has no such field.
        Always
        true
      • versionintegerrequired

        Only in catalog lists: the catalog version — for items it is read before the rows of the first page of the traversal, for changes it is the upper bound of the feed. The next sync is changes?since=<version>.
        Constraints
        minimum: 0
      • recordedinteger

        Only when recording consents: how many rows were inserted; 0 — the whole batch was already recorded (a retry by natural key).
        Constraints
        minimum: 0
      • effectsInteractionEffects

  • 401

    UNAUTHENTICATED — the Bearer token is missing or invalid

    Error format and codes

  • 403

    FORBIDDEN — the token lacks an ability (details.ability) or a project (details.project)

    Error format and codes

  • 404

    NOT_FOUND — the organization has no catalog with this code, or the code does not match the format (details.code — as in the path, the first 64 characters)

    Error format and codes

  • 422

    VALIDATION_FAILED — details.fields: since (missing, not an integer ≥ 0, greater than the catalog version), limit, cursor (from another request or corrupted), an unknown parameter — under its own name.

    Error format and codes

  • 429

    RATE_LIMITED — the client's rate limit is exceeded: details.limit — the limit per minute, details.retry_after — in how many seconds to retry; the same values are in the headers X-RateLimit-Limit and Retry-After.

    Headers

    • Retry-Afterinteger

      Seconds until the window resets
    • X-RateLimit-Limitinteger

    • X-RateLimit-Remaininginteger

    Error format and codes

Schemas

Catalog

object

Catalog header. source — the mode: manual — edited in the admin panel, import — by a file or by PUT /catalogs/{code}/items from an accounting system. version — a change counter: any change to the catalog, its categories and items takes the next number; changes since version N — GET /catalogs/{code}/changes?since=N.
  • codestringrequired

    Example
    sku
  • labelLocalizedTextrequired

  • sourcestringrequired

    Values
    manualimport
  • roleCatalogRole | nullrequired

  • has_categoriesbooleanrequired

  • has_componentsbooleanrequired

    Items can be bundles — components
  • activebooleanrequired

  • versionintegerrequired

    Constraints
    minimum: 0

LocalizedText

object

Label by platform language (ru, en); at least one language is non-empty
Example
{"ru":"Телефон","en":"Phone"}

Key values: string

CatalogRole

string

System role of a catalog (closed list)
Values
campaignskuregion

Meta

object

Service data of the response; for lists it contains cursor
  • cursorobject

    Fields
    • nextstring | nullrequired

      Cursor of the next page, null — there are no more pages
  • redirected_fromstring (uuid)

    Only on a redirect: the request came with the ID of a customer merged into another one (in the path or in the body's customer_id), the response is for the primary one; the value is the original ID (normalized, lower case). Without a redirect the key is absent. A retry with the same Idempotency-Key returns the response stored by the first execution as is.
  • idempotent_replayboolean

    Only on a retry: the response is taken from the idempotency store, data is byte-for-byte the same as in the first response; or a retry by the interaction's natural key external_id — data is the existing interaction in its current state; or a repeated void of an already voided one. The first execution has no such field.
    Always
    true
  • versioninteger

    Only in catalog lists: the catalog version — for items it is read before the rows of the first page of the traversal, for changes it is the upper bound of the feed. The next sync is changes?since=<version>.
    Constraints
    minimum: 0
  • recordedinteger

    Only when recording consents: how many rows were inserted; 0 — the whole batch was already recorded (a retry by natural key).
    Constraints
    minimum: 0
  • effectsInteractionEffects

InteractionEffects

object

Effects of the operation: what rules and accounts did in its transaction. On a retry by external_id the deltas are empty. Rules are recalculated when an interaction is created, edited and voided: labels_added and labels_removed are labels the customer gained and lost; a change of a rule row that did not make a label appear or disappear (a manual row exists alongside, a row of another rule is overwritten) is visible only in rules_fired. balances — changes to the customer's balances made by the operation (redemptions and accruals on create, offsetting entries on void), one element per kind in ascending order of the code; empty on a retry and an edit. assets — asset changes made by the operation (actions on item serial numbers on create, their reversal on void) in recording order; empty on a retry and an edit. labels and current_balances — the customer's state after the operation, returned on a retry too.
  • labels_addedarray<CustomerLabel>required

    Labels the customer gained in the operation
  • labels_removedarray<string>required

    Codes of labels the customer lost in the operation
  • balancesarray<BalanceChange>required

    Balance changes of the operation by account kind
  • assetsarray<AssetChange>required

    Asset changes of the operation
  • rules_firedarray<RuleFired>required

    Changes to label rows made by rules, in order of application
  • labelsarray<CustomerLabel>required

    The customer's active labels after the operation
  • current_balancesarray<CustomerBalance>required

    The customer's current balances after the operation — like balances of the customer card: one element for each active account kind, zero without entries

CustomerLabel

object

Active customer label — one item per code; expired labels are not in the response. A label can have two rows — manual and rule; the label is active while at least one of them is. The top-level fields come from the manual row if there is one, otherwise from the rule row; sources — each active row.
  • codestringrequired

    Label type code (lower case)
  • kindstringrequired

    Kind from the type settings — blocking operations, a group, a flag
    Values
    blocksegmentflag
  • reasonstring | nullrequired

  • expires_atstring (date-time) | nullrequired

    ISO 8601, UTC; null — no expiry
  • sourcestringrequired

    Set manually or by a rule
    Values
    manualrule
  • created_byActorrequired

  • created_atstring (date-time)required

    Moment the label was set, ISO 8601, UTC
  • sourcesarray<CustomerLabelSource>required

    Active label rows by source — the manual one first

Actor

object

Who performed the operation — an API client, an admin panel user or the system
  • kindstringrequired

    Values
    api_clientusersystem
  • idstring | nullrequired

    ID of the API client (UUID) or user; null for system

CustomerLabelSource

object

Label row of one source: a person sets and removes the manual row, only the rule sets and removes the rule row (it cannot be removed via DELETE …/labels/{code}).
  • sourcestringrequired

    Values
    manualrule
  • rule_idstring (uuid) | nullrequired

    Rule that set the row; null for the manual one
  • reasonstring | nullrequired

  • expires_atstring (date-time) | nullrequired

    ISO 8601, UTC; null — no expiry
  • created_byActorrequired

  • created_atstring (date-time)required

    Moment the row was set, ISO 8601, UTC

BalanceChange

object

A change of the customer's balance of one account kind in the operation: change — the sum of the operation's entries for the kind (signed; a redemption and an accrual of one kind make one element), balance — the balance after; decimal as a string with exactly the kind's scale, unit — as in CustomerBalance. A kind with corrupted settings (a void goes through for it as well) — in canonical form, unit: null.
  • account_kindstringrequired

  • changestringrequired

    Example
    -3000
  • balancestringrequired

    Example
    2000
  • unitobject | nullrequired

    As unit in CustomerBalance — one unit form per language, not inflected by number

    Key values: string

AssetChange

object

An asset change made by an interaction operation: registered — registration (status_from: null) or re-linking of an ownerless asset, transitioned — a transition of the customer's asset, reverted — undone on void; customer_id — the owner after the change
  • idstring (uuid)required

  • typestringrequired

    Asset type code
  • serialstringrequired

    Serial number as recorded
  • eventstringrequired

    Values
    registeredtransitionedreverted
  • status_fromstring | nullrequired

  • status_tostringrequired

  • customer_idstring (uuid) | nullrequired

RuleFired

object

A rule that fired: the rule's label row was set (set) or removed (removed).
  • rulestringrequired

    Rule code
  • rule_idstring (uuid)required

    Rule ID — same as sources[].rule_id of a customer label
  • labelstringrequired

    Label code
  • actionstringrequired

    Values
    setremoved

CustomerBalance

object

Customer balance by account kind. There is no kind label — as with the card's labels and consents, kind labels are in the schema (GET /v1/schema).
  • account_kindstringrequired

    Account kind code (entity_types:account_kind)
    Example
    points
  • balancestringrequired

    Balance — a decimal as a string with exactly the kind's number of decimal places (scale): "0" for a kind with no decimal places, "100.50" for a kind with two; can be negative (a minus allowed by the kind, or a reversal).
    Example
    100100.50-40.00
  • unitobject | nullrequired

    Unit label for displaying the balance — a “language → text” object with any languages; null — not set. One form per language, as set on the account kind: plural forms by number (“1 point”, “5 points”) are not returned by the API — the forms are in the account kind settings, and only the admin panel uses them.
    Example
    {"ru":"балл","en":"pts"}

    Key values: string

CatalogDetails

object

Catalog header. source — the mode: manual — edited in the admin panel, import — by a file or by PUT /catalogs/{code}/items from an accounting system. version — a change counter: any change to the catalog, its categories and items takes the next number; changes since version N — GET /catalogs/{code}/changes?since=N.
  • codestringrequired

    Example
    sku
  • labelLocalizedTextrequired

  • sourcestringrequired

    Values
    manualimport
  • roleCatalogRole | nullrequired

  • has_categoriesbooleanrequired

  • has_componentsbooleanrequired

    Items can be bundles — components
  • activebooleanrequired

  • versionintegerrequired

    Constraints
    minimum: 0
  • categoriesarray<CatalogCategory>required

    All categories, parents before children

CatalogCategory

object

  • codestringrequired

    Category code — up to 64 non-whitespace characters, case-sensitive (ЦБ-000123)
  • labelLocalizedTextrequired

  • parentstring | nullrequired

    Parent category code, null — root
  • activebooleanrequired

CatalogItem

object

A catalog item. The key is code (up to 64 non-whitespace characters, case-sensitive; a barcode goes as a string). version — the catalog version at the item's last change. starts_at, ends_at, projects — only in a catalog with the campaign role.
  • codestringrequired

    Example
    device_a
  • labelLocalizedTextrequired

  • activebooleanrequired

  • categorystring | nullrequired

    Category code (GET /catalogs/{code} → categories)
  • attributesobjectrequired

    Active fields of the catalog:<code> schema visible to the API, in schema order; not set — null (GET /schema/catalog:<code>)
  • componentsarray<object>required

    Bundle composition — codes of items of the same catalog; not a bundle — []
    Items
    • codestringrequired

    • qtyintegerrequired

      Constraints
      minimum: 1
  • versionintegerrequired

    Constraints
    minimum: 1
  • starts_atstring (date-time) | null

    Campaign — start of the window [starts_at, ends_at), UTC; null — the item has no campaign terms
  • ends_atstring (date-time) | null

    Campaign — end of the window (exclusive), UTC
  • projectsarray<string>

    Campaign — codes of its projects among those assigned to the client, by code

CatalogUpsertResult

object

  • versionintegerrequired

    Catalog version after the batch (the previous one if nothing changed)
    Constraints
    minimum: 0
  • changedbooleanrequired

  • categoriesarray<CatalogUpsertOutcome>required

    Outcome per category in body order
  • itemsarray<CatalogUpsertOutcome>required

    Outcome per item in body order

CatalogUpsertOutcome

object

  • codestringrequired

  • outcomestringrequired

    Values
    createdupdatedactivateddeactivatedunchanged
  • pathsarray<string>required

    Diff paths of the record (before and after the batch) in API resource names, as in the feed (active, attributes.<code>…), but without filtering by field and project visibility; empty for unchanged

CatalogChange

object

A row of the catalog change feed
  • versionintegerrequired

    Constraints
    minimum: 1
  • subjectstringrequired

    Values
    catalogcategoryitem
  • codestringrequired

    Code of the catalog, category or item
  • operationstringrequired

    Values
    createdupdatedactivateddeactivated
  • diffobjectrequired

    Changed paths as seen by the API
    Key values
    • oldany valuerequired

    • newany valuerequired

  • atstring (date-time)required