Create a code (v2)
|
POST /api/v2/billing/intercoms/{intercom}/codes |
Issues a temporary door access code. The platform generates the code digits and returns them immediately in the response; the code is delivered to the panel through a queue. Returns 422 if opening the door with a code is disabled for the intercom.
{
"title": "Guest",
"expired_at": "2026-11-06T00:00:00+03:00",
"flat_id": 501
}
Method parameters
int intercom required , Intercom ID (in the URL)
string title, Code name, up to 255 characters
string expired_at required , Code expiration in ISO 8601 format with a time zone, for example `2026-11-06T00:00:00+03:00`
int flat_id, ID of the apartment on this intercom for which the code is issued
|
201 |
|
Code created JSON
|
|
404 |
|
Intercom or apartment not found |
|
422 |
|
Returns a JSON error object. For more information, see General information > Validation. JSON
|