Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

POST /BusinessPartner

Insert a new BusinesspPartner BusinessPartner object

Required fields: businessPartner: businessPartnerCode, businessPartnerType, businessPartnerSort

Unique fields: businessPartner: businessPartnerCode, businessPartnerSort

Linking bank accounts: This can be achieved in a single call, or in separate calls

Code Block
languagejs
titleLink bank accounts in the same call
{
	...,
	...,
	bankAccounts: [
		12345,
		{ bankAccountNo: 1234567890 }],
}

Links bank account with key 12345 (already existing) to the business partner. And also creates and links a new bank account with account number 1234567890 to the business partner.

 

 

 


PUT /BusinessPartner/{key}

Update an existing BusinessPartner. Unchanged properties can be skipped.

...

Fields with quotes, that are not code fields, are alphanumeric strings.

 

Anchor
link
link
POST /BusinessPartner/{key}/BankAccount/{bankAccountKey}/link   (new in version 1.0.0-alpha10)

Links the existing bank account to the given business partner. 

 

POST /BusinessPartner/{key}/BankAccount/{bankAccountKey}/unlink   (new in version 1.0.0-alpha10)

Unlinks the bank account from the given business partner.

Properties

 

PropertyTypeLengthMandatoryDescriptionComments
businessUnit
/BusinessUnit  Business Unit 
baselineTerm
/BaselineTerm  Default Baseline Term 
payee
/BusinessPartner  Default Invoice Party 
paymentTerms
/PaymentTerms  Default Payment Terms 
bankAccount
/BankAccount  Default Bank Account Payable 
businessPartnerName
String80yesBusiness Partner Name 1 
businessPartnerCode
String12yesBusiness Partner Code 
businessPartnerName2
String80 Business Partner Name 2 
businessPartnerSort
String20yesSort Name. (Short version of Business Partner name). 
businessPartnerLink/BusinessPartner  Linked Business Partnernew
companyRegistrationNo
String24 Company Registration Number 
isInterCompany
Boolean  Inter Company 
isTotalCommissionPayable
Boolean  Deduct 100% Commission on Balance Freight Calculation 
maxAdvancePaymentPercent
Integer  Max Advance Payment Percent. (Defaults to 100% if not set) 
vatNumber
String24 VAT Registration Number 
businessPartnerType
/BusinessPartnerType  Business Partner Type 
companyBankAccount
/BankAccount  Default Bank Account Receivable 
individuals
Array of /Individual  List of Individuals for Business Partner 
addresses
Array of /Address  List of Addresses for Business Partner 
contactInfoArray of /ContactInfo  List of Contact Infos for Business Partner 
codePropertyString   new
bankAccountsArray of /BankAccount  List of Bank Accounts for Business Partnernew

...