Développeurs · API v1.4.0

Intégrez Navelya partout, dans votre langage

52 opérations REST : vols, hôtels, activités, commandes, devis, clients, encaissement en ligne, Freeze, documents PDF, wallet et 24 événements webhooks signés. SDK officiels, spécification OpenAPI pour tous les langages, et kits prêts à coller sur votre site.

Démarrer en 3 minutes

  1. 1. Créez une clé

    Espace agence › Paramètres › Développeurs (API). Plan Business ou module API.

  2. 2. Téléchargez un SDK

    JavaScript, Python ou PHP — ou générez un client depuis l'OpenAPI.

  3. 3. Premier appel

    Testez la clé avec GET /me, puis lancez une recherche de vols.

Terminal
export NAVELYA_API_KEY="nvl_live_…"
curl https://navelya.apxafrica.com/api/v1/me -H "Authorization: Bearer $NAVELYA_API_KEY"
JavaScript
import Navelya from "./navelya.mjs";
const navelya = new Navelya(process.env.NAVELYA_API_KEY);

const me = await navelya.account.me();
const { offers } = await navelya.flights.search({
  slices: [{ origin: "ABJ", destination: "DKR", departure_date: "2026-12-20" }],
  adults: 1,
});
console.log(me.agency.name, offers.length, "offres");

SDK et langages

Les SDK sont générés depuis la spécification à chaque mise à jour de l'API : ils sont toujours à jour. Ils gèrent pour vous la clé, les nouvelles tentatives (429, 5xx), l'Idempotency-Key des créations, les erreurs typées, la pagination automatique (.all()) et la vérification des webhooks.

JavaScript / TypeScript

Node 18+, Deno, Bun. Types : navelya.d.ts

curl -O https://navelya.apxafrica.com/sdk/navelya.mjs -O https://navelya.apxafrica.com/sdk/navelya.d.ts

Python

3.8+, aucune dépendance

curl -O https://navelya.apxafrica.com/sdk/navelya.py

PHP

7.4+ (Laravel, Symfony, WordPress…)

curl -O https://navelya.apxafrica.com/sdk/Navelya.php

Java, C#, Go, Kotlin, Swift, Dart, Ruby, Rust… : générez votre client en une commande

La spécification OpenAPI 3.1 fonctionne avec OpenAPI Generator, NSwag, Kiota, oapi-codegen, Postman, Insomnia et Bruno.

npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g java -o ./navelya-java
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g csharp -o ./navelya-csharp
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g go -o ./navelya-go
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g kotlin -o ./navelya-kotlin
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g swift5 -o ./navelya-swift5
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g dart -o ./navelya-dart
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g ruby -o ./navelya-ruby
npx @openapitools/openapi-generator-cli generate -i https://navelya.apxafrica.com/api/v1/openapi.json -g rust -o ./navelya-rust

Chaque opération de la référence ci-dessous montre aussi un exemple prêt à copier en cURL, JavaScript, Python, PHP, Java, C#, Go et Ruby.

Kits prêts à l'emploi pour votre site

Pas de développeur ? Collez deux lignes dans votre site (WordPress, Wix, Webflow, Shopify, site sur mesure…) : recherche aux prix de vente de votre agence, demandes de devis, contact et WhatsApp. Aucune clé secrète n'est exposée. Activez les kits dans Espace agence › Paramètres › Développeurs ; remplacez votre-site par l'adresse de votre site Navelya.

Moteur de recherche complet

Vols, hôtels et activités en onglets, aux prix de vente de l'agence, avec demande de devis.

<div data-navelya-kit="recherche" data-site="votre-site"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Recherche de vols

Formulaire et résultats de vols, demande de réservation intégrée.

<div data-navelya-kit="vols" data-site="votre-site"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Recherche d'hôtels

Destinations, dates, chambres ; résultats et demande.

<div data-navelya-kit="hotels" data-site="votre-site"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Activités et excursions

Recherche d'activités par destination.

<div data-navelya-kit="activites" data-site="votre-site"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Formulaire de contact

Demande de devis (nom, téléphone, projet) → onglet Demandes et webhook lead.created.

<div data-navelya-kit="contact" data-site="votre-site" data-sujet="Demande depuis mon site"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Bouton WhatsApp flottant

Bouton vert en bas à droite, message pré-rempli vers le numéro de l'agence.

<div data-navelya-kit="whatsapp" data-site="votre-site" data-message="Bonjour, je voudrais un devis"></div>
<script src="https://navelya.apxafrica.com/kit/v1.js" async></script>

Options : data-couleur="009FA9" (couleur des boutons), data-hauteur="320" (hauteur initiale). Les iframes s'ajustent seules à leur contenu. Les demandes arrivent dans votre espace (Devis, Demandes) et en webhooks quote.created / lead.created.

Kits serveur : une intégration complète par fonctionnalité

Vendre des vols sur votre site ou votre application

