> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.fleetwire.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.fleetwire.io/_mcp/server.

# Change a charge

PATCH https://api.fleetwire.io/api/partners/v1/companies/{company_id}/charges/{external_id}
Content-Type: application/json

| `status` | Also send | Effect |
|---|---|---|
| `voided` | `reason`? | Taken off the renter's bill. If they already paid, they're refunded on a new invoice. |
| `amount_changed` | `amount_cents`, `reason`? | Re-billed at the new amount (`0` voids it). A paid amount is refunded and re-billed, never edited in place. |
| `paid_at_authority` | | Recorded; shown as `authority_status`. |
| `disputed` | | Recorded; shown as `authority_status`. |
| `dispute_resolved` | `amount_cents` | `0` voids the charge; another amount re-bills it. |


Reference: https://docs.fleetwire.io/api-reference/partner-api-charges/partner-update-charge

## Authentication

- `Authorization` header (bearer token, required) — Your partner key, starting with `fwp_`, sent as `Authorization: Bearer fwp_…`. Keep it server-side. Fleetwire can rotate it at any time; the old key stops working as soon as a new one is issued.

## Servers

- `https://api.fleetwire.io/api` (Production, default)
- `https://staging.fleetwire.io/api` (Sandbox (Partner API))

## Request

### Path parameters

- `company_id` (string, required) — The Fleetwire company ID from `GET /companies`.
- `external_id` (string, required) — Your `external_id` for the charge.

### Body (application/json)

This endpoint expects a PartnerChargeUpdate.

- `status` (enum, required)
  - Allowed values: `voided`, `amount_changed`, `paid_at_authority`, `disputed`, `dispute_resolved`
- `amount_cents` (integer, optional) — Required for `amount_changed` and `dispute_resolved`. `0` voids the charge.
- `reason` (string, optional)

## Response

### 200

The updated charge.

- `data` (PartnerCharge, required)

## Errors

### 401 Unauthorized Error

Missing, wrong or revoked partner key.

- `error` (PartnerErrorError, required)

### 404 Not Found Error

