Skip to main content
Deletes the professional details record attached to a seller.

Usage

import { deleteSellerProfessionalDetailsWorkflow } from "@mercurjs/core/workflows"

await deleteSellerProfessionalDetailsWorkflow(container).run({
  input: { seller_id: "sel_123" },
})

Input

seller_id
string
required
Id of the seller whose professional details are removed.
additional_data
object
Custom data passed through to the workflow hooks.

Result

result
void
Nothing is returned.

Hooks

  • professionalDetailsDeleted — runs after deletion with { seller_id, additional_data }.
deleteSellerProfessionalDetailsWorkflow.hooks.professionalDetailsDeleted(
  async ({ seller_id }) => {
    // e.g. flag the seller for re-verification
  }
)