# ESI assets, blueprints and quantities

**URL:** <https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345>\
**Category:** Third Party Developers\
**Created:** [August 24, 2017, 6:11am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345 "2017-08-24T06:11:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Butcher](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/pete_butcher/32/249027_2.png) [@Pete\_Butcher](https://forums.eveonline.com/u/Pete_Butcher)\
**Post date:** [August 24, 2017, 6:11am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/1 "2017-08-24T06:11:24Z")

</div>

The old XML api had a raw quantity field which enabled us to differentiate BPOs from BPCs. This doesn’t seem the case with ESI anymore. Or does it? We have a quantity field which seems to work like your typical quantity - 1 BPO and 1 BPC should both have the quantity of 1. But, I got a report that quantity suddenly appeared as -1 for blueprints. So the question is - is quantity field in ESI equivalent to raw quantity in XML, or is it the actual quantity, which should never drop below 1? @Steve_Ronuken do you have any inside info on that?

---

<div class="post-metadata">

**Author:** ![Dusty\_Meg](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/dusty_meg/32/422767_2.png) [@Dusty\_Meg](https://forums.eveonline.com/u/Dusty_Meg)\
**Post date:** [August 24, 2017, 6:54am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/2 "2017-08-24T06:54:12Z")

</div>

Could you not use the runs field on the ESI? -1 is a BPO and anything else is a BPC

---

<div class="post-metadata">

**Author:** ![Althalus\_Stenory](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/althalus_stenory/32/429792_2.png) [@Althalus\_Stenory](https://forums.eveonline.com/u/Althalus_Stenory)\
**Post date:** [August 24, 2017, 7:04am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/3 "2017-08-24T07:04:42Z")

</div>

From ESI swagger doc:

> quantity\* integer($int32)  
> title: get\_characters\_character\_id\_blueprints\_quantity  
> Typically will be -1 or -2 designating a singleton item, where -1 is an original and -2 is a copy. It can be a positive integer if it is a stack of blueprint originals fresh from the market (no activities performed on them yet).

The run field also tell you if it is a BPC (run \>0) or BPO (run = -1)

This is exactly the same as XML API blueprint behave currently.

---

<div class="post-metadata">

**Author:** ![Pete\_Butcher](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/pete_butcher/32/249027_2.png) [@Pete\_Butcher](https://forums.eveonline.com/u/Pete_Butcher)\
**Post date:** [August 24, 2017, 7:06am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/4 "2017-08-24T07:06:56Z")

</div>

Yes, but the assets endpoint (/v1/characters/{character\_id}/assets/) doesn’t have this info. So, can we assume assets work the same way as /v1/characters/{character\_id}/blueprints/?

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [August 24, 2017, 7:07am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/5 "2017-08-24T07:07:39Z")

</div>

Quantity and rawQuantity have been merged in ESI. If it is a blueprint, that is not in a stack, it will work as rawQuantity. Please also note that singleton is wrong, when it’s a blueprint copy

---

<div class="post-metadata">

**Author:** ![Pete\_Butcher](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/pete_butcher/32/249027_2.png) [@Pete\_Butcher](https://forums.eveonline.com/u/Pete_Butcher)\
**Post date:** [August 24, 2017, 7:12am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/6 "2017-08-24T07:12:19Z")

</div>

Eh, what a mess. So, to summarize:

- quantity in assets endpoint works as raw quantity
- we cannot rely on the singleton field for blueprints

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [August 24, 2017, 7:23am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/7 "2017-08-24T07:23:34Z")

</div>

Yerh, but, you can make it work. Just have to know all the undocumented pitfalls.

Another thing, I have had a few instances of quantity not being returned at all for blueprints. I don’t know how to handle that, but, you should know it’s possible. I have a issue on GitHub about it, but, no response from ccp yet.

---

<div class="post-metadata">

**Author:** ![Steve\_Ronuken](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/steve_ronuken/32/373894_2.png) [@Steve\_Ronuken](https://forums.eveonline.com/u/Steve_Ronuken)\
**Post date:** [August 24, 2017, 12:03pm UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/8 "2017-08-24T12:03:25Z")

</div>

No inside knowledge on this, (mostly because tech co have been very open about things 🙂 )

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [November 22, 2017, 6:11am UTC](https://forums.eveonline.com/t/esi-assets-blueprints-and-quantities/19345/9 "2017-11-22T06:11:25Z")

</div>

This topic was automatically closed after 90 days. New replies are no longer allowed.
