Apply a suggested catalog organization

Changed on

Applies changes of the catalog organization proposal carried by one of the caller's own catalog suggestion notifications, in one transaction: the changes named by changeKeys (each <type>/<id>, as catalog.reviewOrganizationSuggestion lists them), or without it every change not yet applied or dismissed, all or none. Returns how many changes remain undecided; once none does, the suggestion closes and leaves every editor's inbox. Refused with NOT_FOUND when the notification is not the caller's catalog suggestion in this organization, and with BAD_REQUEST when a key names no change of the proposal. Refused with CONFLICT and refusal alreadyApplied when any editor already applied a requested change, or the suggestion closed with every change applied, with CONFLICT and refusal alreadyDismissed when any editor already dismissed a requested change, or the suggestion closed after dismissals, with CONFLICT and refusal dependencyRequired when a requested change needs another not requested (the create of the new category it lands in, or the moves out of the category it archives), and with CONFLICT and refusal stale when the catalog changed where any of those changes act. Availability effects of moving rows are not evaluated. Creating a category, or moving a row or lifting an archived category's children out from under a category closed at a venue or hidden from the guest menu to where it is offered, is a new offering: Refused with FORBIDDEN and refusal billingReadOnly once an overdue subscription's grace has run out, and subscriptionEnded once the business's verified base plan has ended with no eligible base in its place. Either refusal is lifted for this operation's category by an active plan grant whose plan allows it, which does not change the subscription's own standing. 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/applyOrganizationProposal

Request

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

Request body

object required
organizationId, string required
notificationId, string required
changeKeys, string[]

Response

OK

object required
dispatchId, string required
remaining, number required

Changes