Purchase Orders
GET https://api.mothernode.com/purchaseorders
Receive a list of all Purchase Orders
Sample Response:
{
"purchaseorders":{
"10000":{
"header":{
"po_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
"po_number":"10000",
"vendor_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?vendor_name=Large Co.
GET https://api.mothernode.com/invoices?country=US&state=TX
GET https://api.mothernode.com/purchaseorders/{id}
Receive a single Purchase Order
GET https://api.mothernode.com/purchaseorders/0000000a-a0a0-00a0-a000-a00a00a0000a
Sample Response:
{
"invoice":{
"header":{
"po_id":"0000000a-a0a0-00a0-a000-a00a00a0000a",
"po_number":"1000",
"vendor_name":"Vendor",
"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":"",
"ordered_date":"2016-04-29 21:03:41",
"required_date":null,
"o_revision_no":null,
"revision_date":"2016-04-29 21:03:41",
"order_ref":"20000",
"client_ref":"Company",
"location_ref":"",
"deposit_amt":"0.00",
"deposit_date":null,
"issued_by_dept":"Sales",
"issued_by_dept_id":"21",
"approved_on":null,
"approved_by_id":null,
"approved_by":null,
"po_status":"Open",
"order_number":"20000",
"created_on":"2016-04-29 21:03:41",
"created_by":"User",
"last_modified_on":"2016-04-29 15:03:41",
"last_modified_by":"User",
"is_processed":"0",
"processed_date":null,
"processed_by":null,
"processed_by_id":null,
"tax_number":null,
"tax_rate":"7.0000",
"q_markup":"0.0000",
"q_discount":"0.0000",
"est_ship_date":null,
"ship_method":"",
"quote_notes":null,
"is_tax_exempt":"0",
"tax_exempt_no":"",
"shipping_total":"0.00",
"install_total":"0.00",
"subtotal":"80.00",
"tax_total":"5.60",
"quote_total":"85.60",
"is_remake":"0",
"is_reorder":"0",
"is_rush":"0",
"is_order_onhold":"0",
"priority_text":"Normal",
"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":"80.00",
"deposit_req":"0.00",
"due_date":null,
"srvmo_total":"0.00",
"srvmh_total":"0.00",
"digital_total":"0.00",
"namo_total":"80.00",
"namh_total":"0.00",
"digitalmo_total":"0.00",
"digitalmh_total":"0.00",
"vendor_contact_id":null,
"special_instructions":"",
"vc_name":null,
"vc_email":null,
"vc_phone":null,
"vc_fax":null,
"vc_address1":null,
"vc_address2":null,
"vc_city":null,
"vc_state":null,
"vc_country":null,
"vc_zip":null,
"vc_home":null,
"vc_mobile":null,
"v_name":null,
"v_address1":null,
"v_address2":null,
"v_city":null,
"v_state":null,
"v_country":null,
"v_zip":null,
"is_paid":"0",
"paid_date":null,
"pay_status":"Unpaid",
"use_old_calc":"0",
"i2_order_ref":"1",
"notify_received":"",
"notify_not_received":"",
"notify_nr_date":"0000-00-00",
"notify_nr_id":"",
"is_moos":null,
"tax_get_used":"customer_ship_zip",
"tax_zip_used":"50112",
"export_hold":"0",
"export_id":"0",
"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":"",
"lead_id":null,
"progress_invoice_amt":"0.00",
"payment_type":"",
"check_no":"",
"referral_id":"0",
"currency":""
},
"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"
}
]
}
}