Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.7 KB

CreditNoteApi.md

File metadata and controls

61 lines (43 loc) · 1.7 KB

Reepay\CreditNoteApi

All URIs are relative to https://api.reepay.com/api.reepay.com

Method HTTP request Description
getCreditNote GET /v1/credit_note/{id} Get credit note

getCreditNote

\Reepay\Model\InvoiceCreditNoteV2 getCreditNote($id)

Get credit note

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Reepay\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Reepay\Api\CreditNoteApi(
    // 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
);
$id = "id_example"; // string | Credit note id

try {
    $result = $apiInstance->getCreditNote($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CreditNoteApi->getCreditNote: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id string Credit note id

Return type

\Reepay\Model\InvoiceCreditNoteV2

Authorization

basicAuth

HTTP request headers

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

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