> For the complete documentation index, see [llms.txt](https://supportx.gitbook.io/buku-mantra-and-sihir/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supportx.gitbook.io/buku-mantra-and-sihir/cass/add-on-tamu/api-emerald-sepatan.md).

# API Emerald Sepatan

### Flow

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2Fe7DzznCKrEke2eFoXnJ4%2FDiagram%20Alur-Emerald%20Sepatan.svg?alt=media&amp;token=d625b4b2-4faf-42cd-89dc-c95151b0609e" alt="" width="310"><figcaption><p>Diagram alur Emerald Residence Sepatan</p></figcaption></figure>

{% hint style="info" %}
QR Code di generate oleh client, sistem hanya membaca format QR yang sudah di tentukan jika valid maka transaksi disimpan
{% endhint %}

### Format QR Code

<table data-full-width="true"><thead><tr><th>resident_id</th><th>unit_id</th><th>visitor_type</th><th>visitor_name</th><th>cluster_id</th><th>security_code</th><th>null</th></tr></thead><tbody><tr><td>20211223000596</td><td>2</td><td>R</td><td>BUGI</td><td>ERST</td><td>20596BI080222</td><td>1</td></tr></tbody></table>

<table data-full-width="true"><thead><tr><th> </th><th width="421"> </th><th> </th></tr></thead><tbody><tr><td><strong>Separator</strong></td><td>Comma</td><td>,</td></tr><tr><td><strong>QR</strong></td><td>20211223000596,2,R,BUGI,ERST,20596BI080222,1</td><td></td></tr><tr><td><strong>Format Secure Code</strong></td><td><code>unit_id</code> + last 4 digit <code>resident_id</code> + first char <code>visitor_name</code> + last char <code>visitor_name</code> + entrydate</td><td>20596BI080222</td></tr></tbody></table>

### Validasi dan Notifikasi

<table data-full-width="true"><thead><tr><th>Kondisi</th><th>Suara</th><th>Display</th><th>LED Display</th></tr></thead><tbody><tr><td></td><td></td><td></td><td></td></tr></tbody></table>