No charge with that `external_id` (or the company isn't connected; see `error.code`).

- `error` (PartnerErrorError, required)

### 422 Unprocessable Entity Error

The request is invalid. `error.fields` lists each problem.

- `error` (PartnerErrorError, required)

### 429 Too Many Requests Error

More than 600 requests in a minute. Wait for the `Retry-After` header (seconds).

- `message` (string, optional)

## Types

### PartnerCharge

- `charge_id` (string, required) — Fleetwire's id for the charge.
- `external_id` (string, required)
- `kind` (enum, required)
  - Allowed values: `toll`, `violation`, `fee`
- `rental_id` (string, required, nullable) — `null` while unmatched.
- `match` (enum, required) — `provided`: you sent `rental_id`. `matched`: Fleetwire found the rental by plate and time. `unmatched`: no rental had the car then; the rental company reviews it.
  - Allowed values: `provided`, `matched`, `unmatched`
- `status` (enum, required) — `unmatched`: no rental found. `unbilled`: matched, but the rental has nothing to bill on yet. `billed`: on the renter's invoice, not paid yet. `paid`: the renter paid that invoice. `voided`: voided by you or the rental company.
  - Allowed values: `unmatched`, `unbilled`, `billed`, `paid`, `voided`
- `amount_cents` (integer, required)
- `provider_fee_cents` (integer, required)
- `currency` (string, required)
- `occurred_at` (datetime, required, nullable)
- `has_document` (boolean, required)
- `authority_status` (enum, required)
  - Allowed values: `paid_at_authority`, `disputed`, `dispute_resolved`
- `created_at` (datetime, required)
- `voided_at` (datetime, required, nullable)

### PartnerErrorError

- `code` (enum, required)
  - Allowed values: `invalid_key`, `company_not_connected`, `not_found`, `external_id_conflict`, `validation_failed`
- `message` (string, required)
- `fields` (map from string to list of string, optional) — Present only on `validation_failed`. Each invalid field with its problems.

## Examples

### Void

**Request**

```json
{
  "status": "voided",
  "reason": "Agency reversed the toll"
}
```

**Response**

```json
{
  "data": {
    "charge_id": "string",
    "external_id": "string",
    "kind": "toll",
    "rental_id": "string",
    "match": "provided",
    "status": "unmatched",
    "amount_cents": 1,
    "provider_fee_cents": 1,
    "currency": "string",
    "occurred_at": "2024-01-15T09:30:00Z",
    "has_document": true,
    "authority_status": "paid_at_authority",
    "created_at": "2024-01-15T09:30:00Z",
    "voided_at": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python Void
import requests

url = "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

payload = {
    "status": "voided",
    "reason": "Agency reversed the toll"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Void
const url = 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"status":"voided","reason":"Agency reversed the toll"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Void
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

	payload := strings.NewReader("{\n  \"status\": \"voided\",\n  \"reason\": \"Agency reversed the toll\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Void
require 'uri'
require 'net/http'

url = URI("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"status\": \"voided\",\n  \"reason\": \"Agency reversed the toll\"\n}"

response = http.request(request)
puts response.read_body
```

```java Void
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"voided\",\n  \"reason\": \"Agency reversed the toll\"\n}")
  .asString();
```

```php Void
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812', [
  'body' => '{
  "status": "voided",
  "reason": "Agency reversed the toll"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Void
using RestSharp;

var client = new RestClient("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"voided\",\n  \"reason\": \"Agency reversed the toll\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Void
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "status": "voided",
  "reason": "Agency reversed the toll"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### New amount

**Request**

```json
{
  "status": "amount_changed",
  "amount_cents": 450,
  "reason": "Agency adjusted to off-peak rate"
}
```

**Response**

```json
{
  "data": {
    "charge_id": "string",
    "external_id": "string",
    "kind": "toll",
    "rental_id": "string",
    "match": "provided",
    "status": "unmatched",
    "amount_cents": 1,
    "provider_fee_cents": 1,
    "currency": "string",
    "occurred_at": "2024-01-15T09:30:00Z",
    "has_document": true,
    "authority_status": "paid_at_authority",
    "created_at": "2024-01-15T09:30:00Z",
    "voided_at": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python New amount
import requests

url = "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

payload = {
    "status": "amount_changed",
    "amount_cents": 450,
    "reason": "Agency adjusted to off-peak rate"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript New amount
const url = 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"status":"amount_changed","amount_cents":450,"reason":"Agency adjusted to off-peak rate"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go New amount
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

	payload := strings.NewReader("{\n  \"status\": \"amount_changed\",\n  \"amount_cents\": 450,\n  \"reason\": \"Agency adjusted to off-peak rate\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby New amount
require 'uri'
require 'net/http'

url = URI("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"status\": \"amount_changed\",\n  \"amount_cents\": 450,\n  \"reason\": \"Agency adjusted to off-peak rate\"\n}"

response = http.request(request)
puts response.read_body
```

```java New amount
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"amount_changed\",\n  \"amount_cents\": 450,\n  \"reason\": \"Agency adjusted to off-peak rate\"\n}")
  .asString();
```

```php New amount
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812', [
  'body' => '{
  "status": "amount_changed",
  "amount_cents": 450,
  "reason": "Agency adjusted to off-peak rate"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp New amount
using RestSharp;

var client = new RestClient("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"amount_changed\",\n  \"amount_cents\": 450,\n  \"reason\": \"Agency adjusted to off-peak rate\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift New amount
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "status": "amount_changed",
  "amount_cents": 450,
  "reason": "Agency adjusted to off-peak rate"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Dispute opened

**Request**

```json
{
  "status": "disputed"
}
```

**Response**

```json
{
  "data": {
    "charge_id": "string",
    "external_id": "string",
    "kind": "toll",
    "rental_id": "string",
    "match": "provided",
    "status": "unmatched",
    "amount_cents": 1,
    "provider_fee_cents": 1,
    "currency": "string",
    "occurred_at": "2024-01-15T09:30:00Z",
    "has_document": true,
    "authority_status": "paid_at_authority",
    "created_at": "2024-01-15T09:30:00Z",
    "voided_at": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python Dispute opened
import requests

url = "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

payload = { "status": "disputed" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Dispute opened
const url = 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"status":"disputed"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Dispute opened
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

	payload := strings.NewReader("{\n  \"status\": \"disputed\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Dispute opened
require 'uri'
require 'net/http'

url = URI("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"status\": \"disputed\"\n}"

response = http.request(request)
puts response.read_body
```

```java Dispute opened
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"disputed\"\n}")
  .asString();
```

```php Dispute opened
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812', [
  'body' => '{
  "status": "disputed"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Dispute opened
using RestSharp;

var client = new RestClient("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"disputed\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Dispute opened
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["status": "disputed"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Dispute dismissed

**Request**

```json
{
  "status": "dispute_resolved",
  "amount_cents": 0,
  "reason": "Dismissed by the authority"
}
```

**Response**

```json
{
  "data": {
    "charge_id": "string",
    "external_id": "string",
    "kind": "toll",
    "rental_id": "string",
    "match": "provided",
    "status": "unmatched",
    "amount_cents": 1,
    "provider_fee_cents": 1,
    "currency": "string",
    "occurred_at": "2024-01-15T09:30:00Z",
    "has_document": true,
    "authority_status": "paid_at_authority",
    "created_at": "2024-01-15T09:30:00Z",
    "voided_at": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python Dispute dismissed
import requests

url = "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

payload = {
    "status": "dispute_resolved",
    "amount_cents": 0,
    "reason": "Dismissed by the authority"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Dispute dismissed
const url = 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"status":"dispute_resolved","amount_cents":0,"reason":"Dismissed by the authority"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Dispute dismissed
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812"

	payload := strings.NewReader("{\n  \"status\": \"dispute_resolved\",\n  \"amount_cents\": 0,\n  \"reason\": \"Dismissed by the authority\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Dispute dismissed
require 'uri'
require 'net/http'

url = URI("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"status\": \"dispute_resolved\",\n  \"amount_cents\": 0,\n  \"reason\": \"Dismissed by the authority\"\n}"

response = http.request(request)
puts response.read_body
```

```java Dispute dismissed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"status\": \"dispute_resolved\",\n  \"amount_cents\": 0,\n  \"reason\": \"Dismissed by the authority\"\n}")
  .asString();
```

```php Dispute dismissed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812', [
  'body' => '{
  "status": "dispute_resolved",
  "amount_cents": 0,
  "reason": "Dismissed by the authority"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Dispute dismissed
using RestSharp;

var client = new RestClient("https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"status\": \"dispute_resolved\",\n  \"amount_cents\": 0,\n  \"reason\": \"Dismissed by the authority\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Dispute dismissed
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "status": "dispute_resolved",
  "amount_cents": 0,
  "reason": "Dismissed by the authority"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.fleetwire.io/api/partners/v1/companies/9b1d6c3e-2f4a-4b8e-9c71-5d0e8a3f2b11/charges/tc_8812")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```