Skip to main content
Wraps Medusa’s confirmClaimRequestWorkflow and then rewrites the reservations created for the claim’s additional items when those items come from offers: single-link offers get their reservation quantity scaled by required_quantity, multi-link (bundle) offers have the default reservation replaced with one reservation per linked inventory item. Triggered by POST /admin/claims/:id/request and POST /vendor/claims/:id/request. Events are emitted by the wrapped Medusa workflow.

Usage

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

const { result } = await confirmClaimRequestWorkflow(container).run({
  input: { claim_id: "claim_123", confirmed_by: "user_123" },
})

Input

claim_id
string
required
The claim whose pending request is confirmed.
confirmed_by
string
Id of the user confirming the claim.

Result

result
OrderPreviewDTO
Preview of the order with the confirmed claim applied.