Search by Name (Exact Match)
Find a supplier by its exact name.Endpoint
Path Parameters
The exact name of the supplier to search for
Response
Returns a single supplier object.Unique identifier for the supplier
Name of the supplier
Contact email address
Contact phone number
Whether the supplier is currently active
Example Request
Example Response
Status Codes
200 OK- Supplier found404 Not Found- No supplier with the specified name exists
Search by Name (Contains)
Find all suppliers whose name contains a specific substring.Endpoint
Path Parameters
The substring to search for in supplier names (case-insensitive)
Response
Returns an array of matching supplier objects.Example Request
Example Response
Status Codes
200 OK- Search completed (returns empty array if no matches)
Search by Contact Email
Find a supplier by their contact email address.Endpoint
Path Parameters
The contact email address to search for
Response
Returns a single supplier object.Unique identifier for the supplier
Name of the supplier
Contact email address
Contact phone number
Whether the supplier is currently active
Example Request
Example Response
Status Codes
200 OK- Supplier found404 Not Found- No supplier with the specified email exists
Search Tips
URL Encoding
When searching by name or email, ensure special characters are properly URL-encoded:- Spaces:
%20or+ @symbol:%40- Special characters: Use appropriate URL encoding
Case Sensitivity
- Exact name search (
/search/name/{name}): Case-sensitive - Contains search (
/search/contains/{name}): Case-insensitive - Email search (
/search/email/{email}): Typically case-insensitive
Search Strategies
- Find a specific supplier: Use exact name or email search
- Browse similar suppliers: Use the contains search with a keyword
- List active suppliers: Use the active suppliers endpoint
- Get all suppliers: Use the list endpoint