Skip to Content
Nouvelle documentation Applite - JS SDK, Dart SDK & REST API

API Taxes

Endpoints pour la gestion des configurations fiscales.

SDK: client.app.store.tax

Endpoints

Lister les taxes

POST /app/{appId}/store/tax/list
ChampTypeRequisDescription
apiKeystringOuiClé API
curl -X POST https://api.applite.ai/app/{appId}/store/tax/list \ -H "Content-Type: application/json" \ -d '{"apiKey": "your_api_key"}'

Créer une taxe

POST /app/{appId}/store/tax/create
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringOuiNom de la taxe
ratenumberOuiTaux en pourcentage
countrystringNonCode pays (ISO)
regionstringNonRégion/état
isCompoundbooleanNonTaxe composée
isShippingTaxablebooleanNonAppliquer à la livraison
curl -X POST https://api.applite.ai/app/{appId}/store/tax/create \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "name": "TVA Réduite", "rate": 9, "country": "CI", "isShippingTaxable": false }'

Taxe composée: Une taxe composée est calculée sur le total incluant les autres taxes.


Obtenir une taxe

POST /app/{appId}/store/tax/{id}
curl -X POST https://api.applite.ai/app/{appId}/store/tax/{taxId} \ -H "Content-Type: application/json" \ -d '{"apiKey": "your_api_key"}'

Mettre à jour une taxe

POST /app/{appId}/store/tax/{id}/edit
ChampTypeRequisDescription
apiKeystringOuiClé API
namestringNonNouveau nom
ratenumberNonNouveau taux
countrystringNonNouveau pays
regionstringNonNouvelle région
isCompoundbooleanNonTaxe composée
isShippingTaxablebooleanNonTaxer la livraison
curl -X POST https://api.applite.ai/app/{appId}/store/tax/{taxId}/edit \ -H "Content-Type: application/json" \ -d '{ "apiKey": "your_api_key", "rate": 20 }'

Supprimer une taxe

POST /app/{appId}/store/tax/{id}/delete
curl -X POST https://api.applite.ai/app/{appId}/store/tax/{taxId}/delete \ -H "Content-Type: application/json" \ -d '{"apiKey": "your_api_key"}'

Les commandes existantes conservent les taxes calculées au moment de l’achat.

Last updated on