Global API
Requests

Purchase Order

4min

When requesting a Purchase Order, use the requestJSON to pass the Purchase Order data. The response that is returned will contain a responseJSON section which has the Purchase Order response returned by Breadwinner for NetSuite.

The Purchase Order object has the following parameters.

PurchaseOrder

Field Name

Data Type

Description

salesforceID

ID

Read-Only field, provides the Salesforce Record ID upon successful creation or updation in Salesforce.

classification

 Internal ID of the Class.

createdDate

Long

Read-Only field, the Date will be returned as a Unix timestamp in seconds.

createdFrom

Internal ID of the SalesOrder.

currencyName

String

Read-Only field, returns the Currency Name.

currencyRecord

Internal ID of the Currency.

customFieldList

Custom fields and their values.

customForm

Internal ID of the Custom Form.

department

Internal ID of the Department.

dueDate

Long

Date is accepted and returned as a Unix timestamp in seconds.

email

String



employee



entity*

Internal ID of the Entity (Vendor).

exchangeRate

Double

 Supported only while creating, holds the value of the Exchange Rate.

externalId

String

 

fax

String



internalId

String

 Unique ID that NetSuite holds. It is required during the update of a Record.

itemList*

LineItems

Holds the Line Items.

lastModifiedDate

Long

Read-Only field and the Date is returned as a Unix timestamp in seconds.

location

Internal ID of the Location.

memo

String



otherRefNum

String



shipDate

Long



shippingAddress

AddressDetail

Address of the Vendor or Company

shipMethod

Internal ID of the Shipping Method.

shipTo

 Internal ID of the Customer.

source

String



status

String

Read-Only field, returns the Status of the Purchase Order.

subTotal

Double

Read-Only field, returns the Sub-Total.

subsidiary

Internal ID of the Subsidiary. By default, NetSuite considers the Subsidiary of the Vendor if not provided.

taxTotal

Double

Read-Only field, returns the Total Tax Amount.

terms

Internal ID of the Terms.

total

Double

Read-Only field, returns the Total Amount.

trackingNumbers

String



tranDate

Long

Date is accepted and returned as a Unix timestamp in seconds.

tranId

String

Provide Order # (number) or auto generated by NetSuite

LineItems

Field Name

Data Type

Description

item*

List of LineItem Records.

replaceAll

Boolean

The default value for the replaceAll attribute is true.If true,NetSuite will replace all the LineItems with the new ones

LineItemRecord

Field Name

Data Type

Description

amount

Double



classification

Internal ID of the Class.

customFieldList

List of Custom Fields with their Values.

department

Internal ID of the Department.

description

String

Item Description

grossAmt

Double



item*

Internal ID of the Item.

line

Integer

Specifies the Line Number, which should be unique across the lines.

location

Internal ID of the Location.

quantity

Double



rate

String



tax1Amt

Double



taxCode

Internal ID of the Tax Code.

taxRate1

Double



AddressDetail

Field Name

Data Type

Description

addr1

String

Address Line 1

addr2

String

Address Line 2

addr3

String

Address Line 3

addrPhone

String

Phone Number

addressee

String



attention

String



city

String



country

String



internalId

String

Internal ID of existing Address

state

String

State/Province

zip

String





Updated 14 Jun 2024
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Did this page help you?