POST api/customers/einvoicesetting
Add customer einvoice setting.
Request Information
URI Parameters
None.
Body Parameters
CustomerEInvoiceSettingPostRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerNumber | integer |
None. |
|
| EInvoiceTypeId | integer |
None. |
|
| DeliveryType | string |
Max length: 1 |
|
| BuyersReferenceId | string |
Max length: 30 |
|
| EmailAddress | string |
Max length: 256 |
|
| ReceiverId | string |
Max length: 256 |
|
| ReceiverIntermediatorId | string |
Max length: 256 |
|
| EInvoiceService | string |
Max length: 256 |
|
| EInvoiceAction | string |
Max length: 256 |
|
| TaxScheme | 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:
Sample not available.
Response Information
Resource Description
CustomerEInvoiceSettingPostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of PostCustomerEInvoiceSettingError |
None. |
|
| Success | boolean |
None. |
|
| Id | 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": "4a1b847b-cf11-4ded-98a4-d8be9ae2f32c"
}
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>4a1b847b-cf11-4ded-98a4-d8be9ae2f32c</Id>
<Success>true</Success>
</CustomerEInvoiceSettingPostResponse>