PayNow

Delivery

Retrieve the queue of commands to execute for a Gameserver

GEThttps://api.paynow.gg/v1/delivery/command-queue
Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Response
200OKQueuedCommandDto[]
Represents a command to be executed on a Gameserver
Show fields
attempt_idFlakeIdRequired
commandstringRequired
The command to be executed.
online_onlybooleanRequired
Indicates if the command should be executed only if the customer is online (Connected to the gameserver)
queued_atstringRequired
Represents when the command was queued.
customer_namestringOptional
The name of the customer, if applicable.
minecraft_uuidstringOptional
The Minecraft UUID of the customer, if applicable.
steam_idSteamIdOptional
A 64-bit Steam account identifier. Accepts string or numeric format.

Failed requests return a PayNowError body. See the error response guide.

curl -X GET "https://api.paynow.gg/v1/delivery/command-queue" \
  -H "Authorization: Gameserver TOKEN"
Response200
[
  {
    "attempt_id": "411486491630370816",
    "command": "string",
    "online_only": true,
    "queued_at": "2024-01-01T00:00:00Z",
    "steam_id": "76561197960287930",
    "minecraft_uuid": "string",
    "customer_name": "string"
  }
]

Retrieve the queued commands, while supplying the online players for a gameserver

POSThttps://api.paynow.gg/v1/delivery/command-queue
Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Request body
customer_namesstring[]Optional
minecraft_uuidsstring[]Optional
steam_idsSteamId[]Optional
A 64-bit Steam account identifier. Accepts string or numeric format.
Response
200OKQueuedCommandDto[]
Represents a command to be executed on a Gameserver
Show fields
attempt_idFlakeIdRequired
commandstringRequired
The command to be executed.
online_onlybooleanRequired
Indicates if the command should be executed only if the customer is online (Connected to the gameserver)
queued_atstringRequired
Represents when the command was queued.
customer_namestringOptional
The name of the customer, if applicable.
minecraft_uuidstringOptional
The Minecraft UUID of the customer, if applicable.
steam_idSteamIdOptional
A 64-bit Steam account identifier. Accepts string or numeric format.

Failed requests return a PayNowError body. See the error response guide.

curl -X POST "https://api.paynow.gg/v1/delivery/command-queue" \
  -H "Authorization: Gameserver TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "steam_ids": [
    "76561197960287930"
  ],
  "minecraft_uuids": [
    "string"
  ],
  "customer_names": [
    "string"
  ]
}'
Response200
[
  {
    "attempt_id": "411486491630370816",
    "command": "string",
    "online_only": true,
    "queued_at": "2024-01-01T00:00:00Z",
    "steam_id": "76561197960287930",
    "minecraft_uuid": "string",
    "customer_name": "string"
  }
]

Mark commands as executed in bulk

DELETEhttps://api.paynow.gg/v1/delivery/command-queue
Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Request body
attempt_idFlakeIdRequired
Response
204No Content

Failed requests return a PayNowError body. See the error response guide.

curl -X DELETE "https://api.paynow.gg/v1/delivery/command-queue" \
  -H "Authorization: Gameserver TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "attempt_id": "411486491630370816"
  }
]'

Mark a queued command as executed

DELETEhttps://api.paynow.gg/v1/delivery/command-queue/{attemptId}
Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Path parameters
attemptIdFlakeIdRequired
Response
204No Content

Failed requests return a PayNowError body. See the error response guide.

curl -X DELETE "https://api.paynow.gg/v1/delivery/command-queue/{attemptId}" \
  -H "Authorization: Gameserver TOKEN"

Mark commands as executed in bulk via a POST request

POSThttps://api.paynow.gg/v1/delivery/command-queue/acknowledge

Mark commands as executed in bulk via a POST request. Some HTTP clients don't support bodies in DELETE requests, so for compatibility we have a POST route. Please use the DELETE route if your HTTP client supports it.

Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Request body
attempt_idFlakeIdRequired
Response
204No Content

Failed requests return a PayNowError body. See the error response guide.

curl -X POST "https://api.paynow.gg/v1/delivery/command-queue/acknowledge" \
  -H "Authorization: Gameserver TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "attempt_id": "411486491630370816"
  }
]'

Report Game Server Events

POSThttps://api.paynow.gg/v1/delivery/events
Headers
AuthorizationGame server tokenRequired
Authentication token for this request, sent as Authorization: Gameserver TOKEN.
Request body
eventenumRequired
Represents the types of events that can occur on a game server.
Possible enum values
  • invalid

    Invalid or unspecified event type. Used as the default value.

  • player_join

    Indicates a player has joined the game server.

timestampstringRequired
When did this event occur.
player_joinReportGameServerEventsEntryPlayerJoinDtoOptional
Contains detailed information about a player joining a game server.
ip_addressIPAddressRequired
minecraft_namestringOptional
The Minecraft username of the player.
minecraft_uuidstringOptional
The Minecraft UUID of the player.
steam_idSteamIdOptional
A 64-bit Steam account identifier. Accepts string or numeric format.
Response
204No Content

Failed requests return a PayNowError body. See the error response guide.

curl -X POST "https://api.paynow.gg/v1/delivery/events" \
  -H "Authorization: Gameserver TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "event": "invalid",
    "timestamp": "2024-01-01T00:00:00Z",
    "player_join": {
      "ip_address": "127.0.0.1",
      "steam_id": "76561197960287930",
      "minecraft_uuid": "string",
      "minecraft_name": "string"
    }
  }
]'