addInventoryPurchaseOrder
The method allows you to create a new purchase order in BaseLinker storage. Orders are created as drafts by default.
Input parameters
Output data:
A sample request in PHP:
warehouse_id | int | Warehouse identifier |
supplier_id | int | Supplier identifier |
payer_id | int | Payer identifier |
currency | varchar(3) | Order currency (e.g. EUR, USD) |
name | varchar(80) | (optional) Order name |
notes | text | (optional) Order description/notes |
invoice_no | varchar(50) | (optional) Related invoice number |
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 |
order_id | int | Created purchase order identifier |
document_number | varchar(50) | Generated document number |
Sample
Input data:Output data:
A sample request in PHP: