Review a suggested catalog organization change by change

Changed on

Checks each change of the catalog organization proposal carried by one of the caller's own catalog suggestion notifications, read from the notification rather than the request, against a consistent current snapshot. Returns each change's state in states, in proposal order: applied once an editor applied it with catalog.applyOrganizationProposal, dismissed once an editor dismissed it with catalog.dismissOrganizationSuggestionChanges; otherwise ready, or unavailable with reason stale when the catalog changed where it acts and invalid when it no longer fits, together with the keys (<type>/<id>) of the changes it requires applied with it. A change that no longer fits leaves the others ready. The structure is the catalog as applying every ready change would leave it, or as it is now when those changes do not fit together. Does not save or apply changes. Refused with NOT_FOUND when the notification is not the caller's catalog suggestion in this organization. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

post/api/public/v1/catalog/reviewOrganizationSuggestion

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required
notificationId, string required

Response

OK

object required
mode, 'preview' required
catalogId, string required
changes, union[] required
structure, object required
limitations, string[] required
states, union[] required

Changes