ESI Wallet Journal question

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?

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

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.

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