POST api/Coding/InsertPromise?isOpen={isOpen}&officeId={officeId}&userid={userid}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| officeId | integer |
Required |
|
| userid | integer |
Default value is 0 |
Body Parameters
PromisesModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PromiseNo | decimal number |
None. |
|
| IsPayment | boolean |
None. |
|
| IsFullFilled | boolean |
None. |
|
| CurrentDate | date |
None. |
|
| PromiseDate | date |
None. |
|
| Narration | string |
None. |
|
| Amount | decimal number |
None. |
|
| PartyNo | string |
None. |
|
| UserNo | integer |
None. |
|
| SaleID | integer |
None. |
|
| PurID | integer |
None. |
|
| VoucherType | string |
None. |
|
| VoucherID | integer |
None. |
|
| PartyName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromiseNo": 1.0,
"IsPayment": true,
"IsFullFilled": true,
"CurrentDate": "2025-12-16T08:18:10.9858958+05:00",
"PromiseDate": "2025-12-16T08:18:10.9858958+05:00",
"Narration": "sample string 6",
"Amount": 7.0,
"PartyNo": "sample string 8",
"UserNo": 9,
"SaleID": 1,
"PurID": 1,
"VoucherType": "sample string 10",
"VoucherID": 1,
"PartyName": "sample string 11"
}
application/xml, text/xml
Sample:
<PromisesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <Amount>7</Amount> <CurrentDate>2025-12-16T08:18:10.9858958+05:00</CurrentDate> <IsFullFilled>true</IsFullFilled> <IsPayment>true</IsPayment> <Narration>sample string 6</Narration> <PartyName>sample string 11</PartyName> <PartyNo>sample string 8</PartyNo> <PromiseDate>2025-12-16T08:18:10.9858958+05:00</PromiseDate> <PromiseNo>1</PromiseNo> <PurID>1</PurID> <SaleID>1</SaleID> <UserNo>9</UserNo> <VoucherID>1</VoucherID> <VoucherType>sample string 10</VoucherType> </PromisesModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |