Перейти к основному содержанию
PUT
/
v1
/
crm
/
requests
/
referrals
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/requests/referrals/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent": 123,
  "amount": "<string>"
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "request": 123,
  "status": 0,
  "status_changed_at": "2023-11-07T05:31:56Z",
  "request_status": 123,
  "agent": 123,
  "amount": "<string>"
}

Параметры пути

id
integer
обязательно

Тело

agent
integer | null
amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
request
integer
обязательно
status
enum<integer>
обязательно
  • 0 - paid
  • 1 - pending
Доступные опции:
0,
1
status_changed_at
string<date-time> | null
обязательно
request_status
integer
обязательно
agent
integer | null
amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$