Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue.
We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties.
You can write credentials here just check PRIVATE Reply so nobody can see them except us.
Can we please get a response on this? Our customers are repeatedly booking with the wrong Employee and it's causing them lots of frustration. PLEASE HELP!
(referring to PUBLIC TICKET #3526674 which is why we got the developer edition)
You send data in that way when you want to add an appointment (without packageCustomerService). If you want to book a package with an appointment send data like this:
Send the bookings list in the "package" array. The "packageRules" array represents the provider/location the customer explicitly chose while booking. This data is used later when booking other appointments on the customer panel in the case you don't want to allow the customer to choose employees. (the one he chose while booking will be used). You don't have to send this parameter if you don't need it.
You should use the get appointments API endpoint (https://wpamelia.com/amelia-api-appointments/#get2) and send the packageId as a query parameter. This will retrieve the package purchases made between the dates you sent as parameters. And every purchase has an end date attached following the structure below:
Under availablePackageBookings is a list of package purchases that belong to a certain customer (customerId). Than under packages are their purchases of different packages. The "end" field signifies the date and time when the package will become invalid (a customer can no longer book the remaining slots inside that package).
You can also set the customerId to filer this data. In a future update we will remove the need to send a specific packageId as well.
This date is set when creating a package by assigning a fixed date or a quantity of time after a package has been purchased.
We recently purchased the Developer Edition as we want to develop a custom-built customer/employee dashboard. However, we're struggling to book an appointment using this Api "https://beta.fitcyhealth.com/wp-admin/admin-ajax.php?action=wpamelia_api&call=/api/v1/bookings" getting this error:
Call to a member function getType() on null
Hello Fitcy,
Thank you for reaching out to us.
Can you please let me know which version of the Amelia plugin you have installed on your website?
Looking forward to your reply.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
7.1 Developer Edition
Hello,
Thank you for the update on this.
Can you please update the plugin to the latest version (7.2), test it out, and let me know if it works or not?
Looking forward to your reply.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I have updated the plugin still getting the same error.
Hello,
Thank you for the update on this.
Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue.
We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties.
You can write credentials here just check PRIVATE Reply so nobody can see them except us.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Can we please get a response on this? Our customers are repeatedly booking with the wrong Employee and it's causing them lots of frustration. PLEASE HELP!
(referring to PUBLIC TICKET #3526674 which is why we got the developer edition)
Still getting the same error. "Call to a member function getType() on null".
I'm passing these parameters.
{
"type": "appointment",
"bookingStart": "2023-12-24 10:00",
"bookings": [
{
"packageCustomerService": { "id": 3257 },
"customFields": null,
"customer": {
"id": 2131,
"firstName": "Fitcy",
"lastName": "Test",
"email": "[email protected]",
"phone": "+92332",
"countryPhoneIso": "pk",
"externalId": 2272
},
"customerId": 2131,
"deposit": 0,
"extras": [],
"id": 3257,
"persons": 1,
"utcOffset": 300,
"locale": "en_US",
"locationId": 1,
"notifyParticipants": 1,
"payment": null,
"providerId": 36,
"package": [],
"recurring": [],
"serviceId": 466,
"timeZone": "Asia/Karachi",
"utc": true
}
]
}
Hello,
Thank you for the update on this.
I have passed this issue to our developers and we will provide you with an update as soon as we have one.
Thank you for your patience.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello,
You send data in that way when you want to add an appointment (without packageCustomerService). If you want to book a package with an appointment send data like this:
{ "type": "package",
"bookings": [ { "customFields": null, "locale": "en_US", "customerId": 2, "customer": { "id": 2, "firstName": "Amelia", "lastName": "Test", "email": "[email protected]", "phone": "", "countryPhoneIso": "us" }, "extras": [], "persons": 1 } ],
"payment": { "gateway": "onSite" },
"locale": "en_US", "timeZone": "Europe/Belgrade",
"package": [ { "bookingStart": "2024-01-07 09:00", "serviceId": 1, "providerId": 4, "locationId": 6, "utcOffset": 60, "notifyParticipants": 1 } ],
"packageId": 1,
"packageRules": [ { "serviceId": 1, "providerId": null, "locationId": null } ], "utcOffset": 60 }
Send the bookings list in the "package" array. The "packageRules" array represents the provider/location the customer explicitly chose while booking. This data is used later when booking other appointments on the customer panel in the case you don't want to allow the customer to choose employees. (the one he chose while booking will be used). You don't have to send this parameter if you don't need it.
We will add an example of this in the documentation. If you want to book an empty package you can also use this API https://wpamelia.com/amelia-api-package-purchases/#add . If you want to add an appointment to an existing package purchase use this API https://wpamelia.com/amelia-api-package-purchases/#add2
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
How can i get the package validity from the API
Hello,
Thank you for reaching back out to us.
You should use the get appointments API endpoint (https://wpamelia.com/amelia-api-appointments/#get2) and send the packageId as a query parameter. This will retrieve the package purchases made between the dates you sent as parameters. And every purchase has an end date attached following the structure below:
Under availablePackageBookings is a list of package purchases that belong to a certain customer (customerId). Than under packages are their purchases of different packages. The "end" field signifies the date and time when the package will become invalid (a customer can no longer book the remaining slots inside that package).
You can also set the customerId to filer this data. In a future update we will remove the need to send a specific packageId as well.
This date is set when creating a package by assigning a fixed date or a quantity of time after a package has been purchased.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables