type: get

Returns the user's balance.

URL:

https://swayfy.xyz/api/economy

Required headers:

{
auth: '',
encrypt: '',
type: '',
userid: '',
}
  • auth - API Key.

  • encrypt - Encryption Key.

  • type - Request type (In this case, it should be set to get).

  • userid - Discord user ID (example: 823254853295669268).

Example headers:

{
auth: '',
encrypt: '',
type: 'get',
userid: '823254853295669268',
}

Output:

{
bal: number, 
daily: number,
err: boolean,
}
  • bal - Current user balance.

  • daily - Timestamp of the last time collect (daily) was used.

  • err - If true, an invalid request is sent; if false, everything succeeds.

Example output:

{
bal: 0,
daily: 1716152577853,
err: false,
}

Last updated