POST api/Registration/Registration

Request Information

URI Parameters

None.

Body Parameters

RegistrationAPIViewModel
NameDescriptionTypeAdditional information
Email

string

None.

FirstName

string

None.

LastName

string

None.

BusinessType

integer

None.

OrganizationName

string

None.

OrganizationNumber

string

None.

ContactPerson

string

None.

ContactPersonEmail

string

None.

BusinessPackageId

integer

None.

VatRegistered

boolean

None.

VatCode

string

None.

VatPeriod

string

None.

Foretaksregisteret

boolean

None.

PlanForVat

boolean

None.

BuyingServiceFromAbroad

boolean

None.

StartingInvoiceNumber

string

None.

EHFEmailAddress

string

None.

BankAccountName

string

None.

BankAccountNumber

string

None.

AssociateBank

string

None.

AltinnUserName

string

None.

AltinnPassword

string

None.

TermType

string

None.

ReceiveInvoicesAndRemindersByEHF

boolean

None.

ActivateInvoiceReminders

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "BusinessType": 4,
  "OrganizationName": "sample string 5",
  "OrganizationNumber": "sample string 6",
  "ContactPerson": "sample string 7",
  "ContactPersonEmail": "sample string 8",
  "BusinessPackageId": 9,
  "VatRegistered": true,
  "VatCode": "sample string 11",
  "VatPeriod": "sample string 12",
  "Foretaksregisteret": true,
  "PlanForVat": true,
  "BuyingServiceFromAbroad": true,
  "StartingInvoiceNumber": "sample string 16",
  "EHFEmailAddress": "sample string 17",
  "BankAccountName": "sample string 18",
  "BankAccountNumber": "sample string 19",
  "AssociateBank": "sample string 20",
  "AltinnUserName": "sample string 21",
  "AltinnPassword": "sample string 22",
  "TermType": "sample string 23",
  "ReceiveInvoicesAndRemindersByEHF": true,
  "ActivateInvoiceReminders": true
}

text/html

Sample:
{"Email":"sample string 1","FirstName":"sample string 2","LastName":"sample string 3","BusinessType":4,"OrganizationName":"sample string 5","OrganizationNumber":"sample string 6","ContactPerson":"sample string 7","ContactPersonEmail":"sample string 8","BusinessPackageId":9,"VatRegistered":true,"VatCode":"sample string 11","VatPeriod":"sample string 12","Foretaksregisteret":true,"PlanForVat":true,"BuyingServiceFromAbroad":true,"StartingInvoiceNumber":"sample string 16","EHFEmailAddress":"sample string 17","BankAccountName":"sample string 18","BankAccountNumber":"sample string 19","AssociateBank":"sample string 20","AltinnUserName":"sample string 21","AltinnPassword":"sample string 22","TermType":"sample string 23","ReceiveInvoicesAndRemindersByEHF":true,"ActivateInvoiceReminders":true}

application/xml, text/xml

Sample:
<RegistrationAPIViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <ActivateInvoiceReminders>true</ActivateInvoiceReminders>
  <AltinnPassword>sample string 22</AltinnPassword>
  <AltinnUserName>sample string 21</AltinnUserName>
  <AssociateBank>sample string 20</AssociateBank>
  <BankAccountName>sample string 18</BankAccountName>
  <BankAccountNumber>sample string 19</BankAccountNumber>
  <BusinessPackageId>9</BusinessPackageId>
  <BusinessType>4</BusinessType>
  <BuyingServiceFromAbroad>true</BuyingServiceFromAbroad>
  <ContactPerson>sample string 7</ContactPerson>
  <ContactPersonEmail>sample string 8</ContactPersonEmail>
  <EHFEmailAddress>sample string 17</EHFEmailAddress>
  <Email>sample string 1</Email>
  <FirstName>sample string 2</FirstName>
  <Foretaksregisteret>true</Foretaksregisteret>
  <LastName>sample string 3</LastName>
  <OrganizationName>sample string 5</OrganizationName>
  <OrganizationNumber>sample string 6</OrganizationNumber>
  <PlanForVat>true</PlanForVat>
  <ReceiveInvoicesAndRemindersByEHF>true</ReceiveInvoicesAndRemindersByEHF>
  <StartingInvoiceNumber>sample string 16</StartingInvoiceNumber>
  <TermType>sample string 23</TermType>
  <VatCode>sample string 11</VatCode>
  <VatPeriod>sample string 12</VatPeriod>
  <VatRegistered>true</VatRegistered>
</RegistrationAPIViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.