Global API
Requests
Invoice
3min
when requesting an invoice, use the requestjson to pass the invoice data the response that is returned will contain a responsejson section which has the invoice response returned by breadwinner for netsuite the invoice object has the following parameters invoice field name data type description salesforceid id read only field, provides the salesforce record id upon successful creation or updation in salesforce account common data types docid\ lgkoy7mdxhvjzkl2nr9ql select the accounts receivable account that will be affected by this invoice internal id of the account billingaddress common data types provide the custom address; otherwise, the customer's address will default classification common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the class createddate long read only field, the date will be returned as a unix timestamp in seconds createdfrom common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the estimate/salesorder currencyname string read only field, returns the currency name currencyrecord common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the currency customfieldlist common data types docid\ lgkoy7mdxhvjzkl2nr9ql custom fields and their values customform common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the custom form department common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the department discountitem common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the discount item discountrate string discount rate like “ 12” or “15” discounttotal double read only field, returns the total discount duedate long the date is accepted and returned as a unix timestamp in seconds entity common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the entity (customer) exchangerate double supported only while creating, holds the value of the exchange rate externalid string handlingcost double internalid string unique id that netsuite holds it is required during the update of a record itemlist invoice docid\ xsrer45ur9lxkfahmkbrh holds the line items lastmodifieddate long read only field and the date is returned as a unix timestamp in seconds location common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the location memo string otherrefnum string po/check number salesrep string internal id of the sales rep (employee) shippingaddress common data types provide the custom address; otherwise, the customer's address will default shippingcost double status string read only field, returns the status of the invoice subsidiary common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the subsidiary by default, netsuite considers the subsidiary of the customer if not provided subtotal double read only field, returns the sub total amount taxtotal double read only field, returns the total tax amount terms common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the terms trandate long the date is accepted and returned as a unix timestamp in seconds tranid string provide order # (number) or auto generated by netsuite total double read only field, returns the total amount lineitems field name data type description item invoice docid\ xsrer45ur9lxkfahmkbrh \[] list of lineitem records replaceall boolean the default value for the replaceall attribute is true if true, netsuite will replace all the line items with the new ones lineitemrecord field name data type description amount double classification common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the class customfieldlist common data types docid\ lgkoy7mdxhvjzkl2nr9ql list of custom fields with their values department common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the department description string item description grossamt double item common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the item line integer whenever a new line item is added to the transaction, a unique line number is assigned to it it is a read only and is used for updating the respective line item location common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the location price common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the price level of item if the rate is a custom price, pass " 1" as the price level internal id quantity double rate string rate field becomes read only if the price level is other than the custom price ( 1) revrecenddate long the date is accepted and returned as a unix timestamp in seconds revrecschedule common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the rev rec schedule revrecstartdate long the date is accepted and returned as a unix timestamp in seconds tax1amt double taxcode common data types docid\ lgkoy7mdxhvjzkl2nr9ql internal id of the tax code taxrate1 double