Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.73 KB

ChargesApi.md

File metadata and controls

71 lines (44 loc) · 1.73 KB

DigitalRiver\ApiSdk\ChargesApi

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

Method HTTP request Description
retrieveCharges GET /charges/{id} Gets a charge by ID

retrieveCharges

\DigitalRiver\ApiSdk\Model\Charge retrieveCharges($id)

Gets a charge by ID

Retrieves the details of a Charge by supplying its unique identifier.

Example

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


// Configure Bearer authorization: bearerAuth
$config = DigitalRiver\ApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new DigitalRiver\ApiSdk\Api\ChargesApi(
    // 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 | Charge ID


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

Parameters

Name Type Description Notes
id string Charge ID

Return type

\DigitalRiver\ApiSdk\Model\Charge

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]