Skip to content

Products GetPickups

Brad Ploeger edited this page Apr 3, 2019 · 1 revision

Services \ Products \ GetPickups

Purpose

Gets a list of pickup locations configured for this product.

Basic Usage:

$rezdyApi->products->searchMarketplace($productCode, $request);

Required Parameters

  • string: $productCode

Optional Parameters

Returns

Throws

Code Example

use Rezdy\RezdyAPI;
use Rezdy\Requests\SimpleSearch;

// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');

$productCode = 'P12345';

$searchParams = [ 
   'limit' => 100,
   'offset' => 0 ];

// Create the SimpleSearch request
$search = new SimpleSearch($searchParams);  

// Send the request to the API
$response = $rezdyAPI->products->getPickups($productCode, $search);

// View the response
echo $response;

Clone this wiki locally