Перейти к содержимому

Apply Referral

POST
/v1/referral/apply
curl --request POST \
--url https://api.cloud.agentums.ru/v1/referral/apply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'

Применить код реферера (один раз, не свой). Возвращает, зачтён ли реферал.

Media typeapplication/json
ReferralApply
object
code
required
Code
string
>= 1 characters <= 16 characters
Examplegenerated
{
"code": "example"
}

Successful Response

Media typeapplication/json
ReferralApplyOut
object
applied
required
Applied
boolean
Examplegenerated
{
"applied": true
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}