We have an integration with a referral partner so we need to track traffic attribution via a clickid. This is the custom attribute that we attach to the checkout using updateAttribute. .
I can see the attached attribute on the order admin page as shown below.
On the order status page I'd like to add a script to use this custom attribute and make a call to our referral partner to confirm that the referral led to a completed order.
According to the documentation here, I should have access to the full checkout object in the order status page's additional script textbox. However, when I inspect the checkout object on the order status page, it doesn't have an attribute key. Why is the attributes key not exposed? Is there a workaround for this?
What's the shop id of the store, and order id of the order, that you're using to test?
Additionally, can you post the code you're currently using to attempt to retrieve the checkout object?