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
{- "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". |
{- "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"
}
}
}
filter[id] | integer Filtrer par ID du produit |
filter[name] | string Filtrer par nom du produit |
filter[id_category] | integer Filtrer par ID de catégorie |
filter[quantity] | integer Filtrer par quantité |
filter[price] | number Filtrer par prix |
filter[active] | boolean Filtrer par état d'activité |
filter[slug] | string Filtrer par slug |
filter[virtual_product] | boolean Filtrer par produit virtuel |
filter[gift_card] | boolean Filtrer par carte cadeau |
filter[gift_plan] | string Filtrer par plan cadeau |
filter[disable_seo] | boolean Filtrer par désactivation SEO |
filter[ref] | string Filtrer par référence |
filter[composable] | boolean Filtrer par composable |
sort | string Enum: "plan_id" "customer_id" "canceled_at" "active" "start_date" "first_renewal_date" "end_date" "created_at" "grace_period" "grace_months" "auto_pause_at" "engaged_date" "gift_activation_code" "update_transporter_at" "transporter_id" "next_transporter_id" "next_coupon_id" "next_billing" "interval" "interval_count" Trier les résultats (ex: -name pour un tri descendant) |
page | integer Numéro de la page pour la pagination |
per_page | integer Nombre d'éléments par page |
{- "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
}
}
name required | string <= 255 characters |
slug | string <= 255 characters |
position | integer |
short_description | string <= 255 characters |
description required | string <= 255 characters |
meta_title | string <= 255 characters |
meta_description | string <= 255 characters |
id_category | integer |
quantity | integer |
price required | number |
tax required | number Enum: 0 0.2 0.055 0.1 0.021 0.21 0.06 |
active | boolean |
virtual_product | boolean |
salable | boolean |
gift_card | boolean |
gift_plan | string |
disable_seo | boolean |
ref required | string |
external_id | string |
Array of objects |
{- "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
}
}
]
}
}
ref required | string Référence du produit (SKU) |
{- "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
}
}
]
}
}
ref required | string Référence du produit (SKU) |
name | string <= 255 characters |
slug | string <= 255 characters |
position | integer |
short_description | string <= 255 characters |
description | string <= 255 characters |
meta_title | string <= 255 characters |
meta_description | string <= 255 characters |
id_category | integer |
quantity | integer |
price | number |
tax | number Enum: 0 0.2 0.055 0.1 0.021 0.21 0.06 |
active | boolean |
virtual_product | boolean |
salable | boolean |
gift_card | boolean |
gift_plan | string |
disable_seo | boolean |
ref | string |
external_id | string |
Array of objects |
{- "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
}
}
]
}
event_type required | string Enum: "created_subscription" "updated_subscription" "deleted_subscription" "created_checkoutorder" "updated_checkoutorder" "created_checkouttransaction" "updated_checkouttransaction" "created_checkoutinvoice" "created_address" "updated_address" "created_shippingbox" "updated_shippingbox" "deleted_shippingbox" "created_user" "updated_user" "created_optin" "updated_optin" Nom de l'évènement à avoir |
{ }
event_type required | string Enum: "created_subscription" "updated_subscription" "deleted_subscription" "created_checkoutorder" "updated_checkoutorder" "created_checkouttransaction" "updated_checkouttransaction" "created_checkoutinvoice" "created_address" "updated_address" "created_shippingbox" "updated_shippingbox" "deleted_shippingbox" "created_user" "updated_user" "created_optin" "updated_optin" |
hook_url required | string |
{- "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"
}
}
}
event_type required | string Enum: "created_subscription" "updated_subscription" "deleted_subscription" "created_checkoutorder" "updated_checkoutorder" "created_checkouttransaction" "updated_checkouttransaction" "created_checkoutinvoice" "created_address" "updated_address" "created_shippingbox" "updated_shippingbox" "deleted_shippingbox" "created_user" "updated_user" "created_optin" "updated_optin" |
{- "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"
}
}
}
id required | string UUID de l'abonnement |
{- "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",
- "retry_link": "string",
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "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"
}
}, - "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.
id required | string UUID de l'abonnement à mettre à jour |
Données à modifier sur l'abonnement
months | number <float> [ 1 .. 3 ] Nombre de mois pour mettre en pause l'abonnement (1, 2 ou 3 mois) (!= résiliation). |
active | boolean Indique si l'abonnement est actif. |
notification | boolean Default: true Lors de la résiliation d'un abonnement, notifier ou non par email. |
pause | boolean Indique si l'abonnement doit être mis en pause. |
next_billing | string Modifier la date du prochain paiement |
Array of objects nouveau contenu de l'abonnement, via external_id |
{- "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",
- "retry_link": "string",
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "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"
}
}, - "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.
filter[activated] | boolean Filtre par abonnements activés. |
filter[canceled] | boolean Filtre par abonnements annulés. |
filter[created_at_before] | string <date> Filtre par date de création avant la date spécifiée. |
filter[created_at_after] | string <date> Filtre par date de création après la date spécifiée. |
filter[canceled_since_before] | string <date> Filtre par date d'annulation avant la date spécifiée. |
filter[canceled_since_after] | string <date> Filtre par date d'annulation après la date spécifiée. |
filter[expired] | boolean Filtre par abonnements expirés. |
filter[in_grace_period] | boolean Filtre par abonnements en période de grâce. |
filter[engaged_before] | string <date> Filtre par date d'engagement avant la date spécifiée. |
filter[engaged_after] | string <date> Filtre par date d'engagement après la date spécifiée. |
filter[next_billing_before] | string <date> Filtre par date de prochaine facturation avant la date spécifiée. |
filter[next_billing_after] | string <date> Filtre par date de prochaine facturation après la date spécifiée. |
filter[end_date_before] | string <date> Filtre par date de fin d'abonnement avant la date spécifiée. |
filter[end_date_after] | string <date> Filtre par date de fin d'abonnement après la date spécifiée. |
filter[subscriptions_by_email] | string <email> Filtre par adresse e-mail. |
filter[plan_id] | string <= 255 characters Filtre par ID de plan. |
filter[customer_id] | string <= 255 characters Filtre par ID de client. |
sort | string Enum: "plan_id" "customer_id" "canceled_at" "active" "start_date" "first_renewal_date" "end_date" "created_at" "grace_period" "grace_months" "auto_pause_at" "engaged_date" "gift_activation_code" "update_transporter_at" "transporter_id" "next_transporter_id" "next_coupon_id" "next_billing" "interval" "interval_count" Options de tri. |
{- "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",
- "retry_link": "string",
- "interval": "string",
- "interval_count": 0,
- "switch_plan_uuid": "string",
- "switch_plan_date": "2019-08-24T14:15:22Z",
- "referrer": "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"
}
}, - "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.
filter[uuid] | string Filtrer par UUID du bon de livraison. |
filter[subscription_uuid] | string Filtrer par UUID de la souscription associée. |
filter[address_id] | integer Filtrer par ID de l'adresse. |
filter[phone] | string Filtrer par numéro de téléphone. |
filter[tracking_number] | string Filtrer par numéro de suivi. |
filter[customer_id] | string Filtrer par ID du client. |
filter[transporter_reference] | string Filtrer par référence du transporteur. |
filter[transporter_reference] | string Filtrer par référence transporteur. |
filter[transporter_id] | integer Filtrer par ID du transporteur. |
filter[first_name] | string Filtrer par prénom. |
filter[last_name] | string Filtrer par nom de famille. |
filter[postcode] | string Filtrer par code postal. |
filter[address1] | string Filtrer par adresse ligne 1. |
filter[address2] | string Filtrer par adresse ligne 2. |
filter[city] | string Filtrer par ville. |
filter[country] | string Filtrer par pays. |
filter[mail] | string Filtrer par adresse e-mail. |
filter[transporter_name] | string Filtrer par nom du transporteur. |
filter[plan] | string Filtrer par nom du plan. |
filter[iso_code] | string Filtrer par code ISO du pays. |
filter[relay_id] | integer Filtrer par ID du relais. |
filter[orderable_name] | string Filtrer par nom de l'élément commandable. |
filter[orderable_id] | integer Filtrer par ID de l'élément commandable. |
filter[orderable_type] | string Filtrer par type de l'élément commandable. |
filter[order_id] | integer Filtrer par ID de commande. |
filter[tracking_url] | string Filtrer par URL de suivi. |
filter[quantity] | string Filtrer par quantité. |
filter[ref] | string Filtrer par référence. |
filter[status] | string Filtrer par statut du bon de livraison. |
filter[division] | string Filtrer état. |
filter[company_name] | string Filtrer par nom de l'entreprise. |
filter[created_at_before] | string <date-time> Filtrer par date de création antérieure. |
filter[created_at_after] | string <date-time> Filtrer par date de création ultérieure. |
filter[updated_at_before] | string <date-time> Filtrer par date de mise à jour antérieure. |
filter[updated_at_after] | string <date-time> Filtrer par date de mise à jour ultérieure. |
filter[scheduled_at_before] | string <date-time> Filtrer par date prévue antérieure. |
filter[scheduled_at_after] | string <date-time> Filtrer par date prévue ultérieure. |
sort | string Enum: "uuid" "subscription_uuid" "address_id" "phone" "tracking_number" "customer_id" "transporter_reference" "transporter_id" "created_at" "updated_at" "first_name" "last_name" "postcode" "address1" "address2" "city" "country" "mail" "transporter_name" "plan" "iso_code" "relay" "relay_id" "orderable_name" "orderable_id" "orderable_type" "order_id" "scheduled_at" "tracking_url" "quantity" "ref" "status" "division" "company_name" Trier les résultats par un champ donné. |
{- "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.
id required | string ID de l'abonnement |
{- "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.
id required | string ID de l'abonnement |
tracking_number | string Numéro de suivi à associer au bon de livraison |
notification | boolean Envoyer une notification d'expédition |
status | string Enum: "created" "pending" "shipped" "delivered" "scheduled" "canceled" Nouveau statut du BL |
{- "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"
}
]
}
Permet de récupérer les indicateurs de performance avec différents filtres.
filter[created_at_before] | string <date> Filtre les KPIs créés avant cette date |
filter[created_at_after] | string <date> Filtre les KPIs créés après cette date |
sort | string Enum: "created_at" "-created_at" Tri des résultats (prefix - pour ordre décroissant) |
{- "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.
object Filtres pour la liste d'adresses | |
sort | string Enum: "region_id" "user_id" "address" "address1" "postcode" "city" "first_name" "last_name" "company_name" "division" "phone" "created_at" "updated_at" Trier les adresses par colonne spécifiée. |
{- "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.
id required | integer ID de l'adresse à mettre à jour. |
address | string <= 32 characters |
address1 | string <= 32 characters |
postcode | string |
city | string |
first_name | string |
last_name | string |
company_name | string |
phone | string |
region_id | integer |
{- "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.
id required | integer ID de l'adresse à mettre à jour. |
{- "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.
object Example: created_at_before=2023-01-01&email=user@example.com Filtres pour la liste d'utilisateurs. | |
sort | string Enum: "id" "uuid" "email" "created_at" "updated_at" Example: sort=id Trier la liste d'utilisateurs. |
{- "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.
email required | string <email> Adresse e-mail de l'utilisateur |
external_id | string Identifiant externe optionnel à enregistrer |
{- "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
}
id required | integer UUID de l'utilisateur |
{- "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) |
{- "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",
- "external_id": "string",
- "ref": "string"
}
], - "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",
- "next_try": "2019-08-24T14:15:22Z",
- "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
}
}
transaction_id required | string L'identifiant de la transaction à récupérer. |
{- "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",
- "external_id": "string",
- "ref": "string"
}
], - "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",
- "next_try": "2019-08-24T14:15:22Z",
- "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"
}
transaction_id required | string L'identifiant de la transaction à rembourser. |
amount | number Le montant à rembourser (numérique). |
{- "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",
- "external_id": "string",
- "ref": "string"
}
], - "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",
- "next_try": "2019-08-24T14:15:22Z",
- "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"
}
user_id | integer ID de l'utilisateur |
address_id | integer ID de l'adresse |
invoice_address_id | integer ID de l'adresse de facturation |
transporter_id | integer ID du transporteur |
status | string Enum: "canceled" "completed" "failed" "in_creation" "in_process" "pending" "need_action" Statut de la commande |
subscription_uuid | string <= 255 characters UUID de l'abonnement |
invoice_id | integer ID de la facture |
total_paid | number Montant total payé |
next_try | string <date> Prochaine tentative |
created_at_before | string <date> Date de création avant |
created_at_after | string <date> Date de création après |
updated_at_before | string <date> Date de mise à jour avant |
updated_at_after | string <date> Date de mise à jour après |
next_try_before | string <date> Prochaine tentative avant |
next_try_after | string <date> Prochaine tentative après |
by_customer_uuid | string <= 255 characters UUID du client |
source | string Enum: "utm" "referral" "regain" "retry" "renew" "backend" "unsub_voucher" "unsub_postpone" "reactivation_offer" "followup" Source de la commande |
sort | string Enum: "user_id" "address_id" "invoice_address_id" "transporter_id" "status" "subscription_uuid" "invoice_id" "total_paid" "next_try" "source" "created_at" "updated_at" Champ de tri |
prestashop_order_id | integer Correspondance commande prestasop |
{- "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",
- "external_id": "string",
- "ref": "string"
}
], - "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",
- "next_try": "2019-08-24T14:15:22Z",
- "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
}
}
id required | integer ID de la commande à récupérer |
{- "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",
- "external_id": "string",
- "ref": "string"
}
], - "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",
- "next_try": "2019-08-24T14:15:22Z",
- "paid_transaction_id": "string",
- "paid_class_key": "string"
}
}