POST api/customers/einvoicesetting

Add customer einvoice setting.

Request Information

URI Parameters

None.

Body Parameters

CustomerEInvoiceSettingPostRequest
NameDescriptionTypeAdditional information
CustomerNumber

Customer number

integer

None.

EInvoiceTypeId

Id for einvoice type

1 = OIO Itella
2 = IPost
3 = Nordania
4 = ALD
5 = Leaseplan
6 = FleetMichelin
7 = OIOXML
8 = Svefakt
9 = FInvoice
10 = ERM_OIOItella
11 = Pagero

integer

None.

DeliveryType

Delivery type

string

Max length: 1

BuyersReferenceId

Buyers reference id

string

Max length: 30

EmailAddress

Email

string

Max length: 256

ReceiverId

Receiver id

string

Max length: 256

ReceiverIntermediatorId

Receiver intermediator id

string

Max length: 256

EInvoiceService

Einvoice service

string

Max length: 256

EInvoiceAction

EInvoice action

string

Max length: 256

TaxScheme

Tax scheme

string

Max length: 10

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerNumber": 1,
  "EInvoiceTypeId": 2,
  "DeliveryType": "sample string 3",
  "BuyersReferenceId": "sample string 4",
  "EmailAddress": "sample string 5",
  "ReceiverId": "sample string 6",
  "ReceiverIntermediatorId": "sample string 7",
  "EInvoiceService": "sample string 8",
  "EInvoiceAction": "sample string 9",
  "TaxScheme": "sample string 10"
}

application/xml, text/xml

Sample:
<CustomerEInvoiceSettingPostRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <BuyersReferenceId>sample string 4</BuyersReferenceId>
  <CustomerNumber>1</CustomerNumber>
  <DeliveryType>sample string 3</DeliveryType>
  <EInvoiceAction>sample string 9</EInvoiceAction>
  <EInvoiceService>sample string 8</EInvoiceService>
  <EInvoiceTypeId>2</EInvoiceTypeId>
  <EmailAddress>sample string 5</EmailAddress>
  <ReceiverId>sample string 6</ReceiverId>
  <ReceiverIntermediatorId>sample string 7</ReceiverIntermediatorId>
  <TaxScheme>sample string 10</TaxScheme>
</CustomerEInvoiceSettingPostRequest>

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 'CustomerEInvoiceSettingPostRequest'.

Response Information

Resource Description

CustomerEInvoiceSettingPostResponse
NameDescriptionTypeAdditional information
Errors

List of errors when adding customer einvoice setting

Collection of PostCustomerEInvoiceSettingError

None.

Success

Returns true if customer einvoice setting is added

boolean

None.

Id

Id of the created customer einvoice setting

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true,
  "Id": "ae0dce59-148d-48c3-9521-fb471e458229"
}

application/xml, text/xml

Sample:
<CustomerEInvoiceSettingPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <PostCustomerEInvoiceSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerEInvoiceSettingError>
    <PostCustomerEInvoiceSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerEInvoiceSettingError>
  </Errors>
  <Id>ae0dce59-148d-48c3-9521-fb471e458229</Id>
  <Success>true</Success>
</CustomerEInvoiceSettingPostResponse>