Saltar al contenido principal
List Quotes
curl --request GET \
  --url https://api.spherepay.co/v2/quote \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.spherepay.co/v2/quote"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.spherepay.co/v2/quote', 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.spherepay.co/v2/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api.spherepay.co/v2/quote"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.spherepay.co/v2/quote")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.spherepay.co/v2/quote")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "page": 1,
  "limit": 10,
  "total": 1,
  "totalPages": 1,
  "hasNext": false,
  "hasPrevious": false,
  "data": [
    {
      "id": "quote_d243ab2b1de4447d8a046d87fefe58cf",
      "status": "active",
      "type": "off_ramp",
      "customerId": "customer_d243ab2b1de4447d8a046d87fefe58cf",
      "fees": {
        "integratorFee": {
          "fixedAmount": "0.00",
          "bpsRate": "0",
          "totalAmount": "0.00",
          "currency": "usdc"
        },
        "platformFee": {
          "fixedAmount": "0.00",
          "bpsRate": "20",
          "totalAmount": "2.00",
          "currency": "usdc"
        }
      },
      "source": {
        "currency": "usdc",
        "network": "polygon",
        "amount": "100.00"
      },
      "destination": {
        "currency": "brl",
        "network": "pix",
        "amount": "545.50",
        "exchangeRate": "5.455"
      },
      "expiresAt": "2025-01-01T00:01:00.000Z",
      "created": "2025-01-01T00:00:00.000Z",
      "updated": "2025-01-01T00:00:30.000Z"
    }
  ]
}
{
"status": 400,
"detail": "Invalid request parameters",
"code": "address/invalid",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}
{
"status": 404,
"detail": "Resource not found",
"code": "resource/not-found",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}
{
"status": 422,
"detail": "Validation failed",
"code": "validation/failed",
"correlationId": "28c61e885c6e5eaa78c1a2183a9b883c",
"errors": [
{
"detail": "Invalid email format",
"pointer": "/email"
},
{
"detail": "Name is required",
"pointer": "/name"
}
]
}
Recupera una lista paginada de todas las cotizaciones creadas por tu aplicación. Útil para auditar bloqueos de tasa pasados, construir una vista de historial en tu UI, o encontrar la cotización activa más reciente para un cliente.

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de consulta

page
string
predeterminado:1
requerido

Page number of the list (default: 1)

Ejemplo:

1

limit
string
predeterminado:10
requerido

Number of items per page (default: 10)

Ejemplo:

10

customerId
string

Filter quotes by customer ID.

Pattern: ^customer_[a-z0-9]+$
Ejemplo:

"customer_3faa484998f44cfead9668608b9ee1f5"

status
enum<string>

Filter quotes by status.

Opciones disponibles:
active,
used,
expired
Ejemplo:

"active"

Respuesta

page
number
requerido

Current page number

Ejemplo:

1

limit
number
requerido

Number of items per page

Rango requerido: 1 < x < 100
Ejemplo:

10

total
number
requerido

Total number of items

Ejemplo:

1

totalPages
number
requerido

Total number of pages

Ejemplo:

1

hasNext
boolean
requerido

Whether there is a next page

Ejemplo:

false

hasPrevious
boolean
requerido

Whether there is a previous page

Ejemplo:

false

data
object[]
requerido

The list of quotes for the current page.

Última modificación el 22 de junio de 2026