Type
Description
ReadOnly
Inventory.Models.PurchaseOrderReadOnly
PurchaseOrderId
int
CreationDate
DateTime
LastModifiedDate
DateTime
Closed
bool
PurchaseOrderNumber
string
CustomerIdentifier
Generic.Models.CustomerIdentifier
ExternalId
string
Name
string
Id
int
IssueDate
DateTime?
Supplier
Generic.Models.ContactInfo
in GETs: the contact; in POSTs or PUTs: identifies existing contact or properties of new contact
ContactId
int?
for identifying: if known specify only this; other fields are ignored
CompanyName
string
Name
string
Title
string
Address1
string
Address2
string
City
string
State
string
Zip
string
Country
string
PhoneNumber
string
Fax
string
EmailAddress
string
Dept
string
IsAddressResidential
bool
Code
string
for identifying: if known specify only this; if other fields also specified it is not used to identify
AddressStatus
Common.Enum.AddressStatusType
confirmation status
- 0: Unconfirmed
- 1: Confirmed
- 2: UserAccepted
Notes
string
ExternalId
string
LineItems
IEnumerable<Inventory.Models.PurchaseOrderLineItem>
PurchaseOrderLineItemId
int
ItemIdentifier
Generic.Models.ItemIdentifier
Sku
string
Id
int
Qualifier
string
Quantity
decimal
ExpectedFacility
Generic.Models.FacilityIdentifier
Name
string
Id
int
ExpectedDate
DateTime?
CancelDate
DateTime?
Notes
string
ExternalLineId
string
Price
decimal?
Sample content-type: application/hal+json
Copy to clipboard
copied
{
"readOnly": {
"purchaseOrderId": 1 ,
"creationDate": "2016-12-25T23:00:00" ,
"lastModifiedDate": "2016-12-25T23:00:00" ,
"closed": true
},
"purchaseOrderNumber": "str" ,
"customerIdentifier": {
"externalId": "str" ,
"name": "str" ,
"id": 3
},
"issueDate": "2016-12-25T23:00:00" ,
"supplier": {
"contactId": 1 ,
"companyName": "str" ,
"name": "str" ,
"title": "str" ,
"address1": "str" ,
"address2": "str" ,
"city": "str" ,
"state": "str" ,
"zip": "str" ,
"country": "str" ,
"phoneNumber": "str" ,
"fax": "str" ,
"emailAddress": "str" ,
"dept": "str" ,
"isAddressResidential": true ,
"code": "str" ,
"addressStatus": 0
},
"notes": "str" ,
"externalId": "str" ,
"lineItems": [
{
"purchaseOrderLineItemId": 1 ,
"itemIdentifier": {
"sku": "str" ,
"id": 2
},
"qualifier": "str" ,
"quantity": 3.0 ,
"expectedFacility": {
"name": "str" ,
"id": 2
},
"expectedDate": "2016-12-25T23:00:00" ,
"cancelDate": "2016-12-25T23:00:00" ,
"notes": "str" ,
"externalLineId": "str" ,
"price": 1.0
}
]
}
Type
Description
ReadOnly
Inventory.Models.PurchaseOrderReadOnly
PurchaseOrderId
int
CreationDate
DateTime
LastModifiedDate
DateTime
Closed
bool
PurchaseOrderNumber
string
CustomerIdentifier
Generic.Models.CustomerIdentifier
ExternalId
string
Name
string
Id
int
IssueDate
DateTime?
Supplier
Generic.Models.ContactInfo
in GETs: the contact; in POSTs or PUTs: identifies existing contact or properties of new contact
ContactId
int?
for identifying: if known specify only this; other fields are ignored
CompanyName
string
Name
string
Title
string
Address1
string
Address2
string
City
string
State
string
Zip
string
Country
string
PhoneNumber
string
Fax
string
EmailAddress
string
Dept
string
IsAddressResidential
bool
Code
string
for identifying: if known specify only this; if other fields also specified it is not used to identify
AddressStatus
Common.Enum.AddressStatusType
confirmation status
- 0: Unconfirmed
- 1: Confirmed
- 2: UserAccepted
Notes
string
ExternalId
string
LineItems
IEnumerable<Inventory.Models.PurchaseOrderLineItem>
PurchaseOrderLineItemId
int
ItemIdentifier
Generic.Models.ItemIdentifier
Sku
string
Id
int
Qualifier
string
Quantity
decimal
ExpectedFacility
Generic.Models.FacilityIdentifier
Name
string
Id
int
ExpectedDate
DateTime?
CancelDate
DateTime?
Notes
string
ExternalLineId
string
Price
decimal?
Links
IList<WebApi.Hal.Link>
-
/rels/customers/customer
-
/rels/customers/item
-
/rels/properties/facility
-
edit
If Link.Name contains 'Disallow: ' with DELETE in the list, then purchase order cannot be deleted because related receivers are still open.
-
/rels/inventory/receivers
The receivers related to this purchase order.
-
/rels/properties/contact
Sample accept: application/hal+json
{
"readOnly": {
"purchaseOrderId": 1 ,
"creationDate": "2016-12-25T23:00:00" ,
"lastModifiedDate": "2016-12-25T23:00:00" ,
"closed": true
},
"purchaseOrderNumber": "str" ,
"customerIdentifier": {
"externalId": "str" ,
"name": "str" ,
"id": 3
},
"issueDate": "2016-12-25T23:00:00" ,
"supplier": {
"contactId": 1 ,
"companyName": "str" ,
"name": "str" ,
"title": "str" ,
"address1": "str" ,
"address2": "str" ,
"city": "str" ,
"state": "str" ,
"zip": "str" ,
"country": "str" ,
"phoneNumber": "str" ,
"fax": "str" ,
"emailAddress": "str" ,
"dept": "str" ,
"isAddressResidential": true ,
"code": "str" ,
"addressStatus": 0
},
"notes": "str" ,
"externalId": "str" ,
"lineItems": [
{
"purchaseOrderLineItemId": 1 ,
"itemIdentifier": {
"sku": "str" ,
"id": 2
},
"qualifier": "str" ,
"quantity": 3.0 ,
"expectedFacility": {
"name": "str" ,
"id": 2
},
"expectedDate": "2016-12-25T23:00:00" ,
"cancelDate": "2016-12-25T23:00:00" ,
"notes": "str" ,
"externalLineId": "str" ,
"price": 1.0
}
]
}