26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

List codes (v2)

List codes (v2)

GET  /api/v2/billing/intercoms/{intercom}/codes

Returns temporary intercom codes in pages, newest first. delivery.status - pending, applied, failed (details in error) or null if delivery of the code to the panel is not tracked.

Method parameters

int intercom  required , Intercom ID (in the URL)


int per_page, Number of records per page; default: 25


int page, Page number

200  OK

Successful response

JSON
{
    "data": [
        {
            "id": 31,
            "title": "Guest",
            "code": "48213",
            "expired_at": "2026-11-05T21:00:00.000000Z",
            "is_expired": false,
            "flat_id": 501,
            "created_at": "2026-11-04T10:15:00.000000Z",
            "delivery": {
                "status": "applied",
                "error": null,
                "synced_at": "2026-11-04T10:15:00+00:00"
            }
        }
    ],
    "links": {
        "first": "https://your-domain/api/v2/billing/intercoms/123/codes?page=1",
        "last": "https://your-domain/api/v2/billing/intercoms/123/codes?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://your-domain/api/v2/billing/intercoms/123/codes",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

404  Not Found

Intercom not found

cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v2/billing/intercoms/{intercom}/codes' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "intercom": 0,
    "per_page": 0,
    "page": 0
}'
PHP
PHP
$data = array (
  'intercom' => 0,
  'per_page' => 0,
  'page' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v2/billing/intercoms/{intercom}/codes', false, $context);