| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
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: application/json
Content-Length: length
{"ErrorNo":0,"Message":"String","Identity":0}