API Reference
Log In
API Reference

Per product widget

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

Log in to see full request history
187

Widget 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"

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

Responses

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