POST api/LP/v3/Order/Add

Добавление нового заказа


Информация о запросе

Параметры URL

ИмяОписаниеТипДополнительная информация

Тело запроса

dtoOrderExtended
ИмяОписаниеТипДополнительная информация
Date

date

Отсутствует.

User

dtoClient

Отсутствует.

Company

dtoCompany

Отсутствует.

Status

dtoDictionary

Отсутствует.

DeliveryType

DeliveryType

Отсутствует.

IsPaid

boolean

Отсутствует.

PaymentType

dtoPaymentType

Отсутствует.

DeliveryParams

Коллекция dtoDelivery

Отсутствует.

OrderList

Коллекция dtoOrderListExtended

Отсутствует.

Id

integer

Отсутствует.

Total

decimal number

Отсутствует.

TotalDiscount

decimal number

Отсутствует.

State

OrderState

Отсутствует.

OrderList

Коллекция dtoOrderList

Отсутствует.

Формат запроса application/json

{
  "Date": "2019-03-26T19:31:20.8589642+00:00",
  "User": {
    "Birthday": "2019-03-26T19:31:20.8589642+00:00",
    "Gender": true,
    "Email": "sample string 1",
    "Location": {
      "Id": 1,
      "Name": "sample string 2",
      "Area": "sample string 3",
      "Longitude": 1.1,
      "Latitude": 1.1,
      "TimeZone": 4
    },
    "Id": 2,
    "Appeal": "sample string 3",
    "Logotype": "sample string 4",
    "PhoneNumber": 1
  },
  "Company": {
    "Id": 1,
    "Name": "sample string 2",
    "Logotype": "sample string 3",
    "Address": "sample string 4",
    "Latitude": 5.1,
    "Longitude": 6.1,
    "Location": {
      "Id": 1,
      "Name": "sample string 2",
      "Area": "sample string 3",
      "Longitude": 1.1,
      "Latitude": 1.1,
      "TimeZone": 4
    },
    "IsParent": true,
    "AvailableOrder": true
  },
  "Status": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "DeliveryType": 0,
  "IsPaid": true,
  "PaymentType": {
    "Id": 1,
    "Type": 0,
    "Name": "sample string 2",
    "ExternalId": "sample string 3"
  },
  "DeliveryParams": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Type": "sample string 3",
      "Key": "sample string 4",
      "Width": 5,
      "IsRequired": true,
      "DeliveryParamId": 7,
      "Value": "sample string 8"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Type": "sample string 3",
      "Key": "sample string 4",
      "Width": 5,
      "IsRequired": true,
      "DeliveryParamId": 7,
      "Value": "sample string 8"
    }
  ],
  "OrderList": [
    {
      "ProductId": 1,
      "Id": 2,
      "Name": "sample string 3",
      "Logotype": "sample string 4",
      "Cost": 5.1,
      "CostDiscount": 6.1,
      "Amount": 7,
      "ActionId": 1,
      "DateAppointment": "2019-03-26T19:31:20.8589642+00:00"
    },
    {
      "ProductId": 1,
      "Id": 2,
      "Name": "sample string 3",
      "Logotype": "sample string 4",
      "Cost": 5.1,
      "CostDiscount": 6.1,
      "Amount": 7,
      "ActionId": 1,
      "DateAppointment": "2019-03-26T19:31:20.8589642+00:00"
    }
  ],
  "Id": 3,
  "Total": 4.1,
  "TotalDiscount": 5.1,
  "State": 0
}

Информация об ответе

DefaultResponseOfdtoOrderExtended
ИмяОписаниеТипДополнительная информация
Success

boolean

Отсутствует.

ErrorCode

integer

Отсутствует.

ErrorMessage

string

Отсутствует.

Data

dtoOrderExtended

Отсутствует.

Формат ответа application/json

{
  "Success": true,
  "ErrorCode": 2,
  "ErrorMessage": "sample string 3",
  "Data": {
    "Date": "2019-03-26T19:31:20.8589642+00:00",
    "User": {
      "Birthday": "2019-03-26T19:31:20.8589642+00:00",
      "Gender": true,
      "Email": "sample string 1",
      "Location": {
        "Id": 1,
        "Name": "sample string 2",
        "Area": "sample string 3",
        "Longitude": 1.1,
        "Latitude": 1.1,
        "TimeZone": 4
      },
      "Id": 2,
      "Appeal": "sample string 3",
      "Logotype": "sample string 4",
      "PhoneNumber": 1
    },
    "Company": {
      "Id": 1,
      "Name": "sample string 2",
      "Logotype": "sample string 3",
      "Address": "sample string 4",
      "Latitude": 5.1,
      "Longitude": 6.1,
      "Location": {
        "Id": 1,
        "Name": "sample string 2",
        "Area": "sample string 3",
        "Longitude": 1.1,
        "Latitude": 1.1,
        "TimeZone": 4
      },
      "IsParent": true,
      "AvailableOrder": true
    },
    "Status": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "DeliveryType": 0,
    "IsPaid": true,
    "PaymentType": {
      "Id": 1,
      "Type": 0,
      "Name": "sample string 2",
      "ExternalId": "sample string 3"
    },
    "DeliveryParams": [
      {
        "Id": 1,
        "Name": "sample string 2",
        "Type": "sample string 3",
        "Key": "sample string 4",
        "Width": 5,
        "IsRequired": true,
        "DeliveryParamId": 7,
        "Value": "sample string 8"
      },
      {
        "Id": 1,
        "Name": "sample string 2",
        "Type": "sample string 3",
        "Key": "sample string 4",
        "Width": 5,
        "IsRequired": true,
        "DeliveryParamId": 7,
        "Value": "sample string 8"
      }
    ],
    "OrderList": [
      {
        "ProductId": 1,
        "Id": 2,
        "Name": "sample string 3",
        "Logotype": "sample string 4",
        "Cost": 5.1,
        "CostDiscount": 6.1,
        "Amount": 7,
        "ActionId": 1,
        "DateAppointment": "2019-03-26T19:31:20.8589642+00:00"
      },
      {
        "ProductId": 1,
        "Id": 2,
        "Name": "sample string 3",
        "Logotype": "sample string 4",
        "Cost": 5.1,
        "CostDiscount": 6.1,
        "Amount": 7,
        "ActionId": 1,
        "DateAppointment": "2019-03-26T19:31:20.8589642+00:00"
      }
    ],
    "Id": 3,
    "Total": 4.1,
    "TotalDiscount": 5.1,
    "State": 0
  }
}