FROM CACHE - en_header

update carrier services return 404 error

jon2022
Shopify Partner
3 0 0

Hi , im having this 404 error when i make a PUT or POST request to carrier_services  but if i make GET request to get a list of carrier services retrun data successfully  

this the list of my shipping carrier :

jon2022_0-1634037380535.png

 

and this is my code for update a carrer service :

jon2022_1-1634037543747.png

 

error id : 59903ea0-4dd6-46ad-9aa7-3bc6cb64a642

 

Replies 4 (4)
csam
Shopify Staff
Shopify Staff
267 40 44

Hi @jon2022 

Does your app have both Read and Write access for shipping?

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jon2022
Shopify Partner
3 0 0

@csam  yes 

i found that my endpoint protected by store password 

how to make it public endpoint  ? 

csam
Shopify Staff
Shopify Staff
267 40 44

Could you please provide the full URL of the endpoint you're trying to POST/PUT to? If it was blocked by a password, it wouldn't be returning a 404 response.

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jon2022
Shopify Partner
3 0 0

ifount a solution to my endpoint publicly availeble  but still can't create new crrier service from my server with post request provided by shopify api 

@csam   my error is 400 badrequest 

this is my code : 

jon2022_0-1634306350055.png

and this is my console :

jon2022_1-1634306429210.png

when i made get request from frontend to my ("/add") get request to create new carrier service with REST api provided by shopify api it return error 400 bad request