API Taxes
Endpoints pour la gestion des configurations fiscales.
SDK: client.app.store.tax
Endpoints
Lister les taxes
POST /app/{appId}/store/tax/listRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé 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/createRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Oui | Nom de la taxe |
rate | number | Oui | Taux en pourcentage |
country | string | Non | Code pays (ISO) |
region | string | Non | Région/état |
isCompound | boolean | Non | Taxe composée |
isShippingTaxable | boolean | Non | Appliquer à 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}Requête
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}/editRequête
| Champ | Type | Requis | Description |
|---|---|---|---|
apiKey | string | Oui | Clé API |
name | string | Non | Nouveau nom |
rate | number | Non | Nouveau taux |
country | string | Non | Nouveau pays |
region | string | Non | Nouvelle région |
isCompound | boolean | Non | Taxe composée |
isShippingTaxable | boolean | Non | Taxer 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}/deleteRequête
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