Retrieve an item modifier
curl --request GET \
--url https://api.vori.com/v1/item-modifiers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vori.com/v1/item-modifiers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vori.com/v1/item-modifiers/{id}', 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.vori.com/v1/item-modifiers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vori.com/v1/item-modifiers/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.vori.com/v1/item-modifiers/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/item-modifiers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"price_tag_label": "BOTTLE_DEPOSIT",
"store_id": "<string>",
"tax_behavior": "EXCLUDE",
"type": "bottle_deposit",
"updated_at": "2023-11-07T05:31:56Z",
"value": "199.99"
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Item modifiers
Retrieve an item modifier
Retrieve an item modifier
GET
/
v1
/
item-modifiers
/
{id}
Retrieve an item modifier
curl --request GET \
--url https://api.vori.com/v1/item-modifiers/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vori.com/v1/item-modifiers/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vori.com/v1/item-modifiers/{id}', 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.vori.com/v1/item-modifiers/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.vori.com/v1/item-modifiers/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.vori.com/v1/item-modifiers/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/item-modifiers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"price_tag_label": "BOTTLE_DEPOSIT",
"store_id": "<string>",
"tax_behavior": "EXCLUDE",
"type": "bottle_deposit",
"updated_at": "2023-11-07T05:31:56Z",
"value": "199.99"
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Pattern:
^[0-9]+$Response
A charge added alongside a product's price, such as a bottle deposit.
Unique identifier for the record.
When the record was created.
Human-readable item modifier name.
Optional shelf-tag classification for bottle deposits or container redemption value.
Available options:
BOTTLE_DEPOSIT, CRV ID of the store the item modifier belongs to.
Pattern:
^[0-9]+$Whether the modifier is excluded from tax or inherits the product tax behavior.
Available options:
EXCLUDE, INHERIT_FROM_STORE_PRODUCT Business purpose of the item modifier.
Available options:
bottle_deposit, custom, food_modifier When the record was last changed.
Monetary value of the modifier as a decimal string in major/minor currency units.
Pattern:
^[0-9]+(\.[0-9]+)?$Example:
"199.99"
Was this page helpful?