addInvoice
The method allows to issue an order invoice.
Input parameters
Output data:
A sample request in PHP:
order_id | int | Order Identifier from BaseLinker order manager |
series_id | int | Series numbering identifier |
vat_rate | string|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.
status | varchar(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_id | int | ID of the added invoice. |
Sample
Input data:Output data:
A sample request in PHP: