POST api/me/orders

Places an order for an exising customer, requires authentication

Request Information

URI Parameters

None.

Body Parameters

Order details and optional customer details

UpdatedCustomerOrderDTO
NameDescriptionTypeAdditional information
UserID

ID of the Webb-SMS User placing the order

integer

None.

UserReference

ID of the iP.1 User placing the order

globally unique identifier

None.

Customer

Updated customer details, if an update is desired

UpdateCustomerDTO

None.

Invoice

Whether the order will be paid by invoice

boolean

None.

Code

Discount code, if any

string

None.

Items

Items in the order

Collection of OrderItemDTO

Required

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "UserReference": "50b804b6-a739-43e1-934b-9ab299bec6d8",
  "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,
  "Code": "sample string 4",
  "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

Order details

OrderDTO
NameDescriptionTypeAdditional information
ID

Order ID

integer

None.

CustomerID

ID of ordering customer

integer

None.

AccountID

ID of receiving account

string

None.

UserID

ID of responsible Webb-SMS User

integer

None.

TransactionID

ID of order transaction

string

None.

UserReference

ID of responsible iP.1 User

globally unique identifier

None.

Processed

Whether the order has been processed

boolean

None.

CreatedDate

When the order was placed

date

None.

ModifiedDate

When order details were last updated

date

None.

Code

Discount code, if any

string

None.

Items

Items in the order

Collection of OrderItemDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CustomerID": 2,
  "AccountID": "sample string 3",
  "UserID": 4,
  "TransactionID": "sample string 5",
  "UserReference": "f20aead1-0d82-4fcb-a425-7e098ab1249e",
  "Processed": true,
  "CreatedDate": "2024-04-25T00:14:14.0499469+00:00",
  "ModifiedDate": "2024-04-25T00:14:14.0499469+00:00",
  "Code": "sample string 8",
  "Items": [
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    },
    {
      "ProductID": 1,
      "Amount": 1.0,
      "Level": 1,
      "Auto": true
    }
  ]
}