How To Send Data From Checkout UI Extension to Backend?

How To Send Data From Checkout UI Extension to Backend?

Joy_Matubber
Shopify Partner
28 0 1

For an app, I need to send some data in the backend from the Checkout UI Extension to store them in the app database. I'm using the Shopify Remix template. How can I send data in backend?

Replies 2 (2)

Darshanmandasa
Shopify Partner
3 0 2

Hello,

I  just want to fetch data from my backend  to customer ui extension on profile target  so how can i do that thing.

When I used npm run dev command, I used the tab which created the url accordingly but I am getting 302 status code which is redirecting me to the login page while I have also passed the session token in the header.
Please see the screenshot below of my code

Darshanmandasa_0-1707373179589.png


also see the screenshot below of my response

Darshanmandasa_1-1707373229765.png


Thank you 

 

jains
Shopify Partner
12 0 8

I've done something very similar to you. Are you sure the address in your fetch call is correct?
How do you digest the token at the request route? I am struggling with this.