POST api/me/orders

Request Information

URI Parameters

None.

Body Parameters

UpdatedCustomerOrderDTO
NameDescriptionTypeAdditional information
UserID

integer

None.

UserReference

globally unique identifier

None.

Customer

UpdateCustomerDTO

None.

Invoice

boolean

None.

Items

Collection of OrderItemDTO

Required

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "UserReference": "20599cca-623f-45c0-b6d4-07098ed177ca",
  "Customer": {
    "ID": 1,
    "OrgNr": "sample string 2",
    "VAT": "sample string 3",
    "Name": "sample string 4",
    "Address1": "sample string 5",
    "Address2": "sample string 6",
    "ZIP": "sample string 7",
    "City": "sample string 8",
    "CountryID": 9,
    "InvoiceReference": "sample string 10",
    "InvoiceEmail": "sample string 11"
  },
  "Invoice": true,
  "Items": [
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    },
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OrderDTO
NameDescriptionTypeAdditional information
ID

integer

None.

CustomerID

integer

None.

AccountID

string

None.

UserID

integer

None.

UserReference

globally unique identifier

None.

Processed

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

Items

Collection of OrderItemDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CustomerID": 2,
  "AccountID": "sample string 3",
  "UserID": 4,
  "UserReference": "c386b77b-0dad-4cd5-a915-68c12c123223",
  "Processed": true,
  "CreatedDate": "2019-11-13T08:26:26.991097+00:00",
  "ModifiedDate": "2019-11-13T08:26:26.991097+00:00",
  "Items": [
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    },
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    }
  ]
}