API Adresses
Endpoints pour la gestion des adresses des clients de votre application.
SDK: client.address
Endpoints
Lister les adresses
Liste toutes les adresses avec filtrage optionnel par client ou plateforme.
POST /app/{appId}/address/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
customerId | string | Non | Filtrer par ID client |
plateform | string | Non | Filtrer par plateforme: STORE, TRANSPORT, RESTAURATION, MULTI_SERVICE, E_LEARNING |
curl -X POST https://api.applite.ai/app/{appId}/address/list \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"customerId": "cust_123"
}'Créer une adresse
Crée une nouvelle adresse pour un client.
POST /app/{appId}/address/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
customerId | string | Oui | ID du client |
name | string | Oui | Nom de l’adresse (ex: “Maison”, “Bureau”) |
address | string | Oui | Adresse principale |
firstName | string | Non | Prénom |
lastName | string | Non | Nom de famille |
phone | string | Non | Numéro de téléphone |
email | string | Non | Adresse email |
address2 | string | Non | Complément d’adresse |
city | string | Non | Ville |
zip | string | Non | Code postal |
state | string | Non | État/Région |
country | string | Non | Pays (code ISO) |
longitude | number | Non | Longitude GPS |
latitude | number | Non | Latitude GPS |
plateform | string | Non | Type de plateforme |
curl -X POST https://api.applite.ai/app/{appId}/address/create \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"customerId": "cust_123",
"name": "Bureau",
"address": "Avenue des Entreprises 45",
"city": "Abidjan",
"country": "CI",
"longitude": -4.0083,
"latitude": 5.3364
}'Mettre à jour une adresse
Met à jour les informations d’une adresse existante.
POST /app/{appId}/address/{id}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom de l’adresse |
firstName | string | Non | Nouveau prénom |
lastName | string | Non | Nouveau nom de famille |
phone | string | Non | Nouveau téléphone |
email | string | Non | Nouvel email |
address | string | Non | Nouvelle adresse principale |
address2 | string | Non | Nouveau complément |
city | string | Non | Nouvelle ville |
zip | string | Non | Nouveau code postal |
state | string | Non | Nouvel état/région |
country | string | Non | Nouveau pays |
longitude | number | Non | Nouvelle longitude |
latitude | number | Non | Nouvelle latitude |
curl -X POST https://api.applite.ai/app/{appId}/address/{addressId}/edit \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key",
"name": "Nouveau Bureau",
"address": "Boulevard Central 100"
}'Supprimer une adresse
Supprime une adresse.
POST /app/{appId}/address/{id}/deleteRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
curl -X POST https://api.applite.ai/app/{appId}/address/{addressId}/delete \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your_api_key"
}'Last updated on