POST contactperson

Add a new client to Fiscaal Gemak.

Request Information

URI Parameters

None.

Body Parameters

The ContactPersonViewModel, containing information about the contactperson.

FiscaalGemak.Web.Api.Models.Models.ContactPersonViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Email

string

String length: inclusive between 0 and 128

Initials

string

String length: inclusive between 0 and 50

FirstName

string

String length: inclusive between 0 and 80

Prefix

string

String length: inclusive between 0 and 50

Surname

string

String length: inclusive between 0 and 128

TelephoneNumber

string

String length: inclusive between 0 and 14

SalutationCustom

string

String length: inclusive between 0 and 50

Salutation

FiscaalGemak.Core.Models.Enums.Salutation

None.

AuthenticationType

FiscaalGemak.Core.Models.Enums.AuthenticationType

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Email": "sample string 1",
  "Initials": "sample string 2",
  "FirstName": "sample string 3",
  "Prefix": "sample string 4",
  "Surname": "sample string 5",
  "TelephoneNumber": "sample string 6",
  "SalutationCustom": "sample string 7",
  "Salutation": 0,
  "AuthenticationType": 0
}

application/xml, text/xml

Sample:
<ContactPersonViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiscaalGemak.Web.Api.Models.Models">
  <AuthenticationType>Google</AuthenticationType>
  <Email>sample string 1</Email>
  <FirstName>sample string 3</FirstName>
  <Id>1</Id>
  <Initials>sample string 2</Initials>
  <Prefix>sample string 4</Prefix>
  <Salutation>Custom</Salutation>
  <SalutationCustom>sample string 7</SalutationCustom>
  <Surname>sample string 5</Surname>
  <TelephoneNumber>sample string 6</TelephoneNumber>
</ContactPersonViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

the IHttpActionResult.

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>