Download OpenAPI specification:Download
L'API supporte l'authentification via Bearer token:
Exemple :
curl --location 'https://{environment}.ciklik.co/api/v3' --header 'Authorization: Bearer <Ciklik Token>'
Le nombre de requête est limité à 100 par minute. Si la limite est atteinte, la réponse http sera 429 Too Many Requests
.
Certains endpoints de l'API prennent en charge le filtrage des résultats sur un ensemble spécifié de champs. Chaque endpoint qui prend en charge le filtrage énumérera les champs qui peuvent être filtrés. Plusieurs champs peuvent être combinés en utilisant un caractère esperluette &
Exemple: ?filter[status]=received&filter[created_at]=2023-11-17
Les listes de résultats de l'API sont paginées. La limite est de 20 éléments par requête. Vous pouvez obtenir les différentes pages avec la query string page
, default value 1
.
Le nombre total d'éléments dans une liste est disponible dans un champ total
.
Exemple: ?page=2
Réponse réussie
Accès non autorisé
Authentification requise
{- "data": {
- "id": 0,
- "name": "string",
- "host": "string",
- "paymentMethods": [
- {
- "id": 0,
- "name": {
- "fr": "string"
}, - "description": {
- "fr": "string"
}, - "class_key": "string",
- "gateway_id": 0,
- "created_at": "string",
- "updated_at": "string",
- "deleted_at": "string",
- "checkout_manager": "string",
- "need_payable": true,
- "pivot": {
- "tenant_id": 0,
- "payment_method_id": 0,
- "created_at": "string",
- "updated_at": "string"
}
}
], - "webhooks": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
Permet de mettre à jour les métadonnées d'un site web (WebsiteEntity) en modifiant ou ajoutant des clés/valeurs au champ "metadata".
object Les clés commençant par "ciklik_encrypted_" seront automatiquement encryptées". |
Succès - Les métadonnées ont été mises à jour avec succès.
Accès non autorisé
Authentification requise
Erreur de validation
{- "metadata": {
- "key1": "value1",
- "key2": "value2",
- "ciklik_encrypted_key2": "value-encrypted"
}
}
{- "data": {
- "id": 0,
- "name": "string",
- "host": "string",
- "paymentMethods": [
- {
- "id": 0,
- "name": {
- "fr": "string"
}, - "description": {
- "fr": "string"
}, - "class_key": "string",
- "gateway_id": 0,
- "created_at": "string",
- "updated_at": "string",
- "deleted_at": "string",
- "checkout_manager": "string",
- "need_payable": true,
- "pivot": {
- "tenant_id": 0,
- "payment_method_id": 0,
- "created_at": "string",
- "updated_at": "string"
}
}
], - "webhooks": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
Liste de produits récupérée avec succès
Accès non autorisé
Authentification requise
{- "data": [
- {
- "id": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "short_description": "string",
- "description": "string",
- "meta_title": "string",
- "meta_description": "string",
- "id_category": 0,
- "quantity": 0,
- "price": 0,
- "tax": 0,
- "active": true,
- "virtual_product": true,
- "salable": true,
- "gift_card": true,
- "gift_plan": "string",
- "disable_seo": true,
- "ref": "string",
- "external_id": "string",
- "offers": [
- {
- "id": 0,
- "quantity": 0,
- "percent_off": 0,
- "price": 0,
- "active": true,
- "product_id": 0,
- "deleted_at": "string",
- "tenant_id": 0
}
], - "frequences": [
- {
- "id": 0,
- "interval": "string",
- "interval_count": 0,
- "tenant_id": 0,
- "pivot": {
- "product_id": 0,
- "composable_frequence_id": 0
}
}
]
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Produit créé ou mis à jour avec succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "ref": "REFABOPRODUIT",
- "name": "Super nom produit",
- "slug": "slug-de-rpoduit",
- "price": "17.50",
- "description": "Petite description produit",
- "tax": "0.2",
- "frequencies": [
- {
- "interval": "month",
- "interval_count": 2
}
]
}
{- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "short_description": "string",
- "description": "string",
- "meta_title": "string",
- "meta_description": "string",
- "id_category": 0,
- "quantity": 0,
- "price": 0,
- "tax": 0,
- "active": true,
- "virtual_product": true,
- "salable": true,
- "gift_card": true,
- "gift_plan": "string",
- "disable_seo": true,
- "ref": "string",
- "external_id": "string",
- "offers": [
- {
- "id": 0,
- "quantity": 0,
- "percent_off": 0,
- "price": 0,
- "active": true,
- "product_id": 0,
- "deleted_at": "string",
- "tenant_id": 0
}
], - "frequences": [
- {
- "id": 0,
- "interval": "string",
- "interval_count": 0,
- "tenant_id": 0,
- "pivot": {
- "product_id": 0,
- "composable_frequence_id": 0
}
}
]
}
}
Produit récupéré avec succès
Accès non autorisé
Authentification requise
Produit non trouvé
{- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "short_description": "string",
- "description": "string",
- "meta_title": "string",
- "meta_description": "string",
- "id_category": 0,
- "quantity": 0,
- "price": 0,
- "tax": 0,
- "active": true,
- "virtual_product": true,
- "salable": true,
- "gift_card": true,
- "gift_plan": "string",
- "disable_seo": true,
- "ref": "string",
- "external_id": "string",
- "offers": [
- {
- "id": 0,
- "quantity": 0,
- "percent_off": 0,
- "price": 0,
- "active": true,
- "product_id": 0,
- "deleted_at": "string",
- "tenant_id": 0
}
], - "frequences": [
- {
- "id": 0,
- "interval": "string",
- "interval_count": 0,
- "tenant_id": 0,
- "pivot": {
- "product_id": 0,
- "composable_frequence_id": 0
}
}
]
}
}
Produit mis à jour avec succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "ref": "REFABOPRODUIT",
- "name": "Super nom produit",
- "slug": "slug-de-rpoduit",
- "price": "17.50",
- "description": "Petite description produit",
- "tax": "0.2",
- "frequencies": [
- {
- "interval": "month",
- "interval_count": 2
}
]
}
{- "id": "string",
- "name": "string",
- "slug": "string",
- "position": 0,
- "short_description": "string",
- "description": "string",
- "meta_title": "string",
- "meta_description": "string",
- "id_category": 0,
- "quantity": 0,
- "price": 0,
- "tax": 0,
- "active": true,
- "virtual_product": true,
- "salable": true,
- "gift_card": true,
- "gift_plan": "string",
- "disable_seo": true,
- "ref": "string",
- "external_id": "string",
- "offers": [
- {
- "id": 0,
- "quantity": 0,
- "percent_off": 0,
- "price": 0,
- "active": true,
- "product_id": 0,
- "deleted_at": "string",
- "tenant_id": 0
}
], - "frequences": [
- {
- "id": 0,
- "interval": "string",
- "interval_count": 0,
- "tenant_id": 0,
- "pivot": {
- "product_id": 0,
- "composable_frequence_id": 0
}
}
]
}
Un évènement existe, ou le nom de l'évènement existe. Si un évènement existe, une représentation de l'objet correspondant sera retourné
Accès non autorisé
Authentification requise
Erreur de validation
{ }
Webhook ajouté avec succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "event_type": "created_subscription",
- "hook_url": "string"
}
{- "data": {
- "id": 0,
- "name": "string",
- "host": "string",
- "paymentMethods": [
- {
- "id": 0,
- "name": {
- "fr": "string"
}, - "description": {
- "fr": "string"
}, - "class_key": "string",
- "gateway_id": 0,
- "created_at": "string",
- "updated_at": "string",
- "deleted_at": "string",
- "checkout_manager": "string",
- "need_payable": true,
- "pivot": {
- "tenant_id": 0,
- "payment_method_id": 0,
- "created_at": "string",
- "updated_at": "string"
}
}
], - "webhooks": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
Webhook supprimé avec succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "event_type": "created_subscription"
}
{- "data": {
- "id": 0,
- "name": "string",
- "host": "string",
- "paymentMethods": [
- {
- "id": 0,
- "name": {
- "fr": "string"
}, - "description": {
- "fr": "string"
}, - "class_key": "string",
- "gateway_id": 0,
- "created_at": "string",
- "updated_at": "string",
- "deleted_at": "string",
- "checkout_manager": "string",
- "need_payable": true,
- "pivot": {
- "tenant_id": 0,
- "payment_method_id": 0,
- "created_at": "string",
- "updated_at": "string"
}
}
], - "webhooks": {
- "property1": "string",
- "property2": "string"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
Réponse réussie
Accès non autorisé
Authentification requise
Abonnement introuvable
Erreur de validation
{- "data": {
- "id": 0,
- "uuid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "engaged_date": "2019-08-24T14:15:22Z",
- "auto_pause_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "active": true,
- "paused": true,
- "next_billing": "2019-08-24T14:15:22Z",
- "update_transporter_at": "2019-08-24T14:15:22Z",
- "relay": "string",
- "graceMonths": "string",
- "revenue": "string",
- "refunded": "string",
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "countTransactions": 0,
- "customization_products": [ ],
- "retry_link": "string",
- "is_auto": true,
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "string",
- "plan": {
- "id": 0,
- "uuid": "string",
- "name": "string",
- "short_name": "string",
- "more": "string",
- "image": "string",
- "start_at": "2019-08-24T14:15:22Z",
- "price": 0,
- "tax": 0,
- "interval": "string",
- "interval_count": 0,
- "shipped_count": 0,
- "position": 0,
- "engaged_interval": "string",
- "engaged": true,
- "active": true
}, - "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "user_uuid": "string",
- "user_id": "string",
- "email": "string",
- "display_interval": "string",
- "display_content": "string",
- "external_fingerprint": "string",
- "content": [
- {
- "external_id": "string",
- "quantity": 0,
- "product_id": 0,
- "subscription_id": 0
}
]
}
}
Permet de mettre à jour un abonnement, le résilier, le mettre en pause pour 1, 2 ou 3 mois, ou le relancer.
Données à modifier sur l'abonnement
Succès - Abonnement mis à jour.
Non autorisé - L'authentification est requise.
Interdit - Accès non autorisé.
Non trouvé - Abonnement non trouvé.
Erreur de validation
{- "months": 1,
- "active": true,
- "notification": true,
- "pause": true,
- "next_billing": "string",
- "content": [
- {
- "external_id": "123",
- "quantity": 1,
- "interval": "month",
- "interval_count": 1
}
]
}
{- "data": {
- "id": 0,
- "uuid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "engaged_date": "2019-08-24T14:15:22Z",
- "auto_pause_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "active": true,
- "paused": true,
- "next_billing": "2019-08-24T14:15:22Z",
- "update_transporter_at": "2019-08-24T14:15:22Z",
- "relay": "string",
- "graceMonths": "string",
- "revenue": "string",
- "refunded": "string",
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "countTransactions": 0,
- "customization_products": [ ],
- "retry_link": "string",
- "is_auto": true,
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "string",
- "plan": {
- "id": 0,
- "uuid": "string",
- "name": "string",
- "short_name": "string",
- "more": "string",
- "image": "string",
- "start_at": "2019-08-24T14:15:22Z",
- "price": 0,
- "tax": 0,
- "interval": "string",
- "interval_count": 0,
- "shipped_count": 0,
- "position": 0,
- "engaged_interval": "string",
- "engaged": true,
- "active": true
}, - "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "user_uuid": "string",
- "user_id": "string",
- "email": "string",
- "display_interval": "string",
- "display_content": "string",
- "external_fingerprint": "string",
- "content": [
- {
- "external_id": "string",
- "quantity": 0,
- "product_id": 0,
- "subscription_id": 0
}
]
}
}
Permet de récupérer une liste d'abonnements avec différents filtres et options de tri.
Liste de abonnements récupérée avec succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "data": [
- {
- "id": 0,
- "uuid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "engaged_date": "2019-08-24T14:15:22Z",
- "auto_pause_at": "2019-08-24T14:15:22Z",
- "start_date": "2019-08-24T14:15:22Z",
- "active": true,
- "paused": true,
- "next_billing": "2019-08-24T14:15:22Z",
- "update_transporter_at": "2019-08-24T14:15:22Z",
- "relay": "string",
- "graceMonths": "string",
- "revenue": "string",
- "refunded": "string",
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "countTransactions": 0,
- "customization_products": [ ],
- "retry_link": "string",
- "is_auto": true,
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "string",
- "plan": {
- "id": 0,
- "uuid": "string",
- "name": "string",
- "short_name": "string",
- "more": "string",
- "image": "string",
- "start_at": "2019-08-24T14:15:22Z",
- "price": 0,
- "tax": 0,
- "interval": "string",
- "interval_count": 0,
- "shipped_count": 0,
- "position": 0,
- "engaged_interval": "string",
- "engaged": true,
- "active": true
}, - "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "user_uuid": "string",
- "user_id": "string",
- "email": "string",
- "display_interval": "string",
- "display_content": "string",
- "external_fingerprint": "string",
- "content": [
- {
- "external_id": "string",
- "quantity": 0,
- "product_id": 0,
- "subscription_id": 0
}
]
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Récupère la liste de tous les bons de livraison de l'application.
Succès - Liste des bons de livraison récupérée avec succès.
Non autorisé - L'authentification est requise.
Interdit - Accès non autorisé.
Erreur de validation
{- "data": [
- {
- "id": 0,
- "uuid": "string",
- "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "scheduled_at": "2019-08-24T14:15:22Z",
- "tracking_link": "string",
- "subscription_uuid": "string",
- "address_id": 0,
- "phone": "string",
- "status": "created",
- "tracking_number": "string",
- "customer_id": "string",
- "supply_transporter_reference": "string",
- "first_name": "string",
- "last_name": "string",
- "postcode": "string",
- "address1": "string",
- "address2": "string",
- "division": "string",
- "city": "string",
- "country": "string",
- "mail": "string",
- "subscriptions_count": "string",
- "transporter_name": "string",
- "shipped_count": "string",
- "site_name": "string",
- "options": "string",
- "iso_code": "string",
- "relay": "string",
- "relay_id": 0,
- "orderable_name": "string",
- "orderable_id": "string",
- "orderable_type": "App\\Product",
- "order_id": 0,
- "ref": "string"
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Récupère la liste des élements d'un bon de livraison.
Succès - Liste des bons de livraison récupérée avec succès.
Non autorisé - L'authentification est requise.
Interdit - Accès non autorisé.
Erreur de validation
{- "data": [
- {
- "id": 0,
- "uuid": "string",
- "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "scheduled_at": "2019-08-24T14:15:22Z",
- "tracking_link": "string",
- "subscription_uuid": "string",
- "address_id": 0,
- "phone": "string",
- "status": "created",
- "tracking_number": "string",
- "customer_id": "string",
- "supply_transporter_reference": "string",
- "first_name": "string",
- "last_name": "string",
- "postcode": "string",
- "address1": "string",
- "address2": "string",
- "division": "string",
- "city": "string",
- "country": "string",
- "mail": "string",
- "subscriptions_count": "string",
- "transporter_name": "string",
- "shipped_count": "string",
- "site_name": "string",
- "options": "string",
- "iso_code": "string",
- "relay": "string",
- "relay_id": 0,
- "orderable_name": "string",
- "orderable_id": "string",
- "orderable_type": "App\\Product",
- "order_id": 0,
- "ref": "string"
}
]
}
Permet de le considérer comme expédié, et associer un lien de suivi.
Succès - Liste des bons de livraison traités avec succès.
Non autorisé - L'authentification est requise.
Interdit - Accès non autorisé.
Erreur de validation
{- "tracking_number": "string",
- "notification": true,
- "status": "created"
}
{- "data": [
- {
- "id": 0,
- "uuid": "string",
- "address": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}, - "transporter": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "scheduled_at": "2019-08-24T14:15:22Z",
- "tracking_link": "string",
- "subscription_uuid": "string",
- "address_id": 0,
- "phone": "string",
- "status": "created",
- "tracking_number": "string",
- "customer_id": "string",
- "supply_transporter_reference": "string",
- "first_name": "string",
- "last_name": "string",
- "postcode": "string",
- "address1": "string",
- "address2": "string",
- "division": "string",
- "city": "string",
- "country": "string",
- "mail": "string",
- "subscriptions_count": "string",
- "transporter_name": "string",
- "shipped_count": "string",
- "site_name": "string",
- "options": "string",
- "iso_code": "string",
- "relay": "string",
- "relay_id": 0,
- "orderable_name": "string",
- "orderable_id": "string",
- "orderable_type": "App\\Product",
- "order_id": 0,
- "ref": "string"
}
]
}
Supprime un élément du bon de livraison en utilisant son ID.
Succès
Non autorisé, veuillez vous authentifier
Non autorisé
Élément du bon de livraison non trouvé
{- "data": {
- "success": true
}
}
Permet de récupérer les indicateurs de performance avec différents filtres.
Liste des KPIs
Accès non autorisé
Accès interdit
La ressource n'a pas été trouvée
Erreur de validation
{- "data": [
- {
- "users_subscribed": 0,
- "subscriptions": 0,
- "sum_subscriptions": 0,
- "purchases": 0,
- "sum_purchases": 0,
- "subscriptions_paused": 0,
- "subscriptions_restarted": 0,
- "subscription_grace_total": 0,
- "subscription_grace_ending": 0,
- "lives": 0,
- "active_expired": 0,
- "source_updated_count": 0,
- "voided_unsub_voucher_count": 0,
- "voided_unsub_postpone_count": 0,
- "amount_utm": 0,
- "amount_referral": 0,
- "amount_regain": 0,
- "amount_retry": 0,
- "amount_renew": 0,
- "amount_backend": 0,
- "amount_unsub_voucher": 0,
- "amount_unsub_postpone": 0,
- "amount_reactivation_offer": 0,
- "count_utm": 0,
- "count_referral": 0,
- "count_regain": 0,
- "count_retry": 0,
- "count_renew": 0,
- "count_backend": 0,
- "count_unsub_voucher": 0,
- "count_unsub_postpone": 0,
- "count_reactivation_offer": 0,
- "count_followup": 0,
- "amount_followup": 0,
- "amount_renew_failed": 0,
- "count_renew_failed": 0,
- "created_at": "2019-08-24T14:15:22Z"
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Cette route permet de lister des adresses.
Réponse en cas de succès
Accès non autorisé
Accès interdit
L'adresse n'a pas été trouvée
Erreur de validation
{- "data": [
- {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Cette route permet de mettre à jour une adresse.
Réponse en cas de succès
Accès non autorisé
Accès interdit
L'adresse n'a pas été trouvée
Erreur de validation
{- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "first_name": "string",
- "last_name": "string",
- "company_name": "string",
- "phone": "string",
- "region_id": 0
}
{- "data": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
}
Cette route permet de récupérer une adresse.
Réponse en cas de succès
Accès non autorisé
Accès interdit
L'adresse n'a pas été trouvée
Erreur de validation
{- "data": {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
}
Cette route permet de récupérer une liste d'utilisateurs.
Réponse en cas de succès
Accès non autorisé
Accès interdit
Erreur de validation
{- "data": [
- {
- "id": 0,
- "email": "user@example.com",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "refp": "string",
- "can_void_with_coupon": true,
- "has_active_subscription": true,
- "external_id": "string",
- "addresses": [
- {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
], - "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Cette route permet de créer un nouveau compte utilisateur. Si l'adresse email existe, la réponse contiendra l'utilisateur associé. Dans le cas contraire, le compte est créé, et le compte créé se trouve dans la réponse.
Création réussie
Accès non autorisé
Accès interdit
Erreur de validation
{- "email": "user@example.com",
- "external_id": "some_external_id"
}
{- "id": 0,
- "email": "user@example.com",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "refp": "string",
- "can_void_with_coupon": true,
- "has_active_subscription": true,
- "external_id": "string",
- "addresses": [
- {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
], - "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0
}
Succès
Accès non autorisé
Accès interdit
La ressource n'a pas été trouvée
Erreur de validation
{- "id": 0,
- "email": "user@example.com",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "refp": "string",
- "can_void_with_coupon": true,
- "has_active_subscription": true,
- "external_id": "string",
- "addresses": [
- {
- "id": 0,
- "user_id": 0,
- "company_name": "string",
- "address": "string",
- "address1": "string",
- "postcode": "string",
- "city": "string",
- "phone": "string",
- "first_name": "string",
- "last_name": "string",
- "region_id": 0,
- "division": "string",
- "division_name": "string",
- "external_id": "string",
- "deletable": true,
- "country": {
- "id": 0,
- "name": "string",
- "alphaCode": "string"
}
}
], - "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0
}
object Filtres pour les transactions (tableau associatif) |
Réponse réussie
Accès non autorisé
Accès interdit
La ressource n'a pas été trouvée
Erreur de validation
{- "data": [
- {
- "order_id": 0,
- "order": {
- "order_id": 0,
- "user_id": 0,
- "user_uuid": "7c4d2d7d-8620-4fb3-967a-4a621082cf1f",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "email": "string",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "items": [
- {
- "id": 0,
- "price": 0,
- "tax": "string",
- "quantity": 0,
- "name": "string",
- "type": "string",
- "orderable": {
- "id": 0,
- "name": "string",
- "tenant_id": 0
}
}
], - "shipping": "string",
- "count": 0,
- "total_tax_paid": "string",
- "total_discount_inc": "string",
- "total_paid": "string",
- "total_shipping_paid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "coupon": [ ],
- "subscription_uuid": "string",
- "revenue": 0,
- "refunded": 0,
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "next_billing": "2019-08-24T14:15:22Z",
- "countTransactions": 0,
- "choices": { },
- "retry_link": "string",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}, - "gateway": "string",
- "transaction_id": "string",
- "detail": "string",
- "token": "string",
- "tenant_id": 0,
- "paid": true,
- "amount": "string",
- "refunded": true,
- "source_id": "string",
- "failure_message": "string",
- "failure_code": "string",
- "invoice_id": 0,
- "amount_refunded": "string",
- "statement_descriptor": "string",
- "user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "payment_intent_id": "string"
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Réponse réussie
Accès non autorisé
Accès interdit
La ressource n'a pas été trouvée
Erreur de validation
{- "order_id": 0,
- "order": {
- "order_id": 0,
- "user_id": 0,
- "user_uuid": "7c4d2d7d-8620-4fb3-967a-4a621082cf1f",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "email": "string",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "items": [
- {
- "id": 0,
- "price": 0,
- "tax": "string",
- "quantity": 0,
- "name": "string",
- "type": "string",
- "orderable": {
- "id": 0,
- "name": "string",
- "tenant_id": 0
}
}
], - "shipping": "string",
- "count": 0,
- "total_tax_paid": "string",
- "total_discount_inc": "string",
- "total_paid": "string",
- "total_shipping_paid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "coupon": [ ],
- "subscription_uuid": "string",
- "revenue": 0,
- "refunded": 0,
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "next_billing": "2019-08-24T14:15:22Z",
- "countTransactions": 0,
- "choices": { },
- "retry_link": "string",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}, - "gateway": "string",
- "transaction_id": "string",
- "detail": "string",
- "token": "string",
- "tenant_id": 0,
- "paid": true,
- "amount": "string",
- "refunded": true,
- "source_id": "string",
- "failure_message": "string",
- "failure_code": "string",
- "invoice_id": 0,
- "amount_refunded": "string",
- "statement_descriptor": "string",
- "user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "payment_intent_id": "string"
}
Réponse réussie
Accès non autorisé
Accès interdit
La ressource n'a pas été trouvée
Erreur de validation
{- "amount": 0
}
{- "order_id": 0,
- "order": {
- "order_id": 0,
- "user_id": 0,
- "user_uuid": "7c4d2d7d-8620-4fb3-967a-4a621082cf1f",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "email": "string",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "items": [
- {
- "id": 0,
- "price": 0,
- "tax": "string",
- "quantity": 0,
- "name": "string",
- "type": "string",
- "orderable": {
- "id": 0,
- "name": "string",
- "tenant_id": 0
}
}
], - "shipping": "string",
- "count": 0,
- "total_tax_paid": "string",
- "total_discount_inc": "string",
- "total_paid": "string",
- "total_shipping_paid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "coupon": [ ],
- "subscription_uuid": "string",
- "revenue": 0,
- "refunded": 0,
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "next_billing": "2019-08-24T14:15:22Z",
- "countTransactions": 0,
- "choices": { },
- "retry_link": "string",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}, - "gateway": "string",
- "transaction_id": "string",
- "detail": "string",
- "token": "string",
- "tenant_id": 0,
- "paid": true,
- "amount": "string",
- "refunded": true,
- "source_id": "string",
- "failure_message": "string",
- "failure_code": "string",
- "invoice_id": 0,
- "amount_refunded": "string",
- "statement_descriptor": "string",
- "user_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "payment_intent_id": "string"
}
Succès
Accès non autorisé
Authentification requise
Erreur de validation
{- "data": [
- {
- "order_id": 0,
- "user_id": 0,
- "user_uuid": "7c4d2d7d-8620-4fb3-967a-4a621082cf1f",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "email": "string",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "items": [
- {
- "id": 0,
- "price": 0,
- "tax": "string",
- "quantity": 0,
- "name": "string",
- "type": "string",
- "orderable": {
- "id": 0,
- "name": "string",
- "tenant_id": 0
}
}
], - "shipping": "string",
- "count": 0,
- "total_tax_paid": "string",
- "total_discount_inc": "string",
- "total_paid": "string",
- "total_shipping_paid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "coupon": [ ],
- "subscription_uuid": "string",
- "revenue": 0,
- "refunded": 0,
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "next_billing": "2019-08-24T14:15:22Z",
- "countTransactions": 0,
- "choices": { },
- "retry_link": "string",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}
], - "links": {
- "first": "string",
- "last": "string",
- "prev": "string",
- "next": "string"
}, - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0,
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "path": "string",
- "per_page": 0,
- "to": 0,
- "total": 0
}
}
Succès
Accès non autorisé
Accès interd
La commande n'a pas été trouvée
Erreur de validation
{- "data": {
- "order_id": 0,
- "user_id": 0,
- "user_uuid": "7c4d2d7d-8620-4fb3-967a-4a621082cf1f",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "email": "string",
- "status": "string",
- "created": "2019-08-24T14:15:22Z",
- "items": [
- {
- "id": 0,
- "price": 0,
- "tax": "string",
- "quantity": 0,
- "name": "string",
- "type": "string",
- "orderable": {
- "id": 0,
- "name": "string",
- "tenant_id": 0
}
}
], - "shipping": "string",
- "count": 0,
- "total_tax_paid": "string",
- "total_discount_inc": "string",
- "total_paid": "string",
- "total_shipping_paid": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "coupon": [ ],
- "subscription_uuid": "string",
- "revenue": 0,
- "refunded": 0,
- "customerRevenue": "string",
- "customerRefund": "string",
- "totalTransactionsSuccess": 0,
- "subTransactionsSuccess": 0,
- "next_billing": "2019-08-24T14:15:22Z",
- "countTransactions": 0,
- "choices": { },
- "retry_link": "string",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}
}