Arf Liquidity Docs
    Arf Liquidity Docs
    • Introduction
    • Environments
    • IP Restrictions
    • Authentication
    • RSA4096 Examples
    • Errors
    • Webhooks
    • Client
      • Create Client
        POST
      • Upload Document
        PUT
      • Get Client
        GET
      • List Clients
        GET
      • Get Client Credit Preference
        GET
      • Create Bank Information
        POST
      • Create Chain Information
        POST
    • Credit
      • Check Credit
        GET
      • Create Credit
        POST
      • Get Credit
        GET
      • List Credits
        GET
    • Webhooks
      • List All Webhook
        GET
      • Create Webhook
        POST
      • Delete Webhook
        DELETE
    • Schemas
      • Error Schema
      • Successful Response
      • Client Detail
      • Document Detail
      • Credit Details
      • Webhook

    Errors

    Error Documentation#

    Overview#

    The Liquidity API uses standard HTTP response codes to indicate request outcomes:
    2xx - Success
    4xx - Client errors (invalid parameters, auth failures, etc.)
    5xx - Server errors (rare)

    Error Object Format#

    {
      "error": {
        "type": "invalid_request_error",
        "code": "parameter_missing", 
        "message": "Missing required parameter: email",
        "param": "email",
        "request_id": "req_abc123",
        "doc_url": "https://liquidity.arf.one/errors#parameter_missing",
        "details": {}
      }
    }

    Attributes#

    FieldDescription
    typeGeneral category of the error
    codeSpecific identifier for the error
    messageHuman-readable explanation
    paramParameter causing the error (if applicable)
    request_idUnique identifier for the request
    doc_urlLink to relevant documentation
    detailsAdditional context (optional)

    HTTP Status Codes#

    CodeNameDescription
    200OKSuccess
    201CreatedResource created successfully
    400Bad RequestInvalid request parameters
    401UnauthorizedAuthentication required
    403ForbiddenInsufficient permissions
    404Not FoundResource doesn't exist
    409ConflictRequest conflicts with current state
    422Unprocessable EntityValid request, semantic errors
    429Too Many RequestsRate limit exceeded
    500Internal Server ErrorServer-side error
    502Bad GatewayUpstream server error
    503Service UnavailableServer temporarily unavailable
    504Gateway TimeoutUpstream timeout

    Error Types#

    api_error#

    Cause: Internal server issue
    Solution: Retry with exponential backoff

    authentication_error#

    Cause: Invalid or missing API key
    Solution: Authorization header and credentials

    authorization_error#

    Cause: Insufficient permissions
    Solution: Check API key scope or access rights

    invalid_request_error#

    Cause: Missing or malformed parameters
    Solution: Validate request structure and parameters

    rate_limit_error#

    Cause: Too many requests
    Solution: Implement retry strategy with backoff

    validation_error#

    Cause: Input fails validation rules
    Solution: details object and validate input formats

    Common Error Codes#

    Authentication#

    invalid_key - Invalid API key
    missing_key - No API key provided
    expired_key - API key has expired

    Request#

    parameter_missing - Required parameter not included
    parameter_invalid - Invalid parameter value
    malformed_request - JSON structure is invalid
    resource_not_found - Resource doesn't exist

    Rate Limiting#

    rate_limit_exceeded - Too many requests
    quota_exceeded - API quota exceeded

    Validation#

    invalid_email - Invalid email format
    invalid_phone - Invalid phone format
    invalid_date - Invalid date format
    value_too_long - Value exceeds maximum length
    value_too_short - Value below minimum length

    Error Handling Best Practices#

    1. Handle Errors Gracefully#

    2. Implement Retry Logic#

    3. Log Errors#

    Always log errors with the request_id field to aid debugging and customer support.

    Troubleshooting#

    ProblemSolution
    401 UnauthorizedCheck API key, authentication method, expiration
    429 Rate LimitImplement retry logic, reduce request frequency
    422 ValidationVerify required fields, formats, business rules
    500 InternalRetry after delay, check status page, contact support

    Getting Help#

    1.
    Review the error type and code
    2.
    Validate authentication and request structure
    3.
    Apply appropriate error handling and retries
    4.
    If unresolved, contact support with the request_id
    For more information: API Documentation | Support
    Modified at 2025-07-10 09:56:21
    Previous
    RSA4096 Examples
    Next
    Webhooks
    Built with