[#684] Ticket not found for valid ticket code

Migrated from Redmine #684 | Author: Avi Beetul
Status: Feedback | Priority: Normal | Created: 2021-04-14


Hi,

I’m trying to retrieve details of a ticket by ticket_code from an existing booking (booking[‘ticket_code’]), however getting a 404 error.

I’m following the instruction from the API doc - API documentation | SimplyBook.me Online Scheduling

endpoint: /admin/tickets/{ticket_code}
example ticket_code: 00615c2bbb16ff
url: https://user-api-v2.bookings.vicinity.com.au/admin/tickets/006221ad8799c

error message:
{
“code”: 404,
“message”: “Ticket not found”,
“data”: ,
“message_data”:
}

Note that this is one example. I attempted to retrieve several ticket_code but none of them return data. They all have 404 error.

Can you please assist?

Dmytro Bondarev wrote:

Hi, please provide company login.

Avi Beetul wrote:

Hi,

The cluster is Vicinity Centres and company login is chadstone

Redmine Admin wrote:

please provide raw http request with all headers to make sure you are quering correct account

Avi Beetul wrote:

response = requests.get(
https://user-api-v2.bookings.vicinity.com.au” + f"/admin/tickets/{ticket_code}",
headers={
“Content-Type”: “application/json”,
“X-Company-Login”: login,
“X-Token”: token,
},
params=param,
)

Avi Beetul wrote:

Hi,

Note that I use the same header to to get invoices, bookings, services, clients as part of the same script run and no issues with invoices, bookings, services and clients.

Dmytro Bondarev wrote:

I have checked and it works correctly. Please make sure that you pass correct company login and ticket code.

Avi Beetul wrote:

OK thanks. I’ll retry again on my side.