Create executable quote for partner transaction pricing
curl --request POST \
--url https://api-staging.cashweb.cash/api/v1/partner/quotes \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"crypto_currency": "usdt",
"network": "bep20",
"crypto_amount": "100.00",
"fiat_amount": "161500.00"
}
'import requests
url = "https://api-staging.cashweb.cash/api/v1/partner/quotes"
payload = {
"crypto_currency": "usdt",
"network": "bep20",
"crypto_amount": "100.00",
"fiat_amount": "161500.00"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
crypto_currency: 'usdt',
network: 'bep20',
crypto_amount: '100.00',
fiat_amount: '161500.00'
})
};
fetch('https://api-staging.cashweb.cash/api/v1/partner/quotes', 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-staging.cashweb.cash/api/v1/partner/quotes",
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([
'crypto_currency' => 'usdt',
'network' => 'bep20',
'crypto_amount' => '100.00',
'fiat_amount' => '161500.00'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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-staging.cashweb.cash/api/v1/partner/quotes"
payload := strings.NewReader("{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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-staging.cashweb.cash/api/v1/partner/quotes")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.cashweb.cash/api/v1/partner/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"adjusted_rate": "1615.00",
"amount": "100.00",
"base_rate": "1625.00",
"expires_at": "2026-02-12T12:00:00Z",
"quote_id": "9f8ad58e-f8d5-4e4f-b3f2-f44eaf8f95d1"
},
"success": true
}{
"error": {
"code": "BAD_REQUEST",
"message": "Provide either crypto_amount or fiat_amount, not both",
"timestamp": "2026-02-12T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Partner API
Create executable quote for partner transaction pricing
Creates an executable quote for a token and network. Send exactly one amount mode: crypto_amount or fiat_amount. Quote responses include an expiry timestamp; expired quote IDs will be rejected during transaction creation.
POST
/
partner
/
quotes
Create executable quote for partner transaction pricing
curl --request POST \
--url https://api-staging.cashweb.cash/api/v1/partner/quotes \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"crypto_currency": "usdt",
"network": "bep20",
"crypto_amount": "100.00",
"fiat_amount": "161500.00"
}
'import requests
url = "https://api-staging.cashweb.cash/api/v1/partner/quotes"
payload = {
"crypto_currency": "usdt",
"network": "bep20",
"crypto_amount": "100.00",
"fiat_amount": "161500.00"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
crypto_currency: 'usdt',
network: 'bep20',
crypto_amount: '100.00',
fiat_amount: '161500.00'
})
};
fetch('https://api-staging.cashweb.cash/api/v1/partner/quotes', 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-staging.cashweb.cash/api/v1/partner/quotes",
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([
'crypto_currency' => 'usdt',
'network' => 'bep20',
'crypto_amount' => '100.00',
'fiat_amount' => '161500.00'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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-staging.cashweb.cash/api/v1/partner/quotes"
payload := strings.NewReader("{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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-staging.cashweb.cash/api/v1/partner/quotes")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.cashweb.cash/api/v1/partner/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"crypto_currency\": \"usdt\",\n \"network\": \"bep20\",\n \"crypto_amount\": \"100.00\",\n \"fiat_amount\": \"161500.00\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"adjusted_rate": "1615.00",
"amount": "100.00",
"base_rate": "1625.00",
"expires_at": "2026-02-12T12:00:00Z",
"quote_id": "9f8ad58e-f8d5-4e4f-b3f2-f44eaf8f95d1"
},
"success": true
}{
"error": {
"code": "BAD_REQUEST",
"message": "Provide either crypto_amount or fiat_amount, not both",
"timestamp": "2026-02-12T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
Create a price quote for a token-network pair. Send exactly one of crypto_amount or fiat_amount.
Stablecoin symbol for the quote.
Example:
"usdt"
Blockchain network used for the deposit.
Example:
"bep20"
Crypto amount for quote generation.
Example:
"100.00"
Fiat amount for quote generation.
Example:
"161500.00"
Response
Quote generated successfully
Standard API response wrapper for all successful responses
⌘I