bigcommerce-api-php icon indicating copy to clipboard operation
bigcommerce-api-php copied to clipboard

Cart data

Open Mpese-Joao opened this issue 2 years ago • 0 comments

I want to kno if it is possible to access the cart data through the App? I'm asking because i'm developing an app to read cart data. But whenever a press the button i get 401 error:

const fetchBigCommerceData = async () => { try { const response = await fetch( "https://api.bigcommerce.com/stores/aherf0o3nw/v3/carts/{CartId}", { headers: { "Accept" : "application/json", "Content-Type" : "application/json", "X-Auth-Token" : "4*****************************, "X-Auth-Client" : "a*****************************", }, mode: "no-cors", } );

Mpese-Joao avatar Feb 28 '23 12:02 Mpese-Joao