MERSEL.Services.GibUserList.Client 1.0.3

dotnet add package MERSEL.Services.GibUserList.Client --version 1.0.3
                    
NuGet\Install-Package MERSEL.Services.GibUserList.Client -Version 1.0.3
                    
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="MERSEL.Services.GibUserList.Client" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MERSEL.Services.GibUserList.Client" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="MERSEL.Services.GibUserList.Client" />
                    
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 MERSEL.Services.GibUserList.Client --version 1.0.3
                    
#r "nuget: MERSEL.Services.GibUserList.Client, 1.0.3"
                    
#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 MERSEL.Services.GibUserList.Client@1.0.3
                    
#: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=MERSEL.Services.GibUserList.Client&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=MERSEL.Services.GibUserList.Client&version=1.0.3
                    
Install as a Cake Tool

MERSEL.Services.GibUserList.Client

.NET HTTP client SDK for the MERSEL GIB User List API. Query Turkish tax authority (GIB) e-Invoice and e-Despatch taxpayer lists with built-in HMAC-SHA256 authentication.

Installation

dotnet add package MERSEL.Services.GibUserList.Client

Quick Start

Using IConfiguration binding

// appsettings.json
{
  "GibUserListClient": {
    "BaseUrl": "https://gib-userlist.example.com",
    "AccessKey": "your-access-key",
    "SecretKey": "your-secret-key"
  }
}
builder.Services.AddGibUserListClient(builder.Configuration);

Using inline options

builder.Services.AddGibUserListClient(options =>
{
    options.BaseUrl = "https://gib-userlist.example.com";
    options.AccessKey = "your-access-key";
    options.SecretKey = "your-secret-key";
    options.Timeout = TimeSpan.FromSeconds(30);
});

Inject and use

public class MyService(IGibUserListClient client)
{
    public async Task CheckTaxPayer(string vkn)
    {
        var response = await client.GetEInvoiceGibUserAsync(vkn);
        
        // response.Data      -> GibUserResponse (taxpayer info)
        // response.LastSyncAt -> last server sync timestamp
    }
}

Features

Taxpayer Lookup

Method Description
GetEInvoiceGibUserAsync(identifier) Lookup e-Invoice taxpayer by VKN/TCKN
GetEDespatchGibUserAsync(identifier) Lookup e-Despatch taxpayer by VKN/TCKN
SearchEInvoiceGibUsersAsync(query) Search e-Invoice taxpayers by title
SearchEDespatchGibUsersAsync(query) Search e-Despatch taxpayers by title
BatchGetEInvoiceGibUsersAsync(identifiers) Batch lookup up to 100 e-Invoice taxpayers
BatchGetEDespatchGibUsersAsync(identifiers) Batch lookup up to 100 e-Despatch taxpayers

Change Tracking (Delta Sync)

var changes = await client.GetEInvoiceChangesAsync(since: lastSyncDate);

foreach (var change in changes.Data.Items)
{
    // change.ChangeType -> Added, Removed
    // change.Identifier -> VKN/TCKN
}

Archive (Full List Bootstrap)

// Download the latest full taxpayer list
await using var stream = (await client.GetLatestEInvoiceArchiveAsync()).Data;

// Or list available archive files
var archives = await client.ListEInvoiceArchivesAsync();

Sync Status

var status = await client.GetSyncStatusAsync();
// status.LastSyncAt, status.EInvoiceCount, status.EDespatchCount

Consumer Protocol

  1. Initial bootstrap: Download the full list via GetLatestEInvoiceArchiveAsync()
  2. Delta tracking: Poll changes via GetEInvoiceChangesAsync(since) periodically
  3. 410 Gone: If the retention window has expired, re-bootstrap from step 1

Authentication

HMAC-SHA256 signing is automatically enabled when both AccessKey and SecretKey are provided. Requests are signed with Authorization, X-Timestamp, and X-Nonce headers. No additional configuration required.

Target Frameworks

  • .NET 8.0
  • .NET 9.0

License

MIT - see LICENSE

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.3 148 2/20/2026
1.0.2 116 2/20/2026
1.0.1 120 2/20/2026
1.0.0 120 2/19/2026