net3000.hotelbeds 1.0.0

dotnet add package net3000.hotelbeds --version 1.0.0
                    
NuGet\Install-Package net3000.hotelbeds -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net3000.hotelbeds" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.hotelbeds" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="net3000.hotelbeds" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net3000.hotelbeds --version 1.0.0
                    
#r "nuget: net3000.hotelbeds, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net3000.hotelbeds@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net3000.hotelbeds&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=net3000.hotelbeds&version=1.0.0
                    
Install as a Cake Tool

Net3000.Hotelbeds

Overview

The Net3000.Hotelbeds library provides integration with the Hotelbeds APItude APIs for Net3000 solutions. Hotelbeds is a hotel bed bank; this library covers hotel availability search, rate revalidation, booking management, and static hotel content.

Features

  • Availability Search: Search hotel availability by hotel codes, destination code, or geolocation
  • Check Rates: Revalidate rate keys before booking (required for RECHECK rate types)
  • Bookings: Create, retrieve, list, and cancel bookings (including cancellation-fee simulation)
  • Hotel Content: Static hotel content (names, descriptions, images, facilities) with incremental sync support
  • Response Models: Typed request/response models for the above endpoints

Installation

dotnet add package net3000.hotelbeds

Configuration

Add the Hotelbeds credentials to your configuration (values are supplied via NET3000_ environment variables — never commit real keys):

{
  "Hotelbeds": {
    "ApiKey": "",
    "Secret": ""
  }
}

Usage

using Net3000.Hotelbeds;
using Net3000.Hotelbeds.Models;

var service = new HotelbedsService
{
    ApiKey = configuration["Hotelbeds:ApiKey"],
    Secret = configuration["Hotelbeds:Secret"],
    BaseUrl = "https://api.test.hotelbeds.com" // live: https://api.hotelbeds.com
};

// Verify connectivity + credentials
var status = await service.StatusAsync();

// Search availability
var availability = await service.AvailabilityAsync(new AvailabilityRequest
{
    stay = new Stay { checkIn = "2026-09-15", checkOut = "2026-09-18" },
    occupancies = new List<Occupancy> { new() { rooms = 1, adults = 2, children = 0 } },
    destination = new Destination { code = "PMI" }
});

// Book a returned rate
var booking = await service.CreateBookingAsync(new BookingRequest
{
    holder = new Holder { name = "First", surname = "Last" },
    rooms = new List<BookingRoom> { new() { rateKey = "<rateKey from availability/checkrates>" } },
    clientReference = "NET3000-12345"
});

Authentication

Hotelbeds authenticates every request with two headers, handled automatically by the service:

  • Api-key: the account API key
  • X-Signature: lowercase hex SHA-256 of apiKey + secret + unixTimestampSeconds

Signatures are time-sensitive — the server clock must be reasonably accurate.

Environments

  • Test: https://api.test.hotelbeds.com (default)
  • Live: https://api.hotelbeds.com
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 119 7/29/2026

Initial release of Net3000 Hotelbeds library with hotel availability, check-rate, booking and content capabilities.