public function postRedemptionRequest($strAccountSlug, array $arrParams) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/redemption-requests';
        $arrHeaders = $this->getHeaders();

        $objRequest = $objWebClient->post($strUri, $arrHeaders, $arrParams);

        $this->objResponse = $objRequest->send();

        return $this->objResponse;
    }
public function postRedemptionRequest($strAccountSlug, array $arrParams) {
        $objWebClient = $this->getWebClient();

        $strUri = $this->getApiUrl() . '/accounts/' . $strAccountSlug . '/redemption-requests';
        $arrHeaders = $this->getHeaders();

        $objRequest = $objWebClient->post($strUri, $arrHeaders, $arrParams);

        $this->objResponse = $objRequest->send();

        return $this->objResponse;
    }
public function postRedemptionRequest ( $ strAccountSlug , array $ arrParams ) { $ objWebClient = $ this -> getWebClient ( ) ; $ strUri = $ this -> getApiUrl ( ) . '/accounts/' . $ strAccountSlug . '/redemption-requests' ; $ arrHeaders = $ this -> getHeaders ( ) ; $ objRequest = $ objWebClient -> post ( $ strUri , $ arrHeaders , $ arrParams ) ; $ this -> objResponse = $ objRequest -> send ( ) ; return $ this -> objResponse ; }
Create a redemption request.

@param string $strAccountSlug. The client account slug
@param array $arrParams
Request Format Mandatory parameters: advocate_token, request_status_slug, request_action_slug, currency_code, amount.
{
"redemption_request":{
"advocate_token":"k3ibasd723278v2b32389589ihjf",
"request_status_slug":"requested",
"request_action_slug": "credit",
"currency_code":"USD",
"amount":50,
"description": "credit",
"advocates_paypal_username":"alain_at_mail.com"
}
}
@return string
Create a redemption request .