PUT api/ClientOrders/ProcessOrders

Method to process a list of orders

Request Information

URI Parameters

None.

URI Example

api/ClientOrders/ProcessOrders

Body Parameters

The list of orders to process

Oresto.API.Models.PUT.ClientOrders.OrdersToProcess
NameDescriptionTypeAdditional information
ClientNumber

The number of the client defined by the wholesaler

string

Primary key field

Required

Max length: 50

OrderNumbers

List of order numbers

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientNumber": "sample string 1",
  "OrderNumbers": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<OrdersToProcess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.ClientOrders">
  <ClientNumber>sample string 1</ClientNumber>
  <OrderNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OrderNumbers>
</OrdersToProcess>

application/x-www-form-urlencoded

Sample:
ClientNumber=value&OrderNumbers=value

Response Information

Resource Description

A wrapper class with information about the processed orders

Oresto.API.Models.PUT.ClientOrders.OrdersToProcessData
NameDescriptionTypeAdditional information
Errors

Possible errors that were experienced when processing the request

Collection of string

None.

ModelStateErrors

Possible model errors that were experienced when validating the data

Collection of Oresto.API.Models.Shared.ModelStateError

None.

ProcessedDate

The date the orders were processed (TimeZone BE)

date

None.

ProcessedDateUtc

The date the orders were processed (TimeZone UTC/GMT)

date

None.

RequestInformation

Additional information about the request

Oresto.API.Models.Shared.RequestInformation

None.

Response Formats

application/json, text/json

Sample:
{
  "ProcessedDate": "2026-01-15T17:16:20.9295576+01:00",
  "ProcessedDateUtc": "2026-01-15T17:16:20.9295576+01:00",
  "RequestInformation": {
    "RequestDuration": 1,
    "WholesalerId": 2,
    "UserId": 3
  },
  "ModelStateErrors": [
    {
      "Key": "sample string 1",
      "Message": "sample string 2",
      "Exception": "sample string 3"
    },
    {
      "Key": "sample string 1",
      "Message": "sample string 2",
      "Exception": "sample string 3"
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<OrdersToProcessData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.PUT.ClientOrders">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ModelStateErrors xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <ModelStateError>
      <Exception>sample string 3</Exception>
      <Key>sample string 1</Key>
      <Message>sample string 2</Message>
    </ModelStateError>
    <ModelStateError>
      <Exception>sample string 3</Exception>
      <Key>sample string 1</Key>
      <Message>sample string 2</Message>
    </ModelStateError>
  </ModelStateErrors>
  <RequestInformation xmlns="http://schemas.datacontract.org/2004/07/Oresto.API.Models.Shared">
    <RequestDuration>1</RequestDuration>
    <UserId>3</UserId>
    <WholesalerId>2</WholesalerId>
  </RequestInformation>
  <ProcessedDate>2026-01-15T17:16:20.9295576+01:00</ProcessedDate>
  <ProcessedDateUtc>2026-01-15T17:16:20.9295576+01:00</ProcessedDateUtc>
</OrdersToProcessData>