Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.84 KB

PaymentMethodApi.md

File metadata and controls

57 lines (40 loc) · 1.84 KB

VereTech\SyncroMSP_PHPclient\Client\PaymentMethodApi

All URIs are relative to https://{subdomain}.syncromsp.com/api/v1

Method HTTP request Description
paymentMethodsGet GET /payment_methods Returns a paginated list of Payment Methods

paymentMethodsGet

paymentMethodsGet()

Returns a paginated list of Payment Methods

All Users except Single Customer Users may use this action.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = VereTech\SyncroMSP_PHPclient\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = VereTech\SyncroMSP_PHPclient\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new VereTech\SyncroMSP_PHPclient\Client\Api\PaymentMethodApi(
    // 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 {
    $apiInstance->paymentMethodsGet();
} catch (Exception $e) {
    echo 'Exception when calling PaymentMethodApi->paymentMethodsGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]