POST:order_risks.json
Commerce APIPOST:order_risks.json

POST:order_risks.json

Description

Save order risk evaluation to an order.

Permission bit: "order_risks.create"

Topic: Order Risks

Query Parameters

order_id: String, required

Unique order identifier. See also: Unique Identifiers

Example: ?order_id=or_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

OrderRiskCreate

{
  "billing_address": {
    "distance_to_ip_location": 5,
    "is_in_ip_country": true
  },
  "display": true,
  "external": true,
  "message": "",
  "order_canceled": false,
  "risk_level": "high",
  "score": 0,
  "shipping": {
    "cost_factor": 3.1415
  },
  "shipping_address": {
    "distance_to_billing_address": 5,
    "distance_to_ip_location": 5,
    "is_in_ip_country": true
  }
}

Response Body

OrderRisk

Response Body Type

Loading module