API documentation
Method list
Test your request
Changelog


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
manufacturer_idintManufacturer ID provided in case of an update. Should be blank when creating a new manufacturer.
namevarchar(200)Manufacturer name (deprecated, use manufacturer_name instead)
manufacturer_namevarchar(200)Manufacturer name
manufacturer_phototextManufacturer 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_urlvarchar(200)Manufacturer URL address
manufacturer_streetvarchar(200)Manufacturer street
manufacturer_postcodevarchar(20)Manufacturer postal code
manufacturer_cityvarchar(80)Manufacturer city
manufacturer_statevarchar(35)Manufacturer state
manufacturer_country_codevarchar(2)Manufacturer country code (2-letter ISO code, e.g. "PL", "DE")
manufacturer_emailvarchar(100)Manufacturer e-mail
manufacturer_phonevarchar(40)Manufacturer phone number



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
manufacturer_idintID of a created or updated manufacturer



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