Servers
Operations related to servers
Retrieves information about all servers associated with your store. Use the page parameter to paginate results.
Authorization:
Requires a valid JWT Bearer token.
The token must include the permission:
read-servers.
The page number to retrieve
1The maximum number of elements per page. This number must be between 5-50.
50Successful operation
23Didn't provide a valid Tip4Serv API Key
Internal Server Error
GET /v1/store/servers HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"servers": [
{
"id": 10200,
"name": "My custom rust server",
"game_name": "rust",
"connected": true
}
],
"server_count": 23
}Creates and connects a new Discord server to your store using its discord_id.
Authorization:
Requires a valid JWT Bearer token.
The token must include the permission:
create-servers.
ID of the discord server.
1057619727985426400Successful operation.
200Your Discord server has been successfully created and connected.The ID of your brand new Discord Server.
4040Error in your request
Didn't provide a valid Tip4Serv API Key
A conflicting reason is preventing you from creating a new Discord server.
Internal Server Error
POST /v1/store/discord_server HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"discord_id": 1057619727985426400
}{
"status": 200,
"message": "Your Discord server has been successfully created and connected.",
"server_id": 4040
}Get the remaining actions to execute.
Authorization:
Requires a valid JWT Bearer token.
The token must include the permission:
read-delivery.
⚠ For Plugin Developers:
If you are implementing this endpoint inside a game plugin (Rust, Minecraft, FiveM, etc.), do not use a JWT Bearer token. Instead, authenticate using Server Keys, as described in our Plugin Development Guide.
The ID of the server.
Server commands found successfully
Unique identifier of the payment/subscription. Can have the following prefix : pay_, sub_
pay_71524Player name of the customer.
dusterUsername of the customer.
DusteritoMinecraft UUID of the customer.
d4191228d7d247ab88cdb18636f4eecdSteam ID of the customer.
76561198380145420Raw generic player identifier of the customer.
C84A567EOS ID of the customer.
0002e2f30b1f407cb21880d425a1e5ebDiscord ID of the customer.
274785054121525250Error in your request
Didn't provide a valid Tip4Serv API Key
Couldn't find the server with that id.
Internal Server Error
GET /v1/store/server/{id}/commands HTTP/1.1
Host: api.tip4serv.com
Accept: */*
[
{
"id": "pay_71524",
"player": "duster",
"username": "Dusterito",
"minecraft_uuid": "d4191228d7d247ab88cdb18636f4eecd",
"steam_id": 76561198380145420,
"player_id": "C84A567",
"eos_id": "0002e2f30b1f407cb21880d425a1e5eb",
"discord_id": 274785054121525250,
"cmds": [
{
"id": 1,
"state": "Execute",
"str": "inventory.giveto 76561198380145423 scientist 5"
}
]
}
]Update the actions and get the remaining actions to execute.
Authorization:
Requires a valid JWT Bearer token.
The token must include the permission:
update-delivery.
⚠ For Plugin Developers:
If you are implementing this endpoint inside a game plugin (Rust, Minecraft, FiveM, etc.), do not use a JWT Bearer token. Instead, authenticate using Server Keys, as described in our Plugin Development Guide.
The ID of the server.
Map of payment IDs to their executed commands.
Server commands found successfully
Unique identifier of the payment/subscription. Can have the following prefix : pay_, sub_
pay_71524Player name of the customer.
dusterUsername of the customer.
DusteritoMinecraft UUID of the customer.
d4191228d7d247ab88cdb18636f4eecdSteam ID of the customer.
76561198380145420Raw generic player identifier of the customer.
C84A567EOS ID of the customer.
0002e2f30b1f407cb21880d425a1e5ebDiscord ID of the customer.
274785054121525250Error in your request
Didn't provide a valid Tip4Serv API Key
Couldn't find the server with that id.
Internal Server Error
POST /v1/store/server/{id}/commands HTTP/1.1
Host: api.tip4serv.com
Content-Type: application/json
Accept: */*
Content-Length: 149
{
"pay_71565": {
"action": "payment",
"cmds": {
"0": "Executed",
"1": "Executed"
}
},
"pay_71566": {
"action": "renewal",
"cmds": {
"0": "Executed",
"1": "Not Executed"
}
}
}[
{
"id": "pay_71524",
"player": "duster",
"username": "Dusterito",
"minecraft_uuid": "d4191228d7d247ab88cdb18636f4eecd",
"steam_id": 76561198380145420,
"player_id": "C84A567",
"eos_id": "0002e2f30b1f407cb21880d425a1e5eb",
"discord_id": 274785054121525250,
"cmds": [
{
"id": 1,
"state": "Execute",
"str": "inventory.giveto 76561198380145423 scientist 5"
}
]
}
]Retrieves information about a specific server identified by id.
Authorization:
Requires a valid JWT Bearer token.
The token must include the permission:
read-servers.
The ID of the server to retrieve.
Server found successfully
Unique identifier of the server.
10200Name of the server.
My custom discord serverGame associated with the server.
discordIndicates whether the server is currently connected.
trueMethod used by the server to identify its players.
Accepted values: steamid, discordid, eosid, username, player_id
discordidDiscord server ID if applicable.
1057619727985426400Error in your request
Didn't provide a valid Tip4Serv API Key
Couldn't find the server with that id.
Internal Server Error
GET /v1/store/server/{id} HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 10200,
"name": "My custom discord server",
"game_name": "discord",
"connected": true,
"auth": "discordid",
"discord_id": 1057619727985426400
}Last updated