Recherche, relecture de l'offre et réservation payée sur le wallet, avec protection contre les changements de prix.

  1. 1. flights.search
  2. 2. flights.getOffer (net à jour, passagers)
  3. 3. flights.book en mode pay (ou hold / freeze)
  4. 4. orders.get pour le PNR et les billets
import Navelya, { NavelyaError } from "./navelya.mjs";
const navelya = new Navelya(process.env.NAVELYA_API_KEY);

const { offers } = await navelya.flights.search({
  slices: [{ origin: "ABJ", destination: "CDG", departure_date: "2026-12-20" }], adults: 1,
});
const best = offers[0];
const { offer, passengers } = await navelya.flights.getOffer(best.id);

try {
  const { order_id } = await navelya.flights.book({
    offer_id: offer.id, mode: "pay", expected_net: offer.net.amount,
    contact: { email: "client@exemple.ci", phone: "+2250707070707" },
    passengers: [{ id: passengers[0].id, title: "mr", given_name: "Yao", family_name: "Koffi", born_on: "1988-02-10" }],
  });
  const order = await navelya.orders.get(order_id);
  console.log(order.reference, order.booking_reference);
} catch (e) {
  if (e instanceof NavelyaError && e.status === 409) console.log("Le prix a changé : relisez l'offre.");
  else if (e instanceof NavelyaError && e.code === "payment_required") console.log("Solde insuffisant : rechargez le wallet.");
  else throw e;
}

Encaisser vos clients en ligne (Mobile Money, carte)

Créez une échéance, envoyez le lien de paiement ; à la réception, votre wallet est crédité et vous recevez payment.succeeded.

  1. 1. paymentRequests.create → pay_url
  2. 2. Envoyez pay_url (SMS, email, WhatsApp)
  3. 3. Webhook payment.succeeded / payment_request.paid
  4. 4. Émettez la réservation
const pr = await navelya.paymentRequests.create({
  label: "Billet Abidjan–Paris", amount: 308700, due_date: "2026-11-02",
  customer_name: "Koffi Yao", phone: "+2250707070707",
});
console.log("Lien à envoyer :", pr.pay_url);

// Plus tard, dans votre webhook (voir « Recevoir les webhooks ») :
// event.type === "payment.succeeded" → event.data.payment.credited_amount est sur votre wallet.

Devis automatiques à votre marque

Transformez une offre en devis (votre majoration), envoyez la page client ; le client accepte et paie en ligne, puis vous réservez depuis le devis.

  1. 1. flights.search
  2. 2. quotes.create → public_url, pdf_url
  3. 3. Webhook quote.paid
  4. 4. flights.book avec quote_id
const quote = await navelya.quotes.create({
  offer_id: offers[0].id, customer_name: "Koffi Yao", customer_phone: "+2250707070707",
  markup: { type: "percent", value: 10 }, valid_hours: 48,
});
console.log(quote.public_url, quote.sell_amount);
const pdf = await navelya.quotes.pdf(quote.id); // Uint8Array (Brand Studio)

Synchroniser votre CRM

Importez tout le fichier clients (pagination automatique), puis restez à jour avec customer.created / customer.updated.

  1. 1. customers.all() (itère toutes les pages)
  2. 2. Webhooks customer.*
  3. 3. customers.create / update depuis votre CRM
for await (const c of navelya.customers.all()) {
  await monCrm.upsert({ id: c.id, nom: `${c.first_name} ${c.last_name}`, email: c.email, tel: c.phone });
}

Recevoir les webhooks

Un point d'entrée qui vérifie la signature et route les événements. Répondez 2xx en moins de 8 s ; sinon Navelya réessaie après 1 min, 5 min, 30 min, 2 h et 12 h.

  1. 1. webhooks.create (gardez le secret whsec_…)
  2. 2. Vérifiez Navelya-Signature sur le corps BRUT
  3. 3. Traitez l'événement (idempotent : utilisez event.id)
import express from "express";
import Navelya from "./navelya.mjs";

const app = express();
app.post("/webhooks/navelya", express.raw({ type: "application/json" }), (req, res) => {
  let event;
  try { event = Navelya.verifyWebhook(req.body.toString("utf8"), req.get("Navelya-Signature"), process.env.NAVELYA_WEBHOOK_SECRET); }
  catch { return res.sendStatus(400); }
  switch (event.type) {
    case "order.confirmed": /* billets émis */ break;
    case "payment.succeeded": /* client payé */ break;
    case "lead.created": /* nouveau prospect */ break;
  }
  res.sendStatus(200);
});
app.listen(3000);

Après-vente : annulations et changements de date

Chiffrez, confirmez, et le wallet est recrédité ou débité automatiquement.

  1. 1. orders.cancellationQuote → operation_id, refund
  2. 2. orders.cancel
  3. 3. orders.changeOffers / orders.change
const q = await navelya.orders.cancellationQuote(orderId);
if (q.refund > 0) await navelya.orders.cancel(orderId, { operation_id: q.operation_id });

Concepts

Authentification

