-
Notifications
You must be signed in to change notification settings - Fork 5.2k
/
Copy pathbillingSubscription.json
1254 lines (1254 loc) · 43.8 KB
/
billingSubscription.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"info": {
"version": "2021-10-01",
"title": "BillingManagementClient",
"description": "The billing client allows you to view and manage your billing details programmatically."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions": {
"get": {
"tags": [
"BillingSubscriptions"
],
"operationId": "BillingSubscriptions_ListByBillingAccount",
"description": "Lists the subscriptions for a billing account. The operation is currently supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement and Microsoft Online Services Program.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"x-ms-examples": {
"BillingSubscriptionsListByBillingAccount": {
"$ref": "./examples/BillingSubscriptionsListByBillingAccount.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscriptionsListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}": {
"get": {
"tags": [
"BillingSubscriptions"
],
"operationId": "BillingSubscriptions_Get",
"description": "Gets a subscription by its ID. The operation is currently supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement and Microsoft Online Services Program.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"x-ms-examples": {
"BillingSubscription": {
"$ref": "./examples/BillingSubscription.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscription"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
},
"patch": {
"tags": [
"BillingSubscriptions"
],
"operationId": "BillingSubscriptions_Update",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Updates the properties of a billing subscription.",
"x-ms-examples": {
"UpdateBillingProperty": {
"$ref": "./examples/UpdateBillingSubscription.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BillingSubscription"
},
"description": "Request parameters that are provided to the update billing subscription operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscription"
}
},
"202": {
"description": "Accepted",
"headers": {
"Location": {
"description": "Location URI to poll for result",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int64"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
},
"delete": {
"tags": [
"BillingSubscriptions"
],
"operationId": "BillingSubscriptions_Delete",
"description": "Cancels a billing subscription.",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"DeleteBillingSubscription": {
"$ref": "./examples/DeleteBillingSubscription.json"
}
},
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted",
"headers": {
"Location": {
"description": "Location URI to poll for result",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int64"
}
}
},
"204": {
"description": "Billing subscription not found."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}/move": {
"post": {
"description": "Moves a subscription's charges to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"operationId": "BillingSubscriptions_Move",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"MoveBillingSubscription": {
"$ref": "./examples/MoveBillingSubscription.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MoveBillingSubscriptionRequest"
},
"description": "Request parameters that are provided to the move subscription operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscription"
}
},
"202": {
"description": "Accepted. Billing Subscription transfer is in progress.",
"headers": {
"Location": {
"description": "Location URI to poll for result.",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int32"
}
}
},
"default": {
"description": "Unexpected error.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}/validateMoveEligibility": {
"post": {
"x-ms-examples": {
"SubscriptionMoveValidateSuccess": {
"$ref": "./examples/ValidateSubscriptionMoveSuccess.json"
},
"SubscriptionMoveValidateFailure": {
"$ref": "./examples/ValidateSubscriptionMoveFailure.json"
}
},
"operationId": "BillingSubscriptions_ValidateMoveEligibility",
"description": "Validates if a subscription's charges can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MoveBillingSubscriptionRequest"
},
"description": "Request parameters that are provided to the validate move eligibility operation."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/ValidateMoveBillingSubscriptionEligibilityResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}/merge": {
"post": {
"operationId": "BillingSubscriptions_Merge",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Merges the billing subscription provided in the request with a target billing subscription.",
"x-ms-examples": {
"MergeSubscription": {
"$ref": "./examples/MergeSubscription.json"
}
},
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BillingSubscriptionMergeRequest"
},
"description": "Request parameters that are provided to merge the two billing subscriptions."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscription"
}
},
"202": {
"description": "Accepted. Billing subscription merge is in progress.",
"headers": {
"Location": {
"description": "Location URI to poll for result.",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int64"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptions/{billingSubscriptionName}/split": {
"post": {
"operationId": "BillingSubscriptions_Split",
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"description": "Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.",
"x-ms-examples": {
"SplitSubscription": {
"$ref": "./examples/SplitSubscription.json"
}
},
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BillingSubscriptionSplitRequest"
},
"description": "Request parameters that are provided to split the billing subscription."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscription"
}
},
"202": {
"description": "Accepted. Billing subscription split is in progress.",
"headers": {
"Location": {
"description": "Location URI to poll for result.",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int64"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases": {
"get": {
"tags": [
"BillingSubscriptionsAliases"
],
"operationId": "BillingSubscriptionsAliases_ListByBillingAccount",
"description": "Lists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"x-ms-examples": {
"BillingSubscriptionAliasListByBillingAccount": {
"$ref": "./examples/BillingSubscriptionAliasListByBillingAccount.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscriptionAliasListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingSubscriptionAliases/{aliasName}": {
"get": {
"tags": [
"BillingSubscriptionsAliases"
],
"operationId": "BillingSubscriptionsAliases_Get",
"description": "Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.",
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/rest/api/billing/"
},
"x-ms-examples": {
"BillingSubscriptionAlias": {
"$ref": "./examples/BillingSubscriptionAlias.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionAliasNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscriptionAlias"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
},
"put": {
"tags": [
"BillingSubscriptionsAliases"
],
"operationId": "BillingSubscriptionsAliases_CreateOrUpdate",
"x-ms-long-running-operation": true,
"description": "Creates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.",
"x-ms-examples": {
"PutBillingSubscription": {
"$ref": "./examples/PutBillingSubscriptionAlias.json"
}
},
"parameters": [
{
"$ref": "#/parameters/billingAccountNameParameter"
},
{
"$ref": "#/parameters/billingSubscriptionAliasNameParameter"
},
{
"$ref": "./types.json#/parameters/apiVersionParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/BillingSubscriptionAlias"
},
"description": "New or updated billing subscription alias."
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/BillingSubscriptionAlias"
}
},
"202": {
"description": "Accepted",
"headers": {
"Location": {
"description": "Location URI to poll for result",
"type": "string"
},
"Retry-After": {
"description": "Recommended time to wait before making another request to check the status of the operation. The time is specified in seconds.",
"type": "integer",
"format": "int64"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"Amount": {
"description": "The amount.",
"type": "object",
"readOnly": true,
"properties": {
"currency": {
"description": "The currency for the amount value.",
"type": "string",
"readOnly": true
},
"value": {
"description": "Amount value.",
"type": "number",
"readOnly": true
}
}
},
"BillingSubscriptionsListResult": {
"description": "The list of billing subscriptions.",
"type": "object",
"properties": {
"value": {
"description": "The list of billing subscriptions.",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/BillingSubscription"
}
},
"totalCount": {
"description": "Total number of records.",
"type": "number",
"format": "int32",
"readOnly": true
},
"nextLink": {
"description": "The link (url) to the next page of results.",
"type": "string",
"readOnly": true
}
}
},
"BillingSubscription": {
"description": "A billing subscription.",
"type": "object",
"allOf": [
{
"$ref": "./types.json#/definitions/Resource"
}
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/BillingSubscriptionProperties",
"title": "Billing subscription properties"
}
}
},
"BillingSubscriptionProperties": {
"description": "The billing properties of a subscription.",
"type": "object",
"properties": {
"autoRenew": {
"description": "Indicates whether auto renewal is turned on or off for a subscription.",
"type": "string",
"enum": [
"Off",
"On"
],
"x-ms-enum": {
"name": "AutoRenew",
"modelAsString": true
}
},
"beneficiaryTenantId": {
"description": "The provisioning tenant of the subscription.",
"type": "string"
},
"billingFrequency": {
"description": "The billing frequency of the subscription in the ISO8601 format. Example: P1M, P3M, P1Y",
"type": "string"
},
"billingProfileId": {
"description": "The ID of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts.",
"type": "string"
},
"billingPolicies": {
"type": "object",
"description": "Dictionary of billing policies associated with the subscription.",
"additionalProperties": {
"type": "string"
},
"maxItems": 50,
"readOnly": true
},
"billingProfileDisplayName": {
"description": "The display name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"billingProfileName": {
"description": "The name of the billing profile to which the subscription is billed. This field is only applicable for Microsoft Customer Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"consumptionCostCenter": {
"description": "The cost center applied to the subscription. This field is only available for consumption subscriptions of Microsoft Customer Agreement Type billing accounts.",
"type": "string"
},
"customerId": {
"description": "The ID of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string"
},
"customerDisplayName": {
"description": "The name of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"customerName": {
"description": "The name of the customer for whom the subscription was created. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"displayName": {
"description": "The name of the subscription.",
"type": "string"
},
"enrollmentAccountId": {
"description": "The enrollment Account ID associated with the subscription. This field is available only for the Enterprise Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"enrollmentAccountDisplayName": {
"description": "The enrollment Account name associated with the subscription. This field is available only for the Enterprise Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"enrollmentAccountSubscriptionDetails": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/EnrollmentAccountSubscriptionDetails",
"title": "Enrollment Account Subscription details. This field is available only for the Enterprise Agreement billing accounts."
},
"invoiceSectionId": {
"description": "The ID of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string"
},
"invoiceSectionDisplayName": {
"description": "The display name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"invoiceSectionName": {
"description": "The name of the invoice section to which the subscription is billed. The field is applicable only for Microsoft Partner Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"lastMonthCharges": {
"description": "The last month's charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.",
"$ref": "#/definitions/Amount"
},
"monthToDateCharges": {
"description": "The current month to date charges. This field is only available for usage based subscriptions of Microsoft Customer Agreement billing accounts.",
"$ref": "#/definitions/Amount"
},
"nextBillingCycleDetails": {
"description": "Next billing cycle details of the subscription.",
"$ref": "#/definitions/NextBillingCycleDetails"
},
"offerId": {
"description": "The offer ID for the subscription. This field is only available for the Microsoft Online Services Program billing accounts.",
"type": "string",
"readOnly": true
},
"productCategory": {
"description": "The category of the product for which the subscription is purchased. Possible values include: AzureSupport, Hardware, ReservationOrder, SaaS, SavingsPlanOrder, Software, UsageBased, Other",
"type": "string",
"readOnly": true
},
"productType": {
"description": "The type of the product for which the subscription is purchased",
"type": "string",
"readOnly": true
},
"productTypeId": {
"description": "The ID of the product for which the subscription is purchased",
"type": "string"
},
"purchaseDate": {
"type": "string",
"format": "date-time",
"description": "The purchase date of the subscription in UTC time.",
"readOnly": true
},
"quantity": {
"description": "The number of licenses purchased for the subscription",
"type": "integer",
"format": "int64"
},
"reseller": {
"description": "The reseller for which the subscription is created. The field is available for Microsoft Partner Agreement billing accounts.",
"$ref": "#/definitions/Reseller"
},
"renewalTermDetails": {
"description": "The term details of the subscription at the next renewal.",
"$ref": "#/definitions/RenewalTermDetails"
},
"skuDescription": {
"description": "The SKU description of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"skuId": {
"description": "The SKU ID of the product for which the subscription is purchased. This field is only available for Microsoft Customer Agreement billing accounts.",
"type": "string"
},
"status": {
"description": "The status of the subscription. This field is not available for Enterprise Agreement billing accounts.",
"type": "string",
"enum": [
"Unknown",
"Active",
"Disabled",
"Deleted",
"Warned",
"Expiring",
"Expired",
"AutoRenew",
"Cancelled",
"Suspended"
],
"readOnly": true,
"x-ms-enum": {
"name": "BillingSubscriptionStatus",
"modelAsString": true
}
},
"subscriptionId": {
"description": "The ID of the usage-based subscription. This field is only available for usage-based subscriptions of Microsoft Customer Agreement billing accounts.",
"type": "string",
"readOnly": true
},
"suspensionReasons": {
"description": "The suspension reason for the subscription. This field is not available for Enterprise Agreement billing accounts.",
"type": "array",
"readOnly": true,
"items": {
"type": "string"
}
},
"termDuration": {
"description": "The duration for which you can use the subscription. Example P1Y and P1M",
"type": "string"
},
"termStartDate": {
"type": "string",
"format": "date-time",
"description": "The start date of the term in UTC time.",
"readOnly": true
},
"termEndDate": {
"type": "string",
"format": "date-time",
"description": "The end date of the term in UTC time.",
"readOnly": true
}
}
},
"BillingSubscriptionMergeRequest": {
"description": "Request to merge two billing subscriptions",
"type": "object",
"properties": {
"targetBillingSubscriptionName": {
"description": "The ID of the target billing subscription that will be merged with the source subscription provided in the request.",
"type": "string"
},
"quantity": {
"description": "The quantity of the source billing subscription that will be merged with the target billing subscription.",
"type": "integer",
"format": "int32"
}
}
},
"BillingSubscriptionSplitRequest": {
"description": "Request to split a billing subscription",
"type": "object",
"properties": {
"billingFrequency": {
"description": "The billing frequency of the target subscription in the ISO8601 format. Example: P1M, P3M, P1Y",
"type": "string"
},
"quantity": {
"description": "The quantity of the target product to which the subscription needs to be split into.",
"type": "integer",
"format": "int32"
},
"targetProductTypeId": {
"description": "The ID of the target product to which the subscription needs to be split into. This value is not same as the value returned in Get API call and can be retrieved from Catalog API to know the product id to split into.",
"type": "string"
},
"targetSkuId": {
"description": "The ID of the target product to which the subscription needs to be split into. This value is not same as the value returned in Get API call and can be retrieved from Catalog API to know the sku id to split into.",
"type": "string"
},
"termDuration": {
"description": "The term duration of the target in ISO8601 format product to which the subscription needs to be split into. Example: P1M, P1Y",
"type": "string"
}
}
},
"EnrollmentAccountSubscriptionDetails": {
"description": "The billing properties that can be modified. This field is available only for the Enterprise Agreement billing accounts.",
"type": "object",
"readOnly": true,
"properties": {
"subscriptionEnrollmentAccountStatus": {
"description": "The current enrollment account status of the subscription. This field is available only for the Enterprise Agreement billing accounts.",
"type": "string",
"readOnly": true,
"enum": [
"Active",
"Cancelled",
"Expired",
"Deleted",
"TransferredOut",
"Transferring"
],
"x-ms-enum": {
"name": "SubscriptionEnrollmentAccountStatus",
"modelAsString": true
}
},
"enrollmentAccountStartDate": {
"description": "The enrollment Account and the subscription association start date. This field is available only for the Enterprise Agreement billing accounts.",
"format": "date-time",
"type": "string",
"readOnly": true
}
}
},
"NextBillingCycleDetails": {
"description": "The next billing cycle details of the subscription.",
"type": "object",
"readOnly": true,
"properties": {
"billingFrequency": {
"description": "The billing frequency of the subscription in the next billing cycle.",
"type": "string",
"readOnly": true
}
}
},
"RenewalTermDetails": {
"description": "The term details of the subscription at renewal.",
"type": "object",
"readOnly": true,
"properties": {
"billingFrequency": {
"description": "The billing frequency of the subscription.",
"type": "string",
"readOnly": true
},
"productTypeId": {
"description": "The ID of the product.",
"type": "string",
"readOnly": true
},
"quantity": {
"description": "The number of licenses",
"type": "integer",
"format": "int64"
},
"skuId": {
"description": "The SKU ID of the product",
"type": "string",
"readOnly": true
},
"termDuration": {
"description": "The term duration of the subscription. Example P1M and P1Y",
"type": "string",
"readOnly": true