v1Ressources/Locations/postCréer un établissement
Créer un établissement
Crée un nouvel établissement pour un client existant et le soumet pour publication.
post
locations:write/api/v1/locationsCorps de la requête
clientIdstringobligatoire
ID du client sous lequel créer cet établissement. Retrouvez-le avec GET /api/v1/clients.
namestringobligatoire
Le nom commercial de l'établissement.
countryIsostringobligatoire
Code pays ISO, par ex. US.
streetstringfacultatif
Adresse postale.
street1stringfacultatif
Adresse postale, ligne 2.
citystringfacultatif
Ville.
stateIsostringfacultatif
Code de l'état ou de la région.
postalCodestringfacultatif
Code postal.
phonestringfacultatif
Numéro de téléphone.
additionalPhonesarray of stringfacultatif
Tout numéro de téléphone supplémentaire en plus du principal.
websitestringfacultatif
URL du site web.
categoryIdstringfacultatif
Id de catégorie générale — à rechercher avec GET /api/v1/locations/categories.
categoryNamestringfacultatif
Nom d'affichage de la catégorie générale.
publisherCategoriesobjectfacultatif
Catégories par publisher, une par publisher, chacune un { id, name } consulté via GET /api/v1/locations/publisher-categories.
googleobjectfacultatif
idstringfacultatif
namestringfacultatif
facebookobjectfacultatif
idstringfacultatif
namestringfacultatif
appleobjectfacultatif
idstringfacultatif
namestringfacultatif
bingobjectfacultatif
idstringfacultatif
namestringfacultatif
additionalCategoriesarray of objectfacultatif
Jusqu'à 9 catégories supplémentaires, chacune un { id?, name }. Un simple name est accepté et son id est résolu à partir du catalogue de catégories lorsqu'une correspondance existe. Recherchez les identifiants vous-même avec GET /api/v1/locations/categories.
idstringfacultatif
namestringfacultatif
descriptionstringfacultatif
Une courte description de l'entreprise.
tagsarray of stringfacultatif
Étiquettes internes pour votre propre organisation — non affichées publiquement.
latitudenumberfacultatif
Latitude, en degrés décimaux. Dérivée automatiquement de l'adresse si omise.
longitudenumberfacultatif
Longitude, en degrés décimaux. Dérivée automatiquement de l'adresse si omise.
customFieldsobjectfacultatif
Valeurs de champs personnalisés à définir sur cet établissement, indexées par id de champ.
Réponse
dataobjectfacultatif
locationIdstringfacultatif
ID de l'établissement nouvellement créé.
Erreurs
400Il manque un paramètre requis à la requête, ou elle est invalide.
401Clé API manquante, invalide, expirée ou révoquée.
403La clé n'a pas la permission requise, ou n'est pas autorisée pour ce client/établissement.
404La ressource est introuvable, ou n'appartient pas à votre agence.
422Il manque un paramètre requis à la requête, ou elle est invalide.
429Trop de requêtes. Réessayez après le nombre de secondes indiqué dans l'en-tête Retry-After.
post/api/v1/locations
Votre clé API
Corps de la requête*
{
"data": {
"locationId": "loc_456"
}
}Guides qui utilisent cet endpoint
- What Is a Business Listings API?A business listings API manages a business's name, address, hours and more across many publishers at once, with sync status and duplicate detection built in.
- Business Listings API: Complete Developer GuideHow a business listings API works and how to create, update, sync and monitor locations across Google, Apple, Bing and directories with the Synup API.
- Create a Location with the Synup APICreate a business location under a client in one POST, get back a locationId, and know which fields matter and which can wait.
- How to Build a Reputation Management PlatformArchitecture and API calls for a multi-client reputation management platform on Synup: review ingestion, reply workflows, invites, widgets and reporting.
- How to Add Local Marketing Features to Your SaaSAdd listings management, reviews, Google posts, profile analytics, rank tracking and AI visibility to a SaaS product with the Synup API, tenant by tenant.
- How to Manage Thousands of Business Locations via APIDesign a sync job for thousands of locations on the Synup API with cursor pagination, tags, rate-limit handling, an id map and rollup health checks.
- How to Add Local Marketing Functionality to Vertical SaaSAdd local marketing to a vertical SaaS by mapping existing customers to clients and locations, and shipping only the features your niche needs.