Vantroute.Sdk
1.0.1
dotnet add package Vantroute.Sdk --version 1.0.1
NuGet\Install-Package Vantroute.Sdk -Version 1.0.1
<PackageReference Include="Vantroute.Sdk" Version="1.0.1" />
<PackageVersion Include="Vantroute.Sdk" Version="1.0.1" />
<PackageReference Include="Vantroute.Sdk" />
paket add Vantroute.Sdk --version 1.0.1
#r "nuget: Vantroute.Sdk, 1.0.1"
#:package Vantroute.Sdk@1.0.1
#addin nuget:?package=Vantroute.Sdk&version=1.0.1
#tool nuget:?package=Vantroute.Sdk&version=1.0.1
Vantroute SDK for .NET
Official .NET SDK for the Vantroute prescription routing API. Supports .NET Framework 4.6.1+ (netstandard2.0), .NET 6, and .NET 8.
Installation
dotnet add package Vantroute.Sdk
Quick Start
1. Register via Dependency Injection (ASP.NET Core)
builder.Services.AddVantroute(opts =>
{
opts.BaseUrl = "https://api.vantroute.com";
opts.ClientId = builder.Configuration["Vantroute:ClientId"]!;
opts.ClientSecret = builder.Configuration["Vantroute:ClientSecret"]!;
});
Then inject IVantrouteClient into your services. Authentication is automatic.
2. Submit a Prescription (Typed Model)
public class PrescriptionService(IVantrouteClient client)
{
public async Task SubmitAsync()
{
var result = await client.SubmitScriptAsync(new VantroutePrescription
{
Patient = new PatientInfo
{
FirstName = "Jane",
LastName = "Doe",
DateOfBirth = "1985-06-15",
Phone = "5551234567",
Address = new AddressInfo
{
Street1 = "123 Main St",
City = "Austin",
State = "TX",
Zip = "78701"
}
},
Prescriber = new PrescriberInfo
{
FirstName = "John",
LastName = "Smith",
Npi = "1234567890",
Phone = "5559876543"
},
Prescription = new PrescriptionInfo
{
DrugName = "Amoxicillin 500mg Capsule",
Quantity = 30,
Refills = 2,
DaysSupply = 10,
DateWritten = "2026-03-25",
Directions = "Take 1 capsule by mouth 3 times daily"
}
});
Console.WriteLine($"Accepted: {result.CorrelationId}");
}
}
3. Submit a Raw JSON Payload
For providers with their own payload format and server-side mapping configured:
var result = await client.SubmitScriptAsync(rawJsonString, new SubmitScriptOptions
{
IdempotencyKey = "order-12345"
});
4. Receive Webhooks
Register a webhook endpoint to receive prescription status updates from Vantroute:
app.MapPost("/webhook/vantroute", async (HttpContext ctx, IWebhookReceiver receiver) =>
{
using var reader = new StreamReader(ctx.Request.Body);
var body = await reader.ReadToEndAsync();
var signature = ctx.Request.Headers["X-Vantroute-Signature"].ToString();
if (!receiver.VerifySignature(body, signature, signingSecret))
return Results.Unauthorized();
var evt = receiver.ParseEvent(body);
// Handle status update: evt.CorrelationId, evt.Status, evt.EventType
return Results.Ok();
});
API Reference
| Method | Description |
|---|---|
AuthenticateAsync() |
Obtain a bearer token (called automatically) |
SubmitScriptAsync(VantroutePrescription, SubmitScriptOptions?) |
Submit using the typed canonical model |
SubmitScriptAsync(string, SubmitScriptOptions?) |
Submit using a raw JSON payload |
ListScriptsAsync(ListScriptsRequest?) |
Query prescription status history |
Examples
See the examples/BasicUsage project for a complete ASP.NET Core sample with DI, typed submission, raw submission, and webhook receiver.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Text.Json (>= 8.0.5)
-
net6.0
-
net8.0
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.1 | 104 | 4/22/2026 |