Method "getProducts"
Use this method to get the list of available products. Please bear in mind that the catalogue is regularly updates and any field, except the id field, may vary.
Parameters: no
Response:
| id | Product ID |
| title | Product title |
| url | Product detail page URL |
| brief | Brief product/brand description |
| categories | List of product categories. See getCategories |
| faces | List of available denominations. 0 value means "flexible-denomination", i.e. any denomination between "face_min" and "face_max" may be requested (e.g. 550). |
| face_min, face_max | Minimum and maximum value in case of flexible-denomination |
| face_step | Step value in case of flexible-denomination |
| main_image | A key-value map of product images. At the moment it contains small, medium and large links to images. |
| image_url | Deprecated. URL to product image (can be used "http://" or "https://"). You shouldn't rely on it. It's going to be removed in the future. |
| disclaimer | Gift card rules and disclaimer (html) |
| digital_acceptance | Possibility of gift card to be redeemed in form of digital code (without printing on paper). - no — must be printed before acceptance- any — acceptance "by code"- eshop — acceptance "by code" only in e-shop- exchange — acceptance "by code" on Giftery web site - offline — acceptance "by code" only in offline stores |
Example:
cmd: getProducts, data: {}
Response:
json
{
"status": "ok",
"data": [
{
"id": "2111",
"title": "Giftery card",
"url": "https://www.giftery.es/giftcards/gifterycard",
"brief": "The multibrand gift certificate “Giftery Card” offers maximum freedom of choice, as it can be exchanged for one or several certificates from our partners.",
"categories": [
29
],
"faces": [
0,
2000,
3000,
5000,
10000
],
"face_min": 1,
"face_max": 90000,
"face_step": 50,
"digital_acceptance": "any",
"disclaimer": "<ol><li>The multibrand gift certificate “Giftery Card” should be changed...",
"main_image": {
"small": "https://cdn.giftery.es/340x155/upload/iblock/4af/4af4b0a61c95083f35e807500b18b60f.jpg",
"medium": "https://cdn.giftery.es/680x310/upload/iblock/4af/4af4b0a61c95083f35e807500b18b60f.jpg",
"large": "https://cdn.giftery.es/1360x620/upload/iblock/4af/4af4b0a61c95083f35e807500b18b60f.jpg"
}
}
]
}