Richemont.Booster2.PublicApi

<back to all web services

GetCustomerPaginated

Requires Authentication
The following routes are available for this service:
GET/customer/{brand}/slimGet customers listGet slim list of customers paginated and sorted
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.CRM.ServiceModel;
using Richemont.Booster2.PublicApi.Common.ServiceModel;

namespace Richemont.Booster2.PublicApi.Common.ServiceModel
{
    public partial class ProductCategory
    {
        ///<summary>
        ///Brand Category ID
        ///</summary>
        [ApiMember(Description="Brand Category ID")]
        public virtual string brandCategoryId { get; set; }

        ///<summary>
        ///Grand Category ID
        ///</summary>
        [ApiMember(Description="Grand Category ID", IsRequired=true)]
        public virtual string grandCategoryId { get; set; }

        ///<summary>
        ///Master Category ID
        ///</summary>
        [ApiMember(Description="Master Category ID")]
        public virtual string masterCategoryId { get; set; }

        ///<summary>
        ///Category ID
        ///</summary>
        [ApiMember(Description="Category ID")]
        public virtual string categoryId { get; set; }

        ///<summary>
        ///Sub Category ID
        ///</summary>
        [ApiMember(Description="Sub Category ID")]
        public virtual string subCategoryId { get; set; }
    }

}

namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
{
    public partial class GetCustomerHobby
    {
        ///<summary>
        ///Hobby description
        ///</summary>
        [ApiMember(Description="Hobby description")]
        public virtual string hobby { get; set; }

        ///<summary>
        ///SAP Hobby ID, e.g. 'ART'
        ///</summary>
        [ApiMember(Description="SAP Hobby ID, e.g. 'ART'")]
        public virtual string sapHobbyId { get; set; }
    }

    public partial class GetCustomerInterest
    {
        ///<summary>
        ///Interest description
        ///</summary>
        [ApiMember(Description="Interest description", IsRequired=true)]
        public virtual string interest { get; set; }

        ///<summary>
        ///SAP Interest ID, e.g. 'CA-1'
        ///</summary>
        [ApiMember(Description="SAP Interest ID, e.g. 'CA-1'", IsRequired=true)]
        public virtual string sapInterestId { get; set; }
    }

    public partial class GetCustomerPaginated
        : SearchCustomer, IPagedRequest
    {
        ///<summary>
        ///Index of the result set returned
        ///</summary>
        [ApiMember(Description="Index of the result set returned")]
        public virtual int page { get; set; }

        ///<summary>
        ///Size of the result set returned
        ///</summary>
        [ApiMember(Description="Size of the result set returned")]
        public virtual int items { get; set; }

        ///<summary>
        ///Omit precise record count - save on performance
        ///</summary>
        [ApiMember(Description="Omit precise record count - save on performance")]
        public virtual bool noCount { get; set; }

        ///<summary>
        ///Values can be 'NameDESC', 'NameASC', 'RegASC', 'RegDESC'
        ///</summary>
        [ApiMember(Description="Values can be 'NameDESC', 'NameASC', 'RegASC', 'RegDESC'")]
        public virtual string sortBy { get; set; }
    }

    public partial class GetCustomerPaginatedElement
    {
        ///<summary>
        ///Booster Customer Id
        ///</summary>
        [ApiMember(Description="Booster Customer Id", IsRequired=true)]
        public virtual int boosterCustomerId { get; set; }

        ///<summary>
        ///First name
        ///</summary>
        [ApiMember(Description="First name", IsRequired=true)]
        public virtual string firstName { get; set; }

        ///<summary>
        ///Middle name
        ///</summary>
        [ApiMember(Description="Middle name", IsRequired=true)]
        public virtual string middleName { get; set; }

        ///<summary>
        ///Last name
        ///</summary>
        [ApiMember(Description="Last name", IsRequired=true)]
        public virtual string lastName { get; set; }

        ///<summary>
        ///First name Not Latin
        ///</summary>
        [ApiMember(Description="First name Not Latin", IsRequired=true)]
        public virtual string firstNameNotLatin { get; set; }

        ///<summary>
        ///Last name Not Latin
        ///</summary>
        [ApiMember(Description="Last name Not Latin", IsRequired=true)]
        public virtual string lastNameNotLatin { get; set; }

        ///<summary>
        ///Customer phone
        ///</summary>
        [ApiMember(Description="Customer phone", IsRequired=true)]
        public virtual string phone { get; set; }

        ///<summary>
        ///Phone Country Prefix
        ///</summary>
        [ApiMember(Description="Phone Country Prefix", IsRequired=true)]
        public virtual string countryPrefix { get; set; }

        ///<summary>
        ///Customer email
        ///</summary>
        [ApiMember(Description="Customer email", IsRequired=true)]
        public virtual string email { get; set; }

        ///<summary>
        ///Data Sharing Consent
        ///</summary>
        [ApiMember(Description="Data Sharing Consent", IsRequired=true)]
        public virtual bool? dataSharingConsent { get; set; }

        ///<summary>
        ///Sellout Transaction Count
        ///</summary>
        [ApiMember(Description="Sellout Transaction Count", IsRequired=true)]
        public virtual int selloutTransactionCount { get; set; }

        ///<summary>
        ///Elevate Customer ID
        ///</summary>
        [ApiMember(Description="Elevate Customer ID")]
        public virtual string elevateCustomerId { get; set; }

        ///<summary>
        ///Elevate Consent Status
        ///</summary>
        [ApiMember(Description="Elevate Consent Status")]
        public virtual string elevateConsentStatus { get; set; }

        ///<summary>
        ///Customer Country Id
        ///</summary>
        [ApiMember(Description="Customer Country Id")]
        public virtual string countryId { get; set; }

        ///<summary>
        ///Registration date
        ///</summary>
        [ApiMember(Description="Registration date")]
        public virtual DateTime? registrationDate { get; set; }

        ///<summary>
        ///Sap Crm Error Message
        ///</summary>
        [ApiMember(Description="Sap Crm Error Message")]
        public virtual string sapCrmErrorMessage { get; set; }
    }

    public partial class GetCustomerPaginatedResponse
    {
        ///<summary>
        ///Total Pages
        ///</summary>
        [ApiMember(Description="Total Pages", IsRequired=true)]
        public virtual int totalPages { get; set; }

        ///<summary>
        ///Total Results
        ///</summary>
        [ApiMember(Description="Total Results", IsRequired=true)]
        public virtual int totalResults { get; set; }

        ///<summary>
        ///Index of the result set returned
        ///</summary>
        [ApiMember(Description="Index of the result set returned", IsRequired=true)]
        public virtual int page { get; set; }

        ///<summary>
        ///Size of the result set returned
        ///</summary>
        [ApiMember(Description="Size of the result set returned", IsRequired=true)]
        public virtual int items { get; set; }

        ///<summary>
        ///List of customers
        ///</summary>
        [ApiMember(Description="List of customers", IsRequired=true)]
        public virtual IEnumerable<GetCustomerPaginatedElement> elements { get; set; }
    }

    public partial class GetCustomerProductCollection
    {
        ///<summary>
        ///Product Collection description
        ///</summary>
        [ApiMember(Description="Product Collection description", IsRequired=true)]
        public virtual string productCollection { get; set; }

        ///<summary>
        ///SAP ProductCollection ID, e.g. 'CA-1'
        ///</summary>
        [ApiMember(Description="SAP ProductCollection ID, e.g. 'CA-1'", IsRequired=true)]
        public virtual string sapProductCollectionId { get; set; }
    }

    public partial class SearchCustomer
    {
        public SearchCustomer()
        {
            posCodes = new List<string>{};
            locationCountryIds = new List<string>{};
            birthdateMonths = new List<int>{};
            interests = new List<GetCustomerInterest>{};
            hobbies = new List<GetCustomerHobby>{};
            productCollections = new List<GetCustomerProductCollection>{};
            customerStatus = new List<string>{};
            boosterCustomerIds = new List<int>{};
            productCategories = new List<ProductCategory>{};
            saleRepresentativeEmails = new List<string>{};
        }

        ///<summary>
        ///Brand
        ///</summary>
        [ApiMember(Description="Brand", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///POS Legacy
        ///</summary>
        [ApiMember(Description="POS Legacy", IsRequired=true)]
        public virtual List<string> posCodes { get; set; }

        ///<summary>
        ///Search key could be: 'Name', 'Email', 'Phone' without prefix, 'BoosterCustomerId' OR 'SapCRMId'
        ///</summary>
        [ApiMember(Description="Search key could be: 'Name', 'Email', 'Phone' without prefix, 'BoosterCustomerId' OR 'SapCRMId'")]
        public virtual string searchKey { get; set; }

        ///<summary>
        ///Search by phone number - exact match
        ///</summary>
        [ApiMember(Description="Search by phone number - exact match")]
        public virtual string phoneNumber { get; set; }

        ///<summary>
        ///Search by email address - exact match
        ///</summary>
        [ApiMember(Description="Search by email address - exact match")]
        public virtual string email { get; set; }

        ///<summary>
        ///Values can be 'it', 'en' etc.
        ///</summary>
        [ApiMember(Description="Values can be 'it', 'en' etc.")]
        public virtual List<string> locationCountryIds { get; set; }

        ///<summary>
        ///Client Spending From e.g. '100'
        ///</summary>
        [ApiMember(Description="Client Spending From e.g. '100'")]
        public virtual double? clientSpendingFrom { get; set; }

        ///<summary>
        ///Client Spending To e.g. '50000'
        ///</summary>
        [ApiMember(Description="Client Spending To e.g. '50000'")]
        public virtual double? clientSpendingTo { get; set; }

        ///<summary>
        ///Customer Creation Date From e.g. '2022-01-01'
        ///</summary>
        [ApiMember(Description="Customer Creation Date From e.g. '2022-01-01'")]
        public virtual DateTime? creationDateFrom { get; set; }

        ///<summary>
        ///Customer Creation Date To e.g. '2023-11-01'
        ///</summary>
        [ApiMember(Description="Customer Creation Date To e.g. '2023-11-01'")]
        public virtual DateTime? creationDateTo { get; set; }

        ///<summary>
        ///Transaction Date From e.g. '2022-01-01'
        ///</summary>
        [ApiMember(Description="Transaction Date From e.g. '2022-01-01'")]
        public virtual DateTime? transactionDateFrom { get; set; }

        ///<summary>
        ///Transaction Date To e.g. '2023-11-01'
        ///</summary>
        [ApiMember(Description="Transaction Date To e.g. '2023-11-01'")]
        public virtual DateTime? transactionDateTo { get; set; }

        ///<summary>
        ///Values can be 'true' or 'false'
        ///</summary>
        [ApiMember(Description="Values can be 'true' or 'false'")]
        public virtual bool? canBeContactedByMaison { get; set; }

        ///<summary>
        ///Values can be 1 for 'January', 2 for 'February', 3 for 'March', 4 for 'April', 5 for 'May', 6 for 'June', 7 for 'July', 8 for 'August', 9 for 'September', 10 for 'October', 11 for 'November', 12 for 'December'
        ///</summary>
        [ApiMember(Description="Values can be 1 for 'January', 2 for 'February', 3 for 'March', 4 for 'April', 5 for 'May', 6 for 'June', 7 for 'July', 8 for 'August', 9 for 'September', 10 for 'October', 11 for 'November', 12 for 'December'")]
        public virtual List<int> birthdateMonths { get; set; }

        ///<summary>
        ///Customer interest filter
        ///</summary>
        [ApiMember(Description="Customer interest filter")]
        public virtual List<GetCustomerInterest> interests { get; set; }

        ///<summary>
        ///Customer hobby filter
        ///</summary>
        [ApiMember(Description="Customer hobby filter")]
        public virtual List<GetCustomerHobby> hobbies { get; set; }

        ///<summary>
        ///Customer product collection filter
        ///</summary>
        [ApiMember(Description="Customer product collection filter")]
        public virtual List<GetCustomerProductCollection> productCollections { get; set; }

        ///<summary>
        ///Customer Status e.g. 'Prospect', 'Client'
        ///</summary>
        [ApiMember(Description="Customer Status e.g. 'Prospect', 'Client'")]
        public virtual List<string> customerStatus { get; set; }

        ///<summary>
        ///List of BoosterCustomerIds, e.g. 1234567,1231231,12323423
        ///</summary>
        [ApiMember(Description="List of BoosterCustomerIds, e.g. 1234567,1231231,12323423")]
        public virtual List<int> boosterCustomerIds { get; set; }

        ///<summary>
        ///Values can be 'true' or 'false'
        ///</summary>
        [ApiMember(Description="Values can be 'true' or 'false'")]
        public virtual bool? hasSapCrmError { get; set; }

        ///<summary>
        ///Product Categories
        ///</summary>
        [ApiMember(Description="Product Categories")]
        public virtual List<ProductCategory> productCategories { get; set; }

        ///<summary>
        ///Sale Reprentative Emails
        ///</summary>
        [ApiMember(Description="Sale Reprentative Emails")]
        public virtual List<string> saleRepresentativeEmails { get; set; }
    }

}

C# GetCustomerPaginated DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /customer/{brand}/slim HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"totalPages":0,"totalResults":0,"page":0,"items":0}