En-tête Authorization: Bearer nvl_live_…. Une clé agit au nom du membre qui l'a créée ; gardez-la côté serveur uniquement.

Prix

L'API renvoie vos nets (montant débité du wallet). Devis, site, kits et assistant WhatsApp appliquent vos majorations (/markups). Montants en unités de la devise (XOF sans décimale).

Erreurs

Corps { error: { code, message } }, message en français. 402 = plan/module ou solde insuffisant, 409 = prix changé ou conflit, 410 = offre expirée, 429 = limite (Retry-After).

Idempotence

En-tête Idempotency-Key sur les créations et paiements : renvoyer la même clé rejoue la réponse d'origine (Idempotent-Replayed: true) sans double débit. Les SDK l'ajoutent seuls.

Pagination

Listes : limit (1-100) et starting_after = next_cursor. Réponse { data, has_more, next_cursor }. SDK : .all() itère tout.

Limites et traçabilité

120 requêtes/minute/clé. Chaque réponse porte X-Request-Id : donnez-le au support. Les recherches sont en direct : mettez en cache côté client.

Référence (52 opérations)

URL de base : https://navelya.apxafrica.com/api/v1. Version interactive avec essais en direct : référence interactive.

Compte

GET/mesdk: account.me

Votre agence

Agence, plan en cours et membre au nom duquel la clé agit. Idéal pour tester une clé.

curl -X GET "https://navelya.apxafrica.com/api/v1/me" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "agency": {
    "code": "NVL-000101",
    "name": "Voyage Pro",
    "status": "active",
    "kyb_status": "approved",
    "currency": "XOF",
    "country": "CI"
  },
  "plan": {
    "code": "business",
    "name": "Business",
    "status": "active"
  },
  "acting_as": {
    "name": "Awa Koné",
    "role": "owner"
  }
}
GET/markupssdk: markups.list

Majorations

Marges appliquées au net pour obtenir vos prix de vente (devis, site, kits, assistant WhatsApp).

curl -X GET "https://navelya.apxafrica.com/api/v1/markups" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "product": "flight",
      "type": "percent",
      "value": 10
    }
  ]
}
PUT/markupssdk: markups.update

Modifier les majorations

Remplace les majorations des produits indiqués.

curl -X PUT "https://navelya.apxafrica.com/api/v1/markups" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "markups": [
    {
      "product": "flight",
      "type": "percent",
      "value": 8
    },
    {
      "product": "hotel",
      "type": "fixed",
      "value": 15000
    }
  ]
}'
Réponse 200
{
  "ok": true
}

Wallet

GET/walletssdk: wallets.list

Soldes

Un solde par devise. Chaque réservation payée débite le net du wallet.

curl -X GET "https://navelya.apxafrica.com/api/v1/wallets" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "currency": "XOF",
      "balance": 365700,
      "low_balance_alert": 50000
    }
  ]
}
GET/wallets/transactionssdk: wallets.transactions

Journal du wallet

Mouvements du plus récent au plus ancien. Filtres : currency, kind.

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
currency queryXOF, NGN…
kind querytopup, charge, refund, customer_payment…
curl -X GET "https://navelya.apxafrica.com/api/v1/wallets/transactions" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "currency": "XOF",
      "amount": -158700,
      "balance_after": 207000,
      "kind": "charge",
      "label": "Billet CMD-2026-000014",
      "created_at": "2026-10-19T20:35:12Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/wallets/topupsIdempotency-Keysdk: wallets.topup

Recharger le wallet

Crée une recharge en ligne (Mobile Money, carte) et renvoie l'URL de paiement. Le crédit arrive après confirmation (webhook wallet.topup_succeeded).

curl -X POST "https://navelya.apxafrica.com/api/v1/wallets/topups" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 100000
}'
Réponse 200
{
  "url": "https://checkout.cartflox.com/…",
  "reference": "AGW-2026-000003"
}

Lieux

GET/places/airportssdk: places.airports

Aéroports et villes

Autocomplétion IATA pour la recherche de vols.

query query · requis2 caractères minimum, ex. « abid ».
curl -X GET "https://navelya.apxafrica.com/api/v1/places/airports" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "iata": "ABJ",
      "name": "Félix Houphouët-Boigny",
      "city": "Abidjan",
      "country": "CI",
      "type": "airport"
    }
  ]
}
GET/places/hotelssdk: places.hotels

Destinations hôtelières

Villes, régions et hôtels. Transmettez l'objet `search` de la suggestion tel quel à /hotels/search.

query query · requisVille ou nom d'hôtel.
curl -X GET "https://navelya.apxafrica.com/api/v1/places/hotels" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "suggestions": [
    {
      "kind": "city",
      "label": "Dakar",
      "search": {
        "destination_code": "DKR"
      }
    }
  ]
}
GET/places/activitiessdk: places.activities

Destinations d'activités

Codes destination pour /activities/search.

query query · requisVille.
curl -X GET "https://navelya.apxafrica.com/api/v1/places/activities" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "suggestions": [
    {
      "label": "Dubaï",
      "code": "DXB"
    }
  ]
}

