POST public-api/contracts/search/exact
This method gets the contract that exactly matches the search string. Requires Allow Contract permission and enforces Role Site and Asset Type security.
Request Information
URI Parameters
None.
Body Parameters
SearchStringClass| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchString | string |
None. |
Request Formats
application/json
Sample:
{
"SearchString": "sample string 1"
}
Response Information
Resource Description
WaspResultOfContractModelInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ContractModelInfo |
None. |
|
| Messages | Collection of WtResult |
None. |
|
| BatchNumber | integer |
None. |
|
| HasError | boolean |
None. |
|
| HasHttpError | boolean |
None. |
|
| HasMessage | boolean |
None. |
|
| HasSuccessWithMoreDataRemaining | boolean |
None. |
|
| TotalRecordsLongCount | integer |
None. |
Response Formats
application/json
Sample:
{
"Data": {
"ContractHeader": {
"ContractNumber": "sample string 1",
"Description": "sample string 2",
"Cost": 1.0,
"BeginDate": "2026-07-25T12:52:59.6011122+00:00",
"EndDate": "2026-07-25T12:52:59.6011122+00:00",
"IsSoftwareContract": true,
"LicenseCount": 1,
"Notes": [
{
"NoteText": "sample string 1",
"NoteDate": "2026-07-25T12:52:59.6011122+00:00",
"UserLogon": "sample string 2"
},
{
"NoteText": "sample string 1",
"NoteDate": "2026-07-25T12:52:59.6011122+00:00",
"UserLogon": "sample string 2"
}
],
"VendorNumber": "sample string 4",
"CustomFields": [
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-07-25T12:52:59.6011122+00:00",
"DcfValueRecordStatus": 0
},
{
"ImportRowNumber": 1,
"DcfLabel": "sample string 2",
"DCFDataType": 1,
"DcfTextValue": "sample string 3",
"DcfNumberValue": 1.0,
"DcfDateValue": "2026-07-25T12:52:59.6011122+00:00",
"DcfValueRecordStatus": 0
}
],
"HasAttachment": true,
"AttachmentsToAdd": [
"sample string 1",
"sample string 2"
],
"AttachmentsToDelete": [
"sample string 1",
"sample string 2"
],
"AttachmentNames": [
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
]
},
"AssetTags": [
"sample string 1",
"sample string 2"
]
},
"Messages": [
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
},
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
}
],
"BatchNumber": 1,
"HasError": false,
"HasHttpError": false,
"HasMessage": true,
"HasSuccessWithMoreDataRemaining": false,
"TotalRecordsLongCount": 1
}