PATCH
/
v1
/
cashback
/
{id}
curl --request PATCH \
  --url https://backend.swap.coffee/v1/cashback/{id} \
  --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": [
    {
      "limit_id": 123,
      "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

Path Parameters

id
integer
required

Body

application/json
title
string
description
string
distributor
string

Where rewards stored

reward_token
string
conditions
object[]
distribute
number

How many tokens will be distributed to users

distributed
number

How many tokens already distributed to users

start_time_seconds
integer

Begin cashback promo in unix seconds

end_time_seconds
integer

End cashback promo in unix seconds

reward_denominator
number
is_hidden
boolean
limits
object[]
image_url
string
references
object[]

Response

200
application/json
Created cashback
id
integer
required
title
string
required
description
string
required
distributor
string
required

Where rewards stored

reward_token
string
required
conditions
object[]
required
distribute
number
required

How many tokens will be distributed to users

distributed
number
required

How many tokens already distributed to users

start_time_seconds
integer
required

Begin cashback promo in unix seconds

end_time_seconds
integer
required

End cashback promo in unix seconds

reward_denominator
number
required
is_active
boolean
required

Can this cashback program accrue tokens to participants

limits
object[]
required
image_url
string
required
references
object[]
required
is_hidden
boolean
required