Api Function Name

dp_11000_update_opening_hours


This api allows dealers to update the opening hours for their store.

To submit the hours field, you need to send a json array in urlencoded format.

EG: urlencode($hours), then on the api side we will run urldecode($hours);

The schema of the json should be as follows:

Array
(
[0] => stdClass Object
(
[day_name] => Monday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[1] => stdClass Object
(
[day_name] => Tuesday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[2] => stdClass Object
(
[day_name] => Wednesday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[3] => stdClass Object
(
[day_name] => Thursday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[4] => stdClass Object
(
[day_name] => Friday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[5] => stdClass Object
(
[day_name] => Saturday
[status] => open
[slot1from] => 9am
[slot1to] => 12pm
[slot2from] => 3pm
[slot2to] => 5pm
[custom_text] => Nice day today!
)

[6] => stdClass Object
(
[day_name] => Sunday
[status] => closed
[slot1from] =>
[slot1to] =>
[slot2from] =>
[slot2to] =>
[custom_text] =>
)

)

End Point URL

The url end point is: https://api.arcticspascore.com/live/

Parameters

action Type Example Required Description
wp_user_id int 999 yes

The user id of the user.

session_token varchar 55d6c3gh88d55a5 yes

This is the session token from the logged in session.

store_id int 123 yes

The id of the store they will be updating

hours varchar urlencoded json yes

This will be a json string which has been urlencoded at the source.

The string will be decoded at the api and then checked for correct schema.

Response Codes

Response Code Response Message
11001 wp_user_id was not valid
11002 session_token was empty
11003 store_id was not valid
11004 hours data was not in valid format
11005 user does not have permission to update this store
11006 opening hours were updated

Example Responses

No response examples available.