# Internal transaction

> API Name: ​/CorporateAction​/GetPersonDeal

{% hint style="info" %}
**Below are some examples of how the data is presented in the API:**
{% endhint %}

{% tabs %}
{% tab title="Example 1" %}
·       "PersonDealId": 743746,

·       "OrganCode": "LMH",

·       "TradeTypeCode": "ALL",

·       "DealTypeCode": "IT",

·       "ActionTypeCode": "B",

·       "TradeStatusCode": "D",

·       "TraderPersonId": 518234,

·       "RoleId": 1019,

·       "RolePersonId": 518234,

·       "PublicDate": "2019-12-31T10:53:54.56",

·       "ShareBeforeTrade": 1215750,

·       "OwnershipBeforeTrade": 0.0474,

·       "ShareRegister": 0,

·       "ShareAcquire": 303280,

·       "PriceAcquire": 0,

·       "ValueAcquire": 0,

·       "ShareAdded": 0,

·       "ShareAfterTrade": 1519030,

·       "OwnershipAfterTrade": 0.0593,

·       "StartDate": "2019-12-27T00:00:00",

·       "EndDate": "2019-12-27T00:00:00",

·       "Goal": "",

·       "SourceUrl": "",

·       "Note": "",

·       "Status": 1,

·       "CreateDate": "2020-01-02T10:58:29.71",

·       "UpdateDate": "2020-03-17T09:07:51.757"
{% endtab %}

{% tab title="Example 2" %}
·       "PersonDealId": 1288840,

·       "OrganCode": "LMH",

·       "TradeTypeCode": "ALL",

·       "DealTypeCode": "MT",

·       "ActionTypeCode": "B",

·       "TradeStatusCode": "D",

·       "TraderPersonId": 1007130,

·       "RoleId": 1019,

·       "RolePersonId": 1007130,

·       "PublicDate": "2021-03-08T00:00:00",

·       "ShareBeforeTrade": 5896900,

·       "OwnershipBeforeTrade": 0.2301,

·       "ShareRegister": 0,

·       "ShareAcquire": 647000,

·       "PriceAcquire": 0,

·       "ValueAcquire": 0,

·       "ShareAdded": 0,

·       "ShareAfterTrade": 6543900,

·       "OwnershipAfterTrade": 0.2553,

·       "StartDate": "2021-02-26T00:00:00",

·       "EndDate": "2021-02-26T00:00:00",

·       "Goal": "",

·       "SourceUrl": "",

·       "Note": null,

·       "en\_Goal": null,

·       "en\_SourceUrl": null,

·       "en\_Note": null,

·       "Status": 1,

·       "CreateDate": "2021-03-08T16:36:14.443",

·       "UpdateDate": "2021-03-09T09:15:27.527"
{% endtab %}
{% endtabs %}

