GET
/
v1
/
cashback
curl --request GET \
  --url https://backend.swap.coffee/v1/cashback/
{
  "count": 123,
  "infos": [
    {
      "id": 123,
      "title": "<string>",
      "description": "<string>",
      "distributor": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
      "reward_token": "EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ",
      "conditions": [
        {
          "type": "unique",
          "args": [
            "<string>"
          ]
        }
      ],
      "distribute": 123,
      "distributed": 123,
      "start_time_seconds": 123,
      "end_time_seconds": 123,
      "reward_denominator": 123,
      "is_active": true,
      "limits": [
        {
          "limit_id": 123,
          "interval_duration_seconds": 123,
          "max_distribute_at_interval": 123
        }
      ],
      "image_url": "<string>",
      "references": [
        {
          "ref_name": "<string>",
          "ref_url": "<string>"
        }
      ],
      "is_hidden": true
    }
  ]
}

Authorizations

X-Api-Key
string
header
required

Query Parameters

distributor
string

Address, from which, token will be distributed to participants

Example:

"UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV"

token
string

Cashback token

Example:

"EQCZ_pV6EJNSr6XpvPaa-IVkT6ImqkiPftRMOICJP1B_75wZ"

active
boolean

Filter out active promotions only

size
integer
default:10
Required range: 1 <= x <= 100
page
integer
default:1
Required range: x >= 1

Response

200
application/json
Account's cashback info
count
integer
required

Total amount of similar cashback promos

infos
object[]
required