There are a lot of things you can do using Shopify Flow's "Send Admin API Request" action, but in this example we'll use it to obtain permission to receive email newsletters on the cart screen rather than the checkout screen, and have that information reflected in the customer's status after the order is completed.
Example of setting to display a check box for whether to receive email newsletters on the cart screen and mark email subscriptions as "Registered"

[(For the Dawn/Rise theme) Setup step 1] Edit "sections/main-cart-footer.liquid" so that you can add customized Liquid to the "Subtotal" block on the cart screen.

[(For the Dawn/Rise theme) Setup Step 2] Add the custom Liquid block added in Step 1 to the subtotal section of the cart template and insert the checkbox code to indicate whether you want to receive the newsletter into the cart attributes.

[(For the Dawn/Rise theme) Setup step 3] If the check on the cart screen is OK, create a Flow that reflects "email newsletter consent" in the customer data.

