Skip to main content
POST
/
v1
/
disputes
/
{dispute_id}
Update Dispute
curl --request POST \
  --url https://api.withflex.com/v1/disputes/{dispute_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dispute": {
    "evidence": {
      "access_activity_log": "<string>",
      "billing_address": "<string>",
      "cancellation_policy": "<string>",
      "cancellation_policy_disclosure": "<string>",
      "cancellation_rebuttal": "<string>",
      "customer_communication": "<string>",
      "customer_email_address": "<string>",
      "customer_name": "<string>",
      "customer_purchase_ip": "<string>",
      "customer_signature": "<string>",
      "duplicate_charge_documentation": "<string>",
      "duplicate_charge_explanation": "<string>",
      "duplicate_charge_id": "<string>",
      "product_description": "<string>",
      "receipt": "<string>",
      "refund_policy": "<string>",
      "refund_policy_disclosure": "<string>",
      "refund_refusal_explanation": "<string>",
      "service_date": "<string>",
      "service_documentation": "<string>",
      "shipping_address": "<string>",
      "shipping_carrier": "<string>",
      "shipping_date": "<string>",
      "shipping_documentation": "<string>",
      "shipping_tracking_number": "<string>",
      "uncategorized_file": "<string>",
      "uncategorized_text": "<string>"
    },
    "submit": true
  }
}
'
{
  "dispute": {
    "dispute_id": "<string>",
    "payment_intent_id": "<string>",
    "amount": 123,
    "currency": "<string>",
    "metadata": {},
    "created_at": "<string>",
    "status": "<unknown>",
    "reason": "bank_cannot_process",
    "is_charge_refundable": true,
    "test_mode": true,
    "charge_id": "<string>",
    "evidence_details": {
      "has_evidence": true,
      "past_due": true,
      "submission_count": 123,
      "due_by": "<string>"
    },
    "balance_transactions": [
      {
        "balance_transaction_id": "<string>",
        "amount": 123,
        "fee": 123,
        "net": 123,
        "status": "available",
        "type": "<string>",
        "reporting_category": "<string>",
        "created_at": "<string>"
      }
    ],
    "payment_method_details": {
      "type": "<string>",
      "card": {
        "brand": "<string>",
        "network_reason_code": "<string>"
      }
    },
    "client_reference_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Body

application/json
dispute
object
required

Response

dispute
object
required

A dispute represents a customer's challenge to a payment. Maps to Stripe's Dispute object with additional Flex-specific fields.