Project

General

Profile

Provisioning Management » History » Version 26

jerome bonnet, 09/18/2015 05:13 PM

1 23 jerome bonnet
{{>toc}}
2
3
h1. Provisioning Management - _*prov*_ Method
4
5
Provisionning Management allows a thirdParty Application to create, update, delete an account of FamilyWall, Set the member profile right, set member premium type and select/update the services enable for such user. 
6
7
h2. Search User - _provsearch_
8
9
This method returns the accountId of a Valid user by Identifiers (email, login or MSISDN)
10
11
By sending an HTTP request http://devserver/api/prov/search?identifier=test@gmail.com
12
13
*Parameters*:
14
15
|*Name*|*Type*|*Description*|
16
|identifier|String|value of identifier to search for|
17
|type|Enum|Email,Msisdn,Login|
18
19
*Response*:
20
<pre><code class="javascript">
21
{
22
  "a01":{
23
    "r":{
24
      "r":"12345"
25
    },
26
    "cn":"provsearch"
27
  }
28
}
29
</code></pre>
30
The Method response is a *Long* which represents the _AccountId_ of the account searched. 
31
32
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
33
34
*Error*:
35
36
|*Error Code*|*Type*|*Value*|*Description*|
37
|FizApiAccIdentifierInvalidException|Ex|21|Identifier has an invalid format|
38
|FizApiEmailInvalidException|Ex|17|Email has an invalid format|
39
|FizApiMsisdnInvalidException |Ex|22|MSISDN has an invalid format|
40
|FizAccountNotFoundException |Ex|1|account not found|
41
|FizApiInvalidParameterException|un|502|invalid token|
42
|FizApiUnattendedExceptionDefaultImpl|un|500|unattended error|
43 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
44 23 jerome bonnet
45 24 jerome bonnet
46 23 jerome bonnet
h2. Create Family - _provcreatefamily_
47
48
This method create a family with a founder member. A family cannot exist without at least one member, therefore founderId parameter is mandatory.
49
50
By sending an HTTP request http://devserver/api/prov/createfamily
51
52
*Parameters*:
53
54
|*Name*|*Type*|*Description*|
55
|FamilyName|String|Name of the Family|
56
|FamilyImage|file|Binary file of Family image (optional)|
57
|founderId|Long|account id of the founder of this family|
58
59
*Response*:
60
<pre><code class="javascript">
61
{
62
    a00 : {
63
        r : {
64
            r : {
65
                coverDefault :  false,
66
                family_id :  61,
67
                pictureDefault :  false,
68
                metaId :  family/61,
69
                members : [
70
                    {
71
                        familyId :  family/61,
72
                        joinDate :  2014-01-03T13:43:09.000Z,
73
                        role :  Dad,
74
                        metaId :  familymember/42_61,
75
                        isFirstFamily :  true,
76
                        lastLoginDate :  2015-09-16T14:46:10.000Z,
77
                        right :  SuperAdmin,
78
                        account : {
79
                            accountId :  42,
80
                            deleted :  false,
81
                            identifiers : [
82
                                {
83
                                    validated :  false,
84
                                    id :  63,
85
                                    type :  Login,
86
                                    value :  homersimpsontest
87
                                }
88
                            ],
89
                            name :  founder,
90
                            lastLoginDate :  2015-09-16T16:05:15.000Z,
91
                            creationDate :  2014-01-03T13:43:06.000Z,
92
                            termsChecked :  true
93
                        }
94
                    }
95
                ],
96
                name :  Simpson12,
97
                pictureUri :  http://localhost:8080/media/61_20ck56bl_43?,
98
                coverUri :  http://localhost:8080/media/61_8cz2k3bk_3222?
99
            }
100
        },
101
        cn :  provcreatefamily
102
}
103
</code></pre>
104
The Method response is the created family.
105
106
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
107
108
*Error*:
109
110
|*Error Code*|*Type*|*Value*|*Description*|
111
|FizApiInvalidParameterException|un|502|invalid token|
112
|FizApiUnattendedExceptionDefaultImpl|un|500|unattended error|
113
|FizAccountNotFoundException |Ex|1|account not found|
114 1 Eric Vieillevigne
115 24 jerome bonnet
h2. Found Family - _provfoundfamily_
116 23 jerome bonnet
117
This method create both a user and a family. Because a family cannot exist without a founder and an account must be in at least one family, in order to avoid the chicken-and-egg problem, this api allows to create both objects at the same time.
118
119
By sending an HTTP request http://devserver/api/prov/foundfamily
120
121
*Parameters*:
122
123
|*Name*|*Type*|*Description*|
124
|familyName|String|Name of the Family|
125
|familyImage|file|Binary file of Family image (optional)|
126
|type|Enum|Email,Msisdn,Login|
127 1 Eric Vieillevigne
|identifier|String|User Identifier Email or MSISDN depending on the type|
128 24 jerome bonnet
|password|String|User password|
129 23 jerome bonnet
|firstname|String|User First Name|
130
|locale|String|Country Code International as 2 letters language code as ISO 639  and 2 letters country code as ISO 3166 separated by an underscore or a dash.|
131
|picture|file|Binary file of picture for the user (optional)|
132
133
*Response*:
134
<pre><code class="javascript">
135
{
136
    a00 : {
137
        r : {
138
            r : {
139
                coverDefault :  false,
140
                family_id :  61,
141
                pictureDefault :  false,
142
                metaId :  family/61,
143
                members : [
144
                    {
145
                        familyId :  family/61,
146
                        joinDate :  2014-01-03T13:43:09.000Z,
147
                        role :  Dad,
148
                        metaId :  familymember/42_61,
149
                        isFirstFamily :  true,
150
                        lastLoginDate :  2015-09-16T14:46:10.000Z,
151
                        right :  SuperAdmin,
152
                        account : {
153
                            accountId :  42,
154
                            deleted :  false,
155
                            identifiers : [
156
                                {
157
                                    validated :  false,
158
                                    id :  63,
159
                                    type :  Login,
160
                                    value :  homersimpsontest
161
                                }
162
                            ],
163
                            name :  founder,
164
                            lastLoginDate :  2015-09-16T16:05:15.000Z,
165
                            creationDate :  2014-01-03T13:43:06.000Z,
166
                            termsChecked :  true
167
                        }
168
                    }
169
                ],
170
                name :  Simpson12,
171
                pictureUri :  http://localhost:8080/media/61_20ck56bl_43?,
172
                coverUri :  http://localhost:8080/media/61_8cz2k3bk_3222?
173
            }
174
        },
175
        cn :  provfoundfamily
176
}
177
</code></pre>
178
179
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
180
181
*Error*:
182
183
|*Error Code*|*Type*|*Value*|*Description*|
184
|FizApiInvalidParameterException|un|502|invalid token|
185
|FizApiUnattendedExceptionDefaultImpl|un|500|unattended error|
186
|FizAccountAlreadyExistsException |Ex|2|Account Identifier already exists|
187
|FizApiAccIdentifierInvalidException|Ex|21|Identifier has an invalid format|
188
|FizApiEmailInvalidException|Ex|17|Email has an invalid format|
189 1 Eric Vieillevigne
|FizApiMsisdnInvalidException |Ex|22|MSISDN has an invalid format|
190 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
191 23 jerome bonnet
192
h2. Update Family - _provupdatefamily_
193
194
This method update a family to change the name or picture of a family.
195
196
By sending an HTTP request http://devserver/api/prov/updatefamily?familyId=12345
197
198
*Parameters*:
199
200
|*Name*|*Type*|*Description*|
201
202
|FamilyName|String|Name of the Family|
203
|familyId|Long|Family Id |
204
|FamilyImage|file|Binary file of Family image|
205
206
*Response*:
207
<pre><code class="javascript">
208
{
209
    a00 : {
210
        r : {
211
            r : {
212
                coverDefault :  false,
213
                family_id :  61,
214
                pictureDefault :  false,
215
                metaId :  family/61,
216
                members : [
217
                    {
218
                        familyId :  family/61,
219
                        joinDate :  2014-01-03T13:43:09.000Z,
220
                        role :  Dad,
221
                        metaId :  familymember/42_61,
222
                        isFirstFamily :  true,
223
                        lastLoginDate :  2015-09-16T14:46:10.000Z,
224
                        right :  SuperAdmin,
225
                        account : {
226
                            accountId :  42,
227
                            deleted :  false,
228
                            identifiers : [
229
                                {
230
                                    validated :  false,
231
                                    id :  63,
232
                                    type :  Login,
233
                                    value :  homersimpsontest
234
                                }
235
                            ],
236
                            name :  founder,
237
                            lastLoginDate :  2015-09-16T16:05:15.000Z,
238
                            creationDate :  2014-01-03T13:43:06.000Z,
239
                            termsChecked :  true
240
                        }
241
                    }
242
                ],
243
                name :  Simpson12,
244
                pictureUri :  http://localhost:8080/media/61_20ck56bl_43?,
245
                coverUri :  http://localhost:8080/media/61_8cz2k3bk_3222?
246
            }
247
        },
248
        cn :  provupdatefamily
249
}
250
</code></pre>
251
The Method response is the updated family. 
252
253
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
254
255
*Error*:
256
257
|*Error Code*|*Type*|*Value*|*Description*|
258 1 Eric Vieillevigne
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
259 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
260 23 jerome bonnet
261
h2. Delete Family - _provdeletefamily_
262
263
This method remove a family and all his contents. If the family have members, they are removed from the family. If, as a result from this operation, some members are left without a family, they are deleted, too.
264
265
By sending an HTTP request http://devserver/api/prov/deletefamily?familyId=12345
266
267
*Parameters*:
268
269
|*Name*|*Type*|*Description*|
270
271
|familyId|Long|Family Id |
272
273
274
*Response*:
275
<pre><code class="javascript">
276
{
277
  "a01":{
278
    "r":{
279
      "r":"true"
280
    },
281
    "cn":"provdeletefamily"
282
  }
283
}
284
</code></pre>
285
The Method response is true when the operation is successful. 
286
287
In case the method encounter any error, the response is an exception with specific parameters detailed below.
288
289
*Error*:
290
291 1 Eric Vieillevigne
|*Error Code*|*Type*|*Value*|*Description*|
292 23 jerome bonnet
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
293 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
294 23 jerome bonnet
295
296
h2. Create Account - _provcreateaccount_
297
298
This method create a member for a family and set the member type (member=(0),adminsitrator=(1),founder=(2)). Note that after this method, the user receive an invitation email or an SMS with link to complete the account creation.
299
300
By sending an HTTP request http://devserver/api/prov/createaccount?type=Email&identifier=test@gmail.com
301
&accountType=2&locale=FR&familyId=12345&UserName=myFirstName&Locale=fr
302
303
*Parameters*:
304
305
|*Name*|*Type*|*Description*|
306
|familyId|Long|Family Id where the member shall be added|
307 1 Eric Vieillevigne
|type|Enum|Email,Msisdn,Login|
308 23 jerome bonnet
|identifier|String|User Identifier Email or MSISDN depending on the type|
309 24 jerome bonnet
|password|String|User password|
310 23 jerome bonnet
|firstname|String|User First Name|
311
|locale|String|Country Code International as 2 letters language code as ISO 639  and 2 letters country code as ISO 3166 separated by an underscore or a dash.|
312
|accountType|Enum|Account Type (None,Admin,SuperAdmin) None=normal member, Admin=administrator|
313
|picture|file|Binary file of picture for the user (optional)|
314
315
*Response*:
316
<pre><code class="javascript">
317
{
318
  "a01":{
319
    "r":{
320
      "r": {
321
				accountId :  42,
322
				deleted :  false,
323
				identifiers : [
324
					{
325
						validated :  false,
326
						id :  63,
327
						type :  Login,
328
						value :  homersimpsontest
329
					}
330
				],
331
				name :  founder,
332
				lastLoginDate :  2015-09-16T16:05:15.000Z,
333
				creationDate :  2014-01-03T13:43:06.000Z,
334
				termsChecked :  true
335
			}
336
    },
337
    "cn":"provcreateaccount"
338
  }
339
}
340
</code></pre>
341
The Method response is a *Long* which represents the _AccountId_ of the account created. 
342
343
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
344
345
*Error*:
346
347
|*Error Code*|*Type*|*Value*|*Description*|
348
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
349
|FizAccountAlreadyExistsException |Ex|2|Account Identifier already exists|
350
|AFizInvalidIdentifierException|Ex|21|Identifier has an invalid format|
351
|AFizInvalidEmailException|Ex|17|Email has an invalid format|
352
|AFizInvalidMSISDNException|Ex|22|MSISDN has an invalid format|
353
354
h2. Update Account - _provupdateaccount_
355
356
This method update a member for a family and set the member type (member=(0),administrator=(1),founder=(2)). 
357
358
By sending an HTTP request http://devserver/api/prov/updateaccount?locale=FR&UserName=myNewFirstName&Locale=fr&accountId=123455
359
360
*Parameters*:
361
362
|*Name*|*Type*|*Description*|
363
|accountId|Long|Account Id of the modified account|
364
|UserName|String|User First Name|
365
|Locale|String|Country Code International Two letters|
366
|Picture|file|Binary file of picture for the user (optional)|
367
368
369
*Response*:
370
<pre><code class="javascript">
371
{
372
  "a01":{
373
    "r":{
374
      "r": {
375
                            accountId :  42,
376
                            deleted :  false,
377
                            identifiers : [
378
                                {
379
                                    validated :  false,
380
                                    id :  63,
381
                                    type :  Login,
382
                                    value :  homersimpsontest
383
                                }
384
                            ],
385
                            name :  founder,
386
                            lastLoginDate :  2015-09-16T16:05:15.000Z,
387
                            creationDate :  2014-01-03T13:43:06.000Z,
388
                            termsChecked :  true
389
                        }
390
    },
391
    "cn":"provupdateaccount"
392 1 Eric Vieillevigne
  }
393 23 jerome bonnet
}
394
</code></pre>
395 24 jerome bonnet
The Method response is the updated account. 
396 23 jerome bonnet
397
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
398
399
*Error*:
400 1 Eric Vieillevigne
401 23 jerome bonnet
|*Error Code*|*Type*|*Value*|*Description*|
402 1 Eric Vieillevigne
|FizAccountNotFoundException |Ex|1|account not found|
403 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
404 1 Eric Vieillevigne
405 24 jerome bonnet
h2. Change password of a user- _provchangepassword_
406 1 Eric Vieillevigne
407 24 jerome bonnet
This method change the password of a user.
408
409
*Parameters*:
410
411
|*Name*|*Type*|*Description*|
412
|accountId|Long|Account Id of the modified account|
413
|password|String|new password for the user|
414
415
*Response*:
416
<pre><code class="javascript">
417
{
418
  "a01":{
419
    "r":{
420
      "r": true
421
    },
422
    "cn":"provupdateaccount"
423
  }
424
}
425
</code></pre>
426
The Method response a boolean true indicating the password has been changed. 
427
428
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
429
430
*Error*:
431
432
|*Error Code*|*Type*|*Value*|*Description*|
433
|FizAccountNotFoundException |Ex|1|account not found|
434
|FizSecurityException|un|500|related account or family not accessible|
435
436 23 jerome bonnet
h2. Add Account to family- _provaddaccount2family_
437
438
This method add an existing account to a family and set the member type (member=(0),administrator=(1),founder=(2)). 
439
440
By sending an HTTP request http://devserver/api/prov/addaccount2family?accountId=123455&familyId=333445
441
442
*Parameters*:
443
444
|*Name*|*Type*|*Description*|
445
|accountId|Long|Account Id where the member shall added|
446
|familyId|Long|Family Id where the member shall be added|
447
|AccountType|Long|Account Type (None,Admin,SuperAdmin) None=normal member, Admin=administrator|
448
449
*Response*:
450
<pre><code class="javascript">
451
{
452 1 Eric Vieillevigne
  "a01":{
453 23 jerome bonnet
    "r":{
454
      "r":"true"
455
    },
456 24 jerome bonnet
    "cn":"provaddaccount"
457 23 jerome bonnet
  }
458
}
459
</code></pre>
460
The Method response is true when the operation is successful. 
461
462
In case the method encounter any error, the response is an exception with specific parameters detailed below.
463
464
*Error*:
465
466
|*Error Code*|*Type*|*Value*|*Description*|
467
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
468
|FizAccountNotFoundException |Ex|1|account not found|
469
|FizAccountAlreadyInThisFamilyException |Ex|12|ccount already in the family|
470
471
h2. Remove Account from family- _provremoveaccount2family_
472
473
This method remove an existing account from a family. 
474
475
By sending an HTTP request http://devserver/api/prov/removeaccount2family?accountId=123455&familyId=333445
476
477
*Parameters*:
478
479
|*Name*|*Type*|*Description*|
480
|accountId|Long|Account Id of the user to be removed from the family|
481
|familyId|Long|Family Id of the family from which the user shall be removed from|
482
483
*Response*:
484
<pre><code class="javascript">
485 1 Eric Vieillevigne
{
486 23 jerome bonnet
  "a01":{
487
    "r":{
488
      "r":"true"
489
    },
490 24 jerome bonnet
    "cn":"provremoveaccount2family"
491 23 jerome bonnet
  }
492
}
493
</code></pre>
494
The Method response is true when the operation is successful. 
495
496
In case the method encounter any error, the response is an exception with specific parameters detailed below.
497
498 1 Eric Vieillevigne
*Error*:
499 23 jerome bonnet
500
|*Error Code*|*Type*|*Value*|*Description*|
501
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
502
|FizAccountNotFoundException |Ex|1|account not found|
503 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
504 23 jerome bonnet
505
h2. Delete Account _provdeleteaccount_
506
507
This method delete an existing account. It will be removed from all his families beforehand. Families without remaining members are definitively deleted.
508
509
By sending an HTTP request http://devserver/api/prov/deleteaccount?accountId=123455
510
511
*Parameters*:
512
513
|*Name*|*Type*|*Description*|
514 26 jerome bonnet
|accountId|Long|account id of the account to delete|
515 23 jerome bonnet
516
*Response*:
517 1 Eric Vieillevigne
<pre><code class="javascript">
518 23 jerome bonnet
{
519
  "a01":{
520
    "r":{
521
      "r":"true"
522
    },
523 24 jerome bonnet
    "cn":"provdeleteaccount"
524 23 jerome bonnet
  }
525
}
526
</code></pre>
527
The Method response is true when the operation is successful. 
528
529 1 Eric Vieillevigne
In case the method encounter any error, the response is an exception with specific parameters detailed below.
530 23 jerome bonnet
531
*Error*:
532
533
|*Error Code*|*Type*|*Value*|*Description*|
534
|FizAccountNotFoundException |Ex|1|account not found|
535 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
536 23 jerome bonnet
537
538
h2. get Account information _provgetaccount_
539
540
This method returns the information about an existing account. 
541
542
By sending an HTTP request http://devserver/api/prov/getaccount?accountId=123455
543
544
*Parameters*:
545
546
|*Name*|*Type*|*Description*|
547
|accountId|Long|Account Id of the account|
548
549
*Response*:
550
<pre><code class="javascript">
551
{
552
  "a01":{
553
    "r":{
554
      "r": {
555
				accountId :  42,
556
				deleted :  false,
557
				identifiers : [
558
					{
559
						validated :  false,
560
						id :  63,
561
						type :  Login,
562
						value :  homersimpsontest
563
					}
564
				],
565
				name :  founder,
566
				lastLoginDate :  2015-09-16T16:05:15.000Z,
567
				creationDate :  2014-01-03T13:43:06.000Z,
568
				termsChecked :  true
569
			}
570
    },
571
    "cn":"provgetaccount"
572
  }
573
}
574
</code></pre>
575
576 1 Eric Vieillevigne
In case the method encounter any error, the response is an exception with specific parameters detailed below.
577 23 jerome bonnet
578
*Error*:
579
580
|*Error Code*|*Type*|*Value*|*Description*|
581
|FizAccountNotFoundException |Ex|1|account not found|
582 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
583 23 jerome bonnet
584
585
h2. get family information _provgetfamily_
586
587
This method returns the information about an existing family, mainly all the members.
588
589
By sending an HTTP request http://devserver/api/prov/getfamily?familyId=123455
590
591
*Parameters*:
592
593
|*Name*|*Type*|*Description*|
594 26 jerome bonnet
|familyId|String|Family Id (metaid) of the family|
595 23 jerome bonnet
596
*Response*:
597
<pre><code class="javascript">
598
{
599
    a00 : {
600
        r : {
601
            r : {
602
                coverDefault :  false,
603
                family_id :  61,
604
                pictureDefault :  false,
605
                metaId :  family/61,
606
                members : [
607
                    {
608
                        familyId :  family/61,
609
                        joinDate :  2014-01-03T13:43:09.000Z,
610
                        role :  Dad,
611
                        metaId :  familymember/42_61,
612
                        isFirstFamily :  true,
613
                        lastLoginDate :  2015-09-16T14:46:10.000Z,
614
                        right :  SuperAdmin,
615
                        account : {
616
                            accountId :  42,
617
                            deleted :  false,
618
                            identifiers : [
619
                                {
620
                                    validated :  false,
621
                                    id :  63,
622
                                    type :  Login,
623
                                    value :  homersimpsontest
624
                                }
625
                            ],
626
                            name :  founder,
627
                            lastLoginDate :  2015-09-16T16:05:15.000Z,
628
                            creationDate :  2014-01-03T13:43:06.000Z,
629
                            termsChecked :  true
630
                        }
631
                    }
632
                ],
633
                name :  Simpson12,
634
                pictureUri :  http://localhost:8080/media/61_20ck56bl_43?,
635
                coverUri :  http://localhost:8080/media/61_8cz2k3bk_3222?
636
            }
637
        },
638
        cn :  provgetfamily
639
}
640
</code></pre>
641
642
In case the method encounter any error, the response is an exception with specific parameters detailed below.
643 1 Eric Vieillevigne
644 23 jerome bonnet
*Error*:
645
646
|*Error Code*|*Type*|*Value*|*Description*|
647
|FizFamilyDoesNotExistException|Ex|510|Family Id Does not Exists|
648
|FizAccountNotFoundException |Ex|1|account not found|
649 24 jerome bonnet
|FizSecurityException|un|500|related account or family not accessible|
650 25 jerome bonnet
651
h2. add premium feature _provaddpremium_
652
653 26 jerome bonnet
This method add a premium feature or flag to a user and optionally a given family(ies). All premium feature are always assigned to a user, and additionnally some feature will "propagate" to all members of one or several families. In this case, the family(ies) are specified by the familyIds parameter.
654 25 jerome bonnet
655
*Parameters*:
656
657
|*Name*|*Type*|*Description*|
658
|accountId|Long|Account Id of the account to obtain the premium|
659
|creditType|Enum|FAMILYWALL_PREMIUM,ORANGE_PREMIUM,GEOLOC_AUTOTRACK,... possible values for the premium type|
660
|familyIds|Array(Long)|list of family ids to associate the premium with|
661
662
*Response*:
663
<pre><code class="javascript">
664
{
665
    a00 : {
666
        r : {
667
            r : {
668
					familyIds : [
669
					],
670
					accountId :  2435,
671
					metaId :  credit/2435_6362,
672
					creditStatus :  ACTIVE,
673
					creationDate :  2015-05-18T16:24:35.000Z,
674
					creditType :  GEOLOC_AUTOTRACK,
675
					paymentType :  PROMO
676
				}
677
			}
678
        },
679
        cn :  provgetfamily
680
}
681
</code></pre>
682
683
In case the method encounter any error, the response is an exception with specific parameters detailed below.
684
685
*Error*:
686
687
|*Error Code*|*Type*|*Value*|*Description*|
688
|FizAccountNotFoundException |Ex|1|account not found|
689
|FizSecurityException|un|500|related account or family not accessible|
690
691
h2. remove premium feature _provremovepremium_
692
693
This method remove a premium feature or flag of a user, identified by the corresponding credit id.
694
695
*Parameters*:
696
697
|*Name*|*Type*|*Description*|
698
|accountId|Long|Account Id of the account to obtain the premium|
699
|creditId|String|id of the credit to remove|
700
701
*Response*:
702
<pre><code class="javascript">
703
{
704
    a00 : {
705
        r : {
706
            r : true
707
			}
708
        },
709
        cn :  provgetfamily
710
}
711
</code></pre>
712
713
In case the method encounter any error, the response is an exception with specific parameters detailed below.
714
715
*Error*:
716
717
|*Error Code*|*Type*|*Value*|*Description*|
718
|FizAccountNotFoundException |Ex|1|account not found|
719
|FizSecurityException|un|500|related account or family not accessible|
720
721
h2. list premium feature _provgetpremiuminfos_
722
723
This method lists all premium flags (or "credits") associated with an account, for all his families. Note: it only lists credits belonging to the given account (by the parameter accountId), not the credit of other users giving premium access to the given account in some particular familie(s).
724
725
*Parameters*:
726
727
|*Name*|*Type*|*Description*|
728
|accountId|Long|Account Id of the account to obtain the premium|
729
730
*Response*:
731
<pre><code class="javascript">
732
{
733
734
    a00 : {
735
        r : {
736
            r : [
737
                {
738
                    familyIds : [
739
                    ],
740
                    accountId :  2435,
741
                    metaId :  credit/2435_6362,
742
                    creditStatus :  ACTIVE,
743
                    creationDate :  2015-05-18T16:24:35.000Z,
744
                    creditType :  GEOLOC_AUTOTRACK,
745
                    paymentType :  TEST
746
                },
747
                {
748
                    familyIds : [
749
                         8121
750
                    ],
751
                    accountId :  2435,
752
                    metaId :  credit/2435_8066,
753
                    creditStatus :  ACTIVE,
754
                    creationDate :  2015-07-29T14:44:23.000Z,
755
                    creditType :  ITEM_TRACKER,
756
                    paymentType :  TEST
757
                }
758
            ]
759
        },
760
        cn :  provgetpremiuminfos
761
    }
762
763
}
764
</code></pre>
765
766
In case the method encounter any error, the response is an exception with specific parameters detailed below.
767
768
*Error*:
769
770
|*Error Code*|*Type*|*Value*|*Description*|
771
|FizAccountNotFoundException |Ex|1|account not found|
772
|FizSecurityException|un|500|related account or family not accessible|