[#300] Issues

Migrated from Redmine #300 | Author: Vladimir Petukhov
Status: Rejected | Priority: High, I’m very impatient | Created: 2018-12-06


Hi,

After turning on and then turning off “Gift cards” functionality on my account I can’t get back promocodes functional. Please get this functionality back on “vlpetukhov” account.

Another issue is when I try to create booking I have recieved an error message:
“Endpoint: book. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (em_vlpetukhov.plugin_location_sheduler, CONSTRAINT plugin_location_sheduler_ibfk_1 FOREIGN KEY (plugin_location_id) REFERENCES plugin_location (id))”.

Please take a look at these issues ASAP.

Dmytro Bondarev wrote:

Please send raw HTTP request.

Vladimir Petukhov wrote:

Hi,

Here below the JSON stringified request parameters (Please note, personal data was hidden by “xxxxxx” symbols):

{
“url”:“https://user-api.simplybook.me”,
“method”:“POST”,
“body”:{
“jsonrpc”:“2.0”,
“method”:“book”,
“params”:[
“5”,
“2”,
“2018-12-31”,
“10:30:00”,
{
“name”:“Vxxxxxxxxxx”,
“phone”:“+79xxxxxxxxx2”,
“email”:“vxxxxxxxxxxxxxxx.se”,
“client_id”:“164”,
“client_sign”:“0f7cb233d2c5306d63ad5a3cad85c985”
},
{
“location_id”:“1”
},
null,
null,
null
],
“id”:86
},
“json”:true
}

Dmytro Bondarev wrote:

You pass “location_id”:“1” , but you do not have such location anymore.

Vladimir Petukhov wrote:

Ok, you are right about the second issue. How about the first one(return promocode back to my account)?

Dmytro Bondarev wrote:

Please explain what is not working?

Vladimir Petukhov wrote:

Here what had happened:

  1. Our system using promocode functionality via API;
  2. After the “Gift cards” functionality was announced, I had turned it on;
  3. Because of inability to work with this new feature via API I turned it off, but promocodes never return back;
  4. Right now I haven’t got the ability to work with promocodes though SB administration panel, because instead of “Promotions” in the menu I have got link to inactive “Gift cards” functional.

I need to have “Promotions” back to work.

Dmytro Bondarev wrote:

Please turn on “Rewards and Referrals” Custom feature (it was renamed).