| Create Service Request | |
| URL | /ServiceRequest/Create |
| Method | POST |
| Body |
{ "SalespersonId": 1 |
| Response |
HTTP/1.1 400 Business rule violation. CustomId should be unique
HTTP/1.1 200 OK
{ "SalespersonId": 1, |
| Comments |
|
| Update Service Request | |
| URL | /ServiceRequest |
| Method | PUT |
| Body |
{ "SalespersonId": 1, |
| Response |
HTTP/1.1 400 Business rule violation. CustomId should be unique
HTTP/1.1 200 OK
{ "SalespersonId": 1, |
| Comments |
|
| Delete Service Request | |
| URL | /ServiceRequest/{id} |
| Method | DELETE |
| Body |
|
| Response |
HTTP/1.1 400 Entity not found
HTTP/1.1 200 OK
|
| Comments |
|
| Get Service Requests | |
| URL | /ServiceRequest/List |
| Method | POST |
| Body |
{ |
| Response |
[ { "SalespersonId": 1, ] |
| Comments |
|
| Get Service Request | |
| URL | /ServiceRequest/{id} |
| Method | GET |
| Body |
|
| Response |
{ "SalespersonId": 1, |
| Comments |
| Service Request Search (as it is implemented on a portal) | |
| URL | /ServiceRequest/Search/{searchText} |
| Method | GET |
| Body |
|
| Response |
the same response as for "List" request
|
| Comments |
if 'searchText' is empty then empty List will be returned; You can receive maximum of 50 entries. For receiving more results use request with pagination |
|
|
Service Request Search (as it is implemented on a portal) with pagination
|
|---|---|
| URL |
ServiceRequest/Search/{searchString}/{page}/{size}
|
| Method | GET |
| Body | |
| Response | the same response as for "List" request |
|
|
Service Request Search (as it is implemented on a portal)
|
|---|---|
| URL |
ServiceRequest/Search |
| Method | POST |
| Body | {
"SearchString": "ra", |
| Response | the same response as for "List" request |
| Comments | Page and Size are optional parameters. Without them you will receive 50 elements of first page. |
|
|
Update QuickBooks IDs
|
|---|---|
| URL | /ServiceRequest/UpdateQuickBooksJobIds |
| Method | POST |
| Body |
{ |
| Response | [{"Id":1,"IsSuccess":true,"Message":null}] |