POST api/challan/upsert

Request Information

URI Parameters

None.

Body Parameters

ChallanBO
NameDescriptionTypeAdditional information
ChallanNo

string

Required

String length: inclusive between 0 and 50

ChallanDate

string

Required

Matching regular expression pattern: ^\d{4}-\d{2}-\d{2}$

Department

string

Required

String length: inclusive between 0 and 200

FunctionCode

string

Required

String length: inclusive between 0 and 50

BudgetHead

string

Required

String length: inclusive between 0 and 100

Description

string

String length: inclusive between 0 and 500

PaymentMode

string

Required

String length: inclusive between 0 and 50

BankAccount

string

Required

Matching regular expression pattern: ^\d{5,18}$

Amount

decimal number

Required

Range: inclusive between 0.01 and 999999999999.99

CollectionCenter

string

Required

String length: inclusive between 0 and 200

ReceivedFrom

string

Required

String length: inclusive between 0 and 200

Request Formats

application/json, text/json

Sample:
{
  "ChallanNo": "sample string 1",
  "ChallanDate": "sample string 2",
  "Department": "sample string 3",
  "FunctionCode": "sample string 4",
  "BudgetHead": "sample string 5",
  "Description": "sample string 6",
  "PaymentMode": "sample string 7",
  "BankAccount": "sample string 8",
  "Amount": 1.0,
  "CollectionCenter": "sample string 9",
  "ReceivedFrom": "sample string 10"
}

application/xml, text/xml

Sample:
<ChallanBO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BO.BudgetBO">
  <Amount>1</Amount>
  <BankAccount>sample string 8</BankAccount>
  <BudgetHead>sample string 5</BudgetHead>
  <ChallanDate>sample string 2</ChallanDate>
  <ChallanNo>sample string 1</ChallanNo>
  <CollectionCenter>sample string 9</CollectionCenter>
  <Department>sample string 3</Department>
  <Description>sample string 6</Description>
  <FunctionCode>sample string 4</FunctionCode>
  <PaymentMode>sample string 7</PaymentMode>
  <ReceivedFrom>sample string 10</ReceivedFrom>
</ChallanBO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.