Cart widget

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

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"

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

Responses

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