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
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class BWEmailSignupRequest
    {
        /**
        * Customer Surname
        */
        @ApiMember(Description="Customer Surname")
        public String surname = null;

        /**
        * Customer Forename
        */
        @ApiMember(Description="Customer Forename")
        public String forename = null;

        /**
        * Customer Email Address
        */
        @ApiMember(Description="Customer Email Address")
        public String emailAddress = null;
        
        public String getSurname() { return surname; }
        public BWEmailSignupRequest setSurname(String value) { this.surname = value; return this; }
        public String getForename() { return forename; }
        public BWEmailSignupRequest setForename(String value) { this.forename = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public BWEmailSignupRequest setEmailAddress(String value) { this.emailAddress = value; return this; }
    }

    public static class BWEmailSignupResponse
    {
        public String Result = null;
        
        public String getResult() { return Result; }
        public BWEmailSignupResponse setResult(String value) { this.Result = value; return this; }
    }

}

Java BWEmailSignupRequest DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

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

{"Result":"String"}