addInventoryManufacturer
The method allows you to add a manufacturer to the BaseLinker catalog. Adding a manufacturer with the same identifier again, updates the previously saved manufacturer
Input parameters
Output data:
A sample request in PHP:
| manufacturer_id | int | Manufacturer ID provided in case of an update. Should be blank when creating a new manufacturer. |
| name | varchar(200) | Manufacturer name (deprecated, use manufacturer_name instead) |
| manufacturer_name | varchar(200) | Manufacturer name |
| manufacturer_photo | text | Manufacturer photo (e.g. a logo). You can submit a photo in binary format, or a link to an external photo. In case of binary format, the photo should be coded in base64 and at the very beginning of the photo string the prefix "data:" should be provided. In case of link to an external photo, the prefix "url:" must be given before the link. Providing an empty string will delete the photo. |
| manufacturer_url | varchar(200) | Manufacturer URL address |
| manufacturer_street | varchar(200) | Manufacturer street |
| manufacturer_postcode | varchar(20) | Manufacturer postal code |
| manufacturer_city | varchar(80) | Manufacturer city |
| manufacturer_state | varchar(35) | Manufacturer state |
| manufacturer_country_code | varchar(2) | Manufacturer country code (2-letter ISO code, e.g. "PL", "DE") |
| manufacturer_email | varchar(100) | Manufacturer e-mail |
| manufacturer_phone | varchar(40) | Manufacturer phone 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 |
| manufacturer_id | int | ID of a created or updated manufacturer |
Sample
Input data:Output data:
A sample request in PHP: