Working with Suppliers

Create a new supplier

Create a new supplier record in Anvyl by making an HTTP POST request to the “​​Create new supplier record” endpoint.

The request should contain at least a “name” to successfully create a new Supplier record in Anvyl. "Address" is not required but it is recommended to populate this field to capture the address for the supplier.

An example request looks like the following:
POST /suppliers

{
   "supplier": {
       "name": "string"
   }
}

Create a new supplier with contacts

If you’d like to create contacts within each supplier, then you will need to create a new Contact record in Anvyl by making an HTTP POST request to the “​​Create new contact record” endpoint.

The request should contain at least a “name”, “email” and the “supplier id” to successfully create a new Contact record in Anvyl.

An example request looks like the following:
POST /suppliers/{supplier_id}/contacts

{
   "contact": {
       "name": "string",
       "email": "string"
   }
}

What’s Next