# API for creating, accepting contracts and sending ISK

**URL:** <https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270>\
**Category:** Assembly Hall\
**Created:** [January 9, 2021, 5:59am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270 "2021-01-09T05:59:28Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![Gerard\_Amatin](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/gerard_amatin/32/481361_2.png) [@Gerard\_Amatin](https://forums.eveonline.com/u/Gerard_Amatin)\
**Post date:** [January 11, 2021, 7:21am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/63 "2021-01-11T07:21:51Z")

</div>

> [@Math\_Second\_Name](#):
>
> This topic is about giving a player ability to place a contract or use wallet using POST calls to API, not what API is or it is not.

Yes, EVE has a lot of 3rd party apps that make use of the available EVE APIs.

No, I don’t think EVE should go the way where external apps have input for the game.

Currently all of the EVE APIs are GET, not POST, if you get what I mean. You can gather all kinds of information and present them in any way in apps to help players.

What the APIs cannot do is allow an external app to do ingame actions such as flying a ship, or creating contracts. And neither should it, as automation in a competitive game like EVE is not progression, it is a degradation of gameplay where regular players will be at a disadvantage against people with the right (botting) software. Automated input is not allowed for a good reason.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 7:46am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/64 "2021-01-11T07:46:21Z")

</div>

> [@Scipio\_Artelius](#):
>
> what to do about a 1H delay that doesn’t exist on the ESI

It does. It’s even in the swagger description. The stupidity is to claim that something that is in the spec does not exist, just because you don’t want to see it.

> [@Gerard\_Amatin](#):
>
> Currently all of the EVE APIs are GET, not POST

The 4 UI paths are post.  
Also the private message, route, and I believe others.

---

<div class="post-metadata">

**Author:** ![Gerard\_Amatin](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/gerard_amatin/32/481361_2.png) [@Gerard\_Amatin](https://forums.eveonline.com/u/Gerard_Amatin)\
**Post date:** [January 11, 2021, 8:12am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/65 "2021-01-11T08:12:51Z")

</div>

> [@Anderson\_Geten](#):
>
> The 4 UI paths are post.  
> Also the private message, route, and I believe others.

Ah you are right.

Still, in general sense the EVE APIs allow gathering of information, not gameplay input. That’s what I meant with GET vs POST.

Changing UI, sending messages and setting an ingame route may be POST methods, but these won’t affect the game in a way that it gives you an advantage over other players, unlike the ability to create contracts or update market orders for example.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 8:23am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/66 "2021-01-11T08:23:19Z")

</div>

POST and GET have no other semantic than “post a resource” or “get a resource”. The API is agnostic of the underlying effects. (And also in the case of ESI it does not respect that since the POST methods have no server effect)  
For example the “search” path is post, while it has no effect on the server besides lag or making ESI crash.

What I mean here, is that referring to the http method is not a valid argument wrt what the API allows.

But I think you are right, in that the API does not allow to take an action that would alone allow to acquire anything. You can eg list the contracts, find the interesting one, but you need to be connected in order to show it and accept it. Same for route, it does not make you warp to the gate.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 11:46am UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/67 "2021-01-11T11:46:06Z")

</div>

> [@Anderson\_Geten](#):
>
> It does. It’s even in the swagger description. The stupidity is to claim that something that is in the spec does not exist, just because you don’t want to see it.

Go try it.

You can see for yourself that there is not an ESI delay. In fact, I’ll go record it and post the video here, because I actually do things like fleet commands to create wings and squads, etc. using the ESI and there is no universal delay on the ESI (ie. the API is not delayed by an hour, only some endpoints).

EDIT: Here’s a quick, no edit video showing no 1 hour delay. Anyone can go confirm it (as the video is a bit choppy with the way OBS recorded it). Amazing what knowledge actually playing the game provides:

[![](https://global.discourse-cdn.com/eveonline/original/3X/d/e/dec9a5d52d891673a56f7fd79e12a781a447902b.jpeg "No universal ESI delay") ](https://www.youtube.com/watch?v=vwn-RXgkLk4)

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:21pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/68 "2021-01-11T12:21:31Z")

</div>

> [@Scipio\_Artelius](#):
>
> In fact, I’ll go record it and post the video here,

Don’t forget to do it twice : fetch your assets once, update your assets in the game, and then fetch again the ESI until your assets modification is visible. The delay will be exactly one hour, unless someone else already fetched your assets (in that case the delay is average 30 min).

So yes, if you want to create several contracts, since the creation of a contract will modify your assets, the creation of the second contract can fail for average 30 min because it tries to contract an item that is already contracted. Precisely because of the delay.

You just proved you have no idea what you are talking about.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:23pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/69 "2021-01-11T12:23:12Z")

</div>

> [@Anderson\_Geten](#):
>
> Don’t forget to do it twice

Watch the video and as above, just go do it.

Some endpoints have a delay, not all. So asking how someone is going to manage the 1 hour delay is stupid. There is no reason if CCP implement this feature (they won’t), that a delay would be the rule. Clearly it already isn’t the rule.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:24pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/70 "2021-01-11T12:24:47Z")

</div>

> [@Scipio\_Artelius](#):
>
> Some endpoints have a delay, not all.

ALL waypoints that are get have a delay. For position it’s 5 s, for public character infos it’s 24H.

> [@Scipio\_Artelius](#):
>
> Watch the video and as above, just go do it.

Nope. Your video only proves you are using my words out of context. Especially in that case I was talking about the assets path, not the fleet one - since fleet path is useless for contracting.

> [@Scipio\_Artelius](#):
>
> There is no reason if CCP implement this feature (they won’t), that a delay would be the rule

And I did not say that this is a rule. I said it already exists in the assets path, which is the one you would need to make contracts.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:28pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/71 "2021-01-11T12:28:00Z")

</div>

> [@Anderson\_Geten](#):
>
> ALL waypoints that are get have a delay.

Creating a contract wouldn’t be a GET request (it would be a POST). Additionally, not all all GET method endpoints have a 1 hour delay (eg. go run some of the fleet endpoints that use a GET method).

So if CCP added this proposal, it would use a range of endpoints and methods and no 1 hour delay would be required.

Rather than write rubbish, just go do it. There is nothing special about a GET v a POST/PUT/DELETE/etc. that mandates a 1 hour delay, and already isn’t for the ESI.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:32pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/73 "2021-01-11T12:32:16Z")

</div>

> [@Anderson\_Geten](#):
>
> You claim that NOT ALL waypoints have a delay, which is wrong for all GET paths.

Bullcrap. You don’t know what you are talking about (assuming by waypoint you are just using some incorrect translation and using waypoint instead of endpoint).

Not all endpoints that use a GET method have a 1 hour delay.

Go test it and you will see that you are wrong.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:32pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/74 "2021-01-11T12:32:50Z")

</div>

> [@Scipio\_Artelius](#):
>
> Go test it and you will see that you are wrong.

I don’t need to test it, it is written in the swagger.  
You are just too idiot to realize what I am talking about.

it’s written in the fleet path :

[https://esi.evetech.net/ui/#/Fleets/get\_characters\_character\_id\_fleet](https://esi.evetech.net/ui/#/Fleets/get_characters_character_id_fleet)

> This route is cached for up to 60 seconds

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:34pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/75 "2021-01-11T12:34:12Z")

</div>

> [@Anderson\_Geten](#):
>
> I don’t need to test it, it is written in the swagger.

LOL. Yes, CCP always keep documentation current. Ignorance is bliss I guess. No better way to know than to actually do it and see that what you are writing is incorrect. No surprise there.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:34pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/76 "2021-01-11T12:34:57Z")

</div>

> [@Scipio\_Artelius](#):
>
> LOL. Yes, CCP always keep documentation current.

The swagger is auto generated from the path that are available, so yes it is always up to date.

> [@Scipio\_Artelius](#):
>
> Ignorance is bliss I guess.

In your case it’s complete stupidity, removing words from the context and especially their explanation just in order to show yourself as a smartass …

In that case the context is creating a contract, which would require the assets path in order to be used. Your useless opinion about fleet path is just unrelated.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:38pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/77 "2021-01-11T12:38:47Z")

</div>

> [@Anderson\_Geten](#):
>
> The swagger is auto generated from the path that are available, so yes it is always up to date.

No. Documentation for Swagger (OpenAPI) is defined in a JSON or XML file and it isn’t always updated.

Some tooling (eg. OpenAPI tools for .NET) can auto generate documentation from the code, with additional specification information drawn from comments in the code.

Not all tools provide that and even in those that do, the comments in the code need to be kept up to date for the information to be kept up to date (and frequently they aren’t).

So still no, there is no 1 hour API delay that applies to the ESI. Some endpoints have a delay and others don’t (including endpoints that use a GET method).

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:41pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/78 "2021-01-11T12:41:29Z")

</div>

> [@Scipio\_Artelius](#):
>
> No. Documentation for Swagger (OpenAPI) is defined in a JSON or XML file and it isn’t always updated.

Unrelated.  
I am talking about the swagger, not the documentation.  
The swagger IS updated.

> [@Scipio\_Artelius](#):
>
> Some tooling (eg. OpenAPI tools for .NET) can autogenerate from the code

Nobody cares.

> [@Scipio\_Artelius](#):
>
> So still no, there is no 1 hour API delay that applies to the ESI.

Which I did not claim. Learn to read a full post before even trying to understand it.  
What you are making is dishonest cherry picking, AKA out of context quoting.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:43pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/79 "2021-01-11T12:43:39Z")

</div>

> [@Anderson\_Geten](#):
>
> I am talking about the swagger, not the documentation.

Yes, so am I. Swagger (now called OpenAPI) is a specification for how to form and document APIs.

There is no 1 hour delay to the API, only on some endpoints of the ESI have a delay, so the OP wouldn’t need to propose any way to deal with a 1 hour delay, since if CCP implemented this proposal, they just wouldn’t add any delay, because doing so would be pretty stupid and counter to what the OP is proposing (but CCP won’t implement it anyway).

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:46pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/80 "2021-01-11T12:46:49Z")

</div>

> [@Scipio\_Artelius](#):
>
> There is no 1 hour delay,

Unrelated.  
On the path required, there is a one hour delay.  
Anything else is unrelated.

> [@Scipio\_Artelius](#):
>
> so the OP wouldn’t need to propose any way to deal with a 1 hour delay,

And who claimed such a thing ? Only you.

---

<div class="post-metadata">

**Author:** ![Scipio\_Artelius](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/scipio_artelius/32/408264_2.png) [@Scipio\_Artelius](https://forums.eveonline.com/u/Scipio_Artelius)\
**Post date:** [January 11, 2021, 12:47pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/81 "2021-01-11T12:47:30Z")

</div>

> [@Anderson\_Geten](#):
>
> Unrelated.

It’s the whole thing you asked the OP about. It’s central to this whole discussion, because it’s your incorrect claim that the API has a 1 hour delay.

> [@Anderson\_Geten](#):
>
> On the path required, there is a one hour delay.

LOL. The endpoints to support this proposal don’t exist in the public API.

> [@Anderson\_Geten](#):
>
> And who claimed such a thing ? Only you.

Yes, what you wrote was:

> [@Anderson\_Geten](#):
>
> how can you make a contract with an API that is delayed 1H ?

My bad, to use different words for the same outcome. If you ask the OP how they are going to make a contract with an API that has a 1H delay, then I just reworded that, intending the same meaning.

But, the typical anal rubbish you go on with comes out as usual, so with that, good luck.

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:50pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/82 "2021-01-11T12:50:42Z")

</div>

> [@Scipio\_Artelius](#):
>
> It’s the whole thing you asked the OP about. It’s central to this whole discussion, because it’s your incorrect claim that the API has a 1 hour delay.

It’s not.  
I did not claim the API has a whole one hour delay, you added that stupid claim.

> [@Scipio\_Artelius](#):
>
> The endpoints to support this proposal don’t exist in the public API.

I literally wrote that I was talking about the assets path. Here :

> [@Anderson\_Geten](#):
>
> If you try to make the contract and the creation fails, because since last time you got the assets it changed (remember average time is 30 minute),

---

<div class="post-metadata">

**Author:** ![Anderson\_Geten](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/anderson_geten/32/390041_2.png) [@Anderson\_Geten](https://forums.eveonline.com/u/Anderson_Geten)\
**Post date:** [January 11, 2021, 12:52pm UTC](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270/83 "2021-01-11T12:52:01Z")

</div>

> [@Scipio\_Artelius](#):
>
> My bad, to use different words for the same outcome.

No, you are using it out of context, by removing the next sentence that explains the issue and specifically talks about the assets path, which IS delayed one hour.

[Previous page](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270.md?page=3)

[Next page](https://forums.eveonline.com/t/api-for-creating-accepting-contracts-and-sending-isk/289270.md?page=5)
