Skip to content
Official Invoiced C# Library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
invoicedapi.tests
invoicedapi
.gitignore
.travis.yml
LICENSE
README.md
invoiced-csharp.sln

README.md

invoiced-csharp

Official Invoiced C# Library

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 invoiceID = 1;
var invoice = connection.NewInvoice().retrieve(invoiceID);

# mark as paid
var transaction = connection.NewTransaction();
transaction.invoice = invoice.id;
transaction.amount = invoice.balance;
transaction.method = "check";
transaction.Create();

Developing

The test suite can be ran with dotnet test

You can’t perform that action at this time.