FlamPix Gateway API
    FlamPix Gateway API
    • 📜 API Overview
    • Docs
      • 🔑 Authentication & HMAC Signing
      • 🪝 Webhook
      • 🧵 Deposit Status Strings
      • 🚦 API Limits
    • Raiz
      • Create Deposit
        POST
      • Get Deposit Status
        GET
      • Get User Info
        GET
      • Health Check
        GET
      • Transaction Status Update
    • Esquemas
      • Customer
      • DepositRequest
      • DepositResponse
      • UserInfoResponse
      • WebhookPayload

    API Responses

    This document provides a comprehensive list of all possible HTTP response codes and JSON bodies returned by the FlamPix Gateway API.

    ✅ Success Responses (2xx)#

    200 OK#

    The request was successfully processed.
    Standard Success Response:
    {
      "depositId": "c2a5dbd4-043a-4d4f-866e-8ddad4ed067c",
      "status": "awaiting_payment", // or 'paid', 'processing', etc.
      "amount": {
        "grossInCents": 15000,
        "feeInCents": 575,
        "netInCents": 14425
      },
      // ... other resource-specific fields
    }

    ❌ Client Errors (4xx)#

    These errors are caused by invalid requests from the client.

    400 Bad Request#

    The request body or parameters are invalid.
    Error MessageDescription
    X-Idempotency-Key é obrigatórioMissing the idempotency header in POST requests.
    amountInCents deve ser um inteiro positivoThe amount is invalid, zero, or negative.
    destinationAddress não pode coincidir com o split addressYou tried to send funds to the gateway's fee address.
    EUID inválidoThe provided EUID format is incorrect (must be 'EU' + 15 digits).
    Status é obrigatório(Webhook) The payload is missing the status field.
    ID do depósito é obrigatório(Webhook) The payload is missing the deposit identifier.
    Example Body:
    {
      "error": "amountInCents deve ser um inteiro positivo"
    }

    401 Unauthorized#

    Authentication failed due to missing or invalid credentials.
    Error MessageDescription
    Credenciais do gateway ausentesMissing API Key, Timestamp, or Signature headers.
    Timestamp fora da janela permitidaRequest timestamp is older than 5 minutes or in the future.
    Assinatura inválidaThe HMAC signature does not match the request content.
    Secret inválido(Webhook) The webhook signature provided does not match the stored secret.
    Example Body:
    {
      "error": "Assinatura inválida"
    }

    403 Forbidden#

    The client is authenticated but does not have permission to access the resource.
    Error MessageDescription
    IP não autorizadoThe request came from an IP address not listed in the client's allowlist.
    API Key is not activeThe provided API key has been suspended or revoked.
    Example Body:
    {
      "error": "IP não autorizado"
    }

    404 Not Found#

    The requested resource does not exist.
    Error MessageDescription
    Depósito não localizadoThe provided deposit ID does not exist or belongs to another client.
    Usuário não encontradoThe requested EUID does not exist in the system.
    Example Body:
    {
      "error": "Depósito não localizado"
    }

    409 Conflict#

    The request conflicts with the current state of the resource.
    Error MessageDescription
    Requisição em processamentoThe provided X-Idempotency-Key is currently being processed. Please wait.
    Example Body:
    {
      "error": "Requisição em processamento. Aguarde alguns instantes."
    }

    422 Unprocessable Entity#

    The request is well-formed but violates business rules.
    Error MessageDescription
    Limite diário excedidoThe user (EUID) has reached their daily transaction limit.
    Example Body:
    {
      "error": "Limite diário excedido"
    }

    429 Too Many Requests#

    The client has exceeded the rate limit.
    Error MessageDescription
    Limite de requisições excedidoYou have sent too many requests in a short period.
    Response Headers:
    Retry-After: Seconds to wait before retrying.
    Example Body:
    {
      "error": "Limite de requisições excedido",
      "retryAfter": 30
    }

    💥 Server Errors (5xx)#

    These errors indicate a problem on the FlamPix side.

    500 Internal Server Error#

    An unexpected error occurred on the server.
    Error MessageDescription
    Erro interno ao consultar depósitoA database or system error prevented the lookup.
    Split address não configuradoCritical configuration error on the gateway server.
    Erro interno no processamento do webhookThe server failed to process the incoming webhook.
    Example Body:
    {
      "error": "Erro interno ao consultar depósito"
    }

    502 Bad Gateway#

    The gateway received an invalid response from an upstream server (e.g., Eullen/DePix API).

    503 Service Unavailable#

    The service is temporarily unavailable, usually due to maintenance or high load.

    504 Gateway Timeout#

    The upstream server failed to respond in time.

    Modificado em 2025-12-22 22:01:27
    Página anterior
    🚦 API Limits
    Próxima página
    Create Deposit
    Built with