Richemont.Booster2.PublicApi

<back to all web services

UpdateConsents

Requires Authentication
The following routes are available for this service:
PATCH/customer/{boosterCustomerId}/updateConsentsUpdate customer consentsUpdate customer consents
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.CRM.ServiceModel;

namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
{
    public partial class UpdateConsents
    {
        ///<summary>
        ///Booster customer Id
        ///</summary>
        [ApiMember(Description="Booster customer Id")]
        public virtual int boosterCustomerId { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not.")]
        public virtual bool contactByEmailFlag { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not.")]
        public virtual bool contactByMailFlag { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not.")]
        public virtual bool contactByPhoneFlag { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not.")]
        public virtual bool contactBySMSFlag { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not.")]
        public virtual bool contactBySocialMediaFlag { get; set; }

        ///<summary>
        ///Provide 'true' if you want to be contacted at all. Leave empty or 'false' if you do not - if chosen false, all contactBy* will be set to false also
        ///</summary>
        [ApiMember(Description="Provide 'true' if you want to be contacted at all. Leave empty or 'false' if you do not - if chosen false, all contactBy* will be set to false also")]
        public virtual bool privacyAcceptance { get; set; }

        ///<summary>
        ///Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not.
        ///</summary>
        [ApiMember(Description="Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not.")]
        public virtual bool? allowStoreDataAbroad { get; set; }
    }

}

C# UpdateConsents 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.

PATCH /customer/{boosterCustomerId}/updateConsents HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"boosterCustomerId":0,"contactByEmailFlag":false,"contactByMailFlag":false,"contactByPhoneFlag":false,"contactBySMSFlag":false,"contactBySocialMediaFlag":false,"privacyAcceptance":false,"allowStoreDataAbroad":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}