By making use of the Punchmark POS Vendors feature, it allows clients to map the vendors named in their POS/Inventory Systems to the brands promoted in their websites. Often vendor/brand names differ between a POS/Inventory System and a client’s website. The job of this API is to maintain a list of the vendor/brand names from the POS/Inventory System. Once the brand list exists, the client will be able to go into SiteManager and map each POS brand to the corresponding website brand.
...
Once vendors are mapped, requests to the Product Import API can specify POS/Inventory System vendor names, and imported products will automatically be attributed to the appropriate website brands.
...
Code Block |
---|
https://{DOMAIN}/api/async.php?t=sitemanager&m=pos_vendors&a=get_all_pos_vendors&authKey={AUTHKEY} |
Return Values
The API will return JSON in the format
{
”success”:true|false,
”error”:true|false
}
SUCCESS
The return value for success will contain true
in the success property.
Example
Code Block |
---|
{
"success": true,
"error": false,
"msg": "4 rows created",
"rowsCreated": 4
} |
ERRORS
If the “error” property is true
, a msg
property will be included with clues as to what the error is.
Example
Code Block |
---|
{
"success": false,
"error": true,
"msg": "Missing parameter."
} |