First of all, you should understand that due to the specifics of some shopping cart platforms, we must perform multiple requests to the store to generate a response for you. The number of requests directly depends on the selected response fields and, for some platforms, may also exponentially depend on the number of items in the response (e.g., products or orders). Therefore, the more items you try to retrieve at once, the more requests we will need to make to the store.
The methods that can be filtered are those that return information about an object (the GET method is used when making an API request). These methods end in "list" or "info" (e.g., "order.list", "product.info," and so on). You can view a list of available methods for a specific platform using the "cart.methods" method or directly in the documentation.
{
"return_code": 0,
"return_message": "",
"pagination": {
"previous": null,
"next": "BcHBDoIgAADQD%2BJgYZhXBZlaYUOk2ZEyWatEDUi%2FvveKJbNH0cVeN5YU4KWHZL%2BJRpXONsAWPaagMSN5V7c2MuwHcQUTXeN0Wh3bRWoSdRwQJktOr%2FdthtjK1QxR710IDuLzlNAO5uLQwkF4lm44dRRQVOSVdyX%2B9qzN%2Fw%3D%3D"
},
"result": {
"product": [
{
"id": "28",
"type": "simple",
"u_sku": "",
"name": "HTC Touch HD",
"price": 100,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/htc_touch_hd_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/htc_touch_hd_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/htc_touch_hd_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "29",
"type": "simple",
"u_sku": "",
"name": "Palm Treo Pro",
"price": 279.99,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/palm_treo_pro_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/palm_treo_pro_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/palm_treo_pro_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "30",
"type": "simple",
"u_sku": "",
"name": "Canon EOS 5D",
"price": 100,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/canon_eos_5d_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/canon_eos_5d_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/canon_eos_5d_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": [
{
"id": "5",
"name": "Select",
"option_items": [
{
"id": "39",
"name": "Red"
},
{
"id": "40",
"name": "Blue"
}
]
}
]
},
{
"id": "31",
"type": "simple",
"u_sku": "",
"name": "Nikon D300",
"price": 80,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/nikon_d300_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/nikon_d300_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/nikon_d300_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/nikon_d300_4.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/nikon_d300_5.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "32",
"type": "simple",
"u_sku": "",
"name": "iPod Touch",
"price": 100,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_7.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_6.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_5.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_touch_4.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "33",
"type": "simple",
"u_sku": "",
"name": "Samsung SyncMaster 941BW",
"price": 200,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/samsung_syncmaster_941bw.jpg",
"type": "IMAGE_TYPE_BASE"
}
],
"product_options": []
},
{
"id": "34",
"type": "simple",
"u_sku": "",
"name": "iPod Shuffle",
"price": 100,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_shuffle_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_shuffle_5.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_shuffle_4.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_shuffle_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_shuffle_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "35",
"type": "simple",
"u_sku": "",
"name": "Product 8",
"price": 100,
"manage_stock": null,
"images": [],
"product_options": [
{
"id": "11",
"name": "Size",
"option_items": [
{
"id": "46",
"name": "Small"
},
{
"id": "47",
"name": "Medium"
},
{
"id": "48",
"name": "Large"
}
]
}
]
},
{
"id": "36",
"type": "simple",
"u_sku": "",
"name": "iPod Nano",
"price": 100,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_nano_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_nano_5.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_nano_4.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_nano_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/ipod_nano_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
},
{
"id": "40",
"type": "simple",
"u_sku": "",
"name": "iPhone",
"price": 101,
"manage_stock": null,
"images": [
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_1.jpg",
"type": "IMAGE_TYPE_BASE"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_6.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_2.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_5.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_3.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
},
{
"http_path": "http://www.stores.local/opencart-2.2.0.0/image/catalog/demo/iphone_4.jpg",
"type": "IMAGE_TYPE_ADDITIONAL"
}
],
"product_options": []
}
]
}
}
The "response_fields" parameter supports filtering of any nesting level, except for the "additional_fields" and "custom_fields" field values, for which only first-level filtering is supported, for example:
response_fields={result{product{id,additional_fields{tags}}}}
In case you need to retrieve all possible fields for any reason, you can specify the value of response_fields as follows:
{return_code,return_message,pagination,result}