You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the API to generate a new reservation it always returns "Access to resource has been denied" and never generates the reservation.
In the API Documentation the example states that the format of
should work to generate a new reservation, replacing the required values with proper ones, but it does not and just gives the "Access to resource has been denied" error.
The Actual Request I am Sending:
Using fetch in a node.js project, Postman, and cURL in a bat file with the headers:
The ALFIO_API_KEY was tried with every role. The API Client role was the only one that did not send a permission denied response, but send the "Access to resource has been denied" response. I also tried with the System API Key, but that did not work as well.
Sending the data:
The USER was tested with both the Organization owner and Check-in supervisor role. I also tried using the admin account, but that also did not work and gave the same "Access to resource has been denied" response.
The request was also tried with more than one attende, but with the same result.
I also tried to make the event and categories public, being both free and paid, with dynamic and static ticket counts, and that also did not fix it.
To Reproduce
Steps to reproduce the behavior:
Create a new organization.
Create a new event from the organization you just created, or use an existing event. Take note of the slug for the event.
Create a new category for the event you just created. Take note of the event ID.
Create a new API Key with the organization you just created and a role of API Client.
Create a new User with the same organization as before and the role of Organization owner. Taking note of the Username, First name, Last name, and Email.
Create the data of an attendee for the event in the JSON format:
Get the "Access to resource has been denied" API response.
Expected behavior
When submitting the data, a new reservation should be created for each attendee in the tickets list to the event from the URL slug with the category in the ticketCategoryId.
Screenshots
Server:
OS: Ubuntu Server
Version: 22.04
ALFIO Version: 2.0-M5
Java Version:
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)
Desktop:
OS: Windows 11
Browser: Chrome & Postman
Version: 128.0.6613.139
Additional context
I was originally trying to implement creating tickets into a Node.js project that would call this API, but because it is not working as expected, some of the features of our program had to be pushed back to work on this change.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the API to generate a new reservation it always returns "Access to resource has been denied" and never generates the reservation.
In the API Documentation the example states that the format of
should work to generate a new reservation, replacing the required values with proper ones, but it does not and just gives the "Access to resource has been denied" error.
The Actual Request I am Sending:
Using fetch in a node.js project, Postman, and cURL in a bat file with the headers:
The
ALFIO_API_KEY
was tried with every role. TheAPI Client
role was the only one that did not send a permission denied response, but send the "Access to resource has been denied" response. I also tried with the System API Key, but that did not work as well.Sending the data:
The
USER
was tested with both theOrganization owner
andCheck-in supervisor
role. I also tried using the admin account, but that also did not work and gave the same "Access to resource has been denied" response.The request was also tried with more than one attende, but with the same result.
I also tried to make the event and categories public, being both free and paid, with dynamic and static ticket counts, and that also did not fix it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When submitting the data, a new reservation should be created for each attendee in the tickets list to the event from the URL slug with the category in the
ticketCategoryId
.Screenshots
Server:
Ubuntu Server
22.04
2.0-M5
Desktop:
Windows 11
Chrome & Postman
128.0.6613.139
Additional context
I was originally trying to implement creating tickets into a Node.js project that would call this API, but because it is not working as expected, some of the features of our program had to be pushed back to work on this change.
The text was updated successfully, but these errors were encountered: