To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /service/AddListMember HTTP/1.1
Host: www.bernhardthospitality.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
emailAddress: String,
emailClient: String,
emailType: String,
id: String,
interests:
{
String: False
},
ipOpt: String,
ipSignup: String,
language: String,
lastChanged: String,
listId: String,
location:
{
countryCode: String,
dstoff: 0,
gmtoff: 0,
latitude: 0,
longitude: 0,
timezone: String
},
memberRating: 0,
mergeFields:
{
String: {}
},
lastNote:
{
id: 0,
body: String,
createdAt: 0001-01-01,
createdBy: String
},
stats:
{
averageOpenRate: 0,
averageClickRate: 0
},
status: Subscribed,
statusIfNew: Subscribed,
unsubscribeReason: String,
timestampOpt: String,
timestampSignup: String,
uniqueEmailId: String,
vip: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
emailAddress: String,
emailClient: String,
emailType: String,
id: String,
interests:
{
String: False
},
ipOpt: String,
ipSignup: String,
language: String,
lastChanged: String,
listId: String,
location:
{
countryCode: String,
dstoff: 0,
gmtoff: 0,
latitude: 0,
longitude: 0,
timezone: String
},
memberRating: 0,
mergeFields:
{
String: {}
},
lastNote:
{
id: 0,
body: String,
createdAt: 0001-01-01,
createdBy: String
},
stats:
{
averageOpenRate: 0,
averageClickRate: 0
},
status: Subscribed,
statusIfNew: Subscribed,
unsubscribeReason: String,
timestampOpt: String,
timestampSignup: String,
uniqueEmailId: String,
vip: False
}