Get Payment Type
<h4>Description</h4>
<p>Get all system avaliable payment type</p>
<h4>Request URL</h4>
<p>/api/get-active-payment-type</p>
<h4>Reuqest Method</h4>
<p>POST</p>
<h4>Parameters</h4>
<table>
<thead>
<tr>
<th>Parameter Name</th>
<th>Required</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>access_token</td>
<td>true</td>
<td>string</td>
</tr>
</tbody>
</table>
<h4>Response Example</h4>
<pre><code class="language-json">{
"code": 200,
"message": "",
"data": [
{
"id": 0,
"code": 0,
"description": "payment gateway"
},
{
"id": 1,
"code": 1,
"description": "card deduction"
},
{
"id": 2,
"code": 2,
"description": "offline payment"
}
]
}
</code></pre>
<h4>Response Parameter Description</h4>
<table>
<thead>
<tr>
<th>Parameter Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
</tr>
<tr>
<td>code</td>
<td>int</td>
<td>code for payment type</td>
</tr>
<tr>
<td>description</td>
<td>string</td>
</tr>
</tbody>
</table>