Set store hours
curl --request PUT \
--url https://api.lulacommerce.com/v1/stores/{store_id}/hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timezone": "America/Chicago",
"regular": [
{
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/stores/{store_id}/hours"
payload = {
"timezone": "America/Chicago",
"regular": [
{
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": False,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timezone: 'America/Chicago',
regular: [{open: '00:00', close: '23:59'}],
special: [
{
date: '2023-12-25',
closed: false,
open: '<string>',
close: '<string>',
label: 'Thanksgiving'
}
]
})
};
fetch('https://api.lulacommerce.com/v1/stores/{store_id}/hours', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"timezone": "America/Chicago",
"regular": [
{
"day": "monday",
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_external_id",
"message": "<string>",
"request_id": "req_01J9ZS2B6C8D",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Stores
Set store hours
Replace the store’s regular weekly hours and special hours (holidays, events). Hours are in the store’s local time zone. Changes are applied to every channel.
PUT
/
stores
/
{store_id}
/
hours
Set store hours
curl --request PUT \
--url https://api.lulacommerce.com/v1/stores/{store_id}/hours \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timezone": "America/Chicago",
"regular": [
{
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}
'import requests
url = "https://api.lulacommerce.com/v1/stores/{store_id}/hours"
payload = {
"timezone": "America/Chicago",
"regular": [
{
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": False,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timezone: 'America/Chicago',
regular: [{open: '00:00', close: '23:59'}],
special: [
{
date: '2023-12-25',
closed: false,
open: '<string>',
close: '<string>',
label: 'Thanksgiving'
}
]
})
};
fetch('https://api.lulacommerce.com/v1/stores/{store_id}/hours', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"timezone": "America/Chicago",
"regular": [
{
"day": "monday",
"open": "00:00",
"close": "23:59"
}
],
"special": [
{
"date": "2023-12-25",
"closed": false,
"open": "<string>",
"close": "<string>",
"label": "Thanksgiving"
}
]
}{
"error": {
"type": "authentication_error",
"code": "invalid_external_id",
"message": "<string>",
"request_id": "req_01J9ZS2B6C8D",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}Authorizations
Path Parameters
Body
application/json

