- Platform Overview
- Resources and Guides
-
POS Integration
-
Getting Started
-
Core Concepts
-
Integration SDK
-
Certification
-
- Order Ahead
-
Provider Enablement
-
Provider Enablement
-
Endpoints
-
Developer Endpoints
-
-
API Reference
-
Getting Started
-
v15
-
- Access Tokens
- Campaigns
- Credit Cards
- Users
- Credit
- Locations
- Payment Methods
- QR Codes
- Progress Adjustments
- Orders
- Rewards
- Gift Cards
-
-
v14
-
- Credit
- Access Tokens
- Campaigns
- Categories
- Credit Cards
- Interstitials
-
Locations
- List
- List by App
- List by Merchant
- Get Image
- Get Details
- Loyalty
- Orders
- Payment Tokens
- Support Tickets
- Users
-
-
Locations .: Get Image
API Reference / v14
Get a Location’s Image
This endpoint redirects to the URI of the image described by the query parameters.
Request Endpoint
GET /v14/locations/:id/image
No Authorization Required
Request Parameters
Param | Type | Description |
---|---|---|
density |
Decimal | The effective pixel density of the desired image, corresponding to the widespread “@1x”, “@1.5x”, “@2x” convention. Accepted values: 1, 1.5, 2. |
height |
Integer | The height of the desired image in pixels. |
width |
Integer | The width of the desired image in pixels. |
The available image dimensions are: 280x128, 290x335, 320x212, 400x235, and 460x180.
cURL Example
curl -X GET -H Accept:application/json -H Content-Type:application/json https://api.thelevelup.com/v14/locations/3796/image?density=1&height=212&width=320
Example Response
HTTP/1.1 302 Found
Headers:
Location: https://s3.amazonaws.com/levelup/c9e16d4c66c49fa15a8b26d5eef5fb855377d178.jpg
(No response body.)
Errors
No location matches the given ID, or no image matches the given dimensions and density
HTTP/1.1 404 Not Found
(No response body.)