| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| PUT | /eaccounting/customers | Update E-Accounting Customer |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | string | Yes | Customer Id in e-accounting. |
| InvoiceCity | body | string | Yes | |
| InvoicePostalCode | body | string | Yes | Max length: 10 characters |
| Name | body | string | Yes | Max length: 50 characters |
| TermsOfPaymentId | body | string | Yes | |
| IsPrivatePerson | body | bool | No | |
| IsActive | body | bool | No | |
| Telephone | body | string | Yes | |
| EmailAddress | body | string | Yes | |
| MobilePhone | body | string | Yes | |
| CompanyId | body | Guid? | No | The company id, if empty will use the company id for the user you are logged in with. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerNumber | form | string | Yes | |
| ContactPersonEmail | form | string | Yes | |
| ContactPersonMobile | form | string | Yes | |
| ContactPersonName | form | string | Yes | |
| ContactPersonPhone | form | string | Yes | |
| CurrencyCode | form | string | Yes | |
| GLN | form | string | Yes | |
| EmailAddress | form | string | Yes | |
| EmailAddressOrder | form | string | Yes | |
| EmailAddressQuote | form | string | Yes | |
| DeliveryCustomerName | form | string | Yes | |
| DeliveryAddress1 | form | string | Yes | |
| DeliveryAddress2 | form | string | Yes | |
| DeliveryCity | form | string | Yes | |
| DeliveryCountryCode | form | string | Yes | |
| DeliveryPostalCode | form | string | Yes | |
| DeliveryMethodId | form | string | Yes | |
| DeliveryTermId | form | string | Yes | |
| PayToAccountId | form | string | Yes | |
| Name | form | string | Yes | |
| Note | form | string | Yes | |
| ReverseChargeOnConstructionServices | form | bool | No | |
| WebshopCustomerNumber | form | int? | No | |
| MobilePhone | form | string | Yes | |
| Telephone | form | string | Yes | |
| TermsOfPaymentId | form | string | Yes | |
| EAccountingTermsOfPayment | form | EAccountingTermsOfPayment | Yes | |
| VatNumber | form | string | Yes | |
| WwwAddress | form | string | Yes | |
| LastInvoiceDate | form | string | Yes | |
| IsPrivatePerson | form | bool | No | |
| IsNorthernIreland | form | bool | No | |
| DiscountPercentage | form | decimal | No | |
| ChangedUtc | form | DateTime? | No | |
| IsActive | form | bool | No | |
| ForceBookkeepVat | form | bool | No | |
| EdiGlnNumber | form | string | Yes | |
| SalesDocumentLanguage | form | string | Yes | |
| ElectronicAddress | form | string | Yes | |
| ElectronicReference | form | string | Yes | |
| EdiServiceDelivererId | form | string | Yes | |
| AutoInvoiceActivationEmailSentDate | form | DateTime? | No | |
| AutoInvoiceRegistrationRequestSentDate | form | DateTime? | No | |
| EmailAddresses | form | List<string> | Yes | |
| CustomerLabels | form | List<CustomerLabel> | Yes | |
| MessageThreads | form | List<string> | Yes | |
| Notes | form | List<string> | Yes | |
| IsFutureInvoiceDateAllowed | form | bool | No | |
| DeliveryBasedVat | form | bool | No | |
| SalesPriceListId | form | string | Yes | |
| Iban | form | string | Yes | |
| DirectDebitCustomerSettings | form | DirectDebitCustomerSettings | Yes | |
| DiscountAgreementId | form | string | Yes | |
| UnpaidInvoicesAmount | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CorporateIdentityNumber | form | string | Yes | |
| InvoiceAddress1 | form | string | Yes | |
| InvoiceAddress2 | form | string | Yes | |
| InvoiceCity | form | string | Yes | |
| InvoicePostalCode | form | string | Yes | |
| InvoiceCountryCode | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes | |
| Name | form | string | Yes | |
| NameEnglish | form | string | Yes | |
| NumberOfDays | form | int | No | |
| TermsOfPaymentTypeId | form | int | No | |
| TermsOfPaymentTypeText | form | string | Yes | |
| AvailableForSales | form | bool | No | |
| AvailableForPurchase | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | Yes | |
| Name | form | string | Yes | |
| Description | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MandateId | form | string | Yes | |
| MandateType | form | int | No | |
| SequenceType | form | int | No | |
| SigningDate | form | DateTime | No | |
| EndDate | form | DateTime | No | |
| LatestDirectDebit | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /eaccounting/customers HTTP/1.1
Host: api.bookmore.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: String,
InvoiceCity: String,
InvoicePostalCode: String,
Name: String,
TermsOfPaymentId: String,
IsPrivatePerson: False,
IsActive: False,
Telephone: String,
EmailAddress: String,
MobilePhone: String,
CompanyId: 00000000-0000-0000-0000-000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: String,
CustomerNumber: String,
ContactPersonEmail: String,
ContactPersonMobile: String,
ContactPersonName: String,
ContactPersonPhone: String,
CurrencyCode: String,
GLN: String,
EmailAddress: String,
EmailAddressOrder: String,
EmailAddressQuote: String,
DeliveryCustomerName: String,
DeliveryAddress1: String,
DeliveryAddress2: String,
DeliveryCity: String,
DeliveryCountryCode: String,
DeliveryPostalCode: String,
DeliveryMethodId: String,
DeliveryTermId: String,
PayToAccountId: String,
Name: String,
Note: String,
ReverseChargeOnConstructionServices: False,
WebshopCustomerNumber: 0,
MobilePhone: String,
Telephone: String,
TermsOfPaymentId: String,
EAccountingTermsOfPayment:
{
Id: String,
Name: String,
NameEnglish: String,
NumberOfDays: 0,
TermsOfPaymentTypeId: 0,
TermsOfPaymentTypeText: String,
AvailableForSales: False,
AvailableForPurchase: False
},
VatNumber: String,
WwwAddress: String,
LastInvoiceDate: String,
IsPrivatePerson: False,
IsNorthernIreland: False,
DiscountPercentage: 0,
ChangedUtc: "0001-01-01T00:00:00",
IsActive: False,
ForceBookkeepVat: False,
EdiGlnNumber: String,
SalesDocumentLanguage: String,
ElectronicAddress: String,
ElectronicReference: String,
EdiServiceDelivererId: String,
AutoInvoiceActivationEmailSentDate: "0001-01-01T00:00:00",
AutoInvoiceRegistrationRequestSentDate: "0001-01-01T00:00:00",
EmailAddresses:
[
String
],
CustomerLabels:
[
{
Id: String,
Name: String,
Description: String
}
],
MessageThreads:
[
String
],
Notes:
[
String
],
IsFutureInvoiceDateAllowed: False,
DeliveryBasedVat: False,
SalesPriceListId: String,
Iban: String,
DirectDebitCustomerSettings:
{
MandateId: String,
MandateType: 0,
SequenceType: 0
},
DiscountAgreementId: String,
UnpaidInvoicesAmount: 0,
CorporateIdentityNumber: String,
InvoiceAddress1: String,
InvoiceAddress2: String,
InvoiceCity: String,
InvoicePostalCode: String,
InvoiceCountryCode: String
}