Vols

POST/flights/searchsdk: flights.search

Rechercher des vols

Jusqu'à 6 tronçons et 9 voyageurs. Chaque offre porte net.amount : le montant qui sera débité. Les offres « Votre GDS » (module Connexion GDS) sont incluses. Une offre expire en 20 à 30 minutes.

curl -X POST "https://navelya.apxafrica.com/api/v1/flights/search" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "slices": [
    {
      "origin": "ABJ",
      "destination": "CDG",
      "departure_date": "2026-12-20"
    },
    {
      "origin": "CDG",
      "destination": "ABJ",
      "departure_date": "2027-01-05"
    }
  ],
  "adults": 2,
  "children": 1,
  "infants": 0,
  "cabin": "economy",
  "max_connections": 1
}'
Réponse 200
{
  "currency": "XOF",
  "mode": "live",
  "offers": [
    {
      "id": "off_0000AbCdEf",
      "owner_iata": "HF",
      "owner_name": "Air Côte d'Ivoire",
      "max_stops": 0,
      "instant_payment": false,
      "slices": [
        "…"
      ],
      "net": {
        "amount": 812400,
        "currency": "XOF"
      }
    }
  ]
}
GET/flights/offers/{id}sdk: flights.getOffer

Relire une offre

Juste avant de réserver : net à jour, identifiants des passagers, passeport exigé ou non. 410 si l'offre a expiré.

id path · requisoff_…
curl -X GET "https://navelya.apxafrica.com/api/v1/flights/offers/off_0000AbCdEf" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "offer": {
    "id": "off_0000AbCdEf",
    "owner_iata": "HF",
    "owner_name": "Air Côte d'Ivoire",
    "max_stops": 0,
    "instant_payment": false,
    "slices": [
      "…"
    ],
    "net": {
      "amount": 812400,
      "currency": "XOF"
    }
  },
  "passengers": [
    {
      "id": "pas_0000Ab",
      "type": "adult"
    }
  ],
  "documents_required": true
}
POST/flights/ordersIdempotency-Keysdk: flights.book

Réserver un vol

mode pay : débit du wallet puis émission. hold : option sans débit (si instant_payment = false), à payer avant payment_required_by. freeze : paiement en plusieurs fois (acompte débité, validation Navelya). expected_net protège du changement de prix (409 sinon, rien n'est débité).

curl -X POST "https://navelya.apxafrica.com/api/v1/flights/orders" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_id": "off_0000AbCdEf",
  "mode": "pay",
  "expected_net": 812400,
  "contact": {
    "email": "client@exemple.ci",
    "phone": "+2250707070707"
  },
  "passengers": [
    {
      "id": "pas_0000Ab",
      "title": "mrs",
      "given_name": "Awa",
      "family_name": "Kone",
      "born_on": "1990-04-12",
      "passport": {
        "number": "20AB12345",
        "country": "CI",
        "expires_on": "2030-01-01"
      }
    }
  ]
}'
Réponse 200
{
  "order_id": "108e1f47-40b4-4196-9e06-acaf3ffd621a"
}

Hôtels

POST/hotels/searchsdk: hotels.search

Rechercher des hôtels

Par destination (objet `search` de /places/hotels), région ou hôtels. Chaque tarif porte son net.

curl -X POST "https://navelya.apxafrica.com/api/v1/hotels/search" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "search": {
    "destination_code": "ABJ"
  },
  "checkin": "2026-12-20",
  "checkout": "2026-12-23",
  "rooms": [
    {
      "adults": 2,
      "children": [
        7
      ]
    }
  ],
  "residency": "CI"
}'
Réponse 200
{
  "search_id": "…",
  "nights": 3,
  "hotels": [
    {
      "id": "hb:12345",
      "name": "Pullman Abidjan",
      "stars": 5,
      "best": {
        "id": "rate…",
        "net": {
          "amount": 214500,
          "currency": "XOF"
        }
      }
    }
  ]
}
POST/hotels/offerssdk: hotels.quote

Figer un tarif

Relit le tarif chez l'hôtelier : offer_id, net exact, conditions d'annulation.

curl -X POST "https://navelya.apxafrica.com/api/v1/hotels/offers" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "search_id": "…",
  "hotel_id": "hb:12345",
  "rate_id": "…"
}'
Réponse 200
{
  "offer_id": "5f0c…",
  "net": {
    "amount": 214500,
    "currency": "XOF"
  },
  "cancellation": [
    {
      "from": "2026-12-18T00:00:00Z",
      "amount": 71500
    }
  ]
}
POST/hotels/ordersIdempotency-Keysdk: hotels.book

Réserver un hôtel

Débit du wallet puis confirmation chez l'hôtelier. Un invité par chambre au minimum.

curl -X POST "https://navelya.apxafrica.com/api/v1/hotels/orders" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_id": "5f0c…",
  "expected_net": 214500,
  "holder": {
    "first_name": "Awa",
    "last_name": "Kone"
  },
  "room_guests": [
    {
      "first_name": "Awa",
      "last_name": "Kone"
    }
  ],
  "contact": {
    "email": "client@exemple.ci",
    "phone": "+2250707070707"
  }
}'
Réponse 200
{
  "order_id": "…"
}

Activités

POST/activities/searchsdk: activities.search

Rechercher des activités

Par code destination et dates, avec l'âge de chaque participant.

curl -X POST "https://navelya.apxafrica.com/api/v1/activities/search" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "destination_code": "DXB",
  "from": "2026-12-21",
  "to": "2026-12-24",
  "ages": [
    34,
    31,
    7
  ]
}'
Réponse 200
{
  "activities": [
    {
      "code": "E-E10-A1DUBAI",
      "name": "Safari dans le désert",
      "from_net": {
        "amount": 49000,
        "currency": "XOF"
      }
    }
  ]
}
POST/activities/ordersIdempotency-Keysdk: activities.book

Réserver une activité

Code, tarif et date issus de la recherche ; un participant par âge.

curl -X POST "https://navelya.apxafrica.com/api/v1/activities/orders" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "E-E10-A1DUBAI",
  "rate_id": "…",
  "date": "2026-12-22",
  "ages": [
    34,
    31
  ],
  "expected_net": 98000,
  "holder": {
    "first_name": "Awa",
    "last_name": "Kone"
  },
  "paxes": [
    {
      "first_name": "Awa",
      "last_name": "Kone",
      "age": 34
    },
    {
      "first_name": "Yao",
      "last_name": "Kone",
      "age": 31
    }
  ],
  "contact": {
    "email": "client@exemple.ci",
    "phone": "+2250707070707"
  }
}'
Réponse 200
{
  "order_id": "…"
}

Commandes

GET/orderssdk: orders.list

Lister les commandes

Filtres : status, product.

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status queryheld, pending_payment, issuing, confirmed, failed, cancelled
product queryflight, hotel, activity
curl -X GET "https://navelya.apxafrica.com/api/v1/orders" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "108e1f47-40b4-4196-9e06-acaf3ffd621a",
      "reference": "CMD-2026-000014",
      "product": "flight",
      "status": "confirmed",
      "payment_status": "paid",
      "booking_reference": "SFU45T",
      "net_amount": 158700,
      "currency": "XOF"
    }
  ],
  "has_more": true,
  "next_cursor": "2026-10-19T20:35:12Z"
}
GET/orders/{id}sdk: orders.get

Lire une commande

Par uuid ou référence CMD-…: voyageurs, documents, opérations d'après-vente.

id path · requisuuid ou CMD-AAAA-NNNNNN
curl -X GET "https://navelya.apxafrica.com/api/v1/orders/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "108e1f47-40b4-4196-9e06-acaf3ffd621a",
  "reference": "CMD-2026-000014",
  "product": "flight",
  "status": "confirmed",
  "payment_status": "paid",
  "booking_reference": "SFU45T",
  "net_amount": 158700,
  "currency": "XOF"
}
GET/orders/{id}/pdfModule brand_studiosdk: orders.pdf

Document PDF

Billet, confirmation ou voucher au modèle de l'agence (Brand Studio).

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/orders/ID/pdf" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -o document.pdf
Réponse 200
Fichier PDF (application/pdf)
POST/orders/{id}/payIdempotency-Keysdk: orders.pay

Payer une option

Débite le wallet et émet les billets d'un vol en option.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/pay" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "expected_net": 158700
}'
Réponse 200
{
  "order_id": "…"
}
POST/orders/{id}/releaseIdempotency-Keysdk: orders.release

Libérer une option

Annule une option non payée.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/release" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Réponse 200
{
  "ok": true
}
POST/orders/{id}/cancellation-quoteModule post_ticketingsdk: orders.cancellationQuote

Chiffrer une annulation

Montant recrédité, retenue, operation_id à confirmer.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/cancellation-quote" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "operation_id": "…",
  "refund": 120000,
  "penalty": 38700,
  "currency": "XOF"
}
POST/orders/{id}/cancellationIdempotency-KeyModule post_ticketingsdk: orders.cancel

Confirmer l'annulation

Annule chez le fournisseur puis recrédite le wallet.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/cancellation" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "operation_id": "…"
}'
Réponse 200
{
  "refund": 120000
}
POST/orders/{id}/change-offersModule post_ticketingsdk: orders.changeOffers

Chercher un changement de date

Vols de remplacement pour un tronçon à une nouvelle date.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/change-offers" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "slice_index": 1,
  "date": "2027-01-08"
}'
Réponse 200
{
  "operation_id": "…",
  "offers": [
    {
      "id": "oco_…",
      "change_total": 45000
    }
  ]
}
POST/orders/{id}/changeIdempotency-KeyModule post_ticketingsdk: orders.change

Confirmer un changement

expected : montant annoncé (positif = débit, négatif = crédit).

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/orders/ID/change" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "operation_id": "…",
  "offer_id": "oco_…",
  "expected": 45000
}'
Réponse 200
{
  "ok": true
}

Devis

GET/quotessdk: quotes.list

Lister les devis

Filtres : status, source (agency, site).

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status querydraft, sent, accepted, converted, cancelled
source queryagency, site
curl -X GET "https://navelya.apxafrica.com/api/v1/quotes" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "dd57c515-3cbf-46a1-8224-7fc37fa44a2c",
      "reference": "DEV-2026-000005",
      "status": "sent",
      "product": "flight",
      "customer_name": "Koffi Yao",
      "currency": "XOF",
      "sell_amount": 294000,
      "paid_amount": 0,
      "valid_until": "2026-10-22T11:21:00Z",
      "public_url": "https://navelya.apxafrica.com/d/7e11…",
      "pdf_url": "…/pdf"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/quotesIdempotency-Keysdk: quotes.create

Créer un devis de vol

À partir d'une offre : net relu, votre majoration appliquée, prix de vente figé. public_url = page client (acceptation et paiement en ligne).

curl -X POST "https://navelya.apxafrica.com/api/v1/quotes" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "offer_id": "off_0000AbCdEf",
  "customer_name": "Koffi Yao",
  "customer_email": "koffi@exemple.ci",
  "customer_phone": "+2250707070707",
  "markup": {
    "type": "percent",
    "value": 10
  },
  "valid_hours": 48,
  "message": "Bagage soute inclus."
}'
Réponse 201
{
  "id": "dd57c515-3cbf-46a1-8224-7fc37fa44a2c",
  "reference": "DEV-2026-000005",
  "status": "sent",
  "product": "flight",
  "customer_name": "Koffi Yao",
  "currency": "XOF",
  "sell_amount": 294000,
  "paid_amount": 0,
  "valid_until": "2026-10-22T11:21:00Z",
  "public_url": "https://navelya.apxafrica.com/d/7e11…",
  "pdf_url": "…/pdf"
}
GET/quotes/{id}sdk: quotes.get

Lire un devis

Avec l'itinéraire (summary) et les éléments d'un package.

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/quotes/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "dd57c515-3cbf-46a1-8224-7fc37fa44a2c",
  "reference": "DEV-2026-000005",
  "status": "sent",
  "product": "flight",
  "customer_name": "Koffi Yao",
  "currency": "XOF",
  "sell_amount": 294000,
  "paid_amount": 0,
  "valid_until": "2026-10-22T11:21:00Z",
  "public_url": "https://navelya.apxafrica.com/d/7e11…",
  "pdf_url": "…/pdf"
}
PATCH/quotes/{id}sdk: quotes.update

Changer l'état d'un devis

action : mark_sent, cancel, reopen.

id path · requisIdentifiant (uuid).
curl -X PATCH "https://navelya.apxafrica.com/api/v1/quotes/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "cancel"
}'
Réponse 200
{
  "ok": true
}
GET/quotes/{id}/pdfModule brand_studiosdk: quotes.pdf

PDF du devis

Au modèle de l'agence (Brand Studio).

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/quotes/ID/pdf" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -o document.pdf
Réponse 200
Fichier PDF (application/pdf)

Clients

GET/customerssdk: customers.list

Lister les clients

Recherche : query (nom, email, téléphone).

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
query queryTexte recherché.
curl -X GET "https://navelya.apxafrica.com/api/v1/customers" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "first_name": "Awa",
      "last_name": "Kone",
      "email": "awa@exemple.ci",
      "phone": "+2250707070707"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/customersIdempotency-Keysdk: customers.create

Créer un client

Les voyageurs réservés sont aussi enregistrés automatiquement.

curl -X POST "https://navelya.apxafrica.com/api/v1/customers" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "first_name": "Awa",
  "last_name": "Kone",
  "email": "awa@exemple.ci",
  "phone": "+2250707070707",
  "birth_date": "1990-04-12",
  "document_type": "passport",
  "document_number": "20AB12345",
  "document_expiry": "2030-01-01"
}'
Réponse 200
{
  "id": "…"
}
GET/customers/{id}sdk: customers.get

Lire un client

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/customers/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "…",
  "first_name": "Awa",
  "last_name": "Kone"
}
PATCH/customers/{id}sdk: customers.update

Modifier un client

Champs partiels.

id path · requisIdentifiant (uuid).
curl -X PATCH "https://navelya.apxafrica.com/api/v1/customers/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "+2250101010101"
}'
Réponse 200
{
  "ok": true
}
DELETE/customers/{id}sdk: customers.delete

Supprimer un client

id path · requisIdentifiant (uuid).
curl -X DELETE "https://navelya.apxafrica.com/api/v1/customers/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "ok": true
}

Encaissement

GET/payment-requestssdk: paymentRequests.list

Lister les échéances

Filtre : status (pending, paid, cancelled).

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status querypending, paid, cancelled
curl -X GET "https://navelya.apxafrica.com/api/v1/payment-requests" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "4b7d…",
      "reference": "ECH-2026-000004",
      "label": "Acompte billet Paris",
      "amount": 150000,
      "currency": "XOF",
      "due_date": "2026-11-02",
      "status": "pending",
      "reminders_sent": 0,
      "pay_url": "https://navelya.apxafrica.com/paiement/4b7d…?s=…"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/payment-requestsIdempotency-Keysdk: paymentRequests.create

Créer une échéance

Renvoie pay_url, le lien de paiement en ligne à envoyer au client. Paiement reçu → wallet crédité (montant − frais), webhooks payment.succeeded et payment_request.paid. Relances WhatsApp automatiques si l'assistant est branché.

curl -X POST "https://navelya.apxafrica.com/api/v1/payment-requests" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "label": "Acompte billet Paris",
  "amount": 150000,
  "due_date": "2026-11-02",
  "customer_name": "Koffi Yao",
  "phone": "+2250707070707"
}'
Réponse 201
{
  "id": "4b7d…",
  "reference": "ECH-2026-000004",
  "label": "Acompte billet Paris",
  "amount": 150000,
  "currency": "XOF",
  "due_date": "2026-11-02",
  "status": "pending",
  "reminders_sent": 0,
  "pay_url": "https://navelya.apxafrica.com/paiement/4b7d…?s=…"
}
GET/payment-requests/{id}sdk: paymentRequests.get

Lire une échéance

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/payment-requests/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "4b7d…",
  "reference": "ECH-2026-000004",
  "label": "Acompte billet Paris",
  "amount": 150000,
  "currency": "XOF",
  "due_date": "2026-11-02",
  "status": "pending",
  "reminders_sent": 0,
  "pay_url": "https://navelya.apxafrica.com/paiement/4b7d…?s=…"
}
PATCH/payment-requests/{id}sdk: paymentRequests.update

Clôturer une échéance

status : paid (reçu hors ligne) ou cancelled.

id path · requisIdentifiant (uuid).
curl -X PATCH "https://navelya.apxafrica.com/api/v1/payment-requests/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "paid"
}'
Réponse 200
{
  "id": "4b7d…",
  "reference": "ECH-2026-000004",
  "label": "Acompte billet Paris",
  "amount": 150000,
  "currency": "XOF",
  "due_date": "2026-11-02",
  "status": "paid",
  "reminders_sent": 0,
  "pay_url": "https://navelya.apxafrica.com/paiement/4b7d…?s=…"
}
GET/paymentssdk: payments.list

Paiements des clients

Paiements en ligne reçus (devis et échéances), avec frais et montant crédité.

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status querypending, paid, failed, cancelled
curl -X GET "https://navelya.apxafrica.com/api/v1/payments" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "reference": "REG-2026-000001",
      "source": "quote",
      "amount": 294000,
      "fee_amount": 8820,
      "credited_amount": 285180,
      "currency": "XOF",
      "status": "paid"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
GET/payments/{id}sdk: payments.get

Lire un paiement

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/payments/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "…",
  "reference": "REG-2026-000001",
  "status": "paid"
}

Freeze

GET/freezessdk: freezes.list

Lister les Freeze

Vols payés en plusieurs fois.

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status queryinitiated, approved, completed…
curl -X GET "https://navelya.apxafrica.com/api/v1/freezes" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "reference": "FRZ-2026-000001",
      "status": "approved",
      "total_amount": 500000,
      "paid_amount": 250000,
      "currency": "XOF"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
GET/freezes/{id}sdk: freezes.get

Lire un Freeze

Avec l'échéancier.

id path · requisIdentifiant (uuid).
curl -X GET "https://navelya.apxafrica.com/api/v1/freezes/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "id": "…",
  "reference": "FRZ-2026-000001",
  "schedule": [
    {
      "n": 1,
      "amount": 125000,
      "due_at": "2026-10-27T10:00:00Z"
    }
  ]
}
POST/freezes/{id}/payIdempotency-Keysdk: freezes.pay

Régler une échéance

Débite le wallet (une ou plusieurs échéances).

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/freezes/ID/pay" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 125000
}'
Réponse 200
{
  "completed": false
}

Ventes en ligne

GET/leadssdk: leads.list

Demandes du site et des kits

Formulaires de votre site Navelya et des kits intégrés à votre propre site.

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
status querynew, contacted, won, lost
curl -X GET "https://navelya.apxafrica.com/api/v1/leads" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "subject": "Offre : Dubaï essentiel",
      "name": "Fatou D.",
      "phone": "+2250505050505",
      "status": "new"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Webhooks

GET/webhookssdk: webhooks.list

Lister les webhooks

