Please be aware that EA Tax is NOT included in Comfort Sell. The EA Tax is approximately 8–15%, depending on the current market and player prices.
API/Bot Integration
Sell coins using our API
You can sell coins using our API. For data for authorization, you need to add a bot on this page.
1
General requirements
- The optimal interval for sending requests to receive players is 10–15 seconds for each platform.
- The player must be purchased within 5 minutes after receipt.
2
Getting a random player to buy
Request
GEThttps://api.mydgn.com/transfers
| Attribute | Description |
|---|---|
| user* | API User Name |
| platform* | cons, pc |
| timestamp* | UNIX timestamp |
| hash* | MD5 hash: md5 (platform + user + timestamp + secret_key) |
| maximumBuyOutPrice* | integer, maximum player price |
| minimumBuyOutPrice* | integer, minimum player price |
| botapp | string, your bot api |
| playerType | 1 = Basic, 2 = discard |
Request example
GEThttps://api.mydgn.com/transfers
{
"user": "example",
"platform": "cons",
"timestamp": 1593766167,
"hash": "ec7229f469c109866fad06a6652ae608",
"maximumBuyOutPrice": 300000,
"minimumBuyOutPrice": 4000,
"botapp": "MyFifaBot",
"playerType": 2
}
Response
| Attribute | Description |
|---|---|
| code | response code |
| transactionID | integer, the assigned transaction id from Our system and you should keep it for future inquiry (in updating status stage) |
| tradeID | string, this player's assigned transaction id in EA |
| status | always "buy" |
| platform | account platform: console, pc |
| assetID | resource id of player in EA |
| resourceID | resource id of player in EA |
| baseID | base id of player in EA |
| playerName | player name |
| search_name | player name to enter when searching in webApp |
| search_position | position number of the player in the list of results when searching in webApp |
| position | player position, now always "any" |
| rating | player rating |
| rating_search | player basic rating |
| startPrice | start price of the player |
| coinAmount | end price of the player |
| paymentInUsd | USD payment for the specific Player |
| currentRateInUSD | Current $ Rate per 10K |
| balance | Your current $ balance |
| balance_user | Your current $ API user balance |
| cardValue | Currently Futbin Marketprice of the player |
| cardAndFeeDeducted | transferred coins |
| lockExpires | timestamp up to which the player's status should be sent |
| ea_expires_at | timestamp of expiration of a player on EA auction |
| customerID | customer id |
| ignoreHash | An array of md5 (email) that cannot be used to buy a player |
| IsIcon | boolean if the card is an ICON |
| owners | Owners |
| chemistry_style | Chemistry style |
| isAtMinPrice | Players price is at the min price of the player |
Response example JSON
{
"code": 200,
"transactionID": 99664,
"tradeID": "283047969116",
"status": "buy",
"platform": "console",
"assetID": 50534077,
"resourceID": 50534077,
"baseID": 202429,
"playerName": "Danny da Costa",
"search_name": "Danny da C",
"search_position": 1,
"position": "any",
"rating": 87,
"rating_search": 85,
"startPrice": 197000,
"coinAmount": 198000,
"paymentInUsd": 1.21,
"currentRateInUSD": 45.00,
"balance": 1372.73,
"balance_user": 12.89,
"cardValue": 41500,
"cardAndFeeDeducted": 146600,
"lockExpires": 1616592852,
"ea_expires_at": 1616592852,
"customerID": 737180,
"ignoreHash": ["2806056B2B92F8B0171EC37AA76B8344", "2D1835A4DE3FE52DBA5C404F05C8D3D9"],
"IsIcon": 1,
"owners": 4,
"chemistry_style": "Hunter",
"isAtMinPrice": false
}
An example of an error there are no players at the moment
{
"error": "not found",
"code": 404
}
An example of an error in the absence of required fields
{
"error": "there is no valid input",
"code": 401
}
An example of an invalid data authentication error
{
"error": "co credential matched",
"code": 400
}
Error exceeding the maximum number of requests per minute
{
"error": "Too many requests, please increase delay",
"code": 429
}
The bot was disabled, to enable it you need to contact support
{
"error": "bot disabled",
"code": 403
}
3
Order status update
After completing work with this player, you must send a request to update the status of the order. If a player has been purchased with the "status": "bought" parameter. If you could not or refused to buy a player then with the parameter "status": "cancel".
The request must be sent before the lockExpires timestamp. Otherwise, you will get the error.
Request
POSThttps://api.mydgn.com/status
| Attribute | Description |
|---|---|
| user* | the unique name of your bot in our system |
| platform* | cons, pc |
| timestamp* | UNIX timestamp |
| hash* | MD5 hash: md5 (platform + user + timestamp + secret_key) |
| transactionID* | integer, the assigned transaction id from Our system |
| status* | bought or cancel |
| emailHash* | md5 (email) of the account that was used to buy the player. |
| code | integer, error code. the following codes are allowed: 551 -> Player not found 552 -> Wrong playername 553 -> Multiple identical players found 554 -> Buy error |
Request example
POSThttps://api.mydgn.com/status
{
"user": "example",
"platform": "cons",
"timestamp": 1593766167,
"hash": "ec7229f469c109866fad06a6652ae608",
"transactionID": 119412,
"status": "bought",
"emailHash": "2806056B2B92F8B0171EC37AA76B8344"
}
POSThttps://api.mydgn.com/status
{
"user": "example",
"platform": "cons",
"timestamp": 1593766167,
"hash": "ec7229f469c109866fad06a6652ae608",
"transactionID": 119412,
"status": "cancel",
"emailHash": "",
"code": 551
}
Response example JSON
{
"code": 200,
"status": "success"
}
An example of an error in the absence of required fields
{
"error": "there is no valid input",
"code": 401
}
Error invalid transaction number or expired
{
"error": "cannot buy order transaction #72983787",
"code": 409
}
Wrong emailHash, it should be your FIFA accounts you use to buy players and not your myDGN email!
{
"error": "wrong emailHash",
"code": 400
}