post deprecatedhttps://api.getgreenspark.com/widgets/cart-widget
Fetching a widget that describes the impact made by the products placed in the cart.
Log in to see full request history

Widget example

Popup example
Responses
Fetching a widget that describes the impact made by the products placed in the cart.
Widget example
Popup example
xxxxxxxxxx
22curl --request POST \
--url 'https://api.getgreenspark.com/widgets/cart-widget?lng=en' \
--header 'accept: text/html' \
--header 'content-type: application/json' \
--header 'x-api-key: "YOUR-API-KEY"' \
--data '
{
"shopUniqueName": "YOUR-SHOP-NAME",
"color": "green",
"order": {
"currency": "USD",
"totalPrice": 100,
"lineItems": [
{
"productId": "YOUR-PRODUCT-ID",
"quantity": 1
}
]
},
"withPopup": false
}
'
Try It!
to start a request and see the response here! Or choose an example: