system
April 14, 2021, 5:40am
1
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?
system
April 14, 2021, 8:01am
2
Dmytro Bondarev wrote:
Hi, please provide company login.
system
April 14, 2021, 9:48pm
3
Avi Beetul wrote:
Hi,
The cluster is Vicinity Centres and company login is chadstone
system
April 15, 2021, 6:22am
4
Redmine Admin wrote:
please provide raw http request with all headers to make sure you are quering correct account
system
April 15, 2021, 6:28am
5
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,
)
system
April 15, 2021, 6:30am
6
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.
system
April 15, 2021, 7:45am
7
Dmytro Bondarev wrote:
I have checked and it works correctly. Please make sure that you pass correct company login and ticket code.
system
April 15, 2021, 8:03am
8
Avi Beetul wrote:
OK thanks. I’ll retry again on my side.