| POST | /profileuser/company | Create company for profile |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | body | string | No | |
| Nip | body | string | No | |
| Regon | body | string | No | |
| Krs | body | string | No | |
| TypeId | body | int | No | |
| RecipientCType | body | string | No | |
| Description | body | string | No | |
| StreetName | body | string | No | |
| StreetNumber | body | string | No | |
| StreetFlatNumber | body | string | No | |
| PostalCode | body | string | No | |
| Town | body | string | No | |
| CountryId | body | uint | No | |
| Country | body | string | No | |
| body | string | No | ||
| WebSite | body | string | No | |
| PhoneNumber | body | string | No | |
| FaxNumber | body | string | No | |
| PhoneNumber1 | body | string | No | |
| MobileNumber | body | string | No | |
| DefaultCurrencyId | body | uint | No | |
| DefaultCurrency | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | T | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | No | |
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | Object | No | |
| IsSuccess | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /profileuser/company HTTP/1.1
Host: api.chmuradokumentow.pl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
name: String,
nip: String,
regon: String,
krs: String,
typeId: 0,
recipientCType: String,
description: String,
streetName: String,
streetNumber: String,
streetFlatNumber: String,
postalCode: String,
town: String,
countryId: 0,
country: String,
email: String,
webSite: String,
phoneNumber: String,
faxNumber: String,
phoneNumber1: String,
mobileNumber: String,
defaultCurrencyId: 0,
defaultCurrency: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
code: FAIL,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
result: {},
isSuccess: False
}