POST api/ServiceItemMaster/POSTServiceOrder?UserId={UserId}&BranchCode={BranchCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserId

integer

Required

BranchCode

integer

Required

Body Parameters

Collection of F_ServiceOrderDetail
NameDescriptionTypeAdditional information
Id

integer

None.

ServiceInvoiceNo

string

None.

ServiceInvoiceDate

date

None.

CustomerCode

string

None.

ItemCode

string

None.

ProductMainGroup

string

None.

HSNCode

string

None.

Qty

decimal number

None.

Rate

decimal number

None.

AssValue

decimal number

None.

ATaxCode

string

None.

CGST

decimal number

None.

SGST

decimal number

None.

IGST

decimal number

None.

UGST

decimal number

None.

TotalAmount

decimal number

None.

BranchCode

integer

None.

CreatedBy

integer

None.

CreatedOn

date

None.

Narration

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ServiceInvoiceNo": "sample string 2",
    "ServiceInvoiceDate": "2024-04-27T19:44:49.9591625+00:00",
    "CustomerCode": "sample string 4",
    "ItemCode": "sample string 5",
    "ProductMainGroup": "sample string 6",
    "HSNCode": "sample string 7",
    "Qty": 8.0,
    "Rate": 9.0,
    "AssValue": 10.0,
    "ATaxCode": "sample string 11",
    "CGST": 12.0,
    "SGST": 13.0,
    "IGST": 14.0,
    "UGST": 15.0,
    "TotalAmount": 16.0,
    "BranchCode": 17,
    "CreatedBy": 18,
    "CreatedOn": "2024-04-27T19:44:49.9591625+00:00",
    "Narration": "sample string 20"
  },
  {
    "Id": 1,
    "ServiceInvoiceNo": "sample string 2",
    "ServiceInvoiceDate": "2024-04-27T19:44:49.9591625+00:00",
    "CustomerCode": "sample string 4",
    "ItemCode": "sample string 5",
    "ProductMainGroup": "sample string 6",
    "HSNCode": "sample string 7",
    "Qty": 8.0,
    "Rate": 9.0,
    "AssValue": 10.0,
    "ATaxCode": "sample string 11",
    "CGST": 12.0,
    "SGST": 13.0,
    "IGST": 14.0,
    "UGST": 15.0,
    "TotalAmount": 16.0,
    "BranchCode": 17,
    "CreatedBy": 18,
    "CreatedOn": "2024-04-27T19:44:49.9591625+00:00",
    "Narration": "sample string 20"
  }
]

application/xml, text/xml

Sample:
<ArrayOfF_ServiceOrderDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <F_ServiceOrderDetail>
    <ATaxCode>sample string 11</ATaxCode>
    <AssValue>10</AssValue>
    <BranchCode>17</BranchCode>
    <CGST>12</CGST>
    <CreatedBy>18</CreatedBy>
    <CreatedOn>2024-04-27T19:44:49.9591625+00:00</CreatedOn>
    <CustomerCode>sample string 4</CustomerCode>
    <HSNCode>sample string 7</HSNCode>
    <IGST>14</IGST>
    <Id>1</Id>
    <ItemCode>sample string 5</ItemCode>
    <Narration>sample string 20</Narration>
    <ProductMainGroup>sample string 6</ProductMainGroup>
    <Qty>8</Qty>
    <Rate>9</Rate>
    <SGST>13</SGST>
    <ServiceInvoiceDate>2024-04-27T19:44:49.9591625+00:00</ServiceInvoiceDate>
    <ServiceInvoiceNo>sample string 2</ServiceInvoiceNo>
    <TotalAmount>16</TotalAmount>
    <UGST>15</UGST>
  </F_ServiceOrderDetail>
  <F_ServiceOrderDetail>
    <ATaxCode>sample string 11</ATaxCode>
    <AssValue>10</AssValue>
    <BranchCode>17</BranchCode>
    <CGST>12</CGST>
    <CreatedBy>18</CreatedBy>
    <CreatedOn>2024-04-27T19:44:49.9591625+00:00</CreatedOn>
    <CustomerCode>sample string 4</CustomerCode>
    <HSNCode>sample string 7</HSNCode>
    <IGST>14</IGST>
    <Id>1</Id>
    <ItemCode>sample string 5</ItemCode>
    <Narration>sample string 20</Narration>
    <ProductMainGroup>sample string 6</ProductMainGroup>
    <Qty>8</Qty>
    <Rate>9</Rate>
    <SGST>13</SGST>
    <ServiceInvoiceDate>2024-04-27T19:44:49.9591625+00:00</ServiceInvoiceDate>
    <ServiceInvoiceNo>sample string 2</ServiceInvoiceNo>
    <TotalAmount>16</TotalAmount>
    <UGST>15</UGST>
  </F_ServiceOrderDetail>
</ArrayOfF_ServiceOrderDetail>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'F_ServiceOrderDetail[]'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.