POST api/po/create

Create PO

Request Information

Allows multi-location processing, in case of using parent location token restrictByLocations parameter is strongly recommended with comma separated list of locations to select from or update in

URI Parameters

None.

Body Parameters

Mandatory fields: Items, Source/Destination locations, Employee Id (could be found in dictionary/employees), Vendors

POInfo
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

DueDate

date

None.

ManufacturersCodes

Collection of string

None.

CompaniesToIds

Collection of integer

None.

CompanyFromId

integer

None.

IsOrderingForLocation

boolean

None.

SkipProductCostUpdating

boolean

None.

Discount

decimal number

None.

Shipping

decimal number

None.

Tax

decimal number

None.

Items

Collection of POItemInfo

None.

Status

integer

None.

CustomId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "DueDate": "2024-10-18T01:16:28.5218457-04:00",
  "ManufacturersCodes": [
    "sample string 1",
    "sample string 2"
  ],
  "CompaniesToIds": [
    1,
    2
  ],
  "CompanyFromId": 3,
  "IsOrderingForLocation": true,
  "SkipProductCostUpdating": true,
  "Discount": 6.0,
  "Shipping": 7.0,
  "Tax": 8.0,
  "Items": [
    {
      "Sku": "sample string 1",
      "Quantity": 2.0,
      "Cost": 3.0
    },
    {
      "Sku": "sample string 1",
      "Quantity": 2.0,
      "Cost": 3.0
    }
  ],
  "Status": 9,
  "CustomId": "sample string 10"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.