public function show($productFamilyId, $couponId)
    {
        $service = $this->getService();

        $response      = $service->request('product_families/' . $productFamilyId . '/coupons/' . $couponId, 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['coupon'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function show($productFamilyId, $couponId)
    {
        $service = $this->getService();

        $response      = $service->request('product_families/' . $productFamilyId . '/coupons/' . $couponId, 'GET');
        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray['coupon'];
        } else {
            $this->_data = array();
        }

        return $this;
    }
public function show ( $ productFamilyId , $ couponId ) { $ service = $ this -> getService ( ) ; $ response = $ service -> request ( 'product_families/' . $ productFamilyId . '/coupons/' . $ couponId , 'GET' ) ; $ responseArray = $ this -> getResponseArray ( $ response ) ; if ( ! $ this -> isError ( ) ) { $ this -> _data = $ responseArray [ 'coupon' ] ; } else { $ this -> _data = array ( ) ; } return $ this ; }
You can retrieve a coupon via the API with the show method. Retrieving a
coupon via the API will allow you to determine whether or not the coupon
is valid.

@param int $productFamilyId
@param int $couponId

@return Coupon
You can retrieve a coupon via the API with the show method . Retrieving a coupon via the API will allow you to determine whether or not the coupon is valid .