ChangelogΒΆ
The format is based on Keep a Changelog.
[1.2.0] - 2024-02-10ΒΆ
What's NewΒΆ
GET
/products/pcfDataΒΆ
GET the PCF data for your Products in SiGREEN.
GET
/products/bomVersionsΒΆ
Get a list of BOM versions
What's DeletedΒΆ
GET
/products/{id}/pcfΒΆ
Get an export of a product carbon footprint without cryptographic material. If you need cryptographic verifiability of this information please use DIDComm APIs.
What's DeprecatedΒΆ
POST
/products/{id}/factoryEmissionsΒΆ
Upload factory emissions for a product in SiGREEN.
What's ChangedΒΆ
POST
/products/identifierTypesΒΆ
Return Type:ΒΆ
Changed response : 201 Created
Created. Response will return the UUID of the created product identifier type.
Changed content type :
application/json
- Changed property
id
(string)UUID to identify the identifier type of the company in SiGREEN
- Changed property
DELETE
/products/identifierTypes/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the product identifier type of the company in SiGREEN.
PATCH
/products/identifierTypes/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID for identifying the product identifier type of the company in SiGREEN.
GET
/productsΒΆ
Parameters:ΒΆ
Added: searchText
in query
Partial text search on following attributes - name , identifiers.
Minimum 3 characters required to search.
Partial text match would be either name or identifiers or both
Added: name
in query
Filter products by name
Added: family
in query
Filter products by product family
Added: idType
in query
Product identifier type in SiGREEN.
idType filter is applicable only when user is searching with idValue filter.
Idea here is to find products with idType and value combination.
Added: idValue
in query
Filter products based on either main or additional identifier value in SiGREEN.
Added: factoryId
in query
UUID to identify the factory of the company in SiGREEN
Added: sort
in query
Sorting fields supported (name, createdOn, updatedOn). Example - Ascending order '+name' , Descending order '-name'. Default order is createdOn ascending order.
Return Type:ΒΆ
Changed response : 200 OK
A list of products
Changed content type :
application/json
- Changed property
items
(array)
Changed items (object):
* Added property `createdOn` (string) > Created on (ISO 8601; UTC Timezone) * Added property `updatedOn` (string) > Updated on (ISO 8601; UTC Timezone) * Changed property `id` (string) > UUID to identify the product of the company in SiGREEN * Changed property `factoryIds` (array) > Product Factory Ids (UUIDs)
- Changed property
POST
/productsΒΆ
Request:ΒΆ
Changed content type : application/json
- Changed property
factoryIds
(array)Product Factory Ids (UUIDs)
Return Type:ΒΆ
Changed response : 201 Created
Created
Changed content type :
application/json
- Changed property
id
(string)UUID to identify the product of the company in SiGREEN
- Changed property
GET
/products/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the product of the company in SiGREEN
Return Type:ΒΆ
Changed response : 200 OK
A product
Changed content type :
application/json
Added property
createdOn
(string)Created on (ISO 8601; UTC Timezone)
Added property
updatedOn
(string) > Updated on (ISO 8601; UTC Timezone)Changed property
id
(string) > UUID to identify the product of the company in SiGREENChanged property
factoryIds
(array) > Product Factory Ids (UUIDs)
PUT
/products/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the product of the company in SiGREEN
Request:ΒΆ
Changed content type : application/json
- Changed property
factoryIds
(array)Product Factory Ids (UUIDs)
DELETE
/products/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the product of the company in SiGREEN
POST
/factoriesΒΆ
Return Type:ΒΆ
Changed response : 201 Created
Created. Response will return the UUID of the created factory.
Changed content type :
application/json
- Changed property
id
(string)UUID to identify the factory of a company in SiGREEN.
- Changed property
DELETE
/factories/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the factory of the company in SiGREEN.
PATCH
/factories/{id}ΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID for identifying the factory of the company in SiGREEN.
GET
/products/{productId}/bomΒΆ
Parameters:ΒΆ
Changed: productId
in path
Alphanumeric Id (Product Identifier) for identifying the product of the company in SiGREEN
Return Type:ΒΆ
Changed response : 200 OK
Bill of Materials
Changed content type :
application/json
- Changed property
boms
(array)
Changed items (object):
* Changed property `version` (string) > Version of the Bill of Material * Changed property `comment` (string) > Comments * Changed property `revision` (string) > Revision of the product * Changed property `components` (array) > List of BOM Components of the product Changed items (object): * Changed property `identifier` (string) > Identifier of the component * Changed property `quantity` (string) > Quantity of the component * Changed property `components` (array) > List of BOM Components of the product
- Changed property
POST
/products/{productId}/bomΒΆ
Parameters:ΒΆ
Changed: productId
in path
Alphanumeric Id (Product Identifier) for identifying the product of the company in SiGREEN
Request:ΒΆ
Changed content type : application/json
Changed property
version
(string)Version of the Bill of Material
Changed property
comment
(string)Comments
Changed property
revision
(string)Revision of the product
Changed property
components
(array)List of BOM Components of the product
Changed items (object):
Changed property
identifier
(string) > Identifier of the componentChanged property
quantity
(string) > Quantity of the componentChanged property
components
(array) > List of BOM Components of the product
POST
/products/{productId}/offsettingΒΆ
Parameters:ΒΆ
Changed: productId
in path
Alphanumeric Id (Product Identifier) for identifying the product of the company in SiGREEN
Request:ΒΆ
Changed content type : application/json
Changed items (object):
Changed property
batchNumber
(string)batch number
Changed property
taskId
(string)task id
Changed property
offsetTotal
(number)offset total
Changed property
offsetUnit
(string)offset unit
Changed property
offsetPortfolioId
(string)offset portfolio id
Changed property
offsetPrice
(number)offset price
Changed property
offsetPriceUnit
(string)offset price unit
Changed property
offsetOwner
(string)offset owner
Changed property
offsetReason
(string)offset reason
Changed property
offsetOwnerVisibility
(string)offset owner visibility
Changed property
offsetReasonVisibility
(string)offset reason visibility
Changed property
offsetProviderOrderID
(string)offset provider order id
Changed property
certificateLink
(string)certificate link
Changed property
comment
(string)Comments
Changed property
offsetProjects
(array)List of offset projects
Changed items (object):
Changed property
offsetType
(string) > offset typeChanged property
offsetProvider
(string) > offset providerChanged property
offsetProviderProjectID
(string) > offset provider project idChanged property
offsetProviderFinalizationID
(string) > offset provider finalization idChanged property
offsetProviderFinalizationDate
(string) > offset provider finalization dateChanged property
offsetQuantity
(number) > offset quantityChanged property
offsetQuantityUnit
(string) > offset quantity unitChanged property
projectID
(string) > project idChanged property
projectName
(string) > project nameChanged property
projectLocation
(string) > project locationChanged property
projectType
(string) > project typeChanged property
projectURL
(string) > project urlChanged property
productType
(string) > product typeChanged property
offsetRetirementURL
(string) > offset retirement urlChanged property
offsetRetirementDate
(string) > offset retirement dateChanged property
offsetVintageStart
(string) > offset vintage startChanged property
offsetVintageEnd
(string) > offset vintage endChanged property
offsetSerialNumber
(string) > offset serial numberChanged property
offsetOwner
(string) > offset ownerChanged property
offsetReason
(string) > offset reason
POST
/products/{id}/factoryEmissionsΒΆ
Parameters:ΒΆ
Changed: id
in path
UUID to identify the product of the company in SiGREEN
Request:ΒΆ
Changed content type : application/json
New required properties: - factoryId
New optional properties: - emissions
Changed property
factoryId
(string)UUID to identify the factory of the company in SiGREEN
Changed property
batch
(object)Batch
New optional properties: -
assessmentYear
Return Type:ΒΆ
Changed response : 201 Created
Created
Changed content type :
application/json
- Changed property
factoryEmissionId
(string)UUID to identify the factory emission of the company in SiGREEN
- Changed property
[1.1.0] - 2024-10-14ΒΆ
What's NewΒΆ
DELETE
/products/{id}ΒΆ
Delete a product in SiGREEN.
What's ChangedΒΆ
POST products/{id}/factoryEmissionsΒΆ
- API endpoint changed from "/products/factoryEmissions/{productId}" to "/products/{id}/factoryEmissions"
- Parameter changed from {productId} - product main identifier value to {id} - product system generated id
- Changed Request body structure changed from array to single object.
- Changed Request body - Instead of factory name now it uses factory id.
PATCH
/factories/{id}ΒΆ
ParametersΒΆ
Changed: id
in path
System generated id to identify the factory of the company in SiGREEN.
GET
/products/{id}ΒΆ
Changed response : --200 OK--
The request was successful and received single product data.
Changed content type :
application/json
- Changed property
unitType
(string)Unit type of the product
Added enum values:
- `piece` - `kg` - `m2` - `m3` - `kWh` - `tkm` - `MJ` - `L`
- Changed property
PUT
/products/{id}ΒΆ
RequestΒΆ
Changed content type : application/json
New required properties:
identifiers
Changed property
unitType
(string)Unit type of the product
Added enum values:
- `piece`
- `kg`
- `m2`
- `m3`
- `kWh`
- `tkm`
- `MJ`
- `L`
GET
/products/identifierTypesΒΆ
Changed response : --200 OK--
List of product identifier types.
Changed content type :
application/json
Added property
totalRecords
(integer)Total number of records.
Changed property
items
(array)List of product identifiers
Changed items (object):
Details about the Identifier Type
- Changed property `id` (string -> string) > System generated id to identify the identifier type present in a company in SiGREEN - Changed property `idType` (string) > Identifier type value.
GET
/factoriesΒΆ
Return TypeΒΆ
Changed response : --200 OK--
List of factories belongs to a specific company.
Changed content type :
application/json
- Added property
totalRecords
(integer)Total number of records.
- Added property
POST
/productsΒΆ
RequestΒΆ
Product details for create
Changed content type : application/json
New required properties:
identifiers
Changed property
unitType
(string)Unit type of the product
Added enum values:
- `piece`
- `kg`
- `m2`
- `m3`
- `kWh`
- `tkm`
- `MJ`
- `L`
GET
/productsΒΆ
Return TypeΒΆ
Changed response : --200 OK--
The request was successful and received list of product data.
Changed content type :
application/json
Added property
totalRecords
(integer)Total number of records.
Changed property
items
(array)List of products
Changed items (object):
Product response data.
Changed property
unitType
(string) > Unit type of the productAdded enum values: - `piece` - `kg` - `m2` - `m3` - `kWh` - `tkm` - `MJ` - `L`
[1.0.0] - 2024-07-22ΒΆ
What's NewΒΆ
POST
/products/identifierTypesΒΆ
Create a product identifier type for a company in SiGREEN.
DELETE
/products/identifierTypes/{id}ΒΆ
Delete an unused product identifier type for a company in SiGREEN.
PATCH
/products/identifierTypes/{id}ΒΆ
Update a product identifier type for a company in SiGREEN.
DELETE
/factories/{id}ΒΆ
Delete an unused factory for a company in SiGREEN.
PATCH
/factories/{id}ΒΆ
Update a factory for a company in SiGREEN.
PUT
/products/{id}ΒΆ
Update a product by product Id in SiGREEN
What's ChangedΒΆ
GET
/products/{productId}/pcf/{filter}ΒΆ
Get an export of a product carbon footprint without cryptographic material. If you need cryptographic verifiability of this information please use DIDComm APIs.
ParametersΒΆ
Removed: filter
in path
Added: filter
in query
Here you can provide a filter on the request, e.g pcf information out of active or latest credential. Available values : active, latest
Changed path parameter : productId
in path
to id
in path
GET
/products/identifierTypesΒΆ
Get product identifier types for a company in SiGREEN.
ParametersΒΆ
Added: page
in query
Page Number, usually starts with 0
Added: size
in query
Size of the page default value is 10
Return TypeΒΆ
New response : --403 Forbidden--
Forbidden. Deleted response : --400 Bad Request-- Bad request. Changed response : --401 Unauthorized-- Unauthorized.
- New content type :
application/problem+json
Changed response : --500 Internal Server Error--
Unexpected error.
- New content type :
application/problem+json
Changed response : --200 OK--
List of product identifier types
Changed content type :
application/json
Changed property
hasNext
(boolean)true if next page exists (page < totalPages)
Changed property
hasPrev
(boolean)true if a previous page exists (page > 0)
Changed property
page
(number)The current page-number (starts with 0)
Changed property
pageNumber
(number)The current page-number (starts with 1)
Changed property
size
(number)The size of elements in the response
Changed property
totalPages
(number)The total available pages
Changed property
identifierTypes
(array)
Changed items (object):
New required properties: -
id
-idType
-isMainIdentifierType
- Added property `id` (string) > A unique id for identifier type. - Changed property `idType` (string) > identifier type value. - Changed property `isMainIdentifierType` (boolean) > Whether it is main identifier type or not.
GET
/products/{productId}ΒΆ
Return TypeΒΆ
New response : --403 Forbidden--
Forbidden. Deleted response : --404 Not Found-- Not found. Changed response : --400 Bad Request-- Bad request.
- New content type :
application/problem+json
Changed response : --401 Unauthorized--
Unauthorized.
- New content type :
application/problem+json
Changed response : --500 Internal Server Error--
Unexpected error.
- New content type :
application/problem+json
Changed response : --200 OK--
A product
- Changed content type :
application/json
New required properties -id
- Added property `id` (string)
> System generated id to identify the product of the company in SiGREEN
- Added property `factoryIds` (array)
> Product Factory Ids (System Generated Ids)
Items (string):
- Deleted property `location` (string)
- Deleted property `factory` (array)
- Changed property `name` (string)
> Name of Product
- Changed property `family` (string)
> Product Family name
- Changed property `description` (string)
> Product description
- Changed property `weight` (string)
> Product weight
- Changed property `quantity` (string)
> Product Quantity
- Changed property `identifiers` (array)
> You have to have one identifier where default parameter is set to true as this represents your main identifier for this entity.
Changed items (object):
- Changed property `idType` (string)
> identifier type
- Changed property `value` (string)
> identifier value
- Changed property `default` (boolean)
> whether main identifier type or not
- Changed property `unitType` (string)
> Unit Types