• Aide
  • Utilisateurs
  • Développeurs
  • Doc interne
  • e-learning
Show / Hide Table of Contents

Panier

Ajouter

Ajoute un article dans le panier

Url :[GET] /api/cart/nui/?action=add&reference={reference}&associermag={associermag}

Paramètres :

  • associermag : true pour ajouter au panier e-resa, false pour le panier principal
  • reference : reference du produit à ajouter

Type(s) de données :

class Panier
{
    LignePanier[] Lignes { get; set; }
    LignePanier FraisPort { get; set; }
    LignePanier[] Avantages { get; set; }
    bool EstValidable { get; set; }
    bool DemandeFraisPort { get; set; }
    string DestinationPrevueCodePostal { get; set; }
    string DestinationPrevueCodePays { get; set; }
    ErreurPanier ErreurPanier { get; set; }
    string Incitation { get; set; }
    string ModeLivraisonIdentifiant { get; set; }
    bool ModeLivraisonEstPointRetrait { get; set; }
    Guid ClientGuid { get; set; }
    string ClientNom { get; set; }
    bool EstClientConnecte { get; set; }
    decimal MontantTTCAvecMagasin { get; set; }
    string MontantTTCAvecMagasinFormate { get; set; }
    decimal MontantTTC { get; set; }
    string MontantTTCFormate { get; set; }
    string ProcessAPrivilegier { get; set; }
    PanierGroupe[] Groupes { get; set; }
    string CodeAvantageActif { get; set; }
}

Changer le magasin du panier

Change le magasin associer aux articles du panier

Url :[GET] /api/cart/nui/?action=setmagasinpanier&magasinGuid={magasinGuid}

Paramètres :

  • magasinGuid : Identifiant du magasin

Type(s) de données :

class ElementPanier
{
    decimal RemiseTTC { get; set; }
    decimal RemiseHT { get; set; }
    decimal PuHorsRemiseTTC { get; set; }
    decimal PuHorsRemiseHT { get; set; }
    string TypePrepa { get; set; }
    bool ExclusCalculPort { get; set; }
    bool QuantiteFixe { get; set; }
    bool NonModifiable { get; set; }
    Guid LigneGuid { get; set; }
    int SiteId { get; set; }
    Guid? ParentItemLigneGuid { get; set; }
    Guid? AvantageGuid { get; set; }
    string Libelle { get; set; }
    string Reference { get; set; }
    string Erreur { get; set; }
    string IntermediateImage { get; set; }
    string TinyImage { get; set; }
    string InfosPreparation { get; set; }
    decimal? PuHTHorsPromo { get; set; }
    decimal? PuTTCHorsPromo { get; set; }
    Guid? MagasinGuid { get; set; }
    Guid? PartenaireGuid { get; set; }
    string Groupe { get; set; }
    bool EnErreur { get; }
    decimal MontantTTC { get; }
    decimal MontantHT { get; }
    String[] AttributsDifferentiants { get; set; }
    String[] DonneesPersonnalisees { get; set; }
    String[] DetailsFraisAnnexes { get; set; }
    string Commentaire { get; set; }
    Guid[] ModesLivraisonExclus { get; set; }
    MetaTypeArticle TypeArticle { get; set; }
    Guid ArticleGuid { get; set; }
    decimal Quantite { get; set; }
    decimal PuHT { get; set; }
    decimal PuTTC { get; set; }
}

Changer le magasin actif

Change le magasin actif

Url :[GET] /api/cart/nui/?action=setmagasin&magasinGuid={magasinGuid}

Paramètres :

  • magasinGuid : Identifiant du magasin

Type(s) de données :

class ElementPanier
{
    decimal RemiseTTC { get; set; }
    decimal RemiseHT { get; set; }
    decimal PuHorsRemiseTTC { get; set; }
    decimal PuHorsRemiseHT { get; set; }
    string TypePrepa { get; set; }
    bool ExclusCalculPort { get; set; }
    bool QuantiteFixe { get; set; }
    bool NonModifiable { get; set; }
    Guid LigneGuid { get; set; }
    int SiteId { get; set; }
    Guid? ParentItemLigneGuid { get; set; }
    Guid? AvantageGuid { get; set; }
    string Libelle { get; set; }
    string Reference { get; set; }
    string Erreur { get; set; }
    string IntermediateImage { get; set; }
    string TinyImage { get; set; }
    string InfosPreparation { get; set; }
    decimal? PuHTHorsPromo { get; set; }
    decimal? PuTTCHorsPromo { get; set; }
    Guid? MagasinGuid { get; set; }
    Guid? PartenaireGuid { get; set; }
    string Groupe { get; set; }
    bool EnErreur { get; }
    decimal MontantTTC { get; }
    decimal MontantHT { get; }
    String[] AttributsDifferentiants { get; set; }
    String[] DonneesPersonnalisees { get; set; }
    String[] DetailsFraisAnnexes { get; set; }
    string Commentaire { get; set; }
    Guid[] ModesLivraisonExclus { get; set; }
    MetaTypeArticle TypeArticle { get; set; }
    Guid ArticleGuid { get; set; }
    decimal Quantite { get; set; }
    decimal PuHT { get; set; }
    decimal PuTTC { get; set; }
}

