Skip to main content
PATCH
Set or change the webhook URL Rails calls when your orders change state (settled, refunded, expired). Authenticated with your API key — you manage this yourself. To view your current webhook, call Get Account.

Header Parameters

string
required
Unique API key issued manually through Telegram.

Request Body

string
required
A valid HTTPS URL Rails will POST status events to.
array
Optional domain whitelist. Only updated when provided — omit it and your existing whitelist is preserved.

Response

string
Response state (success).
object
string
Your sender profile id.
string
The stored webhook URL.
array
The current whitelist.