BokaMera.API.Host

<back to all web services

UpdateEaccountingCustomer

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
PUT/eaccounting/customersUpdate E-Accounting Customer
UpdateEaccountingCustomer Parameters:
NameParameterData TypeRequiredDescription
IdbodystringYesCustomer Id in e-accounting.
InvoiceCitybodystringYes
InvoicePostalCodebodystringYesMax length: 10 characters
NamebodystringYesMax length: 50 characters
TermsOfPaymentIdbodystringYes
IsPrivatePersonbodyboolNo
IsActivebodyboolNo
TelephonebodystringYes
EmailAddressbodystringYes
MobilePhonebodystringYes
CompanyIdbodyGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
EAccountingCustomerResponse Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
CreateEAccountingCustomer Parameters:
NameParameterData TypeRequiredDescription
CustomerNumberformstringYes
ContactPersonEmailformstringYes
ContactPersonMobileformstringYes
ContactPersonNameformstringYes
ContactPersonPhoneformstringYes
CurrencyCodeformstringYes
GLNformstringYes
EmailAddressformstringYes
EmailAddressOrderformstringYes
EmailAddressQuoteformstringYes
DeliveryCustomerNameformstringYes
DeliveryAddress1formstringYes
DeliveryAddress2formstringYes
DeliveryCityformstringYes
DeliveryCountryCodeformstringYes
DeliveryPostalCodeformstringYes
DeliveryMethodIdformstringYes
DeliveryTermIdformstringYes
PayToAccountIdformstringYes
NameformstringYes
NoteformstringYes
ReverseChargeOnConstructionServicesformboolNo
WebshopCustomerNumberformint?No
MobilePhoneformstringYes
TelephoneformstringYes
TermsOfPaymentIdformstringYes
EAccountingTermsOfPaymentformEAccountingTermsOfPaymentYes
VatNumberformstringYes
WwwAddressformstringYes
LastInvoiceDateformstringYes
IsPrivatePersonformboolNo
IsNorthernIrelandformboolNo
DiscountPercentageformdecimalNo
ChangedUtcformDateTime?No
IsActiveformboolNo
ForceBookkeepVatformboolNo
EdiGlnNumberformstringYes
SalesDocumentLanguageformstringYes
ElectronicAddressformstringYes
ElectronicReferenceformstringYes
EdiServiceDelivererIdformstringYes
AutoInvoiceActivationEmailSentDateformDateTime?No
AutoInvoiceRegistrationRequestSentDateformDateTime?No
EmailAddressesformList<string>Yes
CustomerLabelsformList<CustomerLabel>Yes
MessageThreadsformList<string>Yes
NotesformList<string>Yes
IsFutureInvoiceDateAllowedformboolNo
DeliveryBasedVatformboolNo
SalesPriceListIdformstringYes
IbanformstringYes
DirectDebitCustomerSettingsformDirectDebitCustomerSettingsYes
DiscountAgreementIdformstringYes
UnpaidInvoicesAmountformdecimalNo
EAccountingInvoiceAddress Parameters:
NameParameterData TypeRequiredDescription
CorporateIdentityNumberformstringYes
InvoiceAddress1formstringYes
InvoiceAddress2formstringYes
InvoiceCityformstringYes
InvoicePostalCodeformstringYes
InvoiceCountryCodeformstringYes
EAccountingTermsOfPayment Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
NameformstringYes
NameEnglishformstringYes
NumberOfDaysformintNo
TermsOfPaymentTypeIdformintNo
TermsOfPaymentTypeTextformstringYes
AvailableForSalesformboolNo
AvailableForPurchaseformboolNo
CustomerLabel Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
NameformstringYes
DescriptionformstringYes
DirectDebitCustomerSettings Parameters:
NameParameterData TypeRequiredDescription
MandateIdformstringYes
MandateTypeformintNo
SequenceTypeformintNo
SigningDateformDateTimeNo
EndDateformDateTimeNo
LatestDirectDebitformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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: testapi.bokamera.se 
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
}