Versions Compared

Key

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

...

todoidnumberThe ID of the task to add the file to.
filenamestringThe name of the file, eg. “MyDocument.PDF”
filedatabinaryA binary stream.
titlestringA file title (not a file name)

Output

None--

AddFileToTool

Add a file to a tool/equipment.

Input

name file “MyDocument.PDF”
toolidnumberThe ID of the tool to add the file to.
filenamefolderstringThe path of the folder, eg.
filedatabinaryA binary stream.
titlestringA file title (not a file name)
folderstringThe path of the folder, eg. "FilesFromAPI/Diagrams"

Output

None--

AddFileToCustomer

Add a file to a company/customer.

Input

A file title (not a file name)
customeridnumberThe ID of the customer to add the file to.
filenamestringThe name of the file, eg. “MyDocument.PDF”
filedatabinaryA binary stream.
titlestring"FilesFromAPI/Diagrams"

Output


None--

AddAudioToTodo

Add an audio file to a todo.

Input


todoidnumberThe ID of the todo to add the audio to.
titlestringA file title (not a file name)
formatstringOne of: mp3 wav aac
audiodatabinaryA binary stream containing audio data in the specified format.

Output


None.--

GetTodoTemplates

Get a list of all todo templates.

Input


None.--

Output


templatescollection [ todotemplate ]The available templates

...

Get a list of all todo states.

Input


None.--

Output


statescollection [ todostate ]The available states

...

If a toolid is provided then the tool will be attached to the todo.

Input


templateidnumberThe id of the template (which can be obtained by GetTodoTemplates)
titlestringA base title for the created todo
customeridnumberAn id of a customer on which to attach the todo. (In some configurations this is required)
toolidnumberThe ID of a tool to attach to the todo

Output


todotodoThe primary todo created from the template. (A template can contain more than one todo)

...

Get list of tasks that are planned for the current user.

Input


None--

Output


todoscollection[number]List of IDs of the tasks that are planned for the user.

...

Get all documents on a todo by todo id

Input


todoidnumberThe Microbizz todo ID
inclthumbsboolTrue to include thumbnails
inclfoldersboolTrue to include folders

Output


documentscollection [ document ]The documents present on the todo
folderscollection [ folder ]The folders present on the todo

...

Get a collection of all product use since the given date.

Input


changedatedateReturn all product use on or after the provided date.
changetimetimeIf this is provided only return product use changed after the provided date and time.
resumekeystringIf a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries

Output


productusecollection[ todoitem ]A collection of the relevant product use, or an empty collection if no products were used.
resumekeystringSometimes 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.

...

Get a collection of all product use on the given todo.

Input


todoidnumberID of todo to receive product use

Output


productusecollection[ todoitem ]A collection of the relevant product use, or an empty collection if no products were used on this todo.

...

Get a collection of all product use on the given tool.

Input


toolidnumberID of tool to receive product use
sparepartsboolean1 to get spareparts only, 0 to get non-spareparts only

Output


productusecollection[ todoitem ]A collection of the relevant product use, or an empty collection if no products were used with this tool.

...

Delete some product use by product use ID. The command will succeed even if the product use doesn't exist.

Input


productuseidnumberID of the product use to remove

Output


None--

AddProductUse

Deprecated: Consider using CreateUpdateProductUse

Add product use to the todo specified by the given todo ID.

Input


productusetodoitemThe product use. Even though the id field must be provided, it is ignored.
todoidnumberID of todo to receive product use
nopricecalcbooleanSet to 1 to disable price calculation (eg. when copying product use)
copyidnumberOptional ID of the prod.use that was copied, used for copying some details

Output


None--

AddPartsList

Add product use to the todo specified by the given todo ID. Most of the details will be taken from the parts list setup.

Input


productusecollection[ partuse ]Details about the product used for each part in the parts list.
todoidnumberID of todo to receive product use
useddatedateThe date of use
usedtimetimeThe time of use

Output


None--

CreateUpdateProductUse

...

If the product use provided have a productuse id of 0, new product use will be created and a new productuse id will be provided.

Input


productusetodoitemThe product use to create/update
nopricecalcbooleanSet to 1 to disable price calculation (eg. when copying product use)
copyidnumberOptional ID of the prod.use that was copied, used for copying some details

Output


productusetodoitemThe product use object as it is in Microbizz after the update

...

Get all product use pending invoicing.

Input


None--

Output


productusecollection[ todoitem ]A collection of all product use pending invoicing.

...

Mark the selected product use as invoiced.

Input


productuseidscollection[number]A collection of all product use ids to mark as invoiced.

Output


None--

GetPlanDestinations

Get all destinations for use when planning a todo

Input


None--

Output


destinationscollection[ plandestination ]A collection of all destinations which can be used.
myselfnumberThe destination that is the user himself

...

Plan a todo to a specific destination.

Input


todoidnumberID of the todo to plan.
datedateDate to plan to.
timetimeTime to plan to.
destinationstringThe destination to plan to, see GetPlanDestinations ; may be an array of string, to plan to multiple users/teams.
durationnumberNumber of minutes to plan; must be 0 if enddate is set.
enddatedateIf set then there will be planned for all the dates between 'date' and 'enddate'.
endtimetimeOnly used if enddate is set, in which case it is required.
nonworkingdaysboolIf true then also plan on non-working days.
fulldayboolean1 to create full day planning or 0 to create normal planning; duration+enddate+endtime+time are ignored for full day plannings

Output


prodplanidscollection[number]The Microbizz IDs of all the plannings that were created

...

Get info about the workpools.

Input


changedatedate
changetimetime

Output


disabledboolIf workpools are disabled, default is false
workpoolscollection[ workpool ]A collection of workpools

...

Add a Todo to a workpool, or remove a Todo from a workpool.

Input


workpoolentryidnumberID of a workpool entry in Microbizz
todoidnumberID of a Todo in Microbizz
workpoolidnumberID of a workpool in Microbizz

Output


wastakenboolTrue if the Todo was removed from the workpool
workpoolentryworkpoolentryOnly if the Todo was added to a workpool

...

If the product provided have a product id of 0, a new product will be created and a new product id will be provided.

Input


productproductThe product to create/update


Output


productproductThe product object as it is in Microbizz after the update

...

The product id in the input product object will be ignored.

Input


productproductThe product to create/update

Output


productproductThe product object as it is in Microbizz after the update

...

If the product or the customer doesn't exists, the command will still succeed, but nothing will happen.

Input


productnumberstringProduct number
customeridnumberId of the customer for which to assign the price
pricenumberIndividual price pr. unit in lowest local currency. (Typical danish ører)

Output


None--

RemoveIndividualPriceByProductNumber

...

If neither the product, the customer nor the individual price exists, the command will still succeed, but nothing will happen.

Input


productnumberstringProduct number
customeridnumberId of the customer for which to remove any individual price. If this is omitted, then individual pricing will be removed for all customers.

Output


None--

GetProductByID

Get a product by their Microbizz product id

If no such product exist an empty collection will be returned.

Input


productidnumberThe Microbizz product id of the product to fetch
include_pricesbooleanGet prices even if these are disabled

Output


productscollection[ product ]A collection either empty if no products was found, or with exactly one element being the product.

...

Adds a new invoice line in Microbizz.

Input


invoicelineinvoicelineThe 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


invoicelinescollection[ invoiceline ]All pending invoice lines in Microbizz

...

Get all invoice lines changed after a certain date.

Input


changedatedateReturn all invoice lines changed on or after the provided date.
changetimetimeIf this is provided only return invoice lines changed after the provided date and time.
resumekeystringIf a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries.

Output


invoicelinescollection [ invoiceline ]The invoice lines

...

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


invoicelineidscollection[number]The invoice line ids of the lines that were processed.
ordernumberstringOptional 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


productnumberstringThe product number of the product to fetch
include_pricesbooleanGet prices even if these are disabled

Output


productscollection[ 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


changedatedateReturn all products changed on or after the provided date.
changetimetimeIf this is provided only return products changed after the provided date and time.
resumekeystringIf a partial result is returned, provide the resumekey received along with the partial result, to get the rest of the entries
include_pricesbooleanGet prices even if these are disabled
ignoreclosedbooleanSkip products that are deleted
onlyfavoritesbooleanIf 1 then only get products that are the favorites of the current user

Output


productscollection[ product ]A collection of the relevant products, or an empty collection if no products were found.
resumekeystringSometimes 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


productidnumberThe Microbizz product id of the product to delete

Output


None.--

CreateDirectOrder

Create a direct order / quotation.

Input


customeridnumberThe ID of the customer in Microbizz
linescollection[directorderline]The order lines
notestringA note to use for the quotation
deliverydatedateDelivery date for the quotation

There must be at least 1 order line.

Output


None--