Get the brand's business hours and out-of-hours auto-reply (if never set: configured=false, always open)
GET
/v1/brands/{brand}/business-hours
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/business-hours';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/business-hoursParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Responses
Section titled “Responses”Business hours
Media typeapplication/json
object
brandId
required
string
configured
required
False when no day has a slot: the brand counts as always open and nothing is auto-replied.
boolean
weekly
required
object
key
additional properties
Array<object>
object
from
required
string
to
required
string
closedDates
required
Array<string>
timezone
required
string
effectiveTimezone
required
string
autoReply
required
object
enabled
required
boolean
text
required
string
defaultText
required
Default text in the brand language, with the {horario} marker.
string
sendsOnlyEveryHours
required
At most one auto-reply per conversation in this many hours (12).
number
updatedAt
required
string
Example generated
{ "brandId": "example", "configured": true, "weekly": { "additionalProperty": [ { "from": "example", "to": "example" } ] }, "closedDates": [ "example" ], "timezone": "example", "effectiveTimezone": "example", "autoReply": { "enabled": true, "text": "example", "defaultText": "example", "sendsOnlyEveryHours": 1 }, "updatedAt": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}