Adding 'my_cost' to order/items API endpoint

It would be nice if the 'my_cost' field could be added to the https://api.brickowl.com/v1/order/items endpoint.
That way it can be gotten in one sweep with all items in an order, instead of getting it in extra call to https://api.brickowl.com/v1/inventory/list

Comments

  • 3 Comments sorted by Votes Date Added
  • We don''t want to include any extra lot information in the order/items endpoint as this is already available in the inventory endpoints and is a slippery slope towards adding every lot field into the order/items endpoint.
  • I can understand that.
    I compared both endpoints (for 1 item in an order).

    In my example there are 16 in both the order and inventory, most of them id numbers (some seem to be double).

    There are 11 that are only in the inventory endpoint, and of those there are indeed a few (I think 5 at most, including my_cost, but 2 are more likely) more that could be requested to be also in the order list endpoint.

    On the other hand, in my eyes there are a few missing in the inventory endpoint :smile:

    And maybe it is all because of my (missing) mad coding skills :smile:
This discussion has been closed.