The recommended way is with Checkout UI extensions which are currently available only for Plus Merchants, where the checkout's Thank You page is called the 'Order Status' supported location [Related documentation] .
Another way to customize the order status page which is not limited to the Plus plan is the 'Additional Scripts' order status page customization area. [Related Documentation]
Please note that we don't provide direct support for either of these options in this API and SDK forum.
Hope you have a great day
We want to add and edit additional script dynamically. Is there any api or sdk that provides the feature to add or edit additional script.
If you are using a custom app on a vintage theme, then the GraphQL Admin Api can add script tags with the displayScope ORDER_STATUS, using the scriptTagCreate mutation, or remove them with the scriptTagDelete mutation.
If you are building a public app, or using a newer theme then I would recommend looking at our guide on Post-purchase checkout extensions, which are currently in beta.
Hope that helps!