POST api/Catering/SaveCateringOrderAssign

Request Information

URI Parameters

None.

Body Parameters

CateringOrderAssignInput
NameDescriptionTypeAdditional information
OrderIds

Collection of integer

None.

CompanyId

integer

None.

AdminId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "orderIds": [
    1,
    2
  ],
  "companyId": 1,
  "adminId": "sample string 2"
}

text/html

Sample:
{"orderIds":[1,2],"companyId":1,"adminId":"sample string 2"}

application/xml, text/xml

Sample:
<CateringOrderAssignInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <AdminId>sample string 2</AdminId>
  <CompanyId>1</CompanyId>
  <OrderIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OrderIds>
</CateringOrderAssignInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CateringOrderHistoryAdminView
NameDescriptionTypeAdditional information
CustomerName

string

None.

Restaurants

string

None.

TimeLeft

string

None.

TransactionStatus

CateringOrderOmiseTransactionEnum

None.

CompanyName

string

None.

AssignAE

string

None.

Id

integer

None.

EventDate

date

None.

Address

string

None.

TotalPrice

decimal number

None.

PaymentTypeId

CateringOrderPaymentTypeEnum

None.

StatusDisplay

string

None.

Status

CateringOrderStatusEnum

None.

TaxInvoiceSend

boolean

None.

AddPoint

boolean

None.

RestaurantConfirm

boolean

None.

CateringOrderDeliverBy

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "customerName": "sample string 1",
    "restaurants": "sample string 2",
    "timeLeft": "sample string 3",
    "transactionStatus": 0,
    "companyName": "sample string 4",
    "assignAE": "sample string 5",
    "id": 6,
    "eventDate": "2025-08-29T01:13:26.792842+00:00",
    "address": "sample string 8",
    "totalPrice": 9.0,
    "paymentTypeId": 0,
    "statusDisplay": "sample string 10",
    "status": 1,
    "taxInvoiceSend": true,
    "addPoint": true,
    "restaurantConfirm": true,
    "cateringOrderDeliverBy": "sample string 14"
  },
  {
    "customerName": "sample string 1",
    "restaurants": "sample string 2",
    "timeLeft": "sample string 3",
    "transactionStatus": 0,
    "companyName": "sample string 4",
    "assignAE": "sample string 5",
    "id": 6,
    "eventDate": "2025-08-29T01:13:26.792842+00:00",
    "address": "sample string 8",
    "totalPrice": 9.0,
    "paymentTypeId": 0,
    "statusDisplay": "sample string 10",
    "status": 1,
    "taxInvoiceSend": true,
    "addPoint": true,
    "restaurantConfirm": true,
    "cateringOrderDeliverBy": "sample string 14"
  }
]

text/html

Sample:
[{"customerName":"sample string 1","restaurants":"sample string 2","timeLeft":"sample string 3","transactionStatus":0,"companyName":"sample string 4","assignAE":"sample string 5","id":6,"eventDate":"2025-08-29T01:13:26.792842+00:00","address":"sample string 8","totalPrice":9.0,"paymentTypeId":0,"statusDisplay":"sample string 10","status":1,"taxInvoiceSend":true,"addPoint":true,"restaurantConfirm":true,"cateringOrderDeliverBy":"sample string 14"},{"customerName":"sample string 1","restaurants":"sample string 2","timeLeft":"sample string 3","transactionStatus":0,"companyName":"sample string 4","assignAE":"sample string 5","id":6,"eventDate":"2025-08-29T01:13:26.792842+00:00","address":"sample string 8","totalPrice":9.0,"paymentTypeId":0,"statusDisplay":"sample string 10","status":1,"taxInvoiceSend":true,"addPoint":true,"restaurantConfirm":true,"cateringOrderDeliverBy":"sample string 14"}]

application/xml, text/xml

Sample:
<ArrayOfCateringOrderHistoryAdminView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api">
  <CateringOrderHistoryAdminView>
    <AddPoint>true</AddPoint>
    <Address>sample string 8</Address>
    <CateringOrderDeliverBy>sample string 14</CateringOrderDeliverBy>
    <EventDate>2025-08-29T01:13:26.792842+00:00</EventDate>
    <Id>6</Id>
    <PaymentTypeId>Deposite</PaymentTypeId>
    <RestaurantConfirm>true</RestaurantConfirm>
    <Status>Waiting</Status>
    <StatusDisplay>sample string 10</StatusDisplay>
    <TaxInvoiceSend>true</TaxInvoiceSend>
    <TotalPrice>9</TotalPrice>
    <AssignAE>sample string 5</AssignAE>
    <CompanyName>sample string 4</CompanyName>
    <CustomerName>sample string 1</CustomerName>
    <Restaurants>sample string 2</Restaurants>
    <TimeLeft>sample string 3</TimeLeft>
    <TransactionStatus>Created</TransactionStatus>
  </CateringOrderHistoryAdminView>
  <CateringOrderHistoryAdminView>
    <AddPoint>true</AddPoint>
    <Address>sample string 8</Address>
    <CateringOrderDeliverBy>sample string 14</CateringOrderDeliverBy>
    <EventDate>2025-08-29T01:13:26.792842+00:00</EventDate>
    <Id>6</Id>
    <PaymentTypeId>Deposite</PaymentTypeId>
    <RestaurantConfirm>true</RestaurantConfirm>
    <Status>Waiting</Status>
    <StatusDisplay>sample string 10</StatusDisplay>
    <TaxInvoiceSend>true</TaxInvoiceSend>
    <TotalPrice>9</TotalPrice>
    <AssignAE>sample string 5</AssignAE>
    <CompanyName>sample string 4</CompanyName>
    <CustomerName>sample string 1</CustomerName>
    <Restaurants>sample string 2</Restaurants>
    <TimeLeft>sample string 3</TimeLeft>
    <TransactionStatus>Created</TransactionStatus>
  </CateringOrderHistoryAdminView>
</ArrayOfCateringOrderHistoryAdminView>