PHP code example of mehr-it / otto-returns-api-client

1. Go to this page and download the library: Download mehr-it/otto-returns-api-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mehr-it / otto-returns-api-client example snippets


    


Instance = new MehrIt\OttoReturnsApiClient\Api\ReturnsStatusApi(
    // 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()
);
$status = "status_example"; // string | Return status for which items are being queried for
$limit = 10; // int | Page size to limit the number of items returned in the response. Maximum value for limit can 10
$page = 1; // int | Page number to fetch. This parameter is oReturnsApiClient\Model\AcceptedPartnerReturnV2(); // \MehrIt\OttoReturnsApiClient\Model\AcceptedPartnerReturnV2 | acceptedPartnerReturn

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

$apiInstance = new MehrIt\OttoReturnsApiClient\Api\ReturnsStatusApi(
    // 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()
);
$body = new \MehrIt\OttoReturnsApiClient\Model\RejectedPartnerReturnV2(); // \MehrIt\OttoReturnsApiClient\Model\RejectedPartnerReturnV2 | rejectedPartnerReturn

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