# system.kanoa.inventory.addSupplier(supplierInfo, userId)

Adds a new supplier record to the inventory system. 
The caller supplies a dictionary of supplier attributes (account number, contact details, and status) along with the id of the user performing the action for audit purposes. 
On success, the newly generated supplier id is returned; on failure, an error message is returned instead.

---
### Parameters
**supplierInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - accountNumber</td><td>String</td><td></td></tr>	
 	<tr><td> - contactName</td><td>String</td><td></td></tr>	
 	<tr><td> - email</td><td>String</td><td></td></tr>	
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - phone</td><td>String</td><td></td></tr>	
 	<tr><td> - supplierName</td><td>String</td><td></td></tr>	
 	<tr><td> - websiteUrl</td><td>String</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**supplierId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
supplierInfo = {
					'supplierName': 'Grainger',
					'accountNumber': 'GRA-10492',
					'contactName': 'Dana Whitfield',
					'email': 'dana.whitfield@grainger.com',
					'phone': '800-555-0142',
					'websiteUrl': 'https://www.grainger.com',
					'enabled': True
				}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
supplierId, message = system.kanoa.inventory.addSupplier(supplierInfo, userId)
print supplierId, message
```
