...
POST {url}/localtrac/store-locator/businessCategories/{businessUuid}/add | |||
---|---|---|---|
Cette route ajoute une catégorie à l'entreprise et l'associera à l'emplacement (si fourni). | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
locationUuid (optional) | Identifiant unique (Uuid) de la succursale. La catégorie nouvellement créée sera associée à la succursale indiqué. | ||
translations | Tableau de traductions des catégories. Seuls «en» et «fr» sont pris en charge. | ||
translations.en (optional) | Traduction anglaise du nom. | ||
translations.fr (optional) | Traduction francaise du nom. | ||
Réponse (200) - Succès | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuid | Identifiant unique (uuid) de la catégorie. C'est l'uuid que vous devez utiliser pour toute autre demande de mise à jour de la catégorie ou de l'associer à des emplacements. | ||
Réponse (400) - Erreur de validationThis scenario happens if you sent any content who fails the minimum validation process. For instance, failing to provide translations will lead to the following resultCe scénario se produit si vous avez envoyé un contenu qui échoue au processus de validation minimum. Par exemple, ne pas fournir de traductions conduira au résultat suivant | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing businessUuid or locationUuidCe scénario se produit si vous avez envoyé businessUuid ou locationUuid non existant | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/locationCategories/{locationUuid} | |||
---|---|---|---|
This route will return the list of Cette route renverra la liste des catégories de Store Locator categories, associated to location, associées à l'emplacement | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuid | LOCALTRAC unique identifier (uuid) of the category. This is the uuid you should use for any further request to update category or associate it to locations. | ||
translations | An array of translations of the name of the category. For the moment only “en” and “fr” languages are supported. Languages are optional (category can have only one language). | ||
translations.en | English translation of the name | ||
translations.fr | French translation of the name | ||
slug | An array of slug for the translations of the name of the category. (automatically generated on insert/update of the category). | ||
slug.en | Slug for English translation | ||
slug.fr | Slug for French translation | ||
Réponse (403) - Accès interdit | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...