Update risk settings
PUT
/ admin/ v1/ stores/ {store_id}/ risk-settings- settings:write
Replaces the settings, zone rules included.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
cod_verificationenumrequiredWhen COD orders need the buyer's phone verified with a code.
- off
- always
- above_amount
cod_verification_amountintegerrequiredWith
above_amount: totals from this need a verified phone.high_value_amountintegerrequiredTotals from this count as large in risk scores; 0 turns the factor off.
zonesarray of objectsrequiredCOD per shipping zone. Zones not listed allow COD for any total.
Returns
200 Saved.
Errors
- 422
validation_failedInvalid fields.