This resource is used to handle opening hours for customers when using the Callback Widget.
GET
Mandatory parameters
| Name | Type | Description |
|---|---|---|
| customer_id | int | Kaisa's unique ID for customer. |
| oh_id | int | Opening hour ID. |
Optional parameters
None.
Output
| Name | Type | Description |
|---|---|---|
| oh_id | int | Opening hour ID. |
| weekdays | string | Comma separated string with opened weekdays. (i.e. "mon,tue,wed,thu,fri") |
| from_time | string | Opening from time (UTC). 'HH:MM:SS'. |
| to_time | string | Opening to time (UTC). 'HH:MM:SS'. |
POST
Mandatory parameters
| Name | Type | Description |
|---|---|---|
| customer_id | int | Kaisa's unique ID for customer. |
| weekdays | string | Comma separated string with opened weekdays. |
| from_time | string | Opening from time (UTC). YYYY-MM-DD HH:MM:SS'. |
| to_time | string | Opening to time (UTC). YYYY-MM-DD HH:MM:SS'. |
Optional parameters
None.
Output
Same as GET.
PUT
Mandatory parameters
| Name | Type | Description |
|---|---|---|
| customer_id | int | Kaisa's unique ID for customer. |
| number_id | int | DNCS number id. |
Optional parameters
| Name | Type | Description |
|---|---|---|
| phonenr | string | DNCS phone number. |
Output
Same as GET.
DELETE
Mandatory parameters
| Name | Type | Description |
|---|---|---|
| oh_id | int | Opening hour ID. |
Optional parameters
None.
Output
N/A.
Comments
0 comments
Please sign in to leave a comment.