Disputes
The dispute object
A dispute is a chargeback or inquiry the payer's bank opened against one of your charges. Paycose records it from the provider's notifications and keeps its status up to date; you can read disputes, change their metadata and respond with evidence.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
numberstringRequiredSequential dispute number assigned when Paycose first records the dispute, for display on documents and statements.
charge_idstringRequiredID of the disputed charge.
payment_intentstringID of the payment intent the disputed charge belongs to. Omitted when the charge has no payment intent.
evidenceobjectThe text evidence you gave for the dispute through
PATCH /disputes/{id}, by field name. Omitted when none has been given.amount_from_merchantintegerRequiredPart of the lost amount taken back from what you received for the charge, in the smallest currency unit.
0unless the dispute was lost and its balance entries have been posted.amount_from_appintegerRequiredPart of the lost amount covered by the fees and tax collected on the charge, in the smallest currency unit.
0unless the dispute was lost and its balance entries have been posted.amountintegerRequiredDisputed amount, in the smallest currency unit (for example,
49900is 499.00 THB), in the charge's currency.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
scaling_factorintegerRequiredNumber of smallest currency units in one major unit of
currency(for example,100for THB), soamount / scaling_factoris the amount in major units.fee_amountintegerRequiredNullableDispute fee taken from you, in the smallest unit of
fee_currency; 0 when none was charged. Null in webhook payloads.fee_currencystringRequiredNullableCurrency of
fee_amount. Null in webhook payloads.statusenumRequiredWhere the dispute is in its lifecycle, as reported by the provider.
warning_needs_responseAn early inquiry from the payer's bank that needs your response before it can become a formal dispute.
warning_under_reviewYour response to the inquiry is being reviewed.
warning_closedThe inquiry was closed without becoming a formal dispute.
needs_responseThe dispute is open and needs your response and evidence before
evidence_due_by. Also used when the provider opens a dispute with a status Paycose does not recognize.under_reviewEvidence has been submitted and the payer's bank is reviewing it.
wonThe dispute was closed in your favor. The charge is no longer marked as disputed.
lostThe dispute was closed in the payer's favor. The disputed amount is taken from your balance.
reasonstringRequiredReason for the dispute as reported by the provider, for example
fraudulent. The possible values depend on the provider.network_reason_codestringRequiredThe card network's reason code for the dispute, when the provider reports one; otherwise empty.
settledbooleanRequiredtrueonce the provider reports that the disputed funds were withdrawn from your balance.reinstatedbooleanRequiredtrueonce the provider reports that previously withdrawn funds were returned to your balance, for example after you won the dispute.evidence_due_bytimestampRequiredNullableDeadline for submitting evidence to the provider, in Unix seconds. Null when the provider reports none.
evidence_detailsobjectRequiredWhere the dispute's evidence stands: its deadline, whether you have given any, whether the deadline has passed and how many times it was submitted.
Show child attributes
evidence_details.due_bytimestampRequiredNullableDeadline for submitting evidence, in Unix seconds. Null when the provider reports none.
evidence_details.has_evidencebooleanRequiredtruewhen the dispute holds evidence you gave, submitted or not.evidence_details.past_duebooleanRequiredtrueoncedue_byhas passed; the evidence can then no longer be changed or submitted.evidence_details.submission_countintegerRequiredHow many times your evidence was submitted to the bank through Paycose.
opened_attimestampRequiredNullableTime Paycose recorded the dispute as opened, in Unix seconds.
closed_attimestampRequiredNullableTime the dispute reached a final status (
won,lostorwarning_closed), in Unix seconds. Null while it is open.idempotency_keystringRequiredIdempotency key of the request that created the dispute. Disputes are created from provider notifications, so this is normally empty.
providerstringRequiredName of the payment provider that reported the dispute, the same provider as the disputed charge.
reference_idstringRequiredThe provider's own identifier for the dispute.
forex_quote_idstringID of the exchange-rate quote used to settle a lost dispute on a charge collected in another currency than your balance, so the amount is reversed at the charge's original rate. Omitted otherwise.
metadataobjectRequiredKey-value pairs you attach to the dispute for your own use. A dispute that Paycose recorded manually, rather than from a provider notification, also carries
sourceandchargeback_auditentries that Paycose maintains.The full disputed charge object, included only when the charge is expanded; otherwise omitted.