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

# Approve or reject a held customer withdrawal

POST https://api.cheddar.biz/v1/withdrawals/{id}/review
Content-Type: application/json

For a withdrawal held for review (`status: AWAITING_CONFIRMATION`, announced by `CUSTOMER_WITHDRAW_AWAITING_APPROVAL`). `APPROVE` releases it for sending (status `PENDING`, or `PREFUNDING` while a treasury conversion funds it); `REJECT` fails it with reason `ADMIN_REJECT` and sends `CUSTOMER_FAILED_TO_WITHDRAW`. Must be enabled for your organization by Cheddar (403 otherwise). 409 when the withdrawal is no longer awaiting review. 422 (`INSUFFICIENT_LIQUIDITY` / `PREFUND_FAILED`) applies to `APPROVE` only.

Reference: https://doc.cheddar.biz/api/api-reference/payments/approve-or-reject-a-held-customer-withdrawal

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Servers

- `https://api.cheddar.biz/v1` (Production, default)
- `https://staging-api-aws.cheddar.biz/v1` (Staging)

## Request

### Path parameters

- `id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `decision` (enum, required)
  - Allowed values: `APPROVE`, `REJECT`

## Response

### 200

Withdrawal after the decision

- `id` (string, required) — Withdrawal id — `withdrawalId` from POST /withdraw and `id` on the CUSTOMER_WITHDRAW webhooks.
- `customerId` (string, required)
- `status` (enum, required)
  - Allowed values: `PENDING`, `CONFIRMED`, `FAILED`, `REJECTED`, `AWAITING_CONFIRMATION`, `FLAGGED`, `PREFUNDING`
- `awaitingApprovalReason` (enum, required)
  - Allowed values: `WITHDRAW_THRESHOLD_EXCEEDED`, `LOW_LIQUIDITY`, `MANUAL_APPROVAL_REQUIRED`
- `failureReason` (string, required, nullable)
- `mint` (CustomerWithdrawalStatusMint, required)
- `amount` (string, required) — Base units, always positive
- `uiAmount` (string, required)
- `txHash` (string, required, nullable)
- `toAddress` (string, required)
- `scannerUrl` (string, required, nullable)
- `createdAt` (datetime, required)
- `confirmedAt` (datetime, required, nullable)
- `idempotencyKey` (string, required, nullable) — The idempotencyKey sent on POST /withdraw, or null.
- `approvedAt` (datetime, required, nullable)
- `rejectedAt` (datetime, required, nullable)

## Errors

### 400 Bad Request Error

Bad request

- `error` (string, required)

### 401 Unauthorized Error

Unauthorized — missing or invalid API key

- `error` (string, required)

### 403 Forbidden Error

Not enabled for this organization, or the request IP address is not whitelisted

- `error` (string, required)

### 404 Not Found Error

Not found

- `error` (string, required)

### 409 Conflict Error

Conflict

- `error` (string, required)

### 422 Unprocessable Entity Error

Unprocessable entity

- `error` (string, required)

## Types

### CustomerWithdrawalStatusMint

- `id` (integer, required)
- `symbol` (string, required)
- `chain` (enum, required)
  - Allowed values: `BITCOIN`, `ETHEREUM`, `SOLANA`, `TRON`, `BSC`, `POLYGON`, `BITCOIN_CASH`, `LITECOIN`, `ROBINHOOD`

## Examples

**Request**

```json
{
  "decision": "APPROVE"
}
```

**Response**

```json
{
  "id": "string",
  "customerId": "string",
  "status": "PENDING",
  "awaitingApprovalReason": "WITHDRAW_THRESHOLD_EXCEEDED",
  "failureReason": "string",
  "mint": {
    "id": 1,
    "symbol": "string",
    "chain": "BITCOIN"
  },
  "amount": "string",
  "uiAmount": "string",
  "txHash": "string",
  "toAddress": "string",
  "scannerUrl": "string",
  "createdAt": "2024-01-15T09:30:00Z",
  "confirmedAt": "2024-01-15T09:30:00Z",
  "idempotencyKey": "string",
  "approvedAt": "2024-01-15T09:30:00Z",
  "rejectedAt": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.cheddar.biz/v1/withdrawals/id/review"

payload = { "decision": "APPROVE" }
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.cheddar.biz/v1/withdrawals/id/review';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"decision":"APPROVE"}'
};

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

```go
package main

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

func main() {

	url := "https://api.cheddar.biz/v1/withdrawals/id/review"

	payload := strings.NewReader("{\n  \"decision\": \"APPROVE\"\n}")

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

	req.Header.Add("x-api-key", "<apiKey>")
	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
require 'uri'
require 'net/http'

url = URI("https://api.cheddar.biz/v1/withdrawals/id/review")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"decision\": \"APPROVE\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.cheddar.biz/v1/withdrawals/id/review")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"decision\": \"APPROVE\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cheddar.biz/v1/withdrawals/id/review', [
  'body' => '{
  "decision": "APPROVE"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.cheddar.biz/v1/withdrawals/id/review");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"decision\": \"APPROVE\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["decision": "APPROVE"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cheddar.biz/v1/withdrawals/id/review")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```