<table><thead><tr><th width="205.66796875">Field name</th><th width="95.65234375">Data type</th><th width="83.91796875">Data length</th><th width="220">Description (VN)</th><th width="213.0625">Description (EN)</th></tr></thead><tbody><tr><td>PersonDealId</td><td>bigint</td><td></td><td>Khóa chính của bảng auto-generated IDENTITY(1,1)</td><td>Primary key of auto-generated IDENTITY(1,1)</td></tr><tr><td>OrganCode</td><td>nvarchar</td><td>15</td><td>Mã của StoxPlus</td><td>StoxPlus-defined code </td></tr><tr><td>TradeTypeCode</td><td>nvarchar</td><td>5</td><td>Hình thức giao dịch. Vd: Thỏa thuận, khớp lệnh,…</td><td>Transaction form. E.g.: Agreement, matching order,…</td></tr><tr><td>DealTypeCode</td><td>nvarchar</td><td>5</td><td>Loại giao dịch. Vd: gd cổ đông nội bộ, gd người liên quan, gd cổ đông lớn</td><td>Transaction type. E.g.: Insider trading, related-party transaction, major shareholder transaction</td></tr><tr><td>ActionTypeCode</td><td>nvarchar</td><td>5</td><td>Kiểu giao dịch. Vd: mua, bán, thưởng, tặng</td><td>Transaction type. E.g.: buy, sell, bonus, gift</td></tr><tr><td>TradeStatusCode</td><td>nvarchar</td><td>5</td><td>Id trạng thái thực hiện giao dịch lấy từ bảng stx_mst_TradeStatus. Vd: đăng ký, đã thực hiện</td><td>Transaction execution status ID taken from the stx_mst_TradeStatus table. E.g.: registered, executed</td></tr><tr><td>TraderPersonId</td><td>bigint</td><td></td><td>Người thực hiện giao dịch</td><td>Transaction executor</td></tr><tr><td>RoleId</td><td>int</td><td></td><td>Id của quan hệ lấy từ bảng stx_mst_RolesTự động nhận quan hệ lấy từ bảng stx_cpf_Person_Roles. Mối quan hệ với người thông báo. Vd: Trader A là bố ông Relation B thì tên mối quan của A-B: Con</td><td>ID of the relationship taken from the stx_mst_Roles table. Automatically receive the relationship taken from the stx_cpf_Person_Roles table. Relationship with the announcer. E.g.: Trader A is the father of Mr. Relation B, then the relationship name of A-B: Son</td></tr><tr><td>RolePersonId</td><td>bigint</td><td></td><td>Người liên quan với người thực hiện giao dịch</td><td>Related person with the transaction executor</td></tr><tr><td>PublicDate</td><td>datetime</td><td></td><td>Ngày công bố giao dịch</td><td>Public date </td></tr><tr><td>ShareBeforeTrade</td><td>decimal</td><td>(18,0)</td><td>Số cổ phiếu trước khi giao dịch</td><td>Number of shares before transaction</td></tr><tr><td>OwnershipBeforeTrade</td><td>decimal</td><td>(18,10)</td><td>Tỷ lệ % sở hữu trước giao dịch</td><td>Ownership proportion before transaction</td></tr><tr><td>ShareRegister</td><td>decimal</td><td>(18,0)</td><td>Số cổ phiếu đăng ký giao dịch</td><td>Number of registered shares</td></tr><tr><td>ShareAcquire</td><td>decimal</td><td>(18,0)</td><td>Số cổ phiếu thực hiện</td><td>Number of executed shares </td></tr><tr><td>PriceAcquire</td><td>decimal</td><td>(18,0)</td><td>Giá giao dịch</td><td>Transaction price</td></tr><tr><td>ValueAcquire</td><td>decimal</td><td>(18,0)</td><td>Giá trị giao dịch</td><td>Transaction value</td></tr><tr><td>ShareAdded</td><td>decimal</td><td>(18,0)</td><td>Số cổ phiếu phát sinh sau thời gian đăng ký giao dịch</td><td>Number of shares arising after the trading registration period</td></tr><tr><td>ShareAfterTrade</td><td>decimal</td><td>(18,0)</td><td>Số cổ phiếu sau khi giao dịch</td><td>Number of shares after transaction</td></tr><tr><td>OwnershipAfterTrade</td><td>decimal</td><td>(18,10)</td><td>Tỷ lệ % sở hữu sau giao dịch</td><td>Ownership proportion after transaction</td></tr><tr><td>StartDate</td><td>datetime</td><td></td><td>Ngày bắt đầu đăng ký giao dịch</td><td>Start date of transaction registration</td></tr><tr><td>EndDate</td><td>datetime</td><td></td><td>Ngày kết thúc đăng ký giao dịch</td><td>End date of transaction registration</td></tr><tr><td>Goal</td><td>nvarchar</td><td>255</td><td>Mục đích giao dịch. Vd: tăng tỷ lệ sở hữu, nhu cầu tài chính cá nhân, …</td><td>Purpose of transaction. E.g.: Increase ownership ratio, personal financial needs,…</td></tr><tr><td>SourceUrl</td><td>nvarchar</td><td>255</td><td>Nguồn thông báo giao dịch</td><td>Source of transaction announcement</td></tr><tr><td>Note</td><td>nvarchar</td><td>255</td><td>Ghi chú thêm giao dịch</td><td>Notes for transaction</td></tr><tr><td>en_Goal</td><td>nvarchar</td><td>255</td><td>Mục đích giao dịch. Vd: tăng tỷ lệ sở hữu, nhu cầu tài chính cá nhân, …</td><td>Purpose of transaction. E.g.: Increase ownership ratio, personal financial needs,…</td></tr><tr><td>en_SourceUrl</td><td>nvarchar</td><td>255</td><td>Nguồn thông báo giao dịch</td><td>Source of transaction announcement</td></tr><tr><td>en_Note</td><td>nvarchar</td><td>255</td><td>Ghi chú thêm giao dịch</td><td>Notes for transactions</td></tr><tr><td>Status</td><td>tinyint</td><td></td><td>Trạng thái của bản ghi. 0: record khóa; 1: record mở; 2: record đã xóa </td><td>Record status. 0: record locked; 1: record open; 2: record deleted</td></tr><tr><td>CreateDate</td><td>datetime</td><td></td><td>Ngày tạo record </td><td>Created date </td></tr><tr><td>UpdateDate</td><td>datetime</td><td></td><td>Ngày cập nhật record </td><td>Updated date</td></tr></tbody></table>
