POST api/Parts/{id}/Orders

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Collection of CreateOrderFromPortalCommand
NameDescriptionTypeAdditional information
Locations

Collection of LocationDTO

None.

Creator

UserWithDepartment

None.

CreatorID

string

None.

CreatedOn

date

None.

Status

OrderStatus

None.

TotalOrderAmount

decimal number

None.

OrderDate

date

None.

DeadlineDate

date

None.

OrderPosts

Collection of OrderPostDTO

None.

Id

globally unique identifier

None.

Description

string

None.

CrmId

integer

None.

IsArchived

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Locations": [
      {
        "City": "sample string 1",
        "StreetName": "sample string 2",
        "HouseNumber": "sample string 3",
        "Zip": "sample string 4",
        "Country": "sample string 5",
        "latitude": 1.1,
        "longitude": 1.1,
        "X": 1.1,
        "Y": 1.1,
        "Id": "ce196459-2fa2-4f5a-9cbb-2b88943ef9ee",
        "Description": "sample string 7",
        "CrmId": 8,
        "IsArchived": true
      },
      {
        "City": "sample string 1",
        "StreetName": "sample string 2",
        "HouseNumber": "sample string 3",
        "Zip": "sample string 4",
        "Country": "sample string 5",
        "latitude": 1.1,
        "longitude": 1.1,
        "X": 1.1,
        "Y": 1.1,
        "Id": "ce196459-2fa2-4f5a-9cbb-2b88943ef9ee",
        "Description": "sample string 7",
        "CrmId": 8,
        "IsArchived": true
      }
    ],
    "Creator": {
      "DepartmentName": "sample string 1",
      "FullNameWDep": "sample string 3 sample string 4 (sample string 1)",
      "Id": "sample string 2",
      "Country": "BE",
      "Language": "NL",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "FullName": "sample string 3 sample string 4",
      "Email": "sample string 5",
      "DepartmentID": "b8720635-0b0f-45d6-9180-481fa7b1a35c",
      "CrmId": 6,
      "CrmUserId": 7,
      "Is3PUser": true,
      "IsWorkman": true,
      "IsExtern": true,
      "Roles": [
        "sample string 1",
        "sample string 2"
      ]
    },
    "CreatorID": "sample string 1",
    "CreatedOn": "2017-11-20T22:38:47.233003+00:00",
    "Status": 0,
    "TotalOrderAmount": 3.0,
    "OrderDate": "2017-11-20T22:38:47.233003+00:00",
    "DeadlineDate": "2017-11-20T22:38:47.233003+00:00",
    "OrderPosts": [
      {
        "Quantity": 1.0,
        "PostID": "bae4779e-d88f-4201-baf4-9a70ecf4399b",
        "Id": "028d1197-c2aa-4bbc-b51e-cc40bbd43732",
        "Description": "sample string 4",
        "CrmId": 5,
        "IsArchived": true
      },
      {
        "Quantity": 1.0,
        "PostID": "bae4779e-d88f-4201-baf4-9a70ecf4399b",
        "Id": "028d1197-c2aa-4bbc-b51e-cc40bbd43732",
        "Description": "sample string 4",
        "CrmId": 5,
        "IsArchived": true
      }
    ],
    "Id": "1bb55d2c-266f-4f81-b9c3-c5a8ed0093ea",
    "Description": "sample string 5",
    "CrmId": 6,
    "IsArchived": true
  },
  {
    "Locations": [
      {
        "City": "sample string 1",
        "StreetName": "sample string 2",
        "HouseNumber": "sample string 3",
        "Zip": "sample string 4",
        "Country": "sample string 5",
        "latitude": 1.1,
        "longitude": 1.1,
        "X": 1.1,
        "Y": 1.1,
        "Id": "ce196459-2fa2-4f5a-9cbb-2b88943ef9ee",
        "Description": "sample string 7",
        "CrmId": 8,
        "IsArchived": true
      },
      {
        "City": "sample string 1",
        "StreetName": "sample string 2",
        "HouseNumber": "sample string 3",
        "Zip": "sample string 4",
        "Country": "sample string 5",
        "latitude": 1.1,
        "longitude": 1.1,
        "X": 1.1,
        "Y": 1.1,
        "Id": "ce196459-2fa2-4f5a-9cbb-2b88943ef9ee",
        "Description": "sample string 7",
        "CrmId": 8,
        "IsArchived": true
      }
    ],
    "Creator": {
      "DepartmentName": "sample string 1",
      "FullNameWDep": "sample string 3 sample string 4 (sample string 1)",
      "Id": "sample string 2",
      "Country": "BE",
      "Language": "NL",
      "FirstName": "sample string 3",
      "LastName": "sample string 4",
      "FullName": "sample string 3 sample string 4",
      "Email": "sample string 5",
      "DepartmentID": "b8720635-0b0f-45d6-9180-481fa7b1a35c",
      "CrmId": 6,
      "CrmUserId": 7,
      "Is3PUser": true,
      "IsWorkman": true,
      "IsExtern": true,
      "Roles": [
        "sample string 1",
        "sample string 2"
      ]
    },
    "CreatorID": "sample string 1",
    "CreatedOn": "2017-11-20T22:38:47.233003+00:00",
    "Status": 0,
    "TotalOrderAmount": 3.0,
    "OrderDate": "2017-11-20T22:38:47.233003+00:00",
    "DeadlineDate": "2017-11-20T22:38:47.233003+00:00",
    "OrderPosts": [
      {
        "Quantity": 1.0,
        "PostID": "bae4779e-d88f-4201-baf4-9a70ecf4399b",
        "Id": "028d1197-c2aa-4bbc-b51e-cc40bbd43732",
        "Description": "sample string 4",
        "CrmId": 5,
        "IsArchived": true
      },
      {
        "Quantity": 1.0,
        "PostID": "bae4779e-d88f-4201-baf4-9a70ecf4399b",
        "Id": "028d1197-c2aa-4bbc-b51e-cc40bbd43732",
        "Description": "sample string 4",
        "CrmId": 5,
        "IsArchived": true
      }
    ],
    "Id": "1bb55d2c-266f-4f81-b9c3-c5a8ed0093ea",
    "Description": "sample string 5",
    "CrmId": 6,
    "IsArchived": true
  }
]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ObjectCreationInfo
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "20515a27-3ff7-4ba6-ad73-21e21d81b58d"
  },
  {
    "Id": "20515a27-3ff7-4ba6-ad73-21e21d81b58d"
  }
]