Skip to main content

Create Claim

POST 

/api/claims

Records a new claim. Claim numbers (CLM-00042) are assigned automatically. To get suggested values for a record first (amount, counterparty, deadline), call Get Suggested Claim Values.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token (scope: purchase-orders).

Fields

  • counterparty_type (required): carrier, three_pl, marketplace, supplier, other.
  • counterparty_name (optional, max 150): who the claim is filed with, e.g. UPS, Walmart, the supplier's name.
  • claim_type (required): see the enumerations below.
  • status (required): draft, filed, approved, partially_approved, denied, recovered, closed.
  • link_type + link_id (optional, create only, each required with the other): the record the claim is about. A record can carry at most one claim.
  • integration_instance_id (optional): an existing sales channel integration instance ID.
  • product_id (optional): an existing product ID.
  • sku (optional, max 100), quantity (optional, number >= 0).
  • currency (optional, 3-letter code): defaults to the account's default currency; stored upper-case.
  • amount_claimed (required, number >= 0): must be greater than 0 for any status other than draft.
  • amount_approved (optional, number >= 0): required when status is partially_approved.
  • case_reference (optional, max 120): the counterparty's claim or case ID.
  • filed_at (YYYY-MM-DD): required for any status other than draft or closed. deadline_at, decided_at (optional, YYYY-MM-DD). When omitted, decided_at defaults to today for approved, partially_approved and denied.
  • notes (optional, max 5000).

Once recoveries reach the approved amount (or the claimed amount when nothing is approved), an open, filed claim moves to recovered automatically.

Errors

  • 409 claim_exists: the linked record already has a claim. The response carries the existing claim_id and claim_number; update that claim instead.
  • 404: link_id does not exist for the given link_type.
  • 422: validation failed.

Enumerations

  • status: draft, filed, approved, partially_approved, denied, recovered, closed. Open statuses (counted as outstanding and sent deadline reminders) are draft, filed, approved and partially_approved.
  • claim_type: lost_in_transit, damaged_in_transit, inbound_lost_in_transit, short_received, three_pl_lost_damaged, wfs_inbound_shortage, wfs_inventory_gap, wfs_removal, wfs_customer_return, other.
  • counterparty_type: carrier, three_pl, marketplace, supplier, other.
  • link_type: sales_order_fulfillment, sales_order, inbound_shipment, purchase_order, inbound_shipment_shortfall, walmart_wfs_discrepancy.

Requires permission: claims.manage

Request​

Responses​

Created

Response Headers
    Content-Type