BWUKNewsletterSignup

<back to all web services

BWEmailSignupRequest

Requires Authentication
The following routes are available for this service:
POST/1.0/BWEmailSignupRequestPass the email sign up requests for updating CRM
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BWUKNewsletterSignup;

namespace BWUKNewsletterSignup
{
    public partial class BWEmailSignupRequest
    {
        ///<summary>
        ///Customer Surname
        ///</summary>
        [ApiMember(Description="Customer Surname")]
        public virtual string surname { get; set; }

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

        ///<summary>
        ///Customer Email Address
        ///</summary>
        [ApiMember(Description="Customer Email Address")]
        public virtual string emailAddress { get; set; }
    }

    public partial class BWEmailSignupResponse
    {
        public virtual string Result { get; set; }
    }

}

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

POST /1.0/BWEmailSignupRequest HTTP/1.1 
Host: bwuknewsletterws-uat.rapp-customers.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"surname":"String","forename":"String","emailAddress":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Result":"String"}