GET
/
v2.01
/
{ClientId}
/
disputes
/
{DisputeId}
/
documents
<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $disputeId = '192746554';

    $response = $api->Disputes->GetDocumentsForDispute($disputeId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
[
    {
        "DisputeId": "159102965",
        "Type": "DELIVERY_PROOF",
        "Id": "159188418",
        "Tag": null,
        "CreationDate": 1672655973,
        "ProcessedDate": null,
        "Status": "VALIDATION_ASKED",
        "RefusedReasonType": null,
        "RefusedReasonMessage": null
    }
]  

Path parameters

DisputeId
string
required

The unique identifier of the dispute.

Responses

[
    {
        "DisputeId": "159102965",
        "Type": "DELIVERY_PROOF",
        "Id": "159188418",
        "Tag": null,
        "CreationDate": 1672655973,
        "ProcessedDate": null,
        "Status": "VALIDATION_ASKED",
        "RefusedReasonType": null,
        "RefusedReasonMessage": null
    }
]  

<?php 

require_once 'vendor/autoload.php';

use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;

$api = new MangoPayApi();

$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';

try {
    $disputeId = '192746554';

    $response = $api->Disputes->GetDocumentsForDispute($disputeId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}