CreateUpdateCustomerByID
Creates or updates a company/customer in Microbizz.
...
If the company provided have a company id of 0, a new company will be created and a new company id will be provided.
Input
customer | customer | The company/customer to create/update |
Output
customer | customer | The company/customer object as it is in Microbizz after the update |
CreateUpdateCustomerByCustomerNumber
Creates or updates a company/customer in Microbizz.
...
The company id in the input customer object will be ignored.
Input
customer | customer | The company/customer to create/update |
Output
customer | customer | The company/customer object as it is in Microbizz after the update |
GetCustomerByID
Get a customer by their Microbizz customer id
If no such customer exist an empty collection will be returned.
Input
customerid | number | The microbizz customer id of the customer to fetch |
Output
customers | collection[ customer ] | A collection either empty if no customer was found, or with exactly one element being the customer. |
GetCustomerByCustomerNumber
Get a customer by their customer number.
...
If several customers exists with the provided customer number, only one of these (unpredicted) is returned.
Input
customernumber | string | The customer number of the customer to fetch |
Output
customers | collection[ customer ] | A collection either empty if no customer was found, or with exactly one element being the customer. |
GetCustomersByLastChange
Get a collection of customers changed since a given date and time.
Input
changedate | date | Return all customers changed on or after the provided date. |
changetime | time | If this is provided only return customers changed after the provided date and time. |
resumekey | string | If a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries |
ignoreclosed | bool | If 1 then don't sent customers that current user do not have access to |
Output
customers | collection[ customer ] | A collection of the relevant customers, or an empty collection if no customers was found. |
resumekey | string | Sometimes the entire result cannot be returned because it's to large. In that case a resumekey is returned along with the results. Execute the command again with this resumekey to get the remaining results. |
qfoncheckout | number | The ID of a question form to fill in when checking out from a customer. |
GetDepotOrderLinesByLastChange
Get all depot order lines.
Input
changedate | date | Return all depot order lines changed on or after the provided date. |
changetime | time | If this is provided only return depot order lines changed after the provided date and time. |
resumekey | string | If a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries. |
Output
GetDocumentsByCustomerID
Get all documents on a customer by customer id
Input
customerid | number | The Microbizz customer ID |
inclthumbs | bool | True to include thumbnails |
inclfolders | bool | True to include folders |
Output
documents | collection [ document ] | The documents present on the customer |
folders | collection [ folder ] | The folders present on the customer |
GetCustomerTypes
Get all Microbizz customer types. All customer types are returned, and replaces earlier customer types.
Input
Output
types | collection[ customertype ] | A collection of all customer types in the Microbizz system. |
GetProceduresByLastChange
Get all proceduress.
Input
changedate | date | Return all procedures changed on or after the provided date. |
changetime | time | If this is provided only return procedures changed after the provided date and time. |
resumekey | string | If a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries. |
Output
procedures | collection[ procedure ] | The procedures |
AddFileToCustomer
Add a file to a company/customer.
Input
customerid | number | The ID of the customer to add the file to. |
filename | string | The name of the file, eg. “MyDocument.PDF” |
filedata | binary | A binary stream. |
title | string | A file title (not a file name) |
folder | string | The path of the folder, eg. "FilesFromAPI/Diagrams" |
Output