Get the current account's sustainability page
Get the configuration of the current account's sustainability page.
Parameters
No parameters
Returns
Returns: SustainabilityPage object
enumrequired
The sustainability page status which determines whether it is visible to the public.
Enum:
- enabled
- disabled
string^[a-z0-9.-]+$required
The sustainability page slug. The slug is used to identify the page publicly and should be unique.
enumrequired
The sustainability page title stat format.
Enum:
- by_volume
- by_price
One of
stringrequired
The sustainability page custom description. Only displayed when description
is set to by_custom_description
.
array of enumrequired
The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.
curl 'https://api.lune.co/v1/sustainability-pages/current-account' \
-H 'Authorization: Bearer <API_KEY>'
{
"status": "enabled",
"slug": "acme",
"title": "by_volume",
"description": {
"Description": "by_equivalent"
},
"custom_description": "This is a custom description",
"sections": [
"bundles_breakdown",
"certificates"
]
}