enum MetaTypeArticle
{
    Produit, // =0
    FraisDePort, // =1
    Avantages, // =2
    Services, // =3
    Loyers, // =4
    Lot, // =5
    Financier, // =6
    Taxe, // =7
    LicenceEtBrevet, // =8
}

Obtenir les modes de livraisons utilisables

Obtient la liste des modes de livraisons possibles

Url :[GET] /api/cart/nui/?action=getmodeslivraison

Paramètres :

  • Cette url n'accepte aucun paramètre

Type(s) de données :

class ChoixModeLivraison
{
    string Identifiant { get; set; }
    bool EstPointLivraison { get; set; }
    string Transporteur { get; set; }
    string Reference { get; set; }
    decimal PuHT { get; set; }
    decimal PuTTC { get; set; }
    decimal PuHorsRemiseHT { get; set; }
    decimal PuHorsRemiseTTC { get; set; }
    decimal RemiseHT { get; set; }
    decimal RemiseTTC { get; set; }
    string PrixFormate { get; set; }
    string PrixOriginalFormate { get; set; }
    string RemiseFormatee { get; set; }
    DateTime DateEstimee { get; set; }
    TypeDestinationLivraison TypeDestination { get; set; }
    TypeServiceLivraison TypeService { get; set; }
    bool EstActif { get; set; }
}

enum TypeDestinationLivraison
{
    AdresseClient, // =0
    PointLivraison, // =1
    Magasin, // =2
}

enum TypeServiceLivraison
{
    Standard, // =0
    Express, // =1
    Coursier, // =2
}

Vérifier panier disponible magasin

Vérifie que tous les articles du groupe de panier principal (sauf associé magasin, ni associé à un type de prépa) sont disponible dans le magasin

Url :[GET] /api/cart/nui/?action=verifdispomagasin&magasinGuid={magasinGuid}

Paramètres :

  • magasinGuid : Identifiant du magasin

Type(s) de données :

class ElementPanier
{
    decimal RemiseTTC { get; set; }
    decimal RemiseHT { get; set; }
    decimal PuHorsRemiseTTC { get; set; }
    decimal PuHorsRemiseHT { get; set; }
    string TypePrepa { get; set; }
    bool ExclusCalculPort { get; set; }
    bool QuantiteFixe { get; set; }
    bool NonModifiable { get; set; }
    Guid LigneGuid { get; set; }
    int SiteId { get; set; }
    Guid? ParentItemLigneGuid { get; set; }
    Guid? AvantageGuid { get; set; }
    string Libelle { get; set; }
    string Reference { get; set; }
    string Erreur { get; set; }
    string IntermediateImage { get; set; }
    string TinyImage { get; set; }
    string InfosPreparation { get; set; }
    decimal? PuHTHorsPromo { get; set; }
    decimal? PuTTCHorsPromo { get; set; }
    Guid? MagasinGuid { get; set; }
    Guid? PartenaireGuid { get; set; }
    string Groupe { get; set; }
    bool EnErreur { get; }
    decimal MontantTTC { get; }
    decimal MontantHT { get; }
    String[] AttributsDifferentiants { get; set; }
    String[] DonneesPersonnalisees { get; set; }
    String[] DetailsFraisAnnexes { get; set; }
    string Commentaire { get; set; }
    Guid[] ModesLivraisonExclus { get; set; }
    MetaTypeArticle TypeArticle { get; set; }
    Guid ArticleGuid { get; set; }
    decimal Quantite { get; set; }
    decimal PuHT { get; set; }
    decimal PuTTC { get; set; }
}

Vider le panier

Retire tous les produits du panier

Url :[GET] /api/cart/nui/?action=clear

Paramètres :

  • Cette url n'accepte aucun paramètre

Type(s) de données :

class Panier
{
    LignePanier[] Lignes { get; set; }
    LignePanier FraisPort { get; set; }
    LignePanier[] Avantages { get; set; }
    bool EstValidable { get; set; }
    bool DemandeFraisPort { get; set; }
    string DestinationPrevueCodePostal { get; set; }
    string DestinationPrevueCodePays { get; set; }
    ErreurPanier ErreurPanier { get; set; }
    string Incitation { get; set; }
    string ModeLivraisonIdentifiant { get; set; }
    bool ModeLivraisonEstPointRetrait { get; set; }
    Guid ClientGuid { get; set; }
    string ClientNom { get; set; }
    bool EstClientConnecte { get; set; }
    decimal MontantTTCAvecMagasin { get; set; }
    string MontantTTCAvecMagasinFormate { get; set; }
    decimal MontantTTC { get; set; }
    string MontantTTCFormate { get; set; }
    string ProcessAPrivilegier { get; set; }
    PanierGroupe[] Groupes { get; set; }
    string CodeAvantageActif { get; set; }
}