...
Include only the ID of all carriers
URL: (Store URL)/api/products/carriers/?display=[id]
PHP :
Code Block |
---|
$opt = array('resource' => 'products'carriers', 'display' => '[id]'); |
Only include the "name" and "value" fields from the "configurations" resource
...
Code Block |
---|
$opt = array( 'resource' => 'configurations', 'display' => '[name,value]' ); |
Rendering Filters
Only include the first and last names of customers "customers" whose ids are
...
1
...
or 5
URL: (Store URL)/api/customers/?display=[firstname,lastname]&filter[id]=[1|5]
...
Code Block |
---|
$opt = array( 'resource' => 'customers', 'display' => '[firstname,lastname]', 'filter[id]' => '[1|5]' ); |
Only include the
...
last names of customers "customers" whose ids are between 1 and 10
URL: (Store URL)/api/customers/?display=[lastname]&filter[id]=[1,10]
...
Code Block |
---|
$opt = array( 'resource' =>'customers', 'display' => '[lastname]', 'filter[id]' => '[1,110]' ); |
Only include the birthday of clients whose name is "John" and whose last name is "Doe"
...