Skip to navigation

Delete modifier

View as Markdown

Delete modifier

Permanently deletes the modifier :id from the authenticated merchant’s store.

Authentication

  • Merchant API key in x-api-key (alias x-account-api-key).
  • Requires Merchant.product.delete.

Path params

  • id — the modifier UUID.

Behavior

  • Existence in the caller’s store is validated first; otherwise 400 Bad Request (Modifier with id <id> not found).
  • On success returns { message: "Modifier deleted successfully." }.

Notas: Handler: modifierService.remove. Returns a { message } confirmation rather than the deleted entity. Related productModifiers join rows are removed by the database’s cascade behavior.

Authentication

x-api-keystring
API Key authentication via header

Path parameters

idstringRequired
The modifier UUID. Must belong to the authenticated store.

Headers

x-application-account-idstringOptional

Scope the request to a specific store / account instead of the one resolved from the API key. Aliases: the x-account-id header, or the application_account_id / account_id query parameter.