...
ERP systems recognise their vendors/suppliers with a code which is commonly referred to as vendor code. This API can be used to create vendors corresponding to the ERP vendors in Assure.
Request body
Code Block | ||
---|---|---|
| ||
{ "vendorCode": "ErpVendorCode", "name": "name", "isExcessGrnAllowed": true, "address": { "name": "vendor", "line1": "address line 1", "line2": "address line 2", "line3": "address line 3", "city": "Bengaluru", "state": "Karnataka", "zip": "560076", "country": "INDIA", "email": "email.com", "phone": "9999999999" } } |
Code Block | ||
---|---|---|
| ||
curl --location --request POST 'https://staging-oltp.increff.com/assure-magic2/master/vendors' \ --header 'authusername: TABLEZ-1200027452' \ --header 'authpassword: 50791475-cf82-4c8c-9308-701b63317b32' \ --header 'Content-Type: application/json' \ --data-raw '{ "vendorCode": "B000005", "name": "TABLEZ003", "address": { "name": "tablez", "line1": "addr1", "line2": "addr2", "line3": "addr3", "city": "BANGALORE", "state": "KARNATAKA", "zip": "452014", "country": "INDIA", "email": "abc@tablez.com", "phone": "9999999999" } }' |
Parameter Name | Data Type | Description | Mandatory |
| String | Code used by ERP to identify vendors | yes |
| String | Name of vendor | yes |
| boolean | isExcessGrnAllowed for the supplier | No |
| Object | Address of vendor | yes |
| String | Name of vendor | yes |
| String | 1st line of vendor’s address | yes |
| String | 2nd line of vendor’s address | no |
| String | 3rd line of vendor’s address | no |
| String | City of vendor | yes |
| String | State of vendor | yes |
| String | ZIP/Pin code of vendor | yes |
| String | Country of vendor | yes |
| String | Email of vendor | yes |
| String | Phone Number of vendor | no |
...
This API can be used to update vendors which were already created by Create Vendor Master API. Except vendorCode, all fields are updatable.
Request
{
"vendorCode":"ErpVendorCode",
...
This API returns vendor master data available for a vendor code in Assure.
Request
EmptyBody
Response
{
"vendorCode":"ErpVendorCode",
...