POST api/Seljendur

Creates new vendor.

Request Information

URI Parameters

None.

Body Parameters

Vendor information

SeljandiDto
NameDescriptionTypeAdditional information
Id

ID.

integer

None.

Kennitala

Social security number (SSN).

string

Required

YfirKennitala

Social security number (SSN) of supervisor or parent company. Use same SSN as put in Kennitala if there is no supervisor or parent company.

string

Required

Heiti

Name.

string

Required

YfirHeiti

Name of supervisor or parent company. Use same name as put in Heiti if there is no supervisor or parent company.

string

Required

Reikningsnumer

Bank account number.

string

Required

Matching regular expression pattern: ^[0-9]{12}$

Netfang

Email.

string

Matching regular expression pattern: ^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$

Simanumer

Phone number.

string

None.

NafnTengilids

Contact name.

string

None.

VskSkyldur

VAT obligated.

boolean

None.

KrofuhafanumerMilliinnheimta

Debt collection creditor code. This is automatically filled in later when the merchant has been created.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Kennitala": "sample string 2",
  "YfirKennitala": "sample string 3",
  "Heiti": "sample string 4",
  "YfirHeiti": "sample string 5",
  "Reikningsnumer": "sample string 6",
  "Netfang": "sample string 7",
  "Simanumer": "sample string 8",
  "NafnTengilids": "sample string 9",
  "VskSkyldur": true,
  "KrofuhafanumerMilliinnheimta": "sample string 10"
}

application/xml, text/xml

Sample:
<SeljandiDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Greidslumidlun.Api.Dto.Seljendur">
  <Heiti>sample string 4</Heiti>
  <Id>1</Id>
  <Kennitala>sample string 2</Kennitala>
  <KrofuhafanumerMilliinnheimta>sample string 10</KrofuhafanumerMilliinnheimta>
  <NafnTengilids>sample string 9</NafnTengilids>
  <Netfang>sample string 7</Netfang>
  <Reikningsnumer>sample string 6</Reikningsnumer>
  <Simanumer>sample string 8</Simanumer>
  <VskSkyldur>true</VskSkyldur>
  <YfirHeiti>sample string 5</YfirHeiti>
  <YfirKennitala>sample string 3</YfirKennitala>
</SeljandiDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SeljandiDto'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.