PUT api/customers/einvoicesetting

Update customer einvoice setting.

Request Information

URI Parameters

None.

Body Parameters

CustomerEInvoiceSettingPutRequest
NameDescriptionTypeAdditional information
Id

Id of customer einvoice setting

globally unique identifier

None.

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:
{
  "Id": "ff15f043-cea3-4633-aba6-458e4a19bd38",
  "CustomerNumber": 2,
  "EInvoiceTypeId": 3,
  "DeliveryType": "sample string 4",
  "BuyersReferenceId": "sample string 5",
  "EmailAddress": "sample string 6",
  "ReceiverId": "sample string 7",
  "ReceiverIntermediatorId": "sample string 8",
  "EInvoiceService": "sample string 9",
  "EInvoiceAction": "sample string 10",
  "TaxScheme": "sample string 11"
}

application/xml, text/xml

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

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

Response Information

Resource Description

CustomerEInvoiceSettingPutResponse
NameDescriptionTypeAdditional information
Errors

List of errors when updating customer einvoice setting

Collection of PutCustomerEInvoiceSettingError

None.

Success

Returns true if customer einvoice setting is updated

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<CustomerEInvoiceSettingPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <PutCustomerEInvoiceSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutCustomerEInvoiceSettingError>
    <PutCustomerEInvoiceSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutCustomerEInvoiceSettingError>
  </Errors>
  <Success>true</Success>
</CustomerEInvoiceSettingPutResponse>