/BusinessPartner
Short Description
Chapter Contents:
Long Description
Supported Methods
GET /BusinessPartner
Get a slit of BusinessPartner objects. Filter to avoid huge amounts of data (see Filtering for search parameters).
GET /BusinessPartner/{key}
Get a single BusinessPartner object.
Â
POST /BusinessPartner
Insert a new BusinessPartner object.
- Required fields: businessPartner: businessPartnerCode, businessPartnerType, businessPartnerSort
- Unique fields: businessPartner: businessPartnerCode, businessPartnerSort
- Linking bank accounts: Can be achieved in a single call (see below), or in separate calls. Use unlink call to unlink bank accounts.
{ ..., ..., 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 need not be updated. Any field that takes a code can take an ID instead.
- Code fields:Â businessPartner: businessUnit, baselineTerm, payee, paymentTerms, bankAccountNo, businessPartnerTypeÂ
- ID fields: businessPartner
- Boolean fields: businessPartner: isInterCompany, isTotalCommissionPayable
- Non-ID fields without quotes are numeric values.
- Non-code fields with quotes are alphanumeric strings.
Â
POST /BusinessPartner/{key}/BankAccount/{bankAccountKey}/link (New for API version 2.0.0 )
Links existing bank account to given business partner.Â
POST /BusinessPartner/{key}/BankAccount/{bankAccountKey}/unlink (New for API version 2.0.0 )
Unlinks bank account from given business partner.
Properties
Property | Type | Length | Mandatory | Description | Comments |
---|---|---|---|---|---|
businessUnit | /BusinessUnit | Â | Â | Business Unit | Â |
baselineTerm | /BaselineTerm | Â | Â | Default Baseline Term | Â |
payee | /BusinessPartner | Â | Â | Default Invoice Party | Â |
paymentTerms | /PaymentTerms | Â | Â | Default Payment Terms | Â |
bankAccount | /BankAccount | Â | Â | Default Bank Accounts Payable | Â |
businessPartnerName | String | 80 | Yes | Business Partner Name 1 | Â |
businessPartnerCode | String | 12 | Yes | Business PartnerCode | Â |
businessPartnerName2 | String | 80 | Â | Business PartnerName 2 | Â |
businessPartnerSort | String | 20 | Yes | Sort Name (Short Version of Business Partner name). | Â |
businessPartnerLink | /BusinessPartner | Â | Â | Linked Business Partner | New |
companyRegistrationNo | String | 24 | Â | 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 | String | 24 | Â | VAT Registration Number | Â |
businessPartnerType | /BusinessPartnerType | Â | Â | Business PartnerType | Â |
companyBankAccount | /BankAccount | Â | Â | Default Bank Accounts Receivable | Â |
individuals | Array of /Individual | Â | Â | List of Individuals for Business Partner | Â |
addresses | Array of /Address | Â | Â | List of Addresses for Business Partner | Â |
contactInfo | Array of /ContactInfo | Â | Â | List of Contact Infos for Business Partner | Â |
codeProperty | String | Â | Â | Â | New |
bankAccounts | Array of /BankAccount | Â | Â | List of Bank Accounts for Business Partner | New |
New BusinessPartner Example
Example how to create a new BusinessPartner object:
POST /BusinessPartner
Request Body:
{ "businessUnit": null, "baselineTerm": "LOAD", "payee": "P200240", "paymentTerms": "IMD", "bankAccount": null, "businessPartnerName": "Spliethoff''s Bevrachtingskantoor B.V.", "businessPartnerCode": "123456789-1", "businessPartnerName2": "Spliethoff''s Bevrachtingskantoor B.V.", "businessPartnerSort": "Spliethoff NL", "companyRegistrationNo": "123456789", "isInterCompany": false, "isTotalCommissionPayable": true, "maxAdvancePaymentPercent": 100, "vatNumber": "123456879", "businessPartnerType": "BB", "companyBankAccount": null, "individuals": [ { "individualName": "Test Person" }, { "individualName": "Test Person2" } ], "remarks": [ { "remarkTitle": "A Remark title", "remark": "This is a remark on a Various" }, { "remarkTitle": "Another remark title", "remark": "This is another remark on a Various.\n\nThis is the line after the blank line." } ], "addresses": [ { "country": "NL", "address1": "Street Name 54", "address2": "5th floor", "address3": "", "city": "Amsterdam", "postalCode": "1000 AA" } ], "contactInfo": [ { "email": "test@test.com", "faxNo": "55555555", "mobileNo": "66666666", "phoneNo": "77777777", "telexNo": "88888888" } ] }