AristanderAI

Searchâ€¦

Plugin Integration

Manual Integration

Configuration

Order Costs

One of the most important variables we track is order costs. Order costs are the amount each order costs your web shop. If we subtract order costs from order total, we should be able to arrive at the profit per order.

There are many variables that affect order costs (shipping, taxes, etc.) - and this is why it's often easier for a web shop to calculate the costs themselves.

In the event that calculating order costs is too difficult - AristanderAI can use a simplified formula to calculate the profit:

1

order revenue - total net unit costs (per item) - taxes

Copied!

For example, in the following order we have a total of 30.60, total taxes of 5.00, and total costs of 10.40.

1

{

2

"event_type" : "order",

3

"session_id" : "098f6bcd4621d373cade4e832627b4f6",

4

"event_details" : {

5

"products" : [

6

{

7

"product_id" : "106",

8

"quantity" : "2",

9

"item_price" : "1.26",

10

}

11

],

12

"order_costs" : [

13

["shipping", "5.00"]

14

],

15

"total" : "30.60",

16

"total_taxes" : "5.00",

17

"total_costs" : "10.40",

18

"currency_code" : "USD"

19

},

20

"api_version" : "1.0",

21

"plugin_version" : "",

22

"user_agent" : "Firefox",

23

"pricelist_source" : "aristander",

24

"price_mode" : "timeseries",

25

"model_params" : "912ec803b2ce49e4a541068d495ab570",

26

"timestamp" : 1565252389074

27

}

Copied!

The profit for this order (what we are trying to maximize) would be 30.60 - 10.40 = 20.20.

If total_costs are not provided, the profit of the order would be 30.60 - (50 cent net unit cost of product ID 106 * 2) - 5.00 = 24.60

Last modified 2yr ago

Copy link