Migrated from Redmine #590 | Author: Unnur Sól Ingimarsdóttir
Status: New | Priority: Low, I can wait | Created: 2020-10-14
Hi, validatePromoCode always returns
{error: {code: -32030, message: “Invalid promotion code”, data: }, id: “22”, jsonrpc: “2.0”}
My request:
:authority: user-api.simplybook.me
:method: POST
:path: /
:scheme: https
accept: /
accept-encoding: gzip, deflate, br
accept-language: is-IS,is;q=0.9,en-US;q=0.8,en;q=0.7
content-length: 100
content-type: application/json
origin: http://localhost:8000
referer: http://localhost:8000/
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: cross-site
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
x-company-login: bonstodinhofdatorg
x-token: XXXXXXXXX
{jsonrpc: “2.0”, method: “validatePromoCode”, params: [“KVIKA”, “2020-10-15 06:00:00”, “19”], id: 22}
also
{jsonrpc: “2.0”, method: “getPromocodeInfo”, params: {code: “KVIKA”}, id: 23}
returns
{result: null, id: “23”, jsonrpc: “2.0”}
It works fine when using the widget from you ![]()