Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

JackC

Member
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by JackC

  1. I am trying to update product variants and adjust stock quantities for products using the commerce API endpoints as seen here and here. I am running into an issue where it is giving me a 401 unauthorized request although I have all of the required headers, as well as the correct body. I can make this POST request through Postman no problem but trying to make an identical request through javascript only returns 401 unauthorized. Simple example (using product variant endpoint): await axios.post(`${API_URL}/${productId}/variants/${variantId}`, { headers: { 'Authorization': 'Bearer ' +
×
×
  • Create New...