Pular para o conteúdo principal
Update Quote Status
curl --request PUT \
  --url https://api.spherepay.co/v2/quote/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "used"
}
'
{
  "id": "quote_d243ab2b1de4447d8a046d87fefe58cf",
  "status": "used",
  "type": "off_ramp",
  "customerId": "customer_3faa484998f44cfead9668608b9ee1f5",
  "fees": {
    "integratorFee": {
      "fixedAmount": "0.00",
      "bpsRate": "20",
      "bpsAmount": "0.20",
      "totalAmount": "0.20",
      "currency": "usdc"
    },
    "platformFee": {
      "fixedAmount": "0.00",
      "bpsRate": "20",
      "bpsAmount": "0.20",
      "totalAmount": "0.20",
      "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"
}
Faça manualmente a transição de uma cotação para fora do estado active. A maioria das transições de cotação acontece automaticamente — uma cotação se torna used quando resgatada por Criar Transferência, e se torna expired quando seu timestamp expiresAt passa. Use este endpoint quando precisar anular explicitamente uma cotação (ex.: cliente abandonou o fluxo) ou marcá-la como consumida por um sistema downstream que não resgata através de /v2/transfer.
Apenas cotações com status active podem ser atualizadas. Tentar atualizar uma cotação que já está used ou expired retorna um erro de validação 422.

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

id
string
obrigatório

The unique quote ID.

Pattern: ^quote_[a-z0-9]+$
Exemplo:

"quote_d243ab2b1de4447d8a046d87fefe58cf"

Corpo

application/json
status
enum<string>
obrigatório

The new status for the quote. Only active quotes can be updated.

Opções disponíveis:
used,
expired
Exemplo:

"used"

Resposta

id
string
obrigatório

A unique identifier for the quote.

Pattern: ^quote_[a-z0-9]+$
Exemplo:

"quote_d243ab2b1de4447d8a046d87fefe58cf"

status
enum<string>
obrigatório

The current status of the quote.

Opções disponíveis:
active,
used,
expired
Exemplo:

"active"

type
enum<string>
obrigatório

The transfer type this quote is for.

Opções disponíveis:
on_ramp,
off_ramp
Exemplo:

"off_ramp"

customerId
string
obrigatório

The customer ID.

Exemplo:

"customer_d243ab2b1de4447d8a046d87fefe58cf"

fees
object
obrigatório
source
object
obrigatório
destination
object
obrigatório
expiresAt
string<date-time>
obrigatório

The datetime when this quote expires.

Exemplo:

"2025-01-01T00:01:00.000Z"

created
string<date-time>
obrigatório

The datetime the quote was created.

Exemplo:

"2025-01-01T00:00:00.000Z"

updated
string<date-time>
obrigatório

The datetime the quote was last updated.

Exemplo:

"2025-01-01T00:00:30.000Z"

Última modificação em 18 de junho de 2026