Attach your own metadata to a dispute — an internal case ID, the teammate who owns it, a link to your evidence workspace, free-form notes — so you can correlate Truemed disputes with your own systems.
This is a **full replace**, not a merge: the `metadata` object you send overwrites whatever was stored, so include every key you want to keep. Metadata is the only writable part of a dispute; its state, phase, reason, amounts, and deadlines are owned by the processor and are read-only. Scoped to your sales channel — you can only update metadata on your own disputes.
Request
Request body for DisputeMetadataRequest
metadatamap from strings to anyRequired
Replaces the dispute’s metadata. Only metadata is mutable; state/amounts/deadlines are read-only.
Response
Successful response
amountinteger
The original disputed amount in cents, independent of resolution.
created_atdatetime
When the dispute was created.
currencystring
ISO currency code of the disputed amount.
dispute_idstring
Stable Truemed dispute ID (UUID). Use this as the dispute’s identifier.
processorenum
Payment processor the dispute originated from.
processor_dispute_idstring
Raw payment-processor dispute ID (e.g. Stripe du_…), for reconciliation.
reasonenum
Canonical reason the dispute was filed.
stateenum
Canonical dispute state.
counterslist of objectsOptionalDefaults to []
Evidence counters for this dispute (the full chain across phases).
due_bydatetime or nullOptional
Evidence submission deadline, if the dispute is challengeable.
metadatamap from strings to anyOptionalDefaults to {}
Arbitrary merchant-set metadata.
network_reason_codestring or nullOptional
Raw card-network reason code behind the dispute (e.g. Visa 10.4), if provided.
outcomeenum or nullOptional
Terminal outcome; null until the dispute resolves.
payment_session_idstring or nullOptional
The Truemed payment session this dispute belongs to. Null for disputes on non-payment-session charges.
phaseenum or nullOptional
Which round of the dispute (inquiry, dispute, pre-arbitration, arbitration).
prior_dispute_idstring or nullOptional
Truemed dispute ID (UUID) of the prior round in a pre-arbitration/re-filing chain, if any.
resolved_atdatetime or nullOptional
When the dispute reached a terminal state.