...
POST {url}/localtrac/store-locator/registerWebhook | |||
---|---|---|---|
Cet route enregistre l'URL du webhook du site du client. Chaque fois, l'emplacement est une mise à jour, LOCALTRAC enverra une requête POST à l'URL fournie, en envoyant le paramètre «secret» égal à md5 («webhookSalt»). LOCALTRAC n'envoie pas les champs modifiés ni la liste des emplacements modifiés. Il s'agit simplement d'un signal indiquant que certains emplacements ont été mis à jour. Vous pouvez utiliser la route GET «store-locator / locations» et comparer «lastUpdated» pour savoir quel emplacement a été mis à jour. | |||
Requête | |||
HeadersEn-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
businessUuid | Uuid de l’entreprise pour enregistrer le webhook. L’option localisateur de succursale doit etre activer pour l’entreprise. | ||
webhookUrl | URL sur le serveur / site web client à appeler lorsqun emplacement est mis à jour. | ||
webhookSalt | Chaîne aléatoire qui serait encodée en md5 et transmise avec POST comme paramètre «secret». | ||
Réponse (200) - Succès | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (400) - Erreur de validation | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditCe scénario se produit si vous avez envoyé un businessUuid non existant (ou si Store Localtor n'est pas activé pour cette entreprise). | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/locations/{businessUuid} | |||
---|---|---|---|
This route will return the list locations for provided business, including all information about locationCette route retournera la liste des succursales del'entreprise fournie, y compris toutes les informations sur la succursale. | |||
Requête | |||
HeadersEn-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
data | Array of locationsliste des susccursales | ||
data[0].uuidLOCALTRAC | Identifiant unique identifier (uuid) of the location. This is the uuid you should use for any further request associated with the location.de la succursale dans LOCALTRAC. Il s'agit de l'uuid que vous devez utiliser pour toute autre demande nécessitant un <location_uuid> dans l'url. | ||
data[0].active | Boolean value representing the status of the location, true for active and false for inactive. When a location is set as inactive, it is not monitored within any directoriesValeur booléenne représentant l'état de l'emplacement, true pour active et false pour inactive. Lorsqu'un emplacement est défini comme inactif, il n'est surveillé dans aucun répertoire. | ||
data[0].lastUpdated | Timestamp of the last update on any location’s fieldde la dernière mise à jour sur le champ de n'importe quel emplacement | ||
data[0].urls | An associative array for websites and social media URLs. Supported keys: website: Main website of the company or locationUn tableau contenant les sites Web et les URL de médias sociaux. Clés prises en charge:
| ||
data[0].payments | An associative array of payment methods. The value is a Boolean, true when payment method is accepted or false when it’s not. Supported keysUn tableau contenant la liste des modes de paiement. La valeur est une valeur booléenne, true lorsque le mode de paiement est accepté ou false dans le cas contraire. Clés prises en charge:
| ||
data[0].name | Array of all the location name translations. Each row of the sub array is an associative value of Un tableau des traductions de noms de lieux. Chaque ligne du sous-tableau est une valeur associative de <language>: <name>. A Keep in mind, this route returns “store locator name” if it’s not empty. If it’s empty, it returns general “name” of locationCe route renvoie par default le nom de la succursale inscrit dans la section store locator de la fiche de la succursale, si la valeur est vide «nom» général de l'emplacement sera retournée. | ||
data[0].description | Array of all the location descriptions. Each row of the sub array is an associative value of Un tableau de toutes les descriptions d'emplacement. Chaque ligne du sous-tableau est une valeur associative de <language>: <description>. | ||
data[0].communication | An associative array for the location contact information. Supported keysUn tableau de toutes les informations de comtact. Clés prises en charge:
| ||
data[0].storeCodeExternal id given by the client when the location was created or when imported in LOCALTRAC from | a directoryIdentifiant externe donné par le client lors de la création de l'emplacement ou lors de l'importation dans LOCALTRAC à partir d'un répertoire. | ||
data[0].localeLocale of the location. (specified upon creation and used with different directories) | Langue de la succursale <locale>: description <description>. Nous prenons actuellement en charge que <locale> fr_CA et en_CA. | ||
data[0].address | Array containing the full address. Keep in mind, this route returns “store locator address line 1/2” if it’s not empty. If it’s empty, it returns general “address” of location. | data[0].storeLocator | An associative array for the location store locator related information. Supported keys: tags: array of location’s tags categories: array of location’s categories Un tableau contenant l'adresse complète. Cette route renvoie "Adresse ligne 1 et 2" de la succursale provenant du store locator. S'il est vide, "adresse line 1 et 2" générale de l'emplacement. |
data[0].storeLocator | Un tableau des informations completentaire au localisateur de magasin d'emplacement. Clés prises en charge:
| ||
data[0].schedulesArray of the location’s regular opening hours | Un tableau des heures d'ouverture régulières de la succursale. | ||
data[0].scheduleExceptions | Array of the location’s schedule exceptions | Un tableau des heures d’ouverture d'exceptions de la succursale. | |
data[0].averageRatingAverage | Google rating for the current year for this locationNote moyenne Google pour l'année en cours pour cet emplacement. | ||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/businessTags/{businessUuid} | |||
---|---|---|---|
This route will return the list of Store Locator tags, associated to business | |||
Requête | |||
Headers Cet route renvoit la liste des étiquettes/tags associées à l'entreprise. | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the tag. This is the uuid you should use for any further request to update de l’etiquette. Il s'agit de l'uuid que vous devez utiliser pour toute autre demande nécessitant la mise a jour d’un tag. | ||
translationsAn array of translations of the name of the tag. For the moment only “en” and “fr” languages are supported. Languages are optional (tag can have only one language | Un tableau de traductions du nom de la étiquette/tag. Pour le moment, seules les langues «en» et «fr» sont prises en charge. Les langues sont facultatives (la balise ne peut avoir qu'une seule langue). | ||
translations.enEnglish translation of the name | Traduction anglaise de l’étiquette/tag. | ||
translations.frFrench translation of the name | Traduction francaise de l'étiquette/tag. | ||
slugAn array of slug for the translations of the name of the tag. (automatically generated on insert/update of | the Un tableau de slug pour les étiquettes/tags.. (généré automatiquement lors de l'insertion / mise à jour du tag). | ||
slug.en | Slug for English translationpour traduction anglaise de l’étiquette/tag. | ||
slug.fr | Slug for French translationpour la traduction francaise de l’étiquette/tag. | ||
Réponse (403) - Accès interdit | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/businessTags/{businessUuid} | |||
---|---|---|---|
This route will set the list of Cet route définit la liste des balises Store Locator tags, associated to business. (It will clear all the previous data and save the provided list, associées à l'entreprise. (Cela effacera toutes les données précédentes et enregistrera la liste fournie) | |||
Requête | |||
HeadersEn-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
tagsArray of tags to save | Un tableau de étiquettes/tags a sauvegarder. | ||
tags[0].uuid (optional) | Uuid of the de l'étiquette/tag, received from GET route. If provided, tag will be updated (translations will change, uuid stays the samereçu de la route GET. Si elle est fournie, la balise sera mise à jour (les traductions changeront, uuid restera le même). | ||
tags[0].translationsArray | of translations of the tag. Only “en” and “fr” are supported nowUn tableau de traductions de la l'étiquette/tag. Seuls «en» et «fr» sont désormais pris en charge. | ||
tags[0].translations.en (optional) | English translation of the nameSlug pour traduction anglaise de l’étiquette/tag. | ||
tags[0].translations.fr (optional) | French translation of the nameSlug pour traduction francaise de l’étiquette/tag. | ||
Réponse (200) - Succès | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
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 result | HeadersCe 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 uuid of the tag | HeadersCe scénario se produit si vous avez envoyé un uuid non existant de la balise. | ||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing businessUuidCe scénario se produit si vous avez envoyé businessUuid inexistant. | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/businessTags/{businessUuid}/add | |||
---|---|---|---|
This route will add tag to business and associate it to location (if providedCet itinéraire ajoutera une étiquette/tag à l'entreprise et l'associera à l'emplacement (si fourni). | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
locationUuid (optional) | Uuid of location. Newly created tag will be associated to provided location. | ||
translations | Array of translations of the tag. Only “en” and “fr” are supported now. | ||
translations.en (optional) | English translation of the namede la succursale. L'étiquette/tag nouvellement créée sera associée à l'emplacement fourni. | ||
translations | Tableau de traductions de la balise. Seuls «en» et «fr» sont pris en charge. | ||
translations.en (optional) | Traduction anglaise du nom. | ||
translations.fr (optional) | French translation of the nameTraduction francaise du nom. | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the tag. This is the uuid you should use for any further request to update tag or associate it to locationsde l’étiquette/tag dans LOCALTRAC. Il s'agit de l'uuid que vous devez utiliser pour toute autre demande de mise a jours des étiquettes/tags d’une succursale. | ||
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 result | HeadersCe 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 interditCe scénario se produit si vous avez envoyé businessUuid ou locationUuid non existant | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/locationTags/{locationUuid} | |||
---|---|---|---|
This route will return the list of Store Locator tags, associated to location | |||
Requête | |||
HeadersCet itinéraire renverra la liste des étiquettes/tagsStore Locator, 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 | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuid | LOCALTRAC unique identifier (uuid) of the tag. This is the uuid you should use for any further request to update tag. | translations | An array of translations of the name of the tag. For the moment only “en” and “fr” languages are supported. Languages are optional (tag can have only one languageUuid de la succursale. L'étiquette/tag nouvellement créée sera associée à l'emplacement fourni. |
translations | Un tableau de traductions des étiquettes/tags. Pour le moment, seules les langues «en» et «fr» sont prises en charge. Les langues sont facultatives (la balise ne peut avoir qu'une seule langue). | ||
translations.enEnglish translation of the name | Traduction anglaise du nom. | ||
translations.frFrench translation of the name | Traduction francaise du nom. | ||
slugAn array of slug for the translations of the name of the tag. (automatically generated on insert/update of the tag | Un tableau de slug pour les traductions du nom des étiquettes/tags (généré automatiquement lors de l'insertion / mise à jour). | ||
slug.en | Slug for English translationpour traduction anglaise de l’étiquette/tag. | ||
slug.fr | Slug for French translationpour traduction francaise de l’étiquette/tag. | ||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/locationTags/{locationUuid} | |||
---|---|---|---|
This route will set the list of Cet route définira la liste des balises Store Locator tags, associated to location. (It will clear all the previous data and save the provided list, associées à la succursale. (Cela effacera toutes les données précédentes et enregistrera la liste fournie) | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
tagsArray of tags to associate to location | Un tableau d’étiquette/tag à associer à la succursale. | ||
tags[0].uuid | Uuid of the tag, to associateIdentifiant unique de l'étiquette/tag à associer. | ||
Réponse (200) - Succès | |||
HeadersEn-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (400) - Erreur de validationThis scenario happens if you sent any content who fails the minimum validation process. For instance, typo in parameter name will lead to the following result | HeadersCe scénario se produit si vous avez envoyé un contenu qui échoue au processus de validation minimum. Par exemple, une faute de frappe dans le nom du paramètre 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 uuid of the tag | HeadersCe scénario se produit si vous avez envoyé un uuid d'étiquette/tag non existant | ||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing locationUuidCe scénario se produit si vous avez envoyé un identifiant unique de succursale non existant (locationUuid). | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/businessCategories/{businessUuid} | |||
---|---|---|---|
This route will return the list of Cette route renverra la liste des catégories de Store Locator categories, associated to business, associées à l'entreprise. | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier de la catégorie (uuid) of the category. This is the uuid you should use for any further request to update category. | 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 languagedans LOCALTRAC . C'est l'uuid que vous devez utiliser pour toute autre demande de mise à jour de la catégorie. |
translations | Un tableau de traductions du nom de la catégorie. Pour le moment, seules les langues «en» et «fr» sont prises en charge. Les langues sont facultatives (la catégorie ne peut avoir qu'une seule langue). | ||
translations.enEnglish translation of the name | Traduction anglaise du nom de la catégorie. | ||
translations.frFrench translation of the name | Traduction francaise du nom de la catégorie. | ||
slugAn array of slug for the translations of the name of the category. (automatically generated on insert/update of the category | Un tableau de slug pour les traductions du nom de la catégorie. (généré automatiquement lors de l'insertion / mise à jour de la catégorie). | ||
slug.en | Slug for English translationpour la traduction anlaise de la catégorie. | ||
Slug for French translationpour la traduction francaise de la catégorie. | |||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/businessCategories/{businessUuid} | |||
---|---|---|---|
This route will set the list of Cette route définira la liste des catégories de Store Locator categories, associated to business. (It will clear all the previous data and save the provided list) | |||
Requête | |||
Headers, associées à l'entreprise. (Cela effacera toutes les données précédentes et enregistrera la liste fournie). | |||
Requête | |||
En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
categoriesArray of categories to save | Un tableau de catégories à enregistrer | ||
categories[0].uuid (optional) | Uuid of the category, received from GET route. If provided, category will be updated (translations will change, uuid stays the samede la catégorie, reçu de la route GET. Si elle est fournie, la catégorie sera mise à jour (les traductions changeront, uuid reste le même). | ||
categories[0].translationsArray of translations of the category. Only “en” and “fr” are supported now | Liste (array) des traductions des categories. Seules les langues «en» et «fr» sont prises en charge. | ||
categories[0].translations.en (optional) | English translation of the nameTraduction anglaise du nom. | ||
categories[0].translations.fr (optional) | French translation of the nameTraduction francaise du nom. | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
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 result | HeadersCe 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 uuid of the category | |||
Headers | |||
Ce scénario se produit si vous avez envoyé un uuid non existant de la catégorie | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing businessUuidCe scénario se produit si vous avez envoyé businessUuid inexistant | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/businessCategories/{businessUuid}/add | |||
---|---|---|---|
This route will add category to business and associate it to location (if providedCette route ajoute une catégorie à l'entreprise et l'associera à l'emplacement (si fourni). | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
locationUuid (optional) | Uuid of location. Newly created category will be associated to provided locationIdentifiant unique (Uuid) de la succursale. La catégorie nouvellement créée sera associée à la succursale indiqué. | ||
translationsArray of translations of the categories. Only “en” and “fr” are supported now | Tableau de traductions des catégories. Seuls «en» et «fr» sont pris en charge. | ||
translations.en (optional) | English translation of the nameTraduction anglaise du nom. | ||
translations.fr (optional) | French translation of the nameTraduction francaise du nom. | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the category. This is the uuid you should use for any further request to update category or associate it to locationsde 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 result | HeadersCe 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 | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the category. This is the uuid you should use for any further request to update category or associate it to locationsde 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 succursales. | ||
translationsAn 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 | Un tableau (array) de traductions du nom de la catégorie. Pour le moment, seules les langues «en» et «fr» sont prises en charge. Les langues sont facultatives (la catégorie ne peut avoir qu'une seule langue). | ||
translations.enEnglish translation of the name | Traduction anglaise de la catéorie. | ||
translations.frFrench translation of the name | Traduction francaise de la catégorie. | ||
slugAn array of slug for the translations of the name of the category. (automatically generated on insert/update of the category | Un tableau(array) de slug pour les traductions du nom de la catégorie. (généré automatiquement lors de l'insertion / mise à jour de la catégorie). | ||
slug.en | Slug for English translationde la traduction anglaise de la catégorie. | ||
slug.fr | Slug for French translationde la traduction anglais de la catégorie. | ||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
POST {url}/localtrac/store-locator/locationCategories/{locationUuid} | |||
---|---|---|---|
This route will set the list of Cette route définit la liste des catégories de Store Locator categories, associated to location. (It will clear all the previous data and save the provided list, associées à la succursale. (Cela effacera toutes les données précédentes et enregistrera la liste fournie) | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
categoriesArray of categories associate to location | Un tableau (array) de catégories associé à la succursale. | ||
categories[0].uuid | Uuid of the category, to associateIdentifiant unique(Uuid) de la catégorie, à associer. | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (400) - Erreur de validationThis scenario happens if you sent any content who fails the minimum validation process. For instance, typo in parameter name will lead to the following result | HeadersCe scénario se produit si vous avez envoyé un contenu qui échoue au processus de validation minimum. Par exemple, une faute de frappe dans le nom du paramètre 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 uuid of the category | |||
Headers | |||
Ce scénario se produit si vous avez envoyé un uuid non existant de la catégorie | |||
En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing locationUuidCe scénario se produit si vous avez envoyé un emplacement non existant | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/image/{locationUuid} | |||
---|---|---|---|
This route will return the list of Cette route renvoit la liste des images de Store Locator images, associated to location, associées à l'emplacement | |||
Requête | |||
HeadersEn-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the store locator image for this locationde l'image de localisation de magasin pour cet emplacement. | ||
urlUrl | to original imageURL de l'image originale | ||
thumbnailUrl | to resized image (95x95 thumbnailURL de l'image redimensionnée (vignette 95x95). | ||
mimeImage | Type d’image (mime type) | ||
descriptionImage description | Description de l’image | ||
createdAt | Timestamp | ||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...
PUT {url}/localtrac/store-locator/image | |||
---|---|---|---|
This route will assign an image to location as store locator imageCette route attribut une image à la succursale. | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Body (Exemple) | |||
| |||
image_uuid | Uuid of Identifiant unique (Uuid) de l'image | ||
location_uuidUuid of location | Identifiant unique (Uuid) de la succursale | ||
descriptionImage description | Description de l’image | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
uuidLOCALTRAC | Identifiant unique identifier (uuid) of the store locator image. de l'image de la succursale | ||
urlUrl | to original imageURL de l'image d'origine | ||
thumbnailUrl | to resized image (95x95 thumbnailURL de l'image redimensionnée (vignette 95x95). | ||
Réponse (400) - Erreur de validationThis scenario happens if you sent any content who fails the minimum validation process. For instance, typo in parameter name will lead to the following result | HeadersCe scénario se produit si vous avez envoyé un contenu qui échoue au processus de validation minimum. Par exemple, une faute de frappe dans le nom du paramètre 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 Ce scénario se produit si vous avez envoyé un image_uuid non existant | |||
Content-Type | application/json | ||
Body | |||
|
...
DELETE {url}/localtrac/store-locator/image/{imageUuid} | |||
---|---|---|---|
This route will delete store locator imageCette route supprimera l'image de localisation de magasin. | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interditThis scenario happens if you sent non-existing imageUuidCe scénario se produit si vous avez envoyé une imageUuid non existante | |||
Content-Type | application/json | ||
Body | |||
|
...
GET {url}/localtrac/store-locator/{locationUuid}/fields | |||
---|---|---|---|
This route will return the list of Cette route renvoit la liste des champs Store Locator fields, associated to location. For the moment, only “externalId” is supported as a custom field, associés à la succursale. Pour le moment, seul «externalId» est pris en charge en tant que champ personnalisé. | |||
Requête | |||
Headers En-têtes | |||
Authorization | <token> jeton obtenu lors de l'authentification | ||
Accept | application/json | ||
Réponse (200) - Succès | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
| |||
Réponse (403) - Accès interdit | |||
Headers En-têtes | |||
Content-Type | application/json | ||
Body | |||
|
...