# Payment Methods

# Payment Method Index Endpoint

#### Structure

See [View Payment Method Endpoint](https://support.aerocommerce.com/books/api/page/view-payment-method-endpoint) for the structure of the payment method payload inside the `data` array.

#### Example Request

```
GET /api/payment-methods?per_page=2
```

#### Example Response

```json
{
    "current_page": 1,
    "data": [
        //...
    ],
    "first_page_url": "http://aero.test/api/payment-methods?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://aero.test/api/payment-methods?page=1",
    "next_page_url": null,
    "path": "http://aero.test/api/payment-methods",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}
```

<p class="callout info">See [View Payment Method Endpoint](https://support.aerocommerce.com/books/api/page/view-payment-method-endpoint) for the structure of the payment method payload inside the `data` array.</p>

# View Payment Method Endpoint

#### Structure

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%; height: 216.172px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`id`</td><td style="height: 46.5938px;">int</td><td style="height: 46.5938px;">The id of the payment method</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`name`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The name of the payment method</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`driver`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The driver for the payment method</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`available`</td><td style="height: 46.5938px;">boolean</td><td style="height: 46.5938px;">Whether the payment method is available for use</td></tr></tbody></table>

#### Example Request

```
GET /api/payment-methods/{id}
```

#### Example Response

```json
{
    "id": 1,
    "name": "Cash",
    "driver": "cash",
    "available": true
}
```