API Reference
Log In
API Reference

Cart widget v2

Fetching a widget that describes the impact made by the products placed in the cart.

Log in to see full request history
254

Widget default style example

254

Widget simplified style example

578

Popup example

Query Params
string
Defaults to en

Set the widget's language. Currently supported languages are: English (en), German (de)

Body Params
string
required
Defaults to YOUR-SHOP-NAME

The name of your store as it is saved in Greenspark. For example: example.myshopify.com

string
required
Defaults to green

Set the widget colour. Current options include: "beige" | "green" | "blue" | "white" | "black" | "grey" | "transparent"

order
object
required

Specify the order data to show the correct impact totals in the widget.

boolean
Defaults to false

Adds a popup for the response, triggered by clicking on the widget

string
Defaults to default

Select if you want the default style (displayed above) or if you want a simplified version. Current options include: "default" | "simplified"

string
Defaults to light

Selects the color theme for the popup. Only applies if withPopup is set to true

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json