Skip to content

Update risk settings

PUT/admin/v1/stores/{store_id}/risk-settings
  • settings:write

Replaces the settings, zone rules included.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • cod_verificationenumrequired

    When COD orders need the buyer's phone verified with a code.

    • off
    • always
    • above_amount
  • cod_verification_amountintegerrequired

    With above_amount: totals from this need a verified phone.

  • high_value_amountintegerrequired

    Totals from this count as large in risk scores; 0 turns the factor off.

  • zonesarray of objectsrequired

    COD per shipping zone. Zones not listed allow COD for any total.

Returns

200 Saved.

Errors

  • 422validation_failedInvalid fields.