[#1399] Access control allow origin issue when trying to POST

Migrated from Redmine #1399 | Author: Erick Lara
Status: Feedback | Priority: Normal | Created: 2025-03-17


This is in conjunction with Support #1394 with my web app…when try to run the script I get the following:

I am able to run “get promotions list” and “get gift card list” and “get coupons list” without issues but I have the following when trying to issue gift

[Error] Origin https://vilux.it is not allowed by Access-Control-Allow-Origin. Status code: 404
[Error] Fetch API cannot load https://user-api-v2.simplybook.me/admin/promotions/issue-gift-cards due to access control checks.
[Error] Failed to load resource: Origin https://vilux.it is not allowed by Access-Control-Allow-Origin. Status code: 404 (issue-gift-cards, line 0)

Dmytro Bondarev wrote:

Hi, there is not such endpoint, that is why you receive 404.
Most probably you wanted to call

POST https://user-api-v2.simplybook.me/admin/promotions/issue-gift-card

(without s)

Erick Lara wrote:

thank you! that was it.