# Vend09\PaymentTypesApi

All URIs are relative to https://domain_prefix.retail.lightspeed.app/api.

Method | HTTP request | Description
------------- | ------------- | -------------
[**listPaymentTypes()**](PaymentTypesApi.md#listPaymentTypes) | **GET** /payment_types | List payment types


## `listPaymentTypes()`

```php
listPaymentTypes(): \Vend09\Model\PaymentTypeCollection
```

List payment types

**DEPRECATED** This endpoint has a 2.0 equivalent. We recommend using that instead. Returns a non-paginated list of payment types.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure API key authorization: personal_token
$config = Vend09\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Vend09\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new Vend09\Api\PaymentTypesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->listPaymentTypes();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PaymentTypesApi->listPaymentTypes: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**\Vend09\Model\PaymentTypeCollection**](../Model/PaymentTypeCollection.md)

### Authorization

[personal_token](../../README.md#personal_token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
