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

# Submit an offramp transfer

POST https://ramps.clixpesa.com/offramp/update
Content-Type: application/json

Attaches an on-chain transfer hash to a pending offramp and starts the fiat payout.

Reference: https://docs.clixpesa.com/api-reference/ramps-api/offramps/submit-offramp-transaction

## Servers

- `https://ramps.clixpesa.com` (Production, default)
- `http://localhost:3000` (Local development and Base Sepolia mock onramp)

## Request

### Body (application/json)

This endpoint expects an object.

- `id` (string, required) — Transaction ID returned when the offramp was created.
- `transaction_hash` (string, required) — Hash of the completed on-chain transfer.

## Response

### 200

The on-chain transfer was accepted and the fiat payout is processing.

- `txId` (string, required)
- `status` ("processing", required)
- `instructions` (OfframpUpdatePostResponsesContentApplicationJsonSchemaInstructions, required)

## Errors

### 400 Bad Request Error

The request could not be completed.

- `error` (string, required)

### 422 Unprocessable Entity Error

The request could not be completed.

- `error` (string, required)

### 500 Internal Server Error

The request could not be completed.

- `error` (string, required)

## Types

### OfframpUpdatePostResponsesContentApplicationJsonSchemaInstructions

- `message` (string, required)
- `amount` (string, required)
- `currency` (string, required)
- `account_number` (string, required)

## Examples

**Request**

```json
{
  "id": "docs-offramp-001",
  "transaction_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
```

**Response**

```json
{
  "txId": "string",
  "status": "string",
  "instructions": {
    "message": "string",
    "amount": "string",
    "currency": "string",
    "account_number": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://ramps.clixpesa.com/offramp/update"

payload = {
    "id": "docs-offramp-001",
    "transaction_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
headers = {"Content-Type": "application/json"}

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

print(response.json())
```

```javascript
const url = 'https://ramps.clixpesa.com/offramp/update';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"id":"docs-offramp-001","transaction_hash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}'
};

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://ramps.clixpesa.com/offramp/update"

	payload := strings.NewReader("{\n  \"id\": \"docs-offramp-001\",\n  \"transaction_hash\": \"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n}")

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

	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://ramps.clixpesa.com/offramp/update")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"id\": \"docs-offramp-001\",\n  \"transaction_hash\": \"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\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://ramps.clixpesa.com/offramp/update")
  .header("Content-Type", "application/json")
  .body("{\n  \"id\": \"docs-offramp-001\",\n  \"transaction_hash\": \"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://ramps.clixpesa.com/offramp/update', [
  'body' => '{
  "id": "docs-offramp-001",
  "transaction_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://ramps.clixpesa.com/offramp/update");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"docs-offramp-001\",\n  \"transaction_hash\": \"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "id": "docs-offramp-001",
  "transaction_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://ramps.clixpesa.com/offramp/update")! 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()
```