Get a published product
curl --request GET \
--url https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}import requests
url = "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"price": "<string>",
"displayPrice": "<string>",
"currency": "usd",
"modifierIds": [
"<string>"
],
"description": "<string>",
"availability": "<string>",
"images": [
"<string>"
],
"source": {
"menuId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "online",
"kind": "released",
"menuReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"quantityUnit": "serving",
"locationId": "<string>",
"modifiers": [
{
"id": "<string>",
"name": "<string>",
"rule": {
"min": 123,
"max": 123
},
"items": [
{
"id": "<string>",
"name": "<string>",
"price": "<string>",
"maxQuantity": 4503599627370495,
"sellability": {
"sellable": true,
"reasonCodes": [
"<string>"
]
},
"childGroups": [
{
"groupId": "<string>",
"overrides": {
"min": 123,
"max": 123
},
"applyPerParentQuantity": true,
"group": null,
"circular": true
}
]
}
],
"description": "<string>",
"imageUrl": "<string>",
"defaultSelections": [
{
"optionId": "<string>",
"quantity": 49
}
]
}
],
"sellability": {
"sellable": true,
"reasonCodes": [
"<string>"
]
}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Products
Get a published product
GET
/
locations
/
{locationId}
/
products
/
{productId}
Get a published product
curl --request GET \
--url https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}import requests
url = "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craveup.com/api/v1/storefront/locations/{locationId}/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"price": "<string>",
"displayPrice": "<string>",
"currency": "usd",
"modifierIds": [
"<string>"
],
"description": "<string>",
"availability": "<string>",
"images": [
"<string>"
],
"source": {
"menuId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "online",
"kind": "released",
"menuReleaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"quantityUnit": "serving",
"locationId": "<string>",
"modifiers": [
{
"id": "<string>",
"name": "<string>",
"rule": {
"min": 123,
"max": 123
},
"items": [
{
"id": "<string>",
"name": "<string>",
"price": "<string>",
"maxQuantity": 4503599627370495,
"sellability": {
"sellable": true,
"reasonCodes": [
"<string>"
]
},
"childGroups": [
{
"groupId": "<string>",
"overrides": {
"min": 123,
"max": 123
},
"applyPerParentQuantity": true,
"group": null,
"circular": true
}
]
}
],
"description": "<string>",
"imageUrl": "<string>",
"defaultSelections": [
{
"optionId": "<string>",
"quantity": 49
}
]
}
],
"sellability": {
"sellable": true,
"reasonCodes": [
"<string>"
]
}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Path Parameters
Required string length:
1 - 128Required string length:
1 - 128Query Parameters
Minimum string length:
1Minimum string length:
1Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Available options:
online, catering Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Response
Published product.
Required string length:
1 - 128Pattern:
^-?\d+(?:\.\d+)?$Available options:
usd, gbp, aed, aud Required string length:
1 - 128Show child attributes
Show child attributes
Available options:
serving, person, item, dozen, tray, pack, lb, oz, kg, g, gallon, quart, liter, ml, fl_oz Required string length:
1 - 128Show child attributes
Show child attributes
Show child attributes
Show child attributes
