Skip to main content
POST
/
v1
/
disputes
/
{dispute_id}
/
close
Close Dispute
curl --request POST \
  --url https://api.withflex.com/v1/disputes/{dispute_id}/close \
  --header 'Authorization: Bearer <token>'
{
  "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>",
        "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.

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.