Skip to main content

Update Claim

PUT 

/api/claims/:claim

Replaces a claim's editable fields. Send the full set of fields, as on create: omitted optional fields are cleared. The linked record cannot be changed; sending link_type or link_id returns 422.

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.

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

Rules

  • A closed claim can only be set to closed again or reopened as filed.
  • The currency cannot change once a recovery has been recorded.
  • Changing deadline_at restarts deadline reminders.
  • When recoveries no longer cover a recovered claim, it returns to filed, approved or partially_approved.

Returns 422 with a message when a rule is broken.

Request​

Responses​

OK

Response Headers
    Content-Type