Skip to main content

Get exception day

GET{{server}}/api/v1/smart/exceptionDay?branch={{branch}}

It returns the exception day settings if today is an exception day.

Response

  • weekday (boolean | number): if true today is an exception day. If it's a number, it points to another day of the week (0 - Sunday ... 7 - Saturday)

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Query parameters​

KeyValue
branch{{branch}}

Code snippets​

curl -X GET '{{server}}/api/v1/smart/exceptionDay?branch={{branch}}' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}'

Examples (3)​

Example request
GET{{server}}/api/v1/smart/exceptionDay?branch={{branch}}
Query parameters (1)
KeyValue
branch{{branch}}
Headers (1)
KeyValue
Acceptapplication/json
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length2
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
[]