Skip to content

Instantly share code, notes, and snippets.

@michelle
Last active December 23, 2015 09:19
Show Gist options
  • Save michelle/6613832 to your computer and use it in GitHub Desktop.
Save michelle/6613832 to your computer and use it in GitHub Desktop.
Close dispute endpoint

Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially 'dismissing' the dispute, acknowledging it as lost.

The status of the dispute will change from under_review to lost. Closing a dispute is irreversible.

Request:

POST https://api.stripe.com/v1/charges/ch_XXX/dispute/close

curl https://api.stripe.com/v1/charges/ch_XXX/dispute/close \
  -u sk_XXX: \
  -X POST

Response:

{
  "charge": "ch_XXX",
  "amount": 1000,
  "created": 1379530579,
  "status": "lost",
  "livemode": false,
  "currency": "usd",
  "object": "dispute",
  "reason": "general",
  "balance_transaction": "txn_XXX",
  "evidence_due_by": 1381190399,
  "evidence": null
}

The API bindings are not yet updated to support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment