How to access Additional scripts in Checkout Settings via API?

Adnabu_Test
Shopify Partner
1 0 3

Hi, I was wondering if its possible to access the additional scripts via the API. I tried fetching using the Scripts Api but it returned 0 results (I had added a script in the Checkout Settings). 

Jason
Shopify Expert
10041 119 1877

Are you talking about this section in the Admin?

If so, there's no API endpoint to alter that content so it must be changed within the Admin.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
CJ_Test_Site_Ad
Shopify Partner
2 0 4

This post is marked as "Outdated" - is that still the case?  Can Additional Scripts not be accessed with the API?

Ernsty
New Member
1 0 4

I'm also curious that one can access [store].myshopify.com/admin/settings/checkout.json in their browser (when logged in) but when attempting to do so through the API (using OAuth 2.0) there is a 404 response. Is there a scope that can be specified to grant read/write access to that json?

Karthikc
New Member
3 0 0

Its been 2.5 years since last reply. hence wanted to check if there is any new development in this area. Can we add the additional scripts using APIs ?

0 Likes
gprusiyski
Shopify Partner
1 0 0

Currently you using the ScriptTag API you can specify where the scripts should be loaded:
Everywhere - all

Online store - online_store

Order status page - order_status

Check the documentation here: https://shopify.dev/docs/admin-api/rest/reference/online-store/scripttag

 

0 Likes