Table of Contents
Table of Contents | ||
---|---|---|
|
Changelogs
Version | Date | Changes by | Description of change |
V1.0 | Mar 29, 2024 | Que Nguyen |
|
V1.0.1 | Apr 11, 2024 | Que Nguyen |
|
Release status
Environment | Status | Released Date | Version | ||||||
DEV |
| Apr 23, 2024 | V1.0.1 | ||||||
UAT |
| Apr 26, 2024 | V1.0.1 | ||||||
PROD |
| N/A | N/A |
API Definition
Query REC Inventory
Resource information | ||
---|---|---|
Response format(s) | JSON | |
Requires authentication? | Yes using API key | |
Request Header | ||
Name | Value | |
|
| |
|
| |
Query Parameters | ||
|
| The total items that return in the response |
|
| Request field for pagination. The Page that you wish to view |
|
| Filter the items by Registry
|
|
| Device unique identifier |
Returns | ||
Get REC Inventory |
Response Header | ||
---|---|---|
|
| |
Response Body | ||
Field | Type | Description |
|
| REC Unique Identifier |
|
| Device Unique Identifier |
|
| Name Of Device |
|
| Human readable device Unique Id |
|
| Registry Device Unique ID |
|
| Value of Registry (IREC, TIGR) |
|
| Description of Registry (I-REC, TIGR) |
|
| REC Serial Number Serial number is combination of |
|
| REC Quantity |
|
| Retired REC Quantity: number of RECs retired |
|
| On Sale: number of RECs on sale |
|
| On Retirement: number of RECs on retirement |
|
| On Exporting: number of RECs on exporting |
|
| Exported: number of RECs Exported |
|
| On Auction: number of RECs on auction |
|
| Available RECs: number of available RECs
|
|
| Balance of REC items:
|
|
| Date Time UTC |
|
| Date Time UTC |
|
| Country Code. Ex: SG |
|
| Fuel Type |
|
| Energy Type |
|
| Vintage Year |
|
| Trading’s total count number |
|
| (Issued, Imported) |
Request
Status | ||||
---|---|---|---|---|
|
/public/v2/inventories/recs
Parameter
Code Block | ||
---|---|---|
| ||
?CurrentPage=5&ItemsPerPage=10&Registries=IREC&Registries=TIGR |
Response
Info |
---|
200 Success |
Code Block | ||
---|---|---|
| ||
{ "Data": [ { "Id": "326be15c-795e-4c33-26f0-08dbf7dca95f", "DeviceId": "f26be15c-795e-4c33-26f0-08dbf7dca95f", "DeviceName": "Sentosa Fun Pass Singapore", "DeviceUniqueId": "SG-SOLAR-11012021-2540515487", "RegistryId": "GFNIES10001", "SerialNumber": "IREC-GFNIES10001-SG-2021-1106-1110-1767.250000 to 1768.249999", "Total": 1, "Balance": 1, "Available": 1, "OnSale": 0, "OnRetirement": 0, "OnExporting": 0, "OnAuction": 0, "Retired": 0, "Exported": 0, "VintageFrom": "2021-11-06T00:00:00", "VintageTo": "2021-11-10T00:00:00", "CountryCode": "SG", "FuelType": "Solar", "EnergyValue": "Solar", "VintageYear": 2021, "TradingCount": 1, "RecItemType": "Issued", "Registry": { "Value": "IREC", "Description": "I-REC" } } ], "Meta": { "CurrentPage": 5, "TotalPage": 7, "ItemsPerPage": 1, "TotalItems": 64, }, "Errors": null, "StatusCode": 200, "Message": "Success" } |
Warning |
---|
404 Not Found |
Code Block |
---|
{ "Data": null, "Errors": null, "Meta": null, "StatusCode": 404, "Message": "Not found" } |
Warning |
---|
401 Unauthorized |
Code Block | ||
---|---|---|
| ||
{ "Data": null, "Errors": null, "Meta": null, "StatusCode": 401, "Message": "Unauthorized" } |
Warning |
---|
403 Forbidden |
Code Block | ||
---|---|---|
| ||
{ "Data": null, "Errors": null, "Meta": null, "StatusCode": 403, "Message": "Forbidden" } |