Create Purchase Order

This web service allows for the creation of a purchase order from an external source. The inputs and validations used for this service are like those used in the PO Subscription API. See that section for more details.

Example URL

Here is an example of the resource URL:

POST

/PurchaseOrders

Example Request

Here is an example of the request body in JSON format:

{
   "links" : [ ],
   "itemRDOs" : [ {
      "links" : [ ],
      "item" : null,
      "location" :null,
      "unitCost" : null,
      "referenceItem" : null,
      "originCountryId" : null,
      "suppPackSize" : null,
      "qtyOrdered" : null,
      "locationType" : null,
      "cancelInd" : null,
      "reInstateInd" : null,
      "hyperMediaContent" : {
         "linkRDO" : [ ]
        }
      } ],
"orderNo" : null,
"supplier" : null,
"currencyCode" : null,
"terms" : null,
"notBeforeDate" : null,
"notAfterDate" : null,
"status" : "A",
"writtenDate" : null,
"origInd" : null,
"user_id" : null,
"dept" : null,
"exchangeRate" : null,
"includeOnOrdInd" : null,
"ediPoInd" : null,
"preMarkInd" : null,
"comment" : null,
"otbEowDate" : null,
"hyperMediaContent" : {
"linkRDO" : [ ]
}
}

Example Response

Here is an example of the response body in JSON format:

{
  "id": "8ED6997CB453F1EDE050F70AE628746C",
  "meta": {
    "resourceType": "User",
    "created": "2019-08-02 11:07:11.000",
    "lastModified": "2019-08-02 11:07:11.877",
    "location": "https://<server>hcmRestApi/scim/Users/8ED6997CB453F1EDE050F70AE628746C"
  },
  "schemas": [
    "urn:scim:schemas:core:2.0:User",
    "urn:scim:schemas:extension:fa:2.0:faUser"
  ],
  "userName": "XavierDMachen@dayrep.com",
  "name": {
    "familyName": "Machen",
    "givenName": "Xavier"
  },
  "displayName": "Xavier Machen",
  "preferredLanguage": "en",
  "emails": [
    {
      "value": "XavierDMachen@dayrep.com",
      "type": "W",
      "primary": true
    }
  ],
  "urn:scim:schemas:extension:fa:2.0:faUser": {
    "userCategory": "DEFAULT"
  },
  "active": true
}