POST client/{id}/partnerrelations

Add a new relation to a client with a partner.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the client.

integer

Required

Body Parameters

The PartnerRelationViewModel, containing information about the relation.

FiscaalGemak.Web.Api.Models.Models.PartnerRelationViewModel
NameDescriptionTypeAdditional information
IdentificationNumberPartner

Gets or sets the identification number of the partner.

string

Required

String length: inclusive between 0 and 9

SituationType

Gets or sets the Situation of the client.

FiscaalGemak.Core.Models.SituationType

None.

StartDate

date

Required

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "IdentificationNumberPartner": "sample string 1",
  "SituationType": 0,
  "StartDate": "2024-11-23T04:36:54.81365+01:00",
  "EndDate": "2024-11-23T04:36:54.81365+01:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns status code 201-Created with the API route to get the partner relation details, upon successful creation of the partner relation.

FiscaalGemak.Web.Api.Models.Models.PartnerRelationViewModel
NameDescriptionTypeAdditional information
IdentificationNumberPartner

Gets or sets the identification number of the partner.

string

Required

String length: inclusive between 0 and 9

SituationType

Gets or sets the Situation of the client.

FiscaalGemak.Core.Models.SituationType

None.

StartDate

date

Required

EndDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "IdentificationNumberPartner": "sample string 1",
  "SituationType": 0,
  "StartDate": "2024-11-23T04:36:54.8152943+01:00",
  "EndDate": "2024-11-23T04:36:54.8152943+01:00"
}