GET client-brand-conflict

A lookup call to retrieve conflicts for clients or brands. It will return all similar approved clients and/or brands.

INPUT to fetch conflicts for clients

As this method is accessed via a GET request there is no HTTP body so options can be specified via the URL.

parameter type description
client_name string a client name for which we want to find conflicts

INPUT to fetch conflicts for brands

As this method is accessed via a GET request there is no HTTP body so options can be specified via the URL.

parameter type description
client_id int a client id for which we will search brands
brand_name string a brand name for which we want to find conflicts

OUTPUT - JSON sample

For both clients and brands JSON structure will be the same.
If accessing GET /api/client-brand-conflict/client_name/name or GET /api/client-brand-conflict/client_id/2327/brand_name/name the following JSON would be returned:

{
    "data": [{
            "id": null,
            "name": "Name 1"
        },
        {
            "id": 5,
            "name": "Name 2"
        }
    ]
}
        

If client/brand is not approved yet then its id will be set to NULL