Skip to Content
Paycose Docs
Disputes

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • numberstringRequired

    Sequential dispute number assigned when Paycose first records the dispute, for display on documents and statements.

  • charge_idstringRequired

    ID of the disputed charge.

  • payment_intentstring

    ID of the payment intent the disputed charge belongs to. Omitted when the charge has no payment intent.

  • evidenceobject

    The text evidence you gave for the dispute through PATCH /disputes/{id}, by field name. Omitted when none has been given.

  • amount_from_merchantintegerRequired

    Part of the lost amount taken back from what you received for the charge, in the smallest currency unit. 0 unless the dispute was lost and its balance entries have been posted.

  • amount_from_appintegerRequired

    Part of the lost amount covered by the fees and tax collected on the charge, in the smallest currency unit. 0 unless the dispute was lost and its balance entries have been posted.

  • amountintegerRequired

    Disputed amount, in the smallest currency unit (for example, 49900 is 499.00 THB), in the charge's currency.

  • currencystringRequired

    Three-letter ISO 4217 currency code, in lowercase.

  • scaling_factorintegerRequired

    Number of smallest currency units in one major unit of currency (for example, 100 for THB), so amount / scaling_factor is the amount in major units.

  • fee_amountintegerRequiredNullable

    Dispute fee taken from you, in the smallest unit of fee_currency; 0 when none was charged. Null in webhook payloads.

  • fee_currencystringRequiredNullable

    Currency of fee_amount. Null in webhook payloads.

  • statusenumRequired

    Where the dispute is in its lifecycle, as reported by the provider.

    • warning_needs_response

      An early inquiry from the payer's bank that needs your response before it can become a formal dispute.

    • warning_under_review

      Your response to the inquiry is being reviewed.

    • warning_closed

      The inquiry was closed without becoming a formal dispute.

    • needs_response

      The 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_review

      Evidence has been submitted and the payer's bank is reviewing it.

    • won

      The dispute was closed in your favor. The charge is no longer marked as disputed.

    • lost

      The dispute was closed in the payer's favor. The disputed amount is taken from your balance.

  • reasonstringRequired

    Reason for the dispute as reported by the provider, for example fraudulent. The possible values depend on the provider.

  • network_reason_codestringRequired

    The card network's reason code for the dispute, when the provider reports one; otherwise empty.

  • settledbooleanRequired

    true once the provider reports that the disputed funds were withdrawn from your balance.

  • reinstatedbooleanRequired

    true once the provider reports that previously withdrawn funds were returned to your balance, for example after you won the dispute.

  • evidence_due_bytimestampRequiredNullable

    Deadline for submitting evidence to the provider, in Unix seconds. Null when the provider reports none.

  • evidence_detailsobjectRequired

    Where 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_bytimestampRequiredNullable

      Deadline for submitting evidence, in Unix seconds. Null when the provider reports none.

    • evidence_details.has_evidencebooleanRequired

      true when the dispute holds evidence you gave, submitted or not.

    • evidence_details.past_duebooleanRequired

      true once due_by has passed; the evidence can then no longer be changed or submitted.

    • evidence_details.submission_countintegerRequired

      How many times your evidence was submitted to the bank through Paycose.

  • opened_attimestampRequiredNullable

    Time Paycose recorded the dispute as opened, in Unix seconds.

  • closed_attimestampRequiredNullable

    Time the dispute reached a final status (won, lost or warning_closed), in Unix seconds. Null while it is open.

  • idempotency_keystringRequired

    Idempotency key of the request that created the dispute. Disputes are created from provider notifications, so this is normally empty.

  • providerstringRequired

    Name of the payment provider that reported the dispute, the same provider as the disputed charge.

  • reference_idstringRequired

    The provider's own identifier for the dispute.

  • forex_quote_idstring

    ID 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.

  • metadataobjectRequired

    Key-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 source and chargeback_audit entries that Paycose maintains.

  • chargeobject (charge)NullableExpandable

    The full disputed charge object, included only when the charge is expanded; otherwise omitted.