{"_id":"544a0c5d778b3e08002b2291","category":{"_id":"544a0a93778b3e08002b2289","pages":["544a0c5d778b3e08002b2291","544a0c9727b7fc140078da5f","544a1cfe778b3e08002b22b6","544a20d927b7fc140078daac","544a2316778b3e08002b22d1","544a2ffd27b7fc140078dac8","544a342927b7fc140078dad0"],"version":"543d1e5e5276641a00a593cf","project":"543d1e263a300f20000d31fb","__v":7,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-24T08:15:15.030Z","from_sync":false,"order":5,"slug":"offer","title":"Offer"},"project":"543d1e263a300f20000d31fb","__v":2,"user":"54352decadf50e0800b89024","parentDoc":null,"editedParams2":true,"version":{"_id":"543d1e5e5276641a00a593cf","forked_from":"543d1e263a300f20000d31fe","project":"543d1e263a300f20000d31fb","__v":16,"createdAt":"2014-10-14T13:00:14.946Z","releaseDate":"2014-10-14T13:00:14.946Z","categories":["543d1e5f5276641a00a593d0","543d1ee45276641a00a593da","5448e2cbc64edd1a00453c29","5449135acdc944220048845c","544a0a93778b3e08002b2289","544a0a9727b7fc140078da58","544a456f27b7fc140078daff","544e027cbd51b9080037f680","544e029ab80812080035bba6","544e3a2eb80812080035bd67","5450b7c5a66f020800dba7b3","5450c0e47abbbc0800a5e989","5450c0f97abbbc0800a5e98a","5450c103a66f020800dba819","54f99f588d09b7390007ea45","565c81dbf3e9360d00823e43"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"editedParams":true,"is_link":false,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-24T08:22:53.495Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"language":"json","status":200,"name":"","code":"{\n    \"id\": \"2acbeVU1\",\n    \"ern\": \"ern:offer:2acbeVU1\",\n    \"heading\": \"Coca-cola, Zero, light eller Fanta Exotic\",\n    \"description\": \"Ex. pant. 1,5 LITER. 6,67 pr. liter\",\n    \"catalog_page\": 24,\n    \"pricing\": {\n        \"price\": 10,\n        \"pre_price\": 12,\n        \"currency\": \"DKK\"\n    },\n    \"quantity\": {\n        \"unit\": {\n            \"symbol\": \"l\",\n            \"si\": {\n                \"symbol\": \"l\",\n                \"factor\": 1\n            }\n        },\n        \"size\": {\n            \"from\": 1.5,\n            \"to\": 1.5\n        },\n        \"pieces\": {\n            \"from\": 1,\n            \"to\": 1\n        }\n    },\n    \"images\": {\n        \"view\": \"https://cdn.eta.dk/img/offer/view/2acbeVU1.jpg\",\n        \"zoom\": \"https://cdn.eta.dk/img/offer/zoom/2acbeVU1.jpg\",\n        \"thumb\": \"https://cdn.eta.dk/img/offer/thumb/2acbeVU1.png\"\n    },\n    \"links\": {\n        \"webshop\": null\n    },\n    \"run_from\": \"2014-10-22T22:00:00+0000\",\n    \"run_till\": \"2014-10-25T21:59:59+0000\",\n    \"dealer_url\": \"https://api.etilbudsavis.dk/v2/dealers/11deC\",\n    \"store_url\": \"https://api.etilbudsavis.dk/v2/stores/de40Oig\",\n    \"catalog_url\": \"https://api.etilbudsavis.dk/v2/catalogs/9926veL\",\n    \"dealer_id\": \"11deC\",\n    \"store_id\": \"de40Oig\",\n    \"catalog_id\": \"9926veL\",\n    \"category_ids\": [\"supermarket\", \"discount\", \"groceries\"],\n    \"branding\": {\n        \"name\": \"REMA 1000\",\n        \"url_name\": \"rema-1000\",\n        \"website\": \"http://rema1000.dk\",\n        \"logo\": \"https://cdn.eta.dk/img/logo/5i2mwv2vp.png\",\n        \"logo_background\": \"034899\",\n        \"color\": \"034899\",\n        \"pageflip\": {\n            \"logo\": \"https://cdn.eta.dk/img/logo/6rtmwv30d.png\",\n            \"color\": \"034899\"\n        }\n    }\n}"},{"name":"","code":"{\n\t/* Offer not found */\n}","language":"json","status":404},{"code":"{\n    \"id\": \"2acbeVU1\",\n    \"ern\": \"ern:offer:2acbeVU1\",\n    \"heading\": \"Coca-cola, Zero, light eller Fanta Exotic\",\n    \"description\": \"Ex. pant. 1,5 LITER. 6,67 pr. liter\",\n    \"catalog_page\": 0,\n    \"pricing\": {\n        \"price\": 10,\n        \"pre_price\": 12,\n        \"currency\": \"DKK\"\n    },\n    \"quantity\": {\n        \"unit\": {\n            \"symbol\": \"l\",\n            \"si\": {\n                \"symbol\": \"l\",\n                \"factor\": 1\n            }\n        },\n        \"size\": {\n            \"from\": 1.5,\n            \"to\": 1.5\n        },\n        \"pieces\": {\n            \"from\": 1,\n            \"to\": 1\n        }\n    },\n    \"images\": {\n        \"view\": \"https://cdn.eta.dk/img/offer/view/2acbeVU1.jpg\",\n        \"zoom\": \"https://cdn.eta.dk/img/offer/zoom/2acbeVU1.jpg\",\n        \"thumb\": \"https://cdn.eta.dk/img/offer/thumb/2acbeVU1.png\"\n    },\n    \"links\": {\n        \"webshop\": \"http://some.webshop.dk/item/u4heaasv2\"\n    },\n    \"run_from\": \"2014-10-22T22:00:00+0000\",\n    \"run_till\": \"2014-10-25T21:59:59+0000\",\n    \"dealer_url\": \"https://api.etilbudsavis.dk/v2/dealers/11deC\",\n    \"store_url\": \"https://api.etilbudsavis.dk/v2/stores/de40Oig\",\n    \"catalog_url\": null,\n    \"dealer_id\": \"11deC\",\n    \"store_id\": \"de40Oig\",\n    \"catalog_id\": null,\n    \"category_ids\": [\"supermarket\", \"discount\", \"groceries\"],\n    \"branding\": {\n        \"name\": \"REMA 1000\",\n        \"url_name\": \"rema-1000\",\n        \"website\": \"http://rema1000.dk\",\n        \"logo\": \"https://cdn.eta.dk/img/logo/5i2mwv2vp.png\",\n        \"logo_background\": \"034899\",\n        \"color\": \"034899\",\n        \"pageflip\": {\n            \"logo\": \"https://cdn.eta.dk/img/logo/6rtmwv30d.png\",\n            \"color\": \"034899\"\n        }\n    }\n}","language":"json","status":200,"name":"OK - No Catalog"}]},"try":true,"basic_auth":false,"method":"get","auth":"never","params":[{"_id":"544a0ca8778b3e08002b2297","ref":"","in":"query","required":true,"desc":"Your API Session token.","default":"","type":"string","name":"_token"},{"_id":"544a1abc778b3e08002b22b3","ref":"","in":"query","required":false,"desc":"API Session signature.","default":"","type":"string","name":"_signature"},{"_id":"544a0c5d778b3e08002b2295","ref":"","in":"path","required":true,"desc":"Offer id.","default":"","type":"string","name":"offer_id"},{"_id":"544a0c5d778b3e08002b2294","ref":"","in":"query","required":false,"desc":"Request Latitude","default":"","type":"double","name":"r_lat"},{"_id":"544a0c5d778b3e08002b2293","ref":"","in":"query","required":false,"desc":"Request Longitude","default":"","type":"double","name":"r_lng"},{"_id":"544a0c5d778b3e08002b2292","ref":"","in":"query","required":false,"desc":"Request max distance to offers in meters.","default":"","type":"double","name":"r_radius"}],"url":"/v2/offers/:offer_id"},"isReference":false,"order":0,"body":"Retrieve a single offer object by id.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Geo\"\n}\n[/block]\nIf `r_lat` and `r_lng` is set, the offer object's `store` key will be set to the closest store where offer is available.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Offers without a catalog\"\n}\n[/block]\nNote that offers can exist without a catalog.\nIf so, `catalog_page` will be `0` and `catalog_id` will be `null`.","excerpt":"","slug":"offer","type":"endpoint","title":"Offer"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

offer_id:
required
string
Offer id.

Query Params

_token:
required
string
Your API Session token.
_signature:
string
API Session signature.
r_lat:
double
Request Latitude
r_lng:
double
Request Longitude
r_radius:
double
Request max distance to offers in meters.

Result Format


Documentation

Retrieve a single offer object by id. [block:api-header] { "type": "basic", "title": "Geo" } [/block] If `r_lat` and `r_lng` is set, the offer object's `store` key will be set to the closest store where offer is available. [block:api-header] { "type": "basic", "title": "Offers without a catalog" } [/block] Note that offers can exist without a catalog. If so, `catalog_page` will be `0` and `catalog_id` will be `null`.