payments.read | Name | Type | Description |
|---|---|---|
| serverId | number | The server id |
| uuid | string | The player uuid |
| Name | Type | Description | Default |
|---|---|---|---|
| only-completed | boolean | If you wan't to fetch only completed payments | false |
| status | string | The status of the payments you wan't to fetch (enum: ) |
All status |
| page | number | The page number (min: 1) |
1 |
| perpage | number | The limit of elements per page (min: 1, max: 100) |
10 |
| search | string | The search query (only first 50 characters will be considered) | ❌ |
| sortby | string | The column to sort by | id |
| sortdir | string | The direction to sort by (enum: ) |
desc |
| Status | Code | Description |
|---|---|---|
OK |
The request has been successfully completed | |
INVALID_ONLY-COMPLETED |
The value doesn't follow the requirements | |
INVALID_PAGE |
The value doesn't follow the requirements | |
INVALID_PERPAGE |
The value doesn't follow the requirements | |
INVALID_SEARCH |
The value doesn't follow the requirements | |
INVALID_SERVER_ID |
The server id is invalid | |
INVALID_SORTBY |
The value doesn't follow the requirements | |
INVALID_SORTDIR |
The value doesn't follow the requirements | |
INVALID_STATUS |
The value doesn't follow the requirements | |
UNAUTHORIZED |
The token is invalid or expired | |
ACCESS_DENIED |
The token or the author does not have the required permissions | |
DISCORD_CONNECTION_REQUIRED |
You need a Discord account link to your Steam Account to access to the route | |
PLAYER_NOT_FOUND |
The uuid doesn't refer to an existing player | |
SERVER_NOT_FOUND |
The server does not exist | |
INTERNAL_ERROR |
An internal error has occured |
"OK"
string
string
number
number
number
string
number
string
date
number
number
number
number
number
string
string | null