POST
/
v1
/
cashback
curl --request POST \
  --url https://backend.swap.coffee/v1/cashback/ \
  --header 'Content-Type: application/json' \
  --data '{
  "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_hidden": true,
  "limits": [
    {
      "interval_duration_seconds": 123,
      "max_distribute_at_interval": 123
    }
  ],
  "image_url": "<string>",
  "references": [
    {
      "ref_name": "<string>",
      "ref_url": "<string>"
    }
  ]
}'
{
  "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

Body

application/json

Response

200
application/json

Created cashback

The response is of type object.