# ESI Wallet Journal question

**URL:** <https://forums.eveonline.com/t/esi-wallet-journal-question/73156>\
**Category:** Third Party Developers\
**Created:** [April 29, 2018, 2:41am UTC](https://forums.eveonline.com/t/esi-wallet-journal-question/73156 "2018-04-29T02:41:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nuke\_Cherenkov](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/nuke_cherenkov/32/174961_2.png) [@Nuke\_Cherenkov](https://forums.eveonline.com/u/Nuke_Cherenkov)\
**Post date:** [April 29, 2018, 2:41am UTC](https://forums.eveonline.com/t/esi-wallet-journal-question/73156/1 "2018-04-29T02:41:42Z")

</div>

From reading the swagger info I thought the transaction id in the journal was unique in that it would only show up once: id (integer): Unique journal reference ID , ??

Just pulled my corp journal and failed writing it to the db because I had a unique constraint on id. I found four records where the id was duplicated (shows up twice), they look like this:

{  
“amount”: -100,  
“balance”: 1,  
“date”: “2018-04-11T02:43:22Z”,  
“description”: “Market order commission to broker authorized by: Nuke Cherenkov”,  
“first\_party\_id”: 1,  
“id”: 15397048738,  
“ref\_type”: “brokers\_fee”,  
“second\_party\_id”: 98248606  
},  
{  
“amount”: 100,  
“balance”: 1,  
“date”: “2018-04-11T02:43:22Z”,  
“description”: “Market order commission to broker authorized by: Nuke Cherenkov”,  
“first\_party\_id”: 1,  
“id”: 15397048738,  
“ref\_type”: “brokers\_fee”,  
“second\_party\_id”: 98248606  
},

Is this an error? If not, it seems to be tricky to not duplicate transactions?

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [April 29, 2018, 3:18am UTC](https://forums.eveonline.com/t/esi-wallet-journal-question/73156/2 "2018-04-29T03:18:00Z")

</div>

I’d make an issue about that, it doesn’t seem normal.

> **[Build software better, together](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fesi%2Fesi-issues%2Fissues%2Fnew)**
>
> GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.

---

<div class="post-metadata">

**Author:** ![EveDataRules](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/evedatarules/32/52946_2.png) [@EveDataRules](https://forums.eveonline.com/u/EveDataRules)\
**Post date:** [April 30, 2018, 1:43pm UTC](https://forums.eveonline.com/t/esi-wallet-journal-question/73156/3 "2018-04-30T13:43:14Z")

</div>

It’s a journal; there will be two entries per transaction. One with money coming in, another with the money going out.

You need to additionally key on the parties of the transaction. Or in this case maybe the amount.

---

<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:** [July 29, 2018, 1:43pm UTC](https://forums.eveonline.com/t/esi-wallet-journal-question/73156/4 "2018-07-29T13:43:15Z")

</div>

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