Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FDA DSCSA & EU FMD Drug Serialization API — .NET / C# SDK

NuGet version License: MIT Stanza API

US FDA DSCSA 4-element & EU FMD 2D DataMatrix barcode parser, Modulo-10 check digit validator, and NDC-to-GTIN converter in sub-5ms.

Official high-performance .NET client library for FDA DSCSA & EU FMD Drug Serialization API, built on the Stanza Micro-API Network. Fully compatible with .NET Standard 2.0, .NET 6.0, .NET 7.0, and .NET 8.0+.


📦 Installation

dotnet add package StanzaApi.PharmaDscsa

🚀 Quickstart

using System;
using System.Threading.Tasks;
using StanzaApi.PharmaDscsa;

class Program
{
    static async Task Main()
    {
        // Initialize client (reads STANZA_API_KEY from environment if not passed)
        var client = new PharmaDscsaClient();

        // Perform deterministic verification
        string responseJson = await client.ValidateAsync("(01)00300012345678(21)100000000001(17)261231(10)LOT12345");
        Console.WriteLine(responseJson);
    }
}

📄 Example Response

{
  "success": true,
  "data": {
    "gtin": "00300012345678",
    "serial_number": "100000000001",
    "expiration_date": "2026-12-31",
    "lot_number": "LOT12345"
  }
}

⚙️ Configuration

Pass options directly to the PharmaDscsaClient constructor:

var client = new PharmaDscsaClient(
    apiKey: "your_api_key_here",
    baseUrl: "https://api.stanzaapi.com/pharma-dscsa"
);

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.

Releases

Packages

Contributors

Languages