Post Cart Script Add
POST {{baseUrl}}/cart.script.add.json?name=<string>&description=<string>&html=<string>&src=<string>&load_method=<string>&scope=<string>
Add new script to the storefront
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
name | string | Coupon name | |
description | string | The user-friendly description | |
html | string | An html string containing exactly one script tag. | |
src | string | The URL of the remote script | |
load_method | string | The load method to use for the script | |
scope | string | The page or pages on the online store where the script should be included |