API Reference
Log In
API Reference

Per product widget v2

Fetching a widget that describes a given store’s impact settings for a selected product.

Log in to see full request history
187

Widget default style example

255

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"

string
required
Defaults to PRODUCT ID

Specify the ID of your product.

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