Historico de pagamentos

Retorna o historico das invoices criadas.

GET

https://api.fps.pro/invoices/history

Formato da requisicaoqueryParam

page

number

Numero da pagina

Padrao: 1

type

string

Filtra invoices pelo ponto de entrada. Valores: invoice/static_wallet

Formato da respostadata object

id

uuid

ID da invoice

status

string

Status do pagamento (veja Status de pagamento)

created_at

string (ISO 8601 (RFC 3339), UTC)

Data de criacao do pagamento

Exemplos de requisição

curl --request GET 'https://api.fps.pro/invoices/history?page=1' \
  --header 'X-Client-Id: YOUR_CLIENT_ID' \
  --header 'X-Timestamp: 1720000000' \
  --header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE'

Resposta bem-sucedida

{
  "status": 200,
  "message": "success",
  "data": [
    {
        "id": "fa93aa50-aac9-4cea-aa1c-42e8631e8a98",
        "type": "invoice",
        "info": {
            "currency": "USD",
            "token": "LTC",
            "network": "Litecoin"
        },
        "order_id": "db432219b8ff49b8bb52a9dc19b04",
        "status": "bad_amount",
        "amount": {
            "crypto": 0.04522722,
            "usd": 2.02
        },
        "amount_accepted": {
            "crypto": 0.04512722,
            "usd": 2.04
        },
        "created_at": "2026-01-11T15:13:14.000Z"
    }, ..., {...}
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "per_page": 20,
    "last_page": 1
  }
}

Erros

A lista detalhada de erros de autorizacao esta em Autorizacao - Erros

{
  "status": 422,
  "message": "Validation Error",
  "errors": [
    {
      "field": "invoice",
      "message": "The invoice must be UUID."
    }
  ]
}
{
  "status": 500,
  "message": "Internal Server Error"
}