curl https://api.sandbox.invoiced.com/subscriptions \
	-u 1234: \
	-d customer=137208 \
	-d plan=starter \
	-d discounts="test"
{| invoiced.Invoice.create( | |
| # ... | |
| :metadata => { | |
| :billing_period => "Mar 1, 2017 - Mar 31, 2017" | |
| } | |
| ) | 
| require 'invoiced' | |
| require 'securerandom' | |
| invoiced = Invoiced::Client.new('api_key_here') | |
| # This will create a customer | |
| customer = invoiced.Customer.create({ | |
| :name => 'My Customer' | |
| }, { | |
| :idempotency_key => SecureRandom.uuid | 
| require 'invoiced' | |
| invoiced = Invoiced::Client.new('XXXXX', true) | |
| customerId = 134523 | |
| invoiceId = 1213602 | |
| creditNote = invoiced.CreditNote.create( | |
| :customer => customerId, | |
| :invoice => invoiceId, | 
| curl "https://api.sandbox.invoiced.com/invoices" \ | |
| -u 4d7a57bdfecc2a2cb4319f3a7c158c14: \ | |
| -d customer=93886 \ | |
| -d payment_terms="NET 14" \ | |
| -d items[0][name]="Copy paper, Case" \ | |
| -d items[0][quantity]=1 \ | |
| -d items[0][unit_cost]=45 \ | |
| -d items[1][catalog_item]="delivery" \ | |
| -d items[1][quantity]=1 \ | |
| -d ship_to[name]="Parag Patel" \ | 
| import datetime | |
| import time | |
| import invoiced | |
| apiKey = "enter api key here" | |
| # Flags open invoices that are > N days old | |
| threshold = 60 # days | |
| client = invoiced.Client(apiKey, True) | 
| <div class="two-col clearfix"> | |
| <div class="title"> | |
| {{theme.header}} | |
| <small>{{invoice.number}}</small> | |
| </div> | |
| <div class="col"> | |
| <div class="from-holder"> | |
| <div class="logo"> | |
| {{#company.logo}}<img src="{{company.logo}}" />{{/company.logo}} | 
curl https://api.sandbox.invoiced.com/subscriptions \
	-u 1234: \
	-d customer=137208 \
	-d plan=starter \
	-d discounts="test"
{| <?php | |
| require("../vendor/autoload.php"); | |
| $invoiced = new Invoiced\Client("MY-API-KEY"); | |
| $page = 1; | |
| $hasNextPage = true; | |
| while ($hasNextPage) { |