Create Customer | Create Customer |
URL | /Customer/Create |
Method | POST |
Body |
{ "TaxCodeId": null, "Contacts": [ |
Response |
HTTP/1.1 400 DisplayName should be unique
HTTP/1.1 200 OK
{ "TaxCodeId": null,
"TaxNameId": 1, "TaxRate": 0.77000, "TierNumber": 1 |
Comments |
Use "Notes" filled like customer description |
Update Customer | |
URL | /Customer |
Method | PUT |
Body |
{ |
Response |
{ |
Comments |
|
Delete Customer | |
URL | /Customer/{id} |
Method | DELETE |
Body |
|
Response |
HTTP/1.1 400 Customer with 386 id not found
HTTP/1.1 200 OK
|
Comments |
|
Get Customers | |
URL | /Customer/List |
Method | Post |
Body |
{ |
Response |
[ "TaxCodeId": null,
"TaxNameId": 1, "TaxRate": 0.77000, "TierNumber": 1 |
Comments |
|
Get Customer By Customer ID | |
URL | /Customer/{id} |
Method | GET |
Body |
|
Response |
{ |
Comments |
|
Get Customer By Customer Number | |
URL | /Customer/CustomId/{Customer Number} |
Method | GET |
Body |
|
Response |
the same response as for "By Id" request
|
Comments |
Parameter should be URL-encoded |
Get Customer By Display Name | |
URL | /Customer/DisplayName?q={displayName} |
Method | GET |
Body |
|
Response |
the same response as for "By Id" request
|
Comments |
Parameter should be URL-encoded |
Customer Search by multiple fields (as it is implemented on a portal) | |
URL | /Customer/Search/{searchText} |
Method | GET |
Body |
|
Response |
the same response as for "List" request
|
Comments |
if 'searchText' is empty then empty List will be returned; Parameter should be URL-encoded You can receive maximum of 50 entries. For receiving more results use request with pagination |
|
Customer Search (as it is implemented on a portal) with pagination
|
---|---|
URL |
Customer/Search/{searchString}/{page}/{size} |
Method | GET |
Body | |
Response | the same response as for "List" request |
|
Customer Search (as it is implemented on a portal)
|
---|---|
URL |
Customer/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 and numbers
|
---|---|
URL | /Customer/UpdateQuickBooksIds |
Method | POST |
Body | { "QuickBooksIds": [ { "ServerId":1, "QuickBooksId":"80000031-1314102902", "QuickBooksNumber": 292 } ] } |
Response | [{"Id":1,"IsSuccess":true,"Message":null}] |