|Help Centre

Developer API: /customers/opening_hours

This resource is used to handle opening hours for customers when using the Callback Widget.

GET

Mandatory parameters

Name Type Description
customer_id int Freespee'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.
from_time string Opening from time (UTC).
to_time string Opening to time (UTC).

POST

Mandatory parameters

Name Type Description
customer_id int Freespee's unique ID for customer.
weekdays string Comma separated string with opened weekdays.
from_time string Opening from time (UTC).
to_time string Opening to time (UTC).

Optional parameters

None.

Output

Same as GET.

PUT

Mandatory parameters

Name Type Description
customer_id int Freespee'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.

Can't find what you're looking for?