Invoices API

Invoices

GET https://api.mothernode.com/invoices

Receive a list of all Invoices

Sample Response:

{
	"invoices":{
		"10000":{
			"header":{
				"invoice_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
				"invoice_number":"10000",
				"company_name":"Company",
				"bill_name":"Billing",
				"bill_address1":"555 Main",
				"bill_address2":"Suite 100",
				"bill_city":"New York",
				"bill_state":"NY",
				"bill_country":"US",
				"bill_contact":"Accounts Payable",
				"bill_contact_email":"accounts@company.com",
				"revision_date":"2016-06-15 16:45:48",
				"due_date":"2016-06-15 16:45:48",
				"g_reference":"Reference",
				"subtotal":"4000.00",
				"tax_total":"0.00",
				"quote_total":"4000.00"
			},
			"detail":[
				{
					"line_number":"1",
					"line_sub":"0",
					"item_name":"test item",
					"item_description":null,
					"qty":"3.000",
					"unit_cost":"-1000.00",
					"markup":null,
					"discount":null,
					"is_taxable":"1"
				},
				{
					"line_number":"2",
					"line_sub":"0",
					"item_name":"thing",
					"item_description":null,
					"qty":"5.000",
					"unit_cost":"-200.00",
					"markup":null,
					"discount":null,
					"is_taxable":"1"
				}
			]
		},
		"10001":{
			"header":{
				"invoice_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
				"invoice_number":"10001",
				"company_name":"Company",
				"bill_name":"Billing",
				"bill_address1":"555 Main",
				"bill_address2":"Suite 100",
				"bill_city":"New York",
				"bill_state":"NY",
				"bill_country":"US",
				"bill_contact":"Accounts Payable",
				"bill_contact_email":"accounts@company.com",
				"revision_date":"2016-06-15 16:45:48",
				"due_date":"2016-06-15 16:45:48",
				"g_reference":"Reference",
				"subtotal":"4000.00",
				"tax_total":"0.00",
				"quote_total":"4000.00"
			},
			"detail":[
				{
					"line_number":"1",
					"line_sub":"0",
					"item_name":"Item",
					"item_description":"Description",
					"qty":"50.000",
					"unit_cost":"-10.00",
					"markup":"0",
					"discount":"0",
					"is_taxable":"1"
				}
			]
		}
	}
}

Filter records:

GET https://api.mothernode.com/invoices?company_name=Large Co.

GET https://api.mothernode.com/invoices?country=US&state=TX


GET https://api.mothernode.com/invoices/{id}

Receive a single Invoices

GET https://api.mothernode.com/invoices/0000000a-a0a0-00a0-a000-a00a00a0000a

Sample Response:

{
	"invoice":{
		"header":{
			"invoice_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
			"invoice_number":"10000",
			"customer_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
			"company_name":"Company",
			"bill_name":"Company",
			"bill_address1":"",
			"bill_address2":"",
			"bill_city":"",
			"bill_state":"",
			"bill_country":"US",
			"bill_zip":"",
			"bill_tel":"",
			"bill_tel_ext":"",
			"bill_fax":"",
			"bill_mobile":"",
			"bill_contact_id":null,
			"bill_contact":"Accounts Payable",
			"bill_contact_email":"",
			"ship_name":"Company",
			"ship_address1":"",
			"ship_address2":"",
			"ship_city":"",
			"ship_state":"",
			"ship_country":"US",
			"ship_zip":"",
			"ship_tel":"",
			"ship_tel_ext":"",
			"ship_fax":"",
			"ship_mobile":"",
			"ship_contact_id":null,
			"ship_contact":"",
			"ship_contact_email":"",
			"order_by":"User",
			"o_revision_no":null,
			"revision_date":"2016-06-15 16:45:48",
			"o_valid_until":null,
			"order_status":"Paid",
			"tax_number":"",
			"tax_rate":"0.0000",
			"q_markup":"0.0000",
			"q_discount":"0.0000",
			"est_ship_date":null,
			"ship_method":"",
			"confidence":null,
			"days_to_close":null,
			"weeks_to_complete":"",
			"sales_name":"",
			"pm_name":"",
			"m_segment":null,
			"construction_type":null,
			"quote_source":null,
			"quote_ref":"IND",
			"quote_status_id":"0",
			"quote_notes":null,
			"tax_exempt":"0",
			"tax_exempt_id":null,
			"shipping_total":"0.00",
			"install_total":"0.00",
			"subtotal":"-4000.00",
			"tax_total":"0.00",
			"quote_total":"-4000.00",
			"mh_total":"0.00",
			"mo_total":"0.00",
			"moint_total":"0.00",
			"moext_total":"0.00",
			"mhint_total":"0.00",
			"mhext_total":"0.00",
			"installint_total":"0.00",
			"installext_total":"0.00",
			"removal_total":"0.00",
			"permit_total":"0.00",
			"remake_total":"0.00",
			"reorder_total":"0.00",
			"artwork_total":"0.00",
			"assembly_total":"0.00",
			"designbuild_total":"0.00",
			"expedite_total":"0.00",
			"pm_total":"0.00",
			"survey_total":"0.00",
			"staffing_total":"0.00",
			"wayfinding_total":"0.00",
			"taxable_total":"-4000.00",
			"created_on":"2016-06-15 16:45:48",
			"created_by":"User",
			"last_modified_on":"2016-06-15 10:46:25",
			"last_modified_by":"User",
			"budget_total":"0.00",
			"tax_exempt_no":"",
			"is_remake":"0",
			"is_reorder":"0",
			"deposit_amt":"0.00",
			"deposit_date":null,
			"po_number":null,
			"is_paid":"1",
			"paid_date":"2016-06-15",
			"is_void":"0",
			"void_date":null,
			"ship_date":null,
			"actual_ship_date":null,
			"is_rush":"0",
			"order_number":"0",
			"priority_text":"Normal",
			"g_reference":null,
			"install_date":null,
			"completed_date":null,
			"dep_chq_number":null,
			"void_by":null,
			"processed_on":null,
			"deposit_req":"0.00",
			"due_date":null,
			"srvmo_total":"0.00",
			"srvmh_total":"0.00",
			"digital_total":"0.00",
			"namo_total":"0.00",
			"namh_total":"-4000.00",
			"digitalmo_total":"0.00",
			"digitalmh_total":"0.00",
			"use_old_calc":"0",
			"export_hold":"0",
			"export_id":"0",
			"is_credit_memo":"0",
			"is_oos":"0",
			"notify_process":"0",
			"notify_ship":"0",
			"is_moos":"0",
			"tax_get_used":"customer_ship_zip",
			"tax_zip_used":"",
			"proof_first_name":"",
			"proof_last_name":"",
			"proof_address1":"",
			"proof_address2":"",
			"proof_city":"",
			"proof_state":"",
			"proof_zip":"",
			"proof_country":"",
			"proof_tel":"",
			"proof_fax":"",
			"proof_email":"",
			"proof_company_name":"",
			"proof_mobile":"",
			"o_invoice_date":null,
			"opp_type_id":null,
			"opp_probability_id":"0",
			"promo_code":null,
			"l_lead_source_id":null,
			"lead_id":null,
			"q_source":"",
			"q_relationship_id":"",
			"o_close_date":null,
			"drop_name":null,
			"drop_address1":null,
			"drop_address2":null,
			"drop_city":null,
			"drop_state":null,
			"drop_country":null,
			"drop_zip":null,
			"drop_tel":null,
			"drop_tel_ext":null,
			"drop_fax":null,
			"drop_mobile":"",
			"drop_contact":null,
			"drop_contact_id":null,
			"drop_contact_email":null,
			"media_type":null,
			"progress_invoice_amt":"0.00",
			"notify_list_email":"",
			"notify_billing":"0",
			"notify_shipping":"0",
			"payment_type":null,
			"referral_id":"0",
			"currency":"",
			"special_instructions":""
		},
		"detail":[
			{
				"line_number":"1",
				"line_sub":"0",
				"item_name":"test item",
				"item_description":null,
				"qty":"3.000",
				"unit_cost":"-1000.00",
				"markup":null,
				"discount":null,
				"is_taxable":"1"
			},
			{
				"line_number":"2",
				"line_sub":"0",
				"item_name":"thing",
				"item_description":null,
				"qty":"5.000",
				"unit_cost":"-200.00",
				"markup":null,
				"discount":null,
				"is_taxable":"1"
			}
		]
	}	
}

POST https://api.mothernode.com/invoices/record_payment

Record payment for an invoice

Pass the following parameteres

id: 
paid_date: '2016-12-17'
paid_amount: 25.00
chq_no: 
pay_note: 

On success will return status code 201 with response:
Print Friendly, PDF & Email

Was this article helpful?

Related Articles