POST api/customers/einvoicesetting
Add customer einvoice setting.
Request Information
URI Parameters
None.
Body Parameters
CustomerEInvoiceSettingPostRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerNumber |
Customer number |
integer |
None. |
| EInvoiceTypeId |
Id for einvoice type |
integer |
None. |
| DeliveryType |
Delivery type |
string |
Max length: 1 |
| BuyersReferenceId |
Buyers reference id |
string |
Max length: 30 |
| EmailAddress |
|
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
{
"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
<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
Response Information
Resource Description
CustomerEInvoiceSettingPostResponse| Name | Description | Type | Additional 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
{
"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
<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>