limit query1 à 100 (25 par défaut).
starting_after queryPagination : created_at du dernier élément reçu (next_cursor).
curl -X GET "https://navelya.apxafrica.com/api/v1/webhooks" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "id": "…",
      "url": "https://votre-site.com/webhooks/navelya",
      "events": [
        "order.confirmed"
      ],
      "active": true
    }
  ],
  "has_more": false,
  "next_cursor": null
}
POST/webhooksIdempotency-Keysdk: webhooks.create

Ajouter un webhook

Le secret de signature (whsec_…) n'est renvoyé qu'ici.

curl -X POST "https://navelya.apxafrica.com/api/v1/webhooks" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://votre-site.com/webhooks/navelya",
  "events": [
    "order.confirmed",
    "payment.succeeded",
    "lead.created"
  ]
}'
Réponse 200
{
  "id": "…",
  "secret": "whsec_…"
}
PATCH/webhooks/{id}sdk: webhooks.update

Modifier un webhook

active, events.

id path · requisIdentifiant (uuid).
curl -X PATCH "https://navelya.apxafrica.com/api/v1/webhooks/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "active": false
}'
Réponse 200
{
  "ok": true
}
DELETE/webhooks/{id}sdk: webhooks.delete

Supprimer un webhook

id path · requisIdentifiant (uuid).
curl -X DELETE "https://navelya.apxafrica.com/api/v1/webhooks/ID" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "ok": true
}
POST/webhooks/{id}/testsdk: webhooks.test

Tester un webhook

Envoie un événement de test signé.

id path · requisIdentifiant (uuid).
curl -X POST "https://navelya.apxafrica.com/api/v1/webhooks/ID/test" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "ok": true,
  "status": 200,
  "ms": 182
}
GET/webhooks/eventssdk: webhooks.events

Catalogue des événements

Types d'événements et leur description.

curl -X GET "https://navelya.apxafrica.com/api/v1/webhooks/events" \
  -H "Authorization: Bearer $NAVELYA_API_KEY"
Réponse 200
{
  "data": [
    {
      "type": "order.confirmed",
      "description": "Réservation confirmée (billets émis / réservation garantie)."
    }
  ]
}

Webhooks (24 événements)

POST JSON signé vers vos adresses https (jusqu'à 5), à créer dans l'espace agence ou via POST /webhooks. Répondez 2xx en moins de 8 s ; sinon nouvelles tentatives après 1 min, 5 min, 30 min, 2 h et 12 h. Dédoublonnez sur id.

order.confirmedRéservation confirmée (billets émis / réservation garantie).
order.heldVol mis en option : à payer avant payment_required_by.
order.failedRéservation refusée par le fournisseur ; le net a été recrédité.
order.cancelledRéservation annulée.
quote.createdDevis créé (espace agence, API, site ou assistant WhatsApp).
quote.acceptedLe client a accepté le devis.
quote.paidLe devis est entièrement réglé en ligne.
quote.cancelledDevis annulé.
payment.succeededPaiement en ligne d'un client final réussi ; wallet crédité (montant − frais).
payment.failedPaiement en ligne d'un client final échoué.
payment_request.createdÉchéance de paiement créée.
payment_request.paidÉchéance réglée (en ligne ou constatée par l'agence).
payment_request.cancelledÉchéance annulée.
customer.createdFiche client créée.
customer.updatedFiche client modifiée.
customer.deletedFiche client supprimée.
wallet.topup_succeededRecharge du wallet réussie.
freeze.approvedFreeze validé : billets émis, échéancier fixé.
freeze.declinedFreeze refusé : option libérée, acompte recrédité.
freeze.completedFreeze entièrement remboursé.
freeze.cancelledFreeze annulé.
freeze.overdueÉchéance de Freeze impayée.
lead.createdNouvelle demande reçue par le site ou un kit intégré.
whatsapp.handoffL'assistant WhatsApp passe la main à un conseiller.
Requête reçue
POST https://votre-site.com/webhooks/navelya
Navelya-Event: payment.succeeded
Navelya-Delivery: 7b0c…
Navelya-Signature: t=1792442068,v1=5d41402a…

{
  "id": "evt-uuid",
  "type": "payment.succeeded",
  "created_at": "2026-10-20T12:35:12Z",
  "data": { "payment": { "reference": "REG-2026-000001", "amount": 294000,
    "fee_amount": 8820, "credited_amount": 285180, "currency": "XOF" } }
}
import express from "express";
import Navelya from "./navelya.mjs";

const app = express();
app.post("/webhooks/navelya", express.raw({ type: "application/json" }), (req, res) => {
  let event;
  try { event = Navelya.verifyWebhook(req.body.toString("utf8"), req.get("Navelya-Signature"), process.env.NAVELYA_WEBHOOK_SECRET); }
  catch { return res.sendStatus(400); }
  switch (event.type) {
    case "order.confirmed": /* billets émis */ break;
    case "payment.succeeded": /* client payé */ break;
    case "lead.created": /* nouveau prospect */ break;
  }
  res.sendStatus(200);
});
app.listen(3000);

Une question sur l'intégration ?

Depuis votre espace, ouvrez Aide (icône casque) avec le X-Request-Id concerné.