API documentation
Method list
Test your request
Changelog


addInvoice
The method allows to issue an order invoice.


Input parameters
order_idintOrder Identifier from BaseLinker order manager
series_idintSeries numbering identifier
vat_ratestring|int|float(optional) VAT rate - parameter accepts values:
- "DEFAULT": according to the numbering series (is set as default value)
- "ITEM": use the rate assigned to the item of the order
- "EXPT" / "ZW": exempt from VAT
- "NP": annotation NP
- "OO": VAT reverse charge
- value: number from range 0-100



Output data
The method returns the data in JSON format.
statusvarchar(30)SUCCESS - request executed correctly
ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code
invoice_idintID of the added invoice.



Sample
Input data:
Output data:
A sample request in PHP: