src/Client.php
/**
     * Search for products, customers and orders. Type can be "order", "product" and / or "customer"
     * Term can contains lucene query syntax
     *
     * @param string $term The search string
     * @param string[] $type The data types which should be searched for the search string
     * @param int $searchMode The Search mode
     *
     * @return Response\SearchDataResponse
     * @throws QuotaExceededException If the maximum number of calls per second exceeded
     */
Search for products, customers and orders.

@param string $term The search string
@param string[] $type The data types which should be searched for the search string
@param int $searchMode The Search mode

@return Response\SearchDataResponse
@throws QuotaExceededException If the maximum number of calls per second exceeded
Search for products customers and orders . @param string $term The search string @param string [] $type The data types which should be searched for the search string @param int $searchMode The Search mode @return Response \ SearchDataResponse @throws QuotaExceededException If the maximum number of calls per second exceeded
public function search(
        $term,
        $type = [
            Type\SearchType::PRODUCT,
            Type\SearchType::ORDER,
            Type\SearchType::CUSTOMER
        ],
        $searchMode = Type\SearchMode::_EXPERT
    ) {
        return $this->requestPOST(
            'search', 
            [
                'Type' => $type,
                'Term' => $term,
                'SearchMode' => $searchMode,
            ],
            Response\SearchDataResponse::class
        );
    }
public function search ( $ term , $ type = [ Type \ SearchType :: PRODUCT , Type \ SearchType :: ORDER , Type \ SearchType :: CUSTOMER ] , $ searchMode = Type \ SearchMode :: _EXPERT ) { return $ this -> requestPOST ( 'search' , [ 'Type' => $ type , 'Term' => $ term , 'SearchMode' => $ searchMode , ] , Response \ SearchDataResponse :: class ) ; }
Search for products, customers and orders.
Search for products customers and orders .
// Search endpoint