Skip to content

stevenalanshepherd/invoiced-dotnet-fix-listall-throwing-invalid-uri

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

invoiced-dotnet

This repository contains the .NET client library for the Invoiced API.

You can find detailed API documentation along with .NET code snippets here.

Build Status NuGet

Usage

First, you must instantiate a new client

using Invoiced;
 ...
var connection = new Connection("{YOUR_API_KEY}",Invoiced.Environment.sandbox);

Then, API calls can be made like this:

# retrieve invoice
var invoice = connection.NewInvoice().retrieve(1);

# mark as paid
var payment = connection.NewPayment();
payment.Amount = invoice.Balance;
payment.Method = "check";
payment.AppliedTo = new[]
{
    new PaymentItem {Type = "invoice", Amount = 100, Invoice = invoice.Id}
};
payment.Create();

Developing

The test suite can be ran with dotnet test

Deployment

Follow these steps to publish a package to NuGet:

dotnet pack
cd invoicedapi/bin/Debug/
nuget push Invoiced.X.X.X.nupkg -Source https://api.nuget.org/v3/index.json

About

Invoiced API Fork to fix ListAll() throwing InvalidUri

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%