POST api/orders?userId={userId}&companyId={companyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

companyId

integer

Required

Body Parameters

TK_Orders
NameDescriptionTypeAdditional information
OrderId

integer

None.

TransactionId

string

None.

ReceiptId

string

None.

ReceiptPrefix

string

None.

CustRefNo

string

None.

NpciTransId

string

None.

Devatha

string

None.

Name

string

None.

PhoneNumber

string

None.

UserId

integer

None.

CompanyId

integer

None.

OrderAmount

decimal number

None.

PaymentStatus

string

None.

PaymentMethod

string

None.

OrderDate

date

None.

ModifiedOn

date

None.

IsCallBackReceived

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "TransactionId": "sample string 2",
  "ReceiptId": "sample string 3",
  "ReceiptPrefix": "sample string 4",
  "CustRefNo": "sample string 5",
  "NpciTransId": "sample string 6",
  "Devatha": "sample string 7",
  "Name": "sample string 8",
  "PhoneNumber": "sample string 9",
  "UserId": 10,
  "CompanyId": 11,
  "OrderAmount": 1.0,
  "PaymentStatus": "sample string 12",
  "PaymentMethod": "sample string 13",
  "OrderDate": "2025-11-08T18:27:50.6285824+05:30",
  "ModifiedOn": "2025-11-08T18:27:50.6285824+05:30",
  "IsCallBackReceived": true
}

application/xml, text/xml

Sample:
<TK_Orders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaTempleKioskApi.Models">
  <CompanyId>11</CompanyId>
  <CustRefNo>sample string 5</CustRefNo>
  <Devatha>sample string 7</Devatha>
  <IsCallBackReceived>true</IsCallBackReceived>
  <ModifiedOn>2025-11-08T18:27:50.6285824+05:30</ModifiedOn>
  <Name>sample string 8</Name>
  <NpciTransId>sample string 6</NpciTransId>
  <OrderAmount>1</OrderAmount>
  <OrderDate>2025-11-08T18:27:50.6285824+05:30</OrderDate>
  <OrderId>1</OrderId>
  <PaymentMethod>sample string 13</PaymentMethod>
  <PaymentStatus>sample string 12</PaymentStatus>
  <PhoneNumber>sample string 9</PhoneNumber>
  <ReceiptId>sample string 3</ReceiptId>
  <ReceiptPrefix>sample string 4</ReceiptPrefix>
  <TransactionId>sample string 2</TransactionId>
  <UserId>10</UserId>
</TK_Orders>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Status

string

None.

Data

Object

None.

Message

string

None.

Type

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Data": {},
  "Message": "sample string 3",
  "Type": 4
}

application/xml, text/xml

Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XeniaTempleKioskApi.Models">
  <Data />
  <Message>sample string 3</Message>
  <Status>sample string 1</Status>
  <Type>4</Type>
</APIResponse>