addInventoryPriceGroup
The method allows to create a price group in BaseLinker storage. Providing a price group ID will update the existing price group. Such price groups may be later assigned in addInventory method.
Input parameters
Output data:
A sample request in PHP:
price_group_id | int | Price group identifier |
name | varchar(100) | Name of the price group |
description | text | Price group description |
currency | char(3) | 3-letter currency symbol e.g. PLN, EUR |
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 |
price_group_id | int | The ID number of added or updated price group. |
Sample
Input data:Output data:
A sample request in PHP: