Retrieves all active products for a specific business

GET /business-product/{businessId}

Retrieves all active products for a specific business

Path parameters

  • businessId Required

    Business ID

Responses

  • 200 application/json

    Products retrieved successfully

    Hide response attributes Show response attributes object
    • message string
    • response array[object]
      Hide response attributes Show response attributes object
      • productName string
      • carbonEmission number
      • description string
      • carbonCreditPrice number
      • projectId string
      • registryName string
      • businessId string
  • 500 application/json

    Internal server error

    Hide response attribute Show response attribute object
    • message string
GET /business-product/{businessId}
curl \
 --request GET 'https://beta.api.sustainology.life/business-product/{businessId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "message": "Products retrieved successfully!",
  "response": [
    {
      "projectId": "123456",
      "businessId": "FKTRP77798T5",
      "description": "Product 1 description",
      "productName": "Product 1",
      "registryName": "Registry 1",
      "carbonEmission": 2.5,
      "carbonCreditPrice": 10
    }
  ]
}
Response examples (500)
{
  "message": "We apologize for the inconvenience. It seems we've encountered an internal server error. !."
}