update carrier services return 404 error

jon2022
Shopify Partner
6 0 2

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 (Retired)
267 40 51

Hi @jon2022 

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

To learn more visit the Shopify Help Center or the Community Blog.

jon2022
Shopify Partner
6 0 2

@csam  yes 

i found that my endpoint protected by store password 

how to make it public endpoint  ? 

csam
Shopify Staff (Retired)
267 40 51

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.

To learn more visit the Shopify Help Center or the Community Blog.

jon2022
Shopify Partner
6 0 2

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