how to update or delete the order risk?

Mira_Torres
Tourist
6 0 2

Hi,please help! I am trying to delete the order risk, and using postman for deleting of it followed by calling admin api "PUT /admin/api/2021-07/orders/450789469/risks/284138680.json",and "DELETE /admin/api/2021-07/orders/{order_id}/risks/{risk_id}.json ", but it always prompts 401 unauthorized,the GET api status is 200 ok and get data successfully, the order is placed on webpage not another app. i don’t know how to update the order risk by calling the admin api with which application,please help me,any help would be great thanks!

Reply 1 (1)
GrahamS
Shopify Staff
156 25 32

Hello @Mira_Torres ,

Only an app that created an order (aka a sales channel app) can add or delete an order risk. Because of this, if your order was created by the Online Store sales channel, only the Online Store sales channel could process the call necessary to delete the order risk object. A private app would not be able to delete an order risk on its own.

Best,

Graham S | 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