User Promotion APIs
POSTCreate User Promotion
- Description
- Creates promotions for a user.
- Request Endpoint
- POST https://<Example api server address>/user/promotion
- Parameters
- None.
- cURL Syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\" : \"491c6bc6-8a6f-4e44-aa08-d66e36a65eec\", \"promotionId\" : \"205c5b82-bdc2-47ac-9640-9288ebb2e73a\" }" \ 'https://core.dev.Example.net/api/user/promotion'
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a user. promotionId
String Required UUID of a promotion. - POST body
Headers: Content-Type: application/json
{ "userId": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "promotionId": "205c5b82-bdc2-47ac-9640-9288ebb2e73a" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "3fdbea05-47cb-4856-a6af-43b965536fba", "createdOn": 1482304278570, "lastModifiedOn": 1482304278570, "updatedBy": "", "deleted": false, "user": { "id": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "createdOn": 1474966273775, "lastModifiedOn": 1479887033703, "updatedBy": "", "deleted": false, "addresses": [ { "id": "9617a0ae-b8d1-4f6d-a108-9236e66e7586", "createdOn": 1479887033409, "lastModifiedOn": 1479887033409, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "Somewhere", "country": "United Kingdon", "countryCode": null, "county": "Clark", "postal": "89101", "state": "st", "street": null, "street1": "123 Test Ln", "street2": "", "street3": "" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "Somewhere", "st", "United Kingdon", "Clark", "89101" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [ { "addedOn": 1474966273458, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474966273458, "loginType": "MOBILE", "mobileNumber": null, "mobilePinResetStatus": null, "mobileVerificationStatus": null, "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1474966271005, "socialAuthenticationChannels": null, "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474966271005, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1474997035043, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null }, "promotions": [ { "id": "205c5b82-bdc2-47ac-9640-9288ebb2e73a", "createdOn": 1481973069064, "lastModifiedOn": 1481973069064, "updatedBy": "", "deleted": false, "name": "FREEsMdONdEsYsdnz", "promotionType": "PROMOTION", "qualifyingItemType": "PM", "promotionCode": "segwdedsddgn", "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": null, "usageLimitUsed": 0, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] }, "detail": null, "error": false, "message": "Saving promotion to User Promotion successful.", "code": "1000" }
PUTRemove Promotion From User Promotion List
- Description
- Removes a promotion from the user promotion list.
- Request Endpoint
- PUT https://<Example api server address>/user/remove/promotion
- Parameters
- None.
- cURL Syntax
curl --include \ --request PUT \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\" : \"491c6bc6-8a6f-4e44-aa08-d66e36a65eec\", \"promotionId\" : \"27676ea7-a983-4c44-882e-72cba048532c\" }" \ 'https://core.dev.Example.net/api/user/remove/promotion'
- PUT body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a user. promotionId
String Required UUID of a promotion. - PUT body
Headers: Content-Type: application/json
{ "userId": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "promotionId": "27676ea7-a983-4c44-882e-72cba048532c" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Removing promotion from list successful.", "code": "1000" }
GETFetch All User Promotions
- Description
- Fetches all user promotions.
- Request Endpoint
- GET https://<Example api server address>/user/promotions
- Parameters
- None.
- cURL Syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotions'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "3fdbea05-47cb-4856-a6af-43b965536fba", "createdOn": 1482304278570, "lastModifiedOn": 1482304361874, "updatedBy": "", "deleted": false, "user": { "id": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "createdOn": 1474966273775, "lastModifiedOn": 1479887033703, "updatedBy": "", "deleted": false, "addresses": [ { "id": "9617a0ae-b8d1-4f6d-a108-9236e66e7586", "createdOn": 1479887033409, "lastModifiedOn": 1479887033409, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "Somewhere", "country": "United Kingdon", "countryCode": null, "county": "Clark", "postal": "89101", "state": "st", "street": null, "street1": "123 Test Ln", "street2": "", "street3": "" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "Somewhere", "st", "United Kingdon", "Clark", "89101" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [ { "addedOn": 1474966273458, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474966273458, "loginType": "MOBILE", "mobileNumber": null, "mobilePinResetStatus": null, "mobileVerificationStatus": null, "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1474966271005, "socialAuthenticationChannels": null, "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474966271005, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1474997035043, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null }, "promotions": [ { "id": "205c5b82-bdc2-47ac-9640-9288ebb2e73a", "createdOn": 1481973069064, "lastModifiedOn": 1481973069064, "updatedBy": "", "deleted": false, "name": "FREEsMdONdEsYsdnz", "promotionType": "PROMOTION", "qualifyingItemType": "PM", "promotionCode": "segwdedsddgn", "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": null, "usageLimitUsed": 0, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] }, { "id": "b5a79976-12cf-45cd-9ff2-5a2ad0ce3971", "createdOn": 1482304433342, "lastModifiedOn": 1482304433342, "updatedBy": "", "deleted": false, "user": { "id": "784095a0-1771-4e7a-a3fd-f9335125c0c2", "createdOn": 1475233006176, "lastModifiedOn": 1475483894215, "updatedBy": "", "deleted": false, "addresses": null, "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Shruti Nagarkar", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "RN Shruti", "registrationDate": 1475233003451, "socialAuthenticationChannels": [ { "addedOn": 1475233006112, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1475233006112, "loginType": "FACEBOOK", "socialId": "sfwef34535xe", "deleted": false, "recycleSocialId": null, "emailAddress": null, "profileName": null } ], "status": "BLACKLISTED_FRAUD", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1475233003451, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1475240921772, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663791940000, "statusBeforeBlacklisting": "ACTIVE", "muid": null, "testUser": null }, "promotions": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null } ] } ], "last": true, "totalPages": 1, "totalElements": 2, "numberOfElements": 2, "sort": null, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching all User promotions successful.", "code": "1000" }
GETFetch One User Promotion
- Description
- Fetches user promotions for a given user promotion Id.
- Request Endpoint
- GET https://<Example api server address>/user/promotion/{id}
- Parameters
Parameter Type Use Description id String Required UUID of a user promotion id. - cURL Syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotion/{id}'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "3fdbea05-47cb-4856-a6af-43b965536fba", "createdOn": 1482304278570, "lastModifiedOn": 1482304361874, "updatedBy": "", "deleted": false, "user": { "id": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "createdOn": 1474966273775, "lastModifiedOn": 1479887033703, "updatedBy": "", "deleted": false, "addresses": [ { "id": "9617a0ae-b8d1-4f6d-a108-9236e66e7586", "createdOn": 1479887033409, "lastModifiedOn": 1479887033409, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "Somewhere", "country": "United Kingdon", "countryCode": null, "county": "Clark", "postal": "89101", "state": "st", "street": null, "street1": "123 Test Ln", "street2": "", "street3": "" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "Somewhere", "st", "United Kingdon", "Clark", "89101" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [ { "addedOn": 1474966273458, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474966273458, "loginType": "MOBILE", "mobileNumber": null, "mobilePinResetStatus": null, "mobileVerificationStatus": null, "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1474966271005, "socialAuthenticationChannels": null, "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474966271005, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1474997035043, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null }, "promotions": [ { "id": "205c5b82-bdc2-47ac-9640-9288ebb2e73a", "createdOn": 1481973069064, "lastModifiedOn": 1481973069064, "updatedBy": "", "deleted": false, "name": "FREEsMdONdEsYsdnz", "promotionType": "PROMOTION", "qualifyingItemType": "PM", "promotionCode": "segwdedsddgn", "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": null, "usageLimitUsed": 0, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] }, "detail": null, "error": false, "message": "Fetching User promotion details successful.", "code": "1000" }
GETDelete User Promotion
- Description
- Deletes user promotions for a given user promotion Id.
- Request Endpoint
- GET https://<Example api server address>/user/promotion/{id}
- Parameters
Parameter Type Use Description id String Required UUID of a user promotion id. - cURL Syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotion/{id}'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Deleting user promotion successful.", "code": "1000" }
DELETEDelete All Promotions From User Promotion
- Description
- Deletes all promotions from user promotions for a given user Id.
- Request Endpoint
- DELETE https://<Example api server address>/user/{id}/promotions
- Parameters
Parameter Type Use Description id String Required UUID of a user Id. - cURL Syntax
curl --include \ --request DELETE \ 'https://core.dev.Example.net/api/user/{id}/promotions'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Deleting all promotions from User promotion successful.", "code": "1000" }
GETFind All Saved Promotions Of User
- Description
- Saves all promotions from user promotions for a given user Id.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/promotions
- Parameters
Parameter Type Use Description id String Required UUID of a user id. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/{id}/promotions'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null }, { "id": "c1410863-7e8f-4f6e-8b25-a29e60c60df6", "createdOn": 1481974565956, "lastModifiedOn": 1482227005340, "updatedBy": "", "deleted": false, "name": "FREEsMdOdNdEssYsdnz", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": "ACTIVE", "usageLimitUsed": 2, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ], "detail": null, "error": false, "message": "Fetching all promotions saved by the user successful.", "code": "1000" }
GETFetch User Promotions by Promotion Id
- Description
- Fetches all user promotions by promotion id.
- Request Endpoint
- GET https://<Example api server address>/user/promotions/{id}
- Parameters
Parameter Type Use Description id String Required The promotion id. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotions/id'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "b5a79976-12cf-45cd-9ff2-5a2ad0ce3971", "createdOn": 1482304433342, "lastModifiedOn": 1482305050460, "updatedBy": "", "deleted": false, "user": { "id": "784095a0-1771-4e7a-a3fd-f9335125c0c2", "createdOn": 1475233006176, "lastModifiedOn": 1475483894215, "updatedBy": "", "deleted": false, "addresses": null, "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Shruti Nagarkar", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "RN Shruti", "registrationDate": 1475233003451, "socialAuthenticationChannels": [ { "addedOn": 1475233006112, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1475233006112, "loginType": "FACEBOOK", "socialId": "sfwef34535xe", "deleted": false, "recycleSocialId": null, "emailAddress": null, "profileName": null } ], "status": "BLACKLISTED_FRAUD", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1475233003451, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1475240921772, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663791940000, "statusBeforeBlacklisting": "ACTIVE", "muid": null, "testUser": null }, "promotions": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null }, { "id": "c1410863-7e8f-4f6e-8b25-a29e60c60df6", "createdOn": 1481974565956, "lastModifiedOn": 1482227005340, "updatedBy": "", "deleted": false, "name": "FREEsMdOdNdEssYsdnz", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": "ACTIVE", "usageLimitUsed": 2, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] } ], "last": true, "totalPages": 1, "totalElements": 1, "sort": null, "numberOfElements": 1, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching user promotions successful.", "code": "1000" }
GETFetch User Promotions By Promotion Code
- Description
- Fetches all user promotions by code.
- Request Endpoint
- GET https://<Example api server address>/user/promotions/by/code/{code}
- Parameters
Parameter Type Use Description code String Required The promotion code. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotions/by/code/code'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "512126db-b197-4469-981f-4779ac2164e3", "createdOn": 1482305518852, "lastModifiedOn": 1482305518852, "updatedBy": "", "deleted": false, "user": { "id": "192827fa-b160-4591-a594-bff6f1dc442a", "createdOn": 1480075698506, "lastModifiedOn": 1480489785005, "updatedBy": "", "deleted": false, "addresses": null, "devices": [ { "id": "1ef9182c-5f3a-46e7-9841-845944ec9c16", "createdOn": 1480075370331, "lastModifiedOn": 1480075370331, "updatedBy": "", "deleted": false, "description": "desc", "deviceStatus": "NORMAL", "manufacturer": "unknown", "model": "Android SDK built for x86", "os": "Android:6.0", "udid": "ghjhtrdecf", "simStateHashCode": "45f582df57d4aa6d53455b181c338859", "simCardState": "SIM_PRESENT", "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": null, "brand": null, "androidID": null, "advertiserID": null, "operator": null, "country": null, "language": null, "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "John", "fullName": "John Doe", "groupTag": [ "Android:6.0", "Android SDK built for x86", "GOOGLE", "unknown" ], "lastName": "Doe", "locationCountry": null, "locationZipCode": null, "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/2019d21f-5ea8-4e51-b914-9de7f8e55fe3.jpg", "profileName": "Nikita Sharma", "registrationDate": 1480075698297, "socialAuthenticationChannels": [ { "addedOn": 1480075698504, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1480075801736, "loginType": "GOOGLE", "socialId": "111925861553614469719", "deleted": false, "recycleSocialId": null, "emailAddress": "iroid.test1@gmail.com", "profileName": "Nikita Sharma" } ], "status": "ACTIVE", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": 1480075824809, "pinChangeDate": 1480075706328, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1480075698297, "initialLoginIp": "43.248.36.105", "initialLoginLocation": "Jalalpur India", "initialRegistrationDate": null, "initialRegistrationIp": null, "initialRegistrationLocation": null }, "email": null, "phone": null, "dob": null, "statusBeforeBlacklisting": null, "muid": "7d976883-26c2-4387-92d9-26d2e96ef6bd", "testUser": null }, "promotions": [ { "id": "205c5b82-bdc2-47ac-9640-9288ebb2e73a", "createdOn": 1481973069064, "lastModifiedOn": 1481973069064, "updatedBy": "", "deleted": false, "name": "FREEsMdONdEsYsdnz", "promotionType": "PROMOTION", "qualifyingItemType": "PM", "promotionCode": "segwdedsddgn", "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": null, "usageLimitUsed": 0, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] } ], "last": true, "totalPages": 1, "totalElements": 1, "numberOfElements": 1, "sort": null, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching user promotions successful.", "code": "1000" }
GETFetch User Promotions By Promotion Name
- Description
- Fetches all user promotions by name.
- Request Endpoint
- GET https://<Example api server address>/user/promotions/by/name/{name}
- Parameters
Parameter Type Use Description name String Required The promotion name. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/promotions/by/name/name'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "b5a79976-12cf-45cd-9ff2-5a2ad0ce3971", "createdOn": 1482304433342, "lastModifiedOn": 1482305050460, "updatedBy": "", "deleted": false, "user": { "id": "784095a0-1771-4e7a-a3fd-f9335125c0c2", "createdOn": 1475233006176, "lastModifiedOn": 1475483894215, "updatedBy": "", "deleted": false, "addresses": null, "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Shruti Nagarkar", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "RN Shruti", "registrationDate": 1475233003451, "socialAuthenticationChannels": [ { "addedOn": 1475233006112, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1475233006112, "loginType": "FACEBOOK", "socialId": "sfwef34535xe", "deleted": false, "recycleSocialId": null, "emailAddress": null, "profileName": null } ], "status": "BLACKLISTED_FRAUD", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1475233003451, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1475240921772, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663791940000, "statusBeforeBlacklisting": "ACTIVE", "muid": null, "testUser": null }, "promotions": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null }, { "id": "c1410863-7e8f-4f6e-8b25-a29e60c60df6", "createdOn": 1481974565956, "lastModifiedOn": 1482227005340, "updatedBy": "", "deleted": false, "name": "FREEsMdOdNdEssYsdnz", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": "ACTIVE", "usageLimitUsed": 2, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] }, { "id": "77cbfb40-86cd-44ca-b8ed-510b3239025a", "createdOn": 1482305456199, "lastModifiedOn": 1482305456199, "updatedBy": "", "deleted": false, "user": { "id": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "createdOn": 1474966273775, "lastModifiedOn": 1479887033703, "updatedBy": "", "deleted": false, "addresses": [ { "id": "9617a0ae-b8d1-4f6d-a108-9236e66e7586", "createdOn": 1479887033409, "lastModifiedOn": 1479887033409, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "Somewhere", "country": "United Kingdon", "countryCode": null, "county": "Clark", "postal": "89101", "state": "st", "street": null, "street1": "123 Test Ln", "street2": "", "street3": "" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "Somewhere", "st", "United Kingdon", "Clark", "89101" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [ { "addedOn": 1474966273458, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474966273458, "loginType": "MOBILE", "mobileNumber": null, "mobilePinResetStatus": null, "mobileVerificationStatus": null, "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1474966271005, "socialAuthenticationChannels": null, "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474966271005, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1474997035043, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null }, "promotions": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null } ] } ], "last": true, "totalPages": 1, "totalElements": 2, "numberOfElements": 2, "sort": null, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching user promotions successful.", "code": "1000" }
POSTFetch User Promotions By User And Promotion ID
- Description
- Fetches user promotions by user and promotion id.
- Request Endpoint
- POST https://<Example api server address>/user/promotion/by/user
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\" : \"491c6bc6-8a6f-4e44-aa08-d66e36a65eec\", \"promotionId\" : \"27676ea7-a983-4c44-882e-72cba048532c\" }" \ 'https://core.dev.Example.net/api/user/promotion/by/user '
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a user. promotionId
String Required UUID of a promotion. - POST body
Headers: Content-Type: application/json
{ "userId": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "promotionId": "27676ea7-a983-4c44-882e-72cba048532c" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "b5a79976-12cf-45cd-9ff2-5a2ad0ce3971", "createdOn": 1482304433342, "lastModifiedOn": 1482305050460, "updatedBy": "", "deleted": false, "user": { "id": "784095a0-1771-4e7a-a3fd-f9335125c0c2", "createdOn": 1475233006176, "lastModifiedOn": 1475483894215, "updatedBy": "", "deleted": false, "addresses": null, "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Shruti Nagarkar", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "RN Shruti", "registrationDate": 1475233003451, "socialAuthenticationChannels": [ { "addedOn": 1475233006112, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1475233006112, "loginType": "FACEBOOK", "socialId": "sfwef34535xe", "deleted": false, "recycleSocialId": null, "emailAddress": null, "profileName": null } ], "status": "BLACKLISTED_FRAUD", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true }, "allowLargeFilesOverWifiOnly": null }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1475233003451, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1475240921772, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663791940000, "statusBeforeBlacklisting": "ACTIVE", "muid": null, "testUser": null }, "promotions": [ { "id": "27676ea7-a983-4c44-882e-72cba048532c", "createdOn": 1482131375356, "lastModifiedOn": 1482131375356, "updatedBy": "", "deleted": false, "name": "FREEMONEY17", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "OTHER", "paidByCasino": null, "paidByItem": "0f4e69ac", "currencies": [ "USD" ], "qualifyingItem": "VISA", "casino": null, "application": null, "minDeposit": 100, "promoAmountType": "PERCENTAGE", "promoAmount": 40, "usageLimit": 100, "userLimit": 2, "validityStartDate": 1482105600000, "validityEndDate": 1482105600000, "promotionStatus": "SCHEDULED", "usageLimitUsed": 0, "maxDeposit": 0, "deletedOn": null, "deletedBy": null }, { "id": "c1410863-7e8f-4f6e-8b25-a29e60c60df6", "createdOn": 1481974565956, "lastModifiedOn": 1482227005340, "updatedBy": "", "deleted": false, "name": "FREEsMdOdNdEssYsdnz", "promotionType": "INCENTIVE", "qualifyingItemType": "PM", "promotionCode": null, "description": "desc", "finePrint": "fine print1", "paidBy": "CASINO", "paidByCasino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "createdOn": 1472021963085, "lastModifiedOn": 1472021963085, "updatedBy": "", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "paidByItem": null, "currencies": [ "USD" ], "qualifyingItem": "VISA-CARD", "casino": null, "application": null, "minDeposit": 200.5, "promoAmountType": "AMOUNT", "promoAmount": 40, "usageLimit": 100, "userLimit": 1, "validityStartDate": null, "validityEndDate": null, "promotionStatus": "ACTIVE", "usageLimitUsed": 2, "maxDeposit": null, "deletedOn": null, "deletedBy": null } ] }, "detail": null, "error": false, "message": "Fetching User promotion details successful.", "code": "1000" }