POST api/ApiIntegration/SBApiUpsertClient
Request Information
URI Parameters
None.
Body Parameters
ApiUpsertClientParam| Name | Description | Type | Additional information |
|---|---|---|---|
| PrivateApiKey | string |
None. |
|
| ClientKey | globally unique identifier |
None. |
|
| ClientName | string |
None. |
|
| ContactName | string |
None. |
|
| Salutation | string |
None. |
|
| Street | string |
None. |
|
| Suburb | string |
None. |
|
| City | string |
None. |
|
| State | string |
None. |
|
| Zip | string |
None. |
|
| ReferredBy | string |
None. |
|
| Phone | string |
None. |
|
| Fax | string |
None. |
|
| Mobile | string |
None. |
|
| string |
None. |
||
| ClientNote | string |
None. |
|
| CriticalNote | string |
None. |
|
| ShowCritical | boolean |
None. |
|
| IsOwner | boolean |
None. |
|
| Pay1Percent | integer |
None. |
|
| Pay2Percent | integer |
None. |
|
| Pay2Days | integer |
None. |
|
| Terms2 | integer |
None. |
|
| Pay3Days | integer |
None. |
|
| Terms3 | integer |
None. |
|
| Discount | integer |
None. |
|
| CustomerId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"privateApiKey": "sample string 1",
"clientKey": "92a3c851-3742-492e-8b9d-8313eb3065cf",
"clientName": "sample string 3",
"contactName": "sample string 4",
"salutation": "sample string 5",
"street": "sample string 6",
"suburb": "sample string 7",
"city": "sample string 8",
"state": "sample string 9",
"zip": "sample string 10",
"referredBy": "sample string 11",
"phone": "sample string 12",
"fax": "sample string 13",
"mobile": "sample string 14",
"email": "sample string 15",
"clientNote": "sample string 16",
"criticalNote": "sample string 17",
"showCritical": true,
"isOwner": true,
"pay1Percent": 1,
"pay2Percent": 1,
"pay2Days": 1,
"terms2": 1,
"pay3Days": 1,
"terms3": 1,
"discount": 1,
"customerId": "sample string 18"
}
application/xml, text/xml
Sample:
<ApiUpsertClientParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <City>sample string 8</City> <ClientKey>92a3c851-3742-492e-8b9d-8313eb3065cf</ClientKey> <ClientName>sample string 3</ClientName> <ClientNote>sample string 16</ClientNote> <ContactName>sample string 4</ContactName> <CriticalNote>sample string 17</CriticalNote> <CustomerId>sample string 18</CustomerId> <Discount>1</Discount> <Email>sample string 15</Email> <Fax>sample string 13</Fax> <IsOwner>true</IsOwner> <Mobile>sample string 14</Mobile> <Pay1Percent>1</Pay1Percent> <Pay2Days>1</Pay2Days> <Pay2Percent>1</Pay2Percent> <Pay3Days>1</Pay3Days> <Phone>sample string 12</Phone> <PrivateApiKey>sample string 1</PrivateApiKey> <ReferredBy>sample string 11</ReferredBy> <Salutation>sample string 5</Salutation> <ShowCritical>true</ShowCritical> <State>sample string 9</State> <Street>sample string 6</Street> <Suburb>sample string 7</Suburb> <Terms2>1</Terms2> <Terms3>1</Terms3> <Zip>sample string 10</Zip> </ApiUpsertClientParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| ReturnKey | globally unique identifier |
None. |
|
| ResponseNote | string |
None. |
|
| ErrorString | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"responseCode": 1,
"returnKey": "9fc0cfed-a399-4565-adc2-dcd536628888",
"responseNote": "sample string 2",
"errorString": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <ErrorString>sample string 3</ErrorString> <ResponseCode>1</ResponseCode> <ResponseNote>sample string 2</ResponseNote> <ReturnKey>9fc0cfed-a399-4565-adc2-dcd536628888</ReturnKey> </ApiResponse>