Payouts
Confirm escrow deposit
Manual fallback when auto-detection misses your on-chain deposit.
POST
/
api
/
rfq
/
confirm-escrow-deposit
Confirm escrow deposit
curl --request POST \
--url https://api.example.com/api/rfq/confirm-escrow-deposit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "<string>",
"txHash": "<string>"
}
'import requests
url = "https://api.example.com/api/rfq/confirm-escrow-deposit"
payload = {
"quoteId": "<string>",
"txHash": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>', txHash: '<string>'})
};
fetch('https://api.example.com/api/rfq/confirm-escrow-deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/rfq/confirm-escrow-deposit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quoteId' => '<string>',
'txHash' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/rfq/confirm-escrow-deposit"
payload := strings.NewReader("{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/rfq/confirm-escrow-deposit")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/rfq/confirm-escrow-deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{ "success": true }
Manual deposit-confirmation fallback when on-chain auto-detect misses your transfer. Idempotent on duplicate
(quoteId, txHash).
Scope
payouts:write · rate-limitedHeaders
string
required
API key.
string
Optional.
Request body
string
required
UUID of the original quote. Must be in
awaiting_escrow_deposit.string
required
0x-prefixed transaction hash. Teel verifies the on-chain amount, address, and chain match.Response
boolean
Always
true on success. No other fields — fetch detail via GET /rfq/status/{quoteId}.{ "success": true }
Errors
| Status | When |
|---|---|
400 | Request body malformed (missing quoteId / txHash, or non-JSON body). Returns {"success": false, "error": "invalid request"}. |
401 | Missing or invalid key. |
500 | Confirmation failed. Returns {"success": false, "error": "escrow deposit confirmation failed"}. Every persistent failure mode the handler can hit collapses here today — wrong txHash, amount mismatch, chain mismatch, quote not in the expected state, on-chain tx not yet confirmed. There is no granular error-shape distinction. Don’t blind-retry a 500 from this endpoint — verify your tx hash, amount, and chain first. |
When not to call this
Don’t call in the first few minutes — auto-detect is actively watching. Only fall back here if the quote status hasn’t moved minutes after your tx confirmed on-chain.⌘I
Confirm escrow deposit
curl --request POST \
--url https://api.example.com/api/rfq/confirm-escrow-deposit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"quoteId": "<string>",
"txHash": "<string>"
}
'import requests
url = "https://api.example.com/api/rfq/confirm-escrow-deposit"
payload = {
"quoteId": "<string>",
"txHash": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>', txHash: '<string>'})
};
fetch('https://api.example.com/api/rfq/confirm-escrow-deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/rfq/confirm-escrow-deposit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'quoteId' => '<string>',
'txHash' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/rfq/confirm-escrow-deposit"
payload := strings.NewReader("{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/rfq/confirm-escrow-deposit")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/rfq/confirm-escrow-deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"<string>\",\n \"txHash\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{ "success": true }