...
If workpoolentryid
isn't specified, but workpoolid
and todoid
both are, then the Todo will be added to the workpool.
Product
...
commands
CreateUpdateProductByID
Creates or updates a product in Microbizz.
...
products | collection[ product ] | A collection either empty if no products was found, or with exactly one element being the product. |
AddInvoiceLine
Adds a new invoice line in Microbizz.
Input
invoiceline | invoiceline | The invoice line to add. The id of the invoice line object will be ignored |
Output
None. | - | - |
GetPendingInvoiceLines
Get all pending invoice lines in Microbizz.
Input
None. | - | - |
Output
invoicelines | collection[ invoiceline ] | All pending invoice lines in Microbizz |
GetInvoiceLinesByLastChange
Get all invoice lines changed after a certain date.
Input
changedate | date | Return all invoice lines changed on or after the provided date. |
changetime | time | If this is provided only return invoice 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
invoicelines | collection [ invoiceline ] | The invoice lines |
MarkInvoiceLinesAsProcessed
Mark the invoice lines with the provided invoice line id's as processed in the Microbizz system, and attach an optional order number for information about which order they were attached to.
Input
invoicelineids | collection[number] | The invoice line ids of the lines that were processed. |
ordernumber | string | Optional order number to indicate on which order the lines were attached. |
Output
None. | - | - |
GetProductByProductNumber
...
If several products exists with the provided product number, only one of these (unpredicted) is returned.
Input
productnumber | string | The product number of the product to fetch |
include_prices | boolean | Get prices even if these are disabled |
Output
products | collection[ product ] | A collection either empty if no products was found, or with exactly one element being the product. |
...
Get a collection of products changed since a given date and time.
Input
changedate | date | Return all products changed on or after the provided date. |
changetime | time | If this is provided only return products 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 |
include_prices | boolean | Get prices even if these are disabled |
ignoreclosed | boolean | Skip products that are deleted |
onlyfavorites | boolean | If 1 then only get products that are the favorites of the current user |
Output
products | collection[ product ] | A collection of the relevant products, or an empty collection if no products were 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. |
...
The product is only deleted from the product catalog. Instances of the product used in offers and on customers are retained.
Input
productid | number | The Microbizz product id of the product to delete |
Output
None. | - | - |
CreateDirectOrder
Create a direct order / quotation.
Input
customerid | number | The ID of the customer in Microbizz |
lines | collection[directorderline] | The order lines |
note | string | A note to use for the quotation |
deliverydate | date | Delivery date for the quotation |
There must be at least 1 order line.
Output
None | - | - |