| POST | /UpdateMarketingPreferences | Updates marketing preferences for client | Updates marketing preferences for client |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EmailPreferences | body | PreferenceOption | No | Email notification preferences |
| SmsPreferences | body | PreferenceOption | No | Sms notification preferences |
| PushPreferences | body | PreferencePushOption | No | Push notification preferences |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountRelated | form | bool | No | Account Related email/sms notification |
| DepositOffersBets | form | bool | No | Personalised Deposit Offers Bets email/sms notification |
| ProductUpdates | form | bool | No | Product Updates email/sms notification |
| Promotions | form | bool | No | Promotions email/sms notification |
| Marketing | form | bool | No | Marketing email/sms notification |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Marketing | form | bool | No | Marketing push notification |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorNo | form | int | No | |
| Message | form | string | No | |
| Identity | form | long? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UpdateMarketingPreferences HTTP/1.1
Host: tstextweb20.np.bluebet.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
EmailPreferences:
{
AccountRelated: False,
DepositOffersBets: False,
ProductUpdates: False,
Promotions: False,
Marketing: False
},
SmsPreferences:
{
AccountRelated: False,
DepositOffersBets: False,
ProductUpdates: False,
Promotions: False,
Marketing: False
},
PushPreferences:
{
Marketing: False
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ErrorNo: 0,
Message: String,
Identity: 0
}