Create a payout quote
curl --request POST \
--url https://api-sandbox.circle.com/v1/payouts/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"useCase": "B2C",
"from": {
"walletId": "1000000001",
"currency": "USDC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
}
}
'import requests
url = "https://api-sandbox.circle.com/v1/payouts/quotes"
payload = {
"useCase": "B2C",
"from": {
"walletId": "1000000001",
"currency": "USDC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
useCase: 'B2C',
from: {walletId: '1000000001', currency: 'USDC'},
to: {currency: 'MXN', amount: '1800.00', country: 'MX', rail: 'SPEI'}
})
};
fetch('https://api-sandbox.circle.com/v1/payouts/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-sandbox.circle.com/v1/payouts/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([
'useCase' => 'B2C',
'from' => [
'walletId' => '1000000001',
'currency' => 'USDC'
],
'to' => [
'currency' => 'MXN',
'amount' => '1800.00',
'country' => 'MX',
'rail' => 'SPEI'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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-sandbox.circle.com/v1/payouts/quotes"
payload := strings.NewReader("{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}")
req, _ := http.NewRequest("POST", 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(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.circle.com/v1/payouts/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.circle.com/v1/payouts/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "66666666-7777-8888-9999-000000000000",
"type": "tradable",
"useCase": "B2C",
"pair": "USDC_MXN",
"from": {
"walletId": "1000000001",
"currency": "USDC",
"amount": "95.50",
"chain": "MATIC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
},
"rate": "18.848",
"fees": [
{
"type": "FIAT_PAYOUT_FEE",
"amount": "1.35",
"currency": "USDC"
}
],
"expiresAt": "2026-08-12T00:15:00Z"
}
]
}Create a payout quote
Locks an FX rate, fees, and BFI selection for a fiat payout. Returns a binding quote
that must be referenced in POST /v1/payouts via quoteId. Quotes expire at expiresAt.
Specify either from.amount (exact-in: debit a fixed USDC amount) or to.amount
(exact-out: deliver a fixed fiat amount). Exactly one must be set.
When to.rail is omitted, one quote per available live rail is returned. When to.rail
is specified, only that rail is quoted.
POST
/
v1
/
payouts
/
quotes
Create a payout quote
curl --request POST \
--url https://api-sandbox.circle.com/v1/payouts/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"useCase": "B2C",
"from": {
"walletId": "1000000001",
"currency": "USDC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
}
}
'import requests
url = "https://api-sandbox.circle.com/v1/payouts/quotes"
payload = {
"useCase": "B2C",
"from": {
"walletId": "1000000001",
"currency": "USDC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
useCase: 'B2C',
from: {walletId: '1000000001', currency: 'USDC'},
to: {currency: 'MXN', amount: '1800.00', country: 'MX', rail: 'SPEI'}
})
};
fetch('https://api-sandbox.circle.com/v1/payouts/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-sandbox.circle.com/v1/payouts/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([
'useCase' => 'B2C',
'from' => [
'walletId' => '1000000001',
'currency' => 'USDC'
],
'to' => [
'currency' => 'MXN',
'amount' => '1800.00',
'country' => 'MX',
'rail' => 'SPEI'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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-sandbox.circle.com/v1/payouts/quotes"
payload := strings.NewReader("{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}")
req, _ := http.NewRequest("POST", 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(string(body))
}HttpResponse<String> response = Unirest.post("https://api-sandbox.circle.com/v1/payouts/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.circle.com/v1/payouts/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"useCase\": \"B2C\",\n \"from\": {\n \"walletId\": \"1000000001\",\n \"currency\": \"USDC\"\n },\n \"to\": {\n \"currency\": \"MXN\",\n \"amount\": \"1800.00\",\n \"country\": \"MX\",\n \"rail\": \"SPEI\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "66666666-7777-8888-9999-000000000000",
"type": "tradable",
"useCase": "B2C",
"pair": "USDC_MXN",
"from": {
"walletId": "1000000001",
"currency": "USDC",
"amount": "95.50",
"chain": "MATIC"
},
"to": {
"currency": "MXN",
"amount": "1800.00",
"country": "MX",
"rail": "SPEI"
},
"rate": "18.848",
"fees": [
{
"type": "FIAT_PAYOUT_FEE",
"amount": "1.35",
"currency": "USDC"
}
],
"expiresAt": "2026-08-12T00:15:00Z"
}
]
}Authorizations
Body
application/json
Use case that describes the originator and recipient relationship.
B2B— business originator, business recipient.B2C— business originator, individual recipient.C2B— individual originator, business recipient.C2C— individual originator, individual recipient.
Available options:
B2B, B2C, C2B, C2C Was this page helpful?