Zeal Reconfirmation
    • Getting Started
    • Sync Updates (Webhooks)
    • Error Codes Reference
    • Reconfirmation APIs
      • Add Bookings
        POST
      • Update Booking
        PATCH
    • Resources
    • Schemas
      • Add Bookings
      • Update Booking

    Error Codes Reference

    All API errors follow a consistent JSON structure with a machine-readable code, HTTP statusCode, human-readable message, and optional details array for validation errors.

    Error Response Structure#

    {
      "status": "ERROR",
      "error": {
        "code": "ERROR_CODE",
        "message": "Readable description",
        "statusCode": 400,
        "details": [ /* only present for INVALID_BOOKING_DATA */ ]
      },
      "meta": {
        "requestId": "req_...",
        "timestamp": "2025-07-10T09:30:00.000Z"
      }
    }

    Error Code Reference#

    HTTPError CodeDescriptionResolution
    400INVALID_REQUEST_BODYRequest body is not valid JSONCheck Content-Type: application/json header and ensure body is valid JSON
    400INVALID_BOOKING_DATAJSON schema validation failedInspect details array for per-field errors with bookingCode, field, and message
    401UNAUTHORIZEDMissing x-api-key or x-account-id headersEnsure both authentication headers are present on every request
    403INVALID_ACCOUNTAccount ID not verifiedConfirm your x-account-id value in the ZealConnect Portal
    403INVALID_API_KEYAPI key doesn't match this accountRe-generate your API key in Settings → Integrations
    403API_INTEGRATION_DISABLEDAPI integration disabled for your orgEnable API integration in your ZealConnect Portal settings
    502QUEUE_PUBLISH_FAILEDInternal queue publish failureRetry with exponential backoff. Contact support if persistent
    500INTERNAL_SERVER_ERRORUnexpected server-side errorRetry once. If it persists, contact support with the requestId

    Validation Error Details (INVALID_BOOKING_DATA)#

    When schema validation fails, the details array provides per-field errors:
    {
      "status": "ERROR",
      "error": {
        "code": "INVALID_BOOKING_DATA",
        "message": "Schema validation failed",
        "statusCode": 400,
        "details": [
          {
            "bookingCode": "ZC-2025-00842",
            "field": "Guest.Adults",
            "value": -1,
            "message": "must be >= 0"
          },
          {
            "bookingCode": "ZC-2025-00843",
            "field": "Hotel.Name",
            "value": "",
            "message": "must NOT have fewer than 1 characters"
          }
        ]
      },
      "meta": {
        "requestId": "req-abc123",
        "timestamp": "2026-01-21T14:30:00.000Z"
      }
    }

    Retry Strategy#

    Implement exponential backoff for 5xx errors:
    Start with 1 second delay
    Double on each retry
    Maximum delay: 60 seconds
    Maximum retries: 5
    Log the requestId from all error responses for support escalation
    📧 Contact support at support@zealconnect.com and include your requestId for faster resolution.
    Modified at 2026-03-18 12:31:31
    Previous
    Sync Updates (Webhooks)
    Next
    Add Bookings
    Built with