amber-api 2.1.0

Rust client for Amber Electric's API
Documentation
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
---
openapi: 3.0.0

info:
  title: Amber Electric Public API
  contact:
    email: dev@amber.com.au
    name: Amber Electric Development Team
    url: https://www.amber.com.au
  version: 2.0.0
  description: |-
    Amber is an Australian-based electricity retailer that pass through the real-time wholesale price of energy.

    Because of Amber's wholesale power prices, you can save hundreds of dollars a year by automating high power devices like air-conditioners, heat pumps and pool pumps.

    This Python library provides an interface to the API, allowing you to react to current and forecast prices, as well as download your historic usage.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
    identifier: Apache-2.0

servers:
  - url: https://api.amber.com.au/v1

components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
  schemas:
    Channel:
      type: object
      description: |-
        Describes a power meter channel.

        The General channel provides continuous power - it's the channel all of your appliances and lights are attached to.

        Controlled loads are only on for a limited time during the day (usually when the load on the network is low, or generation is high) - you may have your hot water system attached to this channel.

        The feed in channel sends power back to the grid - you will have these types of channels if you have solar or batteries.
      required:
        - identifier
        - type
        - tariff
      properties:
        identifier:
          type: string
          description: Identifier of the channel
          example: E1
        type:
          $ref: '#/components/schemas/ChannelType'
        tariff:
          type: string
          description: The tariff code of the channel
          example: A100
    SiteStatus:
      type: string
      description: |-
        Site status.

        Pending sites are still in the process of being transferred. Note: We only include sites that have correct address details. If you expect to see a site, but don't, you may need to contact [info@amber.com.au](mailto:info@amber.com.au) to check that the address is correct.

        Active sites are ones that we actively supply electricity to.

        Closed sites are old sites that we no longer supply.
      enum:
        - pending
        - active
        - closed
      example: closed
    Site:
      type: object
      required:
        - id
        - nmi
        - channels
        - network
        - status
        - intervalLength
      properties:
        id:
          type: string
          description: Unique Site Identifier
          example: 01F5A5CRKMZ5BCX9P1S4V990AM
        nmi:
          type: string
          description: National Metering Identifier (NMI) for the site
          example: '3052282872'
          minLength: 10
          maxLength: 11
        channels:
          type: array
          description: List of channels that are readable from your meter
          items:
            $ref: '#/components/schemas/Channel'
        network:
          type: string
          description: The name of the site's network
          example: Jemena
        status:
          $ref: '#/components/schemas/SiteStatus'
        activeFrom:
          type: string
          format: date
          description: Date the site became active. This date will be in the future for pending sites.
            It may also be undefined, though if it is, contact [info@amber.com.au](mailto:info@amber.com.au)
            - there may be an issue with your address. Formatted as a ISO 8601 date when present.
          example: '2022-01-01'
        closedOn:
          type: string
          format: date
          description: Date the site closed. Undefined if the site is pending or active. Formatted as
            a ISO 8601 date when present.
          example: '2022-05-01'
        intervalLength:
          type: number
          description: Length of interval that you will be billed on. 5 or 30 minutes.
          enum:
            - 5
            - 30
          default: 30
          example: 30
    SpikeStatus:
      type: string
      description: Indicates whether this interval will potentially spike, or is currently in a spike
        state
      enum:
        - none
        - potential
        - spike
    PriceDescriptor:
      type: string
      description: 'Describes the current price. Gives you an indication of how cheap the price is in
        relation to the average VMO and DMO. Note: Negative is no longer used. It has been replaced with
        extremelyLow.'
      enum:
        - negative
        - extremelyLow
        - veryLow
        - low
        - neutral
        - high
        - spike
    RenewableDescriptor:
      type: string
      description: Describes the state of renewables. Gives you an indication of how green power is right
        now
      enum:
        - best
        - great
        - ok
        - notGreat
        - worst
    ChannelType:
      type: string
      description: Meter channel type
      enum:
        - general
        - controlledLoad
        - feedIn
      example: general
    Range:
      type: object
      description: When prices are particularly volatile, the API may return a range of NEM spot prices
        (c/kWh) that are possible.
      required:
        - min
        - max
      properties:
        min:
          type: number
          description: Estimated minimum price (c/kWh)
        max:
          type: number
          description: Estimated maximum price (c/kWh)
    AdvancedPrice:
      type: object
      description: Amber has created an advanced forecast system, that represents our confidence in the
        AEMO forecast. The range indicates where we think the price will land for a given interval.
      required:
        - low
        - predicted
        - high
      properties:
        low:
          type: number
          description: The lower bound of our prediction band. Price includes network and market fees.
            (c/kWh).
          example: 1
        predicted:
          type: number
          description: The predicted price. Use this if you need a single number to forecast against.
            Price includes network and market fees. (c/kWh).
          example: 3
        high:
          type: number
          description: The upper bound of our prediction band. Price includes network and market fees.
            (c/kWh).
          example: 10
    TariffInformation:
      type: object
      description: Information about how your tariff affects an interval
      properties:
        period:
          type: string
          enum:
            - offPeak
            - shoulder
            - solarSponge
            - peak
          description: The Time of Use period that is currently active. Only available if the site in
            on a time of use tariff
        season:
          type: string
          enum:
            - default
            - summer
            - autumn
            - winter
            - spring
            - nonSummer
            - holiday
            - weekend
            - weekendHoliday
            - weekday
          description: The Time of Use season that is currently active. Only available if the site in
            on a time of use tariff
        block:
          type: number
          minimum: 1
          maximum: 2
          description: The block that is currently active. Only available in the site in on a block tariff
        demandWindow:
          type: boolean
          description: Is this interval currently in the demand window? Only available if the site in
            on a demand tariff
    BaseInterval:
      type: object
      description: One time interval
      required:
        - type
        - duration
        - spotPerKwh
        - perKwh
        - date
        - nemTime
        - startTime
        - endTime
        - renewables
        - channelType
        - spikeStatus
        - descriptor
      properties:
        type:
          type: string
        duration:
          type: integer
          description: Length of the interval in minutes.
          enum:
            - 5
            - 15
            - 30
        spotPerKwh:
          type: number
          description: NEM spot price (c/kWh). This is the price generators get paid to generate electricity,
            and what drives the variable component of your perKwh price - includes GST
          example: 6.12
        perKwh:
          type: number
          description: Number of cents you will pay per kilowatt-hour (c/kWh) - includes GST
          example: 24.33
        date:
          type: string
          description: Date the interval belongs to (in NEM time). This may be different to the date component
            of nemTime, as the last interval of the day ends at 12:00 the following day. Formatted as
            a ISO 8601 date
          example: '2021-05-05'
          format: date
        nemTime:
          type: string
          description: The interval's NEM time. This represents the time at the end of the interval UTC+10.
            Formatted as a ISO 8601 time
          example: '2021-05-06T12:30:00+10:00'
          format: date-time
        startTime:
          type: string
          description: Start time of the interval in UTC. Formatted as a ISO 8601 time
          example: '2021-05-05T02:00:01Z'
          format: date-time
        endTime:
          type: string
          description: End time of the interval in UTC. Formatted as a ISO 8601 time
          example: '2021-05-05T02:30:00Z'
          format: date-time
        renewables:
          type: number
          description: Percentage of renewables in the grid
          example: 45
        channelType:
          $ref: '#/components/schemas/ChannelType'
        tariffInformation:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/TariffInformation'
        spikeStatus:
          $ref: '#/components/schemas/SpikeStatus'
        descriptor:
          $ref: '#/components/schemas/PriceDescriptor'
    ActualInterval:
      allOf:
        - $ref: '#/components/schemas/BaseInterval'
        - type: object
          properties:
            type:
              type: string
              example: ActualInterval
              enum:
                - ActualInterval
          required:
            - type
    ForecastInterval:
      allOf:
        - $ref: '#/components/schemas/BaseInterval'
        - type: object
          description: Returns a forecasted price based on AEMO modelling. This is what AEMO thinks the
            price will be during the interval.
          properties:
            type:
              type: string
              example: ForecastInterval
              enum:
                - ForecastInterval
            range:
              nullable: true
              $ref: '#/components/schemas/Range'
            advancedPrice:
              nullable: true
              $ref: '#/components/schemas/AdvancedPrice'
          required:
            - type
    CurrentInterval:
      allOf:
        - $ref: '#/components/schemas/BaseInterval'
        - type: object
          description: Returns the current interval's forecasted price comprised of the weighted average
            of 5-minute actual prices and 5-minute forecast prices. In the last 5-minutes of the interval,
            the price represents the final price for that interval.
          required:
            - type
            - estimate
          properties:
            type:
              type: string
              example: CurrentInterval
              enum:
                - CurrentInterval
            range:
              nullable: true
              $ref: '#/components/schemas/Range'
            estimate:
              type: boolean
              description: Shows true the current price is an estimate. Shows false is the price has been
                locked in.
            advancedPrice:
              nullable: true
              $ref: '#/components/schemas/AdvancedPrice'
    Interval:
      oneOf:
        - $ref: '#/components/schemas/ActualInterval'
        - $ref: '#/components/schemas/CurrentInterval'
        - $ref: '#/components/schemas/ForecastInterval'
    Usage:
      allOf:
        - $ref: '#/components/schemas/BaseInterval'
        - type: object
          required:
            - type
            - channelIdentifier
            - kwh
            - quality
            - cost
          properties:
            type:
              type: string
              example: Usage
              enum:
                - Usage
            channelIdentifier:
              type: string
              description: Meter channel identifier
              example: E1
            kwh:
              type: number
              description: Number of kWh you consumed or generated. Generated numbers will be negative
            quality:
              type: string
              enum:
                - estimated
                - billable
              description: If the metering company has had trouble contacting your meter, they may make
                an estimate of your usage for that period. Billable data is data that will appear on your
                bill.
            cost:
              type: number
              description: The total cost of your consumption or generation for this period - includes
                GST
    BaseRenewable:
      type: object
      description: Renewable data
      required:
        - type
        - duration
        - date
        - nemTime
        - startTime
        - endTime
        - renewables
        - descriptor
      properties:
        type:
          type: string
        duration:
          type: integer
          description: Length of the interval in minutes.
          enum:
            - 5
            - 15
            - 30
        date:
          type: string
          description: Date the interval belongs to (in NEM time). This may be different to the date component
            of nemTime, as the last interval of the day ends at 12:00 the following day. Formatted as
            a ISO 8601 date
          example: '2021-05-05'
          format: date
        nemTime:
          type: string
          description: The interval's NEM time. This represents the time at the end of the interval UTC+10.
            Formatted as a ISO 8601 time
          example: '2021-05-06T12:30:00+10:00'
          format: date-time
        startTime:
          type: string
          description: Start time of the interval in UTC. Formatted as a ISO 8601 time
          example: '2021-05-05T02:00:01Z'
          format: date-time
        endTime:
          type: string
          description: End time of the interval in UTC. Formatted as a ISO 8601 time
          example: '2021-05-05T02:30:00Z'
          format: date-time
        renewables:
          type: number
          description: Percentage of renewables in the grid
          example: 45
        descriptor:
          $ref: '#/components/schemas/RenewableDescriptor'
    ActualRenewable:
      allOf:
        - $ref: '#/components/schemas/BaseRenewable'
        - properties:
            type:
              type: string
              example: ActualRenewable
          required:
            - type
    ForecastRenewable:
      allOf:
        - $ref: '#/components/schemas/BaseRenewable'
        - properties:
            type:
              type: string
              example: ForecastRenewable
          required:
            - type
    CurrentRenewable:
      allOf:
        - $ref: '#/components/schemas/BaseRenewable'
        - properties:
            type:
              type: string
              example: CurrentRenewable
          required:
            - type
    Renewable:
      oneOf:
        - $ref: '#/components/schemas/ActualRenewable'
        - $ref: '#/components/schemas/CurrentRenewable'
        - $ref: '#/components/schemas/ForecastRenewable'
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: The number of requests allowed per rate limit window
    RateLimit-Remaining:
      schema:
        type: integer
      description: The remaining quota in the current rate limit window
    RateLimit-Reset:
      schema:
        type: integer
      description: The number of seconds until the rate limit window resets
    RateLimit-Policy:
      schema:
        type: string
      description: The rate limit policy.<br>See <a href="https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/"
        target="_blank" rel="noopener noreferrer">https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/</a>
  responses:
    UnauthorizedError:
      description: API key is missing or invalid
    InternalServerError:
      description: Internal Server Error

paths:
  /state/{state}/renewables/current:
    get:
      tags:
        - Amber
      description: Returns the current percentage of renewables in the grid
      operationId: getCurrentRenewables
      security: []
      parameters:
        - name: state
          description: 'State you would like the renewables for. Valid states: nsw, sa, qld, vic'
          in: path
          required: true
          schema:
            type: string
          example: vic
        - name: next
          description: Return the _next_ number of forecast intervals
          in: query
          required: false
          schema:
            type: integer
          example: '48'
        - name: previous
          description: Return the _previous_ number of actual intervals.
          in: query
          required: false
          schema:
            type: integer
          example: '48'
        - name: resolution
          in: query
          description: 'Specify the required interval duration resolution. Valid options: 5, 30. Default:
            30'
          required: false
          schema:
            type: integer
            enum:
              - 5
              - 30
            default: 30
      responses:
        '200':
          description: The current percentage of renewables in the grid.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Renewable'
        '400':
          description: Bad request
        '404':
          description: State not found
        '500':
          description: Internal Server Error
  /sites:
    get:
      tags:
        - Amber
      description: Return all sites linked to your account
      operationId: getSites
      security:
        - apiKey: []
      parameters: []
      responses:
        '200':
          description: A list of sites.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Site'
        '401':
          description: API key is missing or invalid
        '500':
          description: Internal Server Error
  /sites/{siteId}/prices:
    get:
      tags:
        - Amber
      description: Returns all the prices between the start and end dates
      operationId: getPrices
      security:
        - apiKey: []
      parameters:
        - name: siteId
          description: ID of the site you are fetching prices for. Can be found using the `/sites` endpoint
          in: path
          required: true
          example: 01J23BAP2SFA218BMV8A73Y9Z9
          schema:
            type: string
        - name: startDate
          in: query
          description: Return all prices for each interval on and after this day. Defaults to today. The
            difference between `startDate` and `endDate` must not exceed 7 days.
          example: '2021-05-05'
          required: false
          schema:
            type: string
            format: date
        - name: endDate
          in: query
          description: Return all prices for each interval on and before this day. Defaults to today.
            The difference between `startDate` and `endDate` must not exceed 7 days.
          example: '2021-05-05'
          required: false
          schema:
            type: string
            format: date
        - name: resolution
          in: query
          description: 'Specify the required interval duration resolution. Valid options: 5, 30. Default:
            Your billing interval length.'
          required: false
          schema:
            type: integer
            enum:
              - 5
              - 30
      responses:
        '200':
          description: 'A list of priced intervals<br><br>Return Order: General > Controlled Load > Feed
            In.<br><br>**NOTE**: If a channel is added or removed the index offset will change. It is
            best to filter or group the array by channel type.'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Interval'
        '400':
          description: Bad request
        '401':
          description: API key is missing or invalid
        '404':
          description: Site not found
        '422':
          description: Requested date range is greater than 7 days
        '500':
          description: Internal Server Error
  /sites/{siteId}/prices/current:
    get:
      tags:
        - Amber
      description: Returns the current price
      operationId: getCurrentPrices
      security:
        - apiKey: []
      parameters:
        - name: siteId
          description: ID of the site you are fetching prices for. Can be found using the `/sites` endpoint
          in: path
          required: true
          example: 01J23BAP2SFA218BMV8A73Y9Z9
          schema:
            type: string
        - name: next
          description: Return the _next_ number of forecast intervals. The total number of intervals requested
            must not exceed 2048.
          in: query
          example: 48
          required: false
          schema:
            type: integer
        - name: previous
          description: Return the _previous_ number of actual intervals. The total number of intervals
            requested must not exceed 2048.
          in: query
          example: 48
          required: false
          schema:
            type: integer
        - name: resolution
          in: query
          description: 'Specify the required interval duration resolution. Valid options: 5, 30. Default:
            Your billing interval length.'
          required: false
          schema:
            type: integer
            enum:
              - 5
              - 30
      responses:
        '200':
          description: 'The current price on all channels.<br><br>Return Order: General > Controlled Load
            > Feed In.<br><br>**NOTE**: If a channel is added or removed the index offset will change.
            It is best to filter or group the array by channel type.'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Interval'
        '400':
          description: Bad request
        '401':
          description: API key is missing or invalid
        '404':
          description: Site not found
        '422':
          description: Requested number of intervals is greater than 2048
        '500':
          description: Internal Server Error
  /sites/{siteId}/usage:
    get:
      tags:
        - Amber
      description: Returns all usage data between the start and end dates. The API can only return 90-days
        worth of data.
      operationId: getUsage
      security:
        - apiKey: []
      parameters:
        - name: siteId
          description: ID of the site you are fetching usage for. Can be found using the `/sites` endpoint
          in: path
          required: true
          example: 01J23BAP2SFA218BMV8A73Y9Z9
          schema:
            type: string
        - name: startDate
          in: query
          description: Return all usage for each interval on and after this day. The difference between
            `startDate` and `endDate` must not exceed 7 days.
          example: '2021-05-05'
          required: true
          schema:
            type: string
            format: date
        - name: endDate
          in: query
          description: Return all usage for each interval on and before this day. The difference between
            `startDate` and `endDate` must not exceed 7 days.
          example: '2021-05-05'
          required: true
          schema:
            type: string
            format: date
        - name: resolution
          in: query
          description: Deprecated. Usage will always be returned in your billing interval length. If you
            supply this parameter, it will be ignored.
          required: false
          deprecated: true
          schema:
            type: integer
            enum:
              - 30
      responses:
        '200':
          description: 'Usage for the requested period.<br><br>Return Order: General > Controlled Load
            > Feed In.<br><br>**NOTE**: If a channel is added or removed the index offset will change.
            It is best to filter or group the array by channel type.'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Usage'
        '400':
          description: Bad request
        '401':
          description: API key is missing or invalid
        '404':
          description: Site not found
        '422':
          description: Requested date range is greater than 7 days
        '500':
          description: Internal Server Error