POST client-contactperson

Add a new client contact person relationship.

Request Information

URI Parameters

None.

Body Parameters

The ClientContactPersonViewModel, containing details about the relationship between a client and a contact person.

FiscaalGemak.Web.Api.Models.Models.ClientContactPersonViewModel
NameDescriptionTypeAdditional information
ClientId

Gets or sets the Id of the client.

integer

None.

ContactPersonId

Gets or sets the Id of the contact person.

integer

None.

HasCommunicationViewAccess

Gets or sets a value indicating whether the contact person HasCommunicationViewAccess.

boolean

Required

HasCommunicationApprovalAccess

Gets or sets a value indicating whether the contact person HasCommunicationApprovalAccess.

boolean

Required

Function

Gets or sets the function of the contact person.

string

String length: inclusive between 0 and 128

IsMainContactPerson

Gets or sets a value indicating whether gets or sets the contact person as main contact.

boolean

None.

SimpleDeclarationTypes

Gets or sets a collection of simple declaration types related to the contact person.

Collection of Gemak.Core.Enums.SimpleDeclarationType

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "ContactPersonId": 2,
  "HasCommunicationViewAccess": true,
  "HasCommunicationApprovalAccess": true,
  "Function": "sample string 5",
  "IsMainContactPerson": true,
  "SimpleDeclarationTypes": [
    0,
    0
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns status code 200-OK upon successful creation of the client contact person relationship.

None.