File Manager
{
"info": {
"_postman_id": "bc336f35-d8c9-4ee3-ab7d-145e14b9ba1e",
"name": "amelia api",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "26497846"
},
"item": [
{
"name": "Payments",
"item": [
{
"name": "add payment",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"customerBookingId\": 901, // required; integer, id of booking related to the payment\n \"amount\": 10, // required; number\n \"dateTime\": \"2023-09-05 15:00:00\", // string in date time format of 'YYYY-MM-DD HH:mm:ss' ; the date time when the payment was made or will be made (right now for online payment methods, booking date for on-site payments)\n \"status\": \"paid\", // required; string; status of payment; possible values: 'paid', 'pending', 'partiallyPaid', 'refunded'\n \"gateway\": \"stripe\", // string, payment gateway; possible values: 'onSite', 'payPal', 'stripe', 'wc', 'mollie', 'razorpay'\n \"gatewayTitle\": null, // string; gateway title used with woocommerce (stripe, cash on delivery, bank transfer...)\n \"data\": null, // json\n \"packageCustomerId\": null,\n \"entity\": \"appointment\", // string; payment type; possible values: appointment, event, package\n \"actionsCompleted\": 1, // boolean, 1/0; whether post-booking actions (sending emails, google calendar, zoom etc.) were completed\n \"wcOrderId\": null, // integer; woocommerce order id\n \"transactionId\": null // string; online transaction id; used for refund option; transaction id of payments other than woocommerce\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments"
]
}
},
"response": [
{
"name": "add payment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"customerBookingId\": 268,\n \"amount\": 10,\n \"dateTime\": \"2023-05-05 15:00:00\",\n \"status\": \"paid\",\n \"gateway\": \"stripe\",\n \"data\": {},\n \"packageCustomerId\": null,\n \"entity\": \"appointment\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:18:31 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "397"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"New payment successfully created.\",\n \"data\": {\n \"payment\": {\n \"id\": null,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 10,\n \"gateway\": \"stripe\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 15:00:00\",\n \"status\": \"paid\",\n \"data\": \"[]\",\n \"entity\": \"appointment\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "update payment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('payment_id', 919);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"amount\": 10,\n \"status\": \"paid\"\n //only send fields that should be updated\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"response": [
{
"name": "update payment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"customerBookingId\": 268,\n \"amount\": 15,\n \"dateTime\": \"2023-05-05 15:00:00\",\n \"status\": \"paid\",\n \"gateway\": \"stripe\",\n \"gatewayTitle\": null,\n \"data\": null,\n \"packageCustomerId\": null,\n \"entity\": \"appointment\",\n \"actionsCompleted\": 1,\n \"wcOrderId\": null,\n \"transactionId\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:26:11 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "382"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Payment successfully updated.\",\n \"data\": {\n \"payment\": {\n \"id\": null,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 15,\n \"gateway\": \"stripe\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 15:00:00\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "delete payment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('payment_id', 919);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/delete/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"delete",
"{{payment_id}}"
]
}
},
"response": [
{
"name": "delete payment",
"originalRequest": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/delete/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"delete",
"{{payment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:28:29 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "407"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Payment successfully deleted.\",\n \"data\": {\n \"payment\": {\n \"id\": 313,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 15,\n \"gateway\": \"stripe\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 13:00:00\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": \"2023-05-05 11:22:49\",\n \"actionsCompleted\": true,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "get payments",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments&page=1&dates=2023-05-05,2023-05-06",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments&page=1&dates=2023-05-05,2023-05-06"
]
}
},
"response": [
{
"name": "get payments",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments&page=1&dates=2023-05-05,2023-05-06",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments&page=1&dates=2023-05-05,2023-05-06"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:30:15 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "4540"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved payments.\",\n \"data\": {\n \"payments\": [\n {\n \"id\": 234,\n \"dateTime\": \"2023-05-05 11:00:00\",\n \"bookingStart\": \"2023-05-05 11:00:00\",\n \"status\": \"pending\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"free service\",\n \"customerBookingId\": 196,\n \"packageCustomerId\": null,\n \"amount\": 0,\n \"providers\": [\n {\n \"id\": 3,\n \"fullName\": \"Milica2 Employee2\",\n \"email\": \"milicaemployee2@test.test\"\n }\n ],\n \"customerId\": 11,\n \"serviceId\": 6,\n \"appointmentId\": 128,\n \"packageId\": null,\n \"bookedPrice\": 10,\n \"bookableName\": \"free service\",\n \"customerFirstName\": \"Amelia\",\n \"customerLastName\": \"Test\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"customerEmail\": \"amelia@test.test\",\n \"coupon\": null,\n \"persons\": 1,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": []\n },\n {\n \"id\": 260,\n \"dateTime\": \"2023-05-05 11:00:00\",\n \"bookingStart\": \"2023-05-05 11:00:00\",\n \"status\": \"pending\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"milica service\",\n \"customerBookingId\": 219,\n \"packageCustomerId\": null,\n \"amount\": 0,\n \"providers\": [\n {\n \"id\": 1,\n \"fullName\": \"Milica Employee\",\n \"email\": \"kpop.lover.10000@gmail.com\"\n }\n ],\n \"customerId\": 17,\n \"serviceId\": 2,\n \"appointmentId\": 144,\n \"packageId\": null,\n \"bookedPrice\": 100,\n \"bookableName\": \"milica service\",\n \"customerFirstName\": \"Avatar\",\n \"customerLastName\": \"Last Airbender\",\n \"info\": null,\n \"customerEmail\": \"suraj@atla.aang\",\n \"coupon\": null,\n \"persons\": 1,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": []\n },\n {\n \"id\": 261,\n \"dateTime\": \"2023-05-05 11:00:00\",\n \"bookingStart\": \"2023-05-05 11:00:00\",\n \"status\": \"pending\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"milica service\",\n \"customerBookingId\": 220,\n \"packageCustomerId\": null,\n \"amount\": 0,\n \"providers\": [\n {\n \"id\": 1,\n \"fullName\": \"Milica Employee\",\n \"email\": \"kpop.lover.10000@gmail.com\"\n }\n ],\n \"customerId\": 8,\n \"serviceId\": 2,\n \"appointmentId\": 144,\n \"packageId\": null,\n \"bookedPrice\": 100,\n \"bookableName\": \"milica service\",\n \"customerFirstName\": \"Kim\",\n \"customerLastName\": \"KibBum\",\n \"info\": null,\n \"customerEmail\": \"key@test.test\",\n \"coupon\": null,\n \"persons\": 1,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": []\n },\n {\n \"id\": 257,\n \"dateTime\": \"2023-05-05 12:00:00\",\n \"bookingStart\": \"2023-05-05 12:00:00\",\n \"status\": \"pending\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"new service\",\n \"customerBookingId\": 216,\n \"packageCustomerId\": null,\n \"amount\": 0,\n \"providers\": [\n {\n \"id\": 1,\n \"fullName\": \"Milica Employee\",\n \"email\": \"kpop.lover.10000@gmail.com\"\n }\n ],\n \"customerId\": 5,\n \"serviceId\": 7,\n \"appointmentId\": 142,\n \"packageId\": null,\n \"bookedPrice\": 33.44,\n \"bookableName\": \"new service\",\n \"customerFirstName\": \"Milica\",\n \"customerLastName\": \"Test\",\n \"info\": null,\n \"customerEmail\": \"new_customer@test.test\",\n \"coupon\": null,\n \"persons\": 3,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": []\n },\n {\n \"id\": 258,\n \"dateTime\": \"2023-05-05 12:00:00\",\n \"bookingStart\": \"2023-05-05 12:00:00\",\n \"status\": \"pending\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"new service\",\n \"customerBookingId\": 217,\n \"packageCustomerId\": null,\n \"amount\": 0,\n \"providers\": [\n {\n \"id\": 1,\n \"fullName\": \"Milica Employee\",\n \"email\": \"kpop.lover.10000@gmail.com\"\n }\n ],\n \"customerId\": 8,\n \"serviceId\": 7,\n \"appointmentId\": 142,\n \"packageId\": null,\n \"bookedPrice\": 33.44,\n \"bookableName\": \"new service\",\n \"customerFirstName\": \"Kim\",\n \"customerLastName\": \"KibBum\",\n \"info\": null,\n \"customerEmail\": \"key@test.test\",\n \"coupon\": null,\n \"persons\": 2,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": []\n },\n {\n \"id\": 312,\n \"dateTime\": \"2023-05-05 15:00:00\",\n \"bookingStart\": \"2023-05-23 09:00:00\",\n \"status\": \"paid\",\n \"wcOrderId\": null,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"name\": \"amelia service\",\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"amount\": 10,\n \"providers\": [\n {\n \"id\": 1,\n \"fullName\": \"Milica Employee\",\n \"email\": \"kpop.lover.10000@gmail.com\"\n }\n ],\n \"customerId\": 2,\n \"serviceId\": 1,\n \"appointmentId\": 181,\n \"packageId\": null,\n \"bookedPrice\": 20,\n \"bookableName\": \"amelia service\",\n \"customerFirstName\": \"Milica\",\n \"customerLastName\": \"Snake\",\n \"info\": \"{\\\"firstName\\\":\\\"Milica\\\",\\\"lastName\\\":\\\"Snake\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"customerEmail\": \"snakemilica@yahoo.com\",\n \"coupon\": null,\n \"persons\": 1,\n \"aggregatedPrice\": 1,\n \"bookingExtrasSum\": 0,\n \"secondaryPayments\": [\n {\n \"id\": 309,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 5,\n \"gateway\": \"square\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-04 17:32:38\",\n \"status\": \"partiallyPaid\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": \"2023-05-04 15:32:38\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ]\n }\n ],\n \"filteredCount\": 6,\n \"totalCount\": 265\n }\n}"
}
]
},
{
"name": "get payment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('payment_id', 312);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"response": [
{
"name": "get payment",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:32:09 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "409"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved payment.\",\n \"data\": {\n \"payment\": {\n \"id\": 312,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 10,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 13:00:00\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": \"2023-05-05 11:18:32\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "get transaction amount",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('payment_id', 922); //retreive amount of transaction from the payment gateway panel"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/transaction/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"transaction",
"{{payment_id}}"
]
}
},
"response": [
{
"name": "get payment",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:32:09 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "409"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved payment.\",\n \"data\": {\n \"payment\": {\n \"id\": 312,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 10,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 13:00:00\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": \"2023-05-05 11:18:32\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "refund payment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('payment_id', 922);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/refund/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"refund",
"{{payment_id}}"
]
}
},
"response": [
{
"name": "get payment",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/payments/{{payment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"{{payment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 11:32:09 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "409"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved payment.\",\n \"data\": {\n \"payment\": {\n \"id\": 312,\n \"customerBookingId\": 268,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 10,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-05 13:00:00\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": \"2023-05-05 11:18:32\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n }\n}"
}
]
},
{
"name": "get payment amount",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\", // required; string; type of booking; possible values: appointment, event, package\n \"bookings\": [ // required; array;\n {\n \"extras\": [\n {\n \"extraId\": 4,\n \"quantity\": 1\n }\n ],\n \"deposit\": true,\n \"persons\": 2,\n \"duration\": 1800\n }\n ],\n \"bookingStart\": \"2023-09-06 19:00\", // string; datetime format\n \"locationId\": 2, // integer\n \"providerId\": 1, // integer\n \"serviceId\": 1, // integer\n \"recurring\": [], // array\n \"couponCode\": null // string\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/amount",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"amount"
]
}
},
"response": [
{
"name": "get payment amount appointment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\",\n \"bookings\": [\n {\n \"extras\": [\n {\n \"extraId\": 4,\n \"quantity\": 1\n }\n ],\n \"deposit\": true,\n \"persons\": 2,\n \"duration\": 1800\n }\n ],\n \"bookingStart\": \"2023-09-06 19:00\",\n \"locationId\": 2,\n \"providerId\": 1,\n \"serviceId\": 1,\n \"recurring\": [],\n \"couponCode\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/amount",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"amount"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "html",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 09:15:41 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "54"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "text/html; charset=UTF-8"
}
],
"cookie": [],
"body": "{\"message\":null,\"data\":{\"amount\":28,\"currency\":\"USD\"}}"
},
{
"name": "get payment amount event",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\",\n \"bookings\": [\n {\n \"deposit\": true,\n \"persons\": 2\n }\n ],\n \"eventId\": 80,\n \"couponCode\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/amount",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"amount"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "html",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 09:35:52 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "55"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "text/html; charset=UTF-8"
}
],
"cookie": [],
"body": "{\"message\":null,\"data\":{\"amount\":220,\"currency\":\"USD\"}}"
},
{
"name": "get payment amount package",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"package\",\n \"packageId\": 1,\n \"couponCode\": \"kupon\",\n \"deposit\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/amount",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"amount"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "html",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 09:42:09 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "56"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "text/html; charset=UTF-8"
}
],
"cookie": [],
"body": "{\"message\":null,\"data\":{\"amount\":32.4,\"currency\":\"USD\"}}"
}
]
},
{
"name": "create payment link",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"appointment\",\n \"bookingId\": 901\n },\n \"paymentMethod\": \"payPal\",\n \"redirectUrl\": null // customer panel url by default\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/link",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"link"
]
}
},
"response": [
{
"name": "create payment link appointment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"appointment\",\n \"bookingId\": 901\n },\n \"paymentMethod\": \"payPal\",\n \"redirectUrl\": null // customer panel url by default\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/link",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"link"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 10:26:02 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Content-Length",
"value": "169"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"message\": null,\n \"data\": {\n \"paymentLink\": \"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-3D332917B6694771R&useraction=commit\",\n \"error\": null\n }\n}"
},
{
"name": "create payment link event",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"event\",\n \"bookingId\": 898\n },\n \"paymentMethod\": \"payPal\",\n \"redirectUrl\": null // customer panel url by default\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/link",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"link"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 10:41:26 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Content-Length",
"value": "169"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"message\": null,\n \"data\": {\n \"paymentLink\": \"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1G893943V96986600&useraction=commit\",\n \"error\": null\n }\n}"
},
{
"name": "create payment link package",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"data\": {\n \"type\": \"package\",\n \"packageCustomerId\": 70\n },\n \"paymentMethod\": \"payPal\",\n \"redirectUrl\": null // customer panel url by default\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/payments/link",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"payments",
"link"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 25 Aug 2023 11:10:38 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Content-Length",
"value": "170"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=99"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json",
"name": "Content-Type",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"message\": null,\n \"data\": {\n \"paymentLink\": \"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-3XF43425HX3549151&useraction=commit\",\n \"error\": null\n }\n}"
}
]
}
]
},
{
"name": "Coupons",
"item": [
{
"name": "validate coupon",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"code\": \"COUPON\", // required; string;\n \"id\": 1, // required; integer; entity id (service/event/package id)\n \"type\": \"appointment\", // required; string; possible values: appointment, event, package\n \"user\": { // required; object\n \"firstName\": \"Amelia\", \n \"lastName\": \"Test\",\n \"email\": \"amelia@test.test\"\n },\n \"count\": 1 // integer; used when validating coupons for all recurring bookings; count = number of bookings\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/coupons/validate",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"coupons",
"validate"
]
}
},
"response": [
{
"name": "validate coupon",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"code\": \"COUPON\",\n \"id\": 1,\n \"type\": \"appointment\",\n \"user\": {\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"email\": \"amelia@test.test\"\n },\n \"count\": 1\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/coupons/validate",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"coupons",
"validate"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:45:30 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "300"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved coupon.\",\n \"data\": {\n \"coupon\": {\n \"id\": 5,\n \"code\": \"COUPON\",\n \"discount\": 0,\n \"deduction\": 10,\n \"limit\": 100,\n \"customerLimit\": 2,\n \"used\": 0,\n \"notificationInterval\": 0,\n \"notificationRecurring\": false,\n \"status\": \"visible\",\n \"serviceList\": [],\n \"eventList\": [],\n \"expirationDate\": \"2023-05-06\"\n },\n \"limit\": 2\n }\n}"
}
]
}
]
},
{
"name": "Timeslots",
"item": [
{
"name": "get slots",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/slots&monthsLoad=1&locationId=2&serviceId=3&serviceDuration=1800&providerIds=3&group=1&page=booking&persons=1&startDateTime=2023-04-01&extras=[]&excludeAppointmentId=null",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"slots&monthsLoad=1&locationId=2&serviceId=3&serviceDuration=1800&providerIds=3&group=1&page=booking&persons=1&startDateTime=2023-04-01&extras=[]&excludeAppointmentId=null"
]
}
},
"response": [
{
"name": "get slots",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/slots&monthsLoad=1&locationId=2&serviceId=3&serviceDuration=1800&providerIds=3&group=1&page=booking&persons=1&startDateTime=2023-04-01&extras=[]&excludeAppointmentId=null",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"slots&monthsLoad=1&locationId=2&serviceId=3&serviceDuration=1800&providerIds=3&group=1&page=booking&persons=1&startDateTime=2023-04-01&extras=[]&excludeAppointmentId=null"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:32:05 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "2431"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved free slots\",\n \"data\": {\n \"minimum\": \"2023-04-28 16:32\",\n \"maximum\": \"2024-04-27 16:32\",\n \"slots\": {\n \"2023-05-01\": {\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-05-08\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-05-15\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-05-22\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-05-29\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-06-05\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n },\n \"2023-06-12\": {\n \"09:00\": [\n [\n 3,\n 2\n ]\n ],\n \"09:30\": [\n [\n 3,\n 2\n ]\n ],\n \"10:00\": [\n [\n 3,\n 2\n ]\n ],\n \"10:30\": [\n [\n 3,\n 2\n ]\n ],\n \"11:00\": [\n [\n 3,\n 2\n ]\n ],\n \"11:30\": [\n [\n 3,\n 2\n ]\n ],\n \"12:00\": [\n [\n 3,\n 2\n ]\n ],\n \"12:30\": [\n [\n 3,\n 2\n ]\n ],\n \"13:00\": [\n [\n 3,\n 2\n ]\n ],\n \"13:30\": [\n [\n 3,\n 2\n ]\n ],\n \"14:00\": [\n [\n 3,\n 2\n ]\n ],\n \"14:30\": [\n [\n 3,\n 2\n ]\n ],\n \"15:00\": [\n [\n 3,\n 2\n ]\n ],\n \"15:30\": [\n [\n 3,\n 2\n ]\n ],\n \"16:00\": [\n [\n 3,\n 2\n ]\n ],\n \"16:30\": [\n [\n 3,\n 2\n ]\n ]\n }\n },\n \"occupied\": {\n \"2023-04-28\": {\n \"12:00\": [\n [\n 3,\n 1,\n 0,\n 3\n ]\n ]\n },\n \"2023-05-01\": {\n \"09:00\": [\n [\n 3,\n 1,\n 0,\n 5\n ]\n ],\n \"11:00\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"12:00\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"12:30\": [\n [\n 3,\n 1,\n 0,\n 4\n ]\n ]\n },\n \"2023-05-02\": {\n \"12:30\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"13:30\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"14:30\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ]\n },\n \"2023-05-03\": {\n \"11:00\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"11:30\": [\n [\n 3,\n 1,\n 0,\n 6\n ]\n ],\n \"15:30\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ]\n },\n \"2023-05-04\": {\n \"11:00\": [\n [\n 3,\n 1,\n 0,\n 6\n ]\n ],\n \"15:00\": [\n [\n 3,\n 1,\n 0,\n 1\n ]\n ],\n \"16:30\": [\n [\n 3,\n 1,\n 0,\n 6\n ]\n ]\n },\n \"2023-05-05\": {\n \"11:00\": [\n [\n 3,\n 1,\n 0,\n 6\n ]\n ]\n }\n },\n \"busyness\": {\n \"2023-05-01\": 31,\n \"2023-05-08\": 0,\n \"2023-05-15\": 0,\n \"2023-05-22\": 0,\n \"2023-05-29\": 0,\n \"2023-06-05\": 0,\n \"2023-06-12\": 0\n }\n }\n}"
}
]
}
]
},
{
"name": "Appointments",
"item": [
{
"name": "get appointment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('appointment_id', 1)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"{{appointment_id}}"
]
}
},
"response": [
{
"name": "get appointment",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"{{appointment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:17:16 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "1380"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved appointment\",\n \"data\": {\n \"appointment\": {\n \"id\": 1,\n \"bookings\": [\n {\n \"id\": 1,\n \"customerId\": 2,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": null,\n \"info\": \"{\\\"firstName\\\":\\\"Milica\\\",\\\"lastName\\\":\\\"Snake\\\",\\\"phone\\\":\\\"+381631652656\\\",\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 1,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 1,\n \"customerBookingId\": 1,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 20,\n \"gateway\": \"stripe\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-03-13 13:52:49\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"approved\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": null,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-03-21 10:00:00\",\n \"bookingEnd\": \"2023-03-21 10:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"recurring\": []\n }\n}"
}
]
},
{
"name": "add appointment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-09-05 19:00\", // required; string in datetime format;\n \"bookings\": [ // required; array; \n {\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\", // string, encoded json\n \"customerId\": 10, // integer\n \"duration\": 1800, // integer\n \"extras\": [], // array; selected extras\n \"packageCustomerId\": null, // integer; \n \"persons\": 1, // integer; number of people in booking\n \"status\": \"approved\" // string; status of appointment; (approved/pending)\n }\n ],\n \"internalNotes\": \"\", // string; internal note\n \"lessonSpace\": \"\", // string; lesson space id\n \"locationId\": 2, // integer\n \"notifyParticipants\": 1, // required; boolean (1/0)\n \"providerId\": 1, // required\n \"recurring\": [], // array\n \"serviceId\": 1, // required; integer\n \"timeZone\": \"Europe/Belgrade\", // optional\n \"utc\": false // optional; boolean (true/false); whether date_time is sent in UTC\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments"
]
}
},
"response": [
{
"name": "add appointment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-05-11 10:00\",\n \"bookings\": [\n {\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"customer\": {\n \"id\": 10,\n \"status\": \"visible\",\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"email\": \"ameliatest@test.test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"\",\n \"gender\": \"\",\n \"externalId\": 8,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"birthday\": \"\",\n \"note\": \"\",\n \"lastAppointment\": \"2023-05-03 15:00:00\",\n \"totalAppointments\": 10,\n \"countPendingAppointments\": \"0\",\n \"wpName\": \"ameliatesttest-test\",\n \"wpUserPhotoUrl\": \"http://0.gravatar.com/avatar/6badf27972c65effc8ae7aefca4ff870?s=96&d=mm&r=g\"\n },\n \"customerId\": 10,\n \"duration\": 1800,\n \"extras\": [],\n \"id\": 0,\n \"packageCustomerId\": null,\n \"payments\": [],\n \"persons\": 1,\n \"status\": \"approved\"\n }\n ],\n \"id\": 0,\n \"internalNotes\": \"\",\n \"lessonSpace\": \"\",\n \"locationId\": 1,\n \"notifyParticipants\": 1,\n \"payment\": {\n \"amount\": 0,\n \"gateway\": \"onSite\"\n },\n \"providerId\": 1,\n \"recurring\": [],\n \"removedBookings\": [],\n \"serviceId\": 1,\n \"utc\": false\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:38:08 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "1634"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully added new appointment\",\n \"data\": {\n \"appointment\": {\n \"id\": 173,\n \"bookings\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": {\n \"id\": 10,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"ameliatest@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": 8,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 173,\n \"persons\": 1,\n \"token\": \"070b697df9\",\n \"payments\": [\n {\n \"id\": 295,\n \"customerBookingId\": 254,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-11 10:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": null,\n \"actionsCompleted\": true,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": true\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"approved\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-11 10:00:00\",\n \"bookingEnd\": \"2023-05-11 10:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"recurring\": []\n }\n}"
}
]
},
{
"name": "update appointment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('appointment_id', 682)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-09-05 10:00:00\",\n \"locationId\": 1,\n \"providerId\": 3\n //send fields that should be changed, unless bookings are changed\n //for now you must send array of all bookings with all fields, if bookings should be updated\n //use /api/v1/appointments/status/{id} endpoint for updateing appointment status\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"{{appointment_id}}"
]
}
},
"response": [
{
"name": "update appointment",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-05-20 10:00\",\n \"bookings\": [\n {\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"customer\": {\n \"id\": 10,\n \"status\": \"visible\",\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"email\": \"ameliatest@test.test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"\",\n \"gender\": \"\",\n \"externalId\": 8,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"birthday\": \"\",\n \"note\": \"\",\n \"lastAppointment\": \"2023-05-03 15:00:00\",\n \"totalAppointments\": 10,\n \"countPendingAppointments\": \"0\",\n \"wpName\": \"ameliatesttest-test\",\n \"wpUserPhotoUrl\": \"http://0.gravatar.com/avatar/6badf27972c65effc8ae7aefca4ff870?s=96&d=mm&r=g\"\n },\n \"customerId\": 10,\n \"duration\": 1800,\n \"extras\": [],\n \"id\": 254,\n \"packageCustomerId\": null,\n \"payments\": [],\n \"persons\": 1,\n \"status\": \"approved\"\n }\n ],\n \"id\": 173,\n \"internalNotes\": \"\",\n \"lessonSpace\": \"\",\n \"locationId\": 1,\n \"notifyParticipants\": 1,\n \"payment\": {\n \"amount\": 0,\n \"gateway\": \"onSite\"\n },\n \"providerId\": 1,\n \"recurring\": [],\n \"removedBookings\": [],\n \"serviceId\": 1,\n \"utc\": false\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"{{appointment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:42:53 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "1746"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully updated appointment\",\n \"data\": {\n \"appointment\": {\n \"id\": 173,\n \"bookings\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": {\n \"id\": 10,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"ameliatest@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": 8,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [],\n \"utcOffset\": null,\n \"aggregatedPrice\": null,\n \"isChangedStatus\": false,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"approved\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": \"AQMkADAwATYwMAItZTk0ZS1lMGRmLTAwAi0wMAoARgAAA3egvCudOo1GsyywV8xCQ2wHANjP2dT7pGFAu0b6VBSGJOoAAAIBDQAAANjP2dT7pGFAu0b6VBSGJOoABmKTp1wAAAA=\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-20 10:00:00\",\n \"bookingEnd\": \"2023-05-20 10:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": true,\n \"resources\": []\n },\n \"appointmentStatusChanged\": false,\n \"appointmentRescheduled\": true,\n \"initialAppointmentDateTime\": {\n \"bookingStart\": \"2023-05-11 10:00:00\",\n \"bookingEnd\": \"2023-05-11 10:30:00\"\n },\n \"bookingsWithChangedStatus\": [],\n \"appointmentEmployeeChanged\": null,\n \"appointmentZoomUserChanged\": false,\n \"appointmentZoomUsersLicenced\": false,\n \"lessonSpaceChanged\": false\n }\n}"
}
]
},
{
"name": "update appointment status",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('appointment_id', 682)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"pending\", // required; possible values: approved, pending, canceled, rejected, no-show\n \"packageCustomerId\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments/status/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"status",
"{{appointment_id}}"
]
}
},
"response": [
{
"name": "update appointment status",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"pending\",\n \"packageCustomerId\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/appointments/status/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"status",
"{{appointment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:46:45 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "2322"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully updated appointment status\",\n \"data\": {\n \"appointment\": {\n \"id\": 173,\n \"bookings\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": null,\n \"status\": \"pending\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 173,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 295,\n \"customerBookingId\": 254,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-11 10:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"pending\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": \"AQMkADAwATYwMAItZTk0ZS1lMGRmLTAwAi0wMAoARgAAA3egvCudOo1GsyywV8xCQ2wHANjP2dT7pGFAu0b6VBSGJOoAAAIBDQAAANjP2dT7pGFAu0b6VBSGJOoABmKTp1wAAAA=\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-20 10:00:00\",\n \"bookingEnd\": \"2023-05-20 10:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"bookingsWithChangedStatus\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": null,\n \"status\": \"pending\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 173,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 295,\n \"customerBookingId\": 254,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-11 10:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"status\": \"pending\",\n \"oldStatus\": \"approved\",\n \"message\": \"Appointment status has been changed to pending\"\n }\n}"
}
]
},
{
"name": "delete appointment",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('appointment_id', 173)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments/delete/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"delete",
"{{appointment_id}}"
]
}
},
"response": [
{
"name": "delete appointment",
"originalRequest": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments/delete/{{appointment_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments",
"delete",
"{{appointment_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:25:55 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "2082"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully deleted appointment\",\n \"data\": {\n \"appointment\": {\n \"id\": 173,\n \"bookings\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": null,\n \"status\": \"rejected\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 173,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 295,\n \"customerBookingId\": 254,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-11 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"rejected\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-11 09:00:00\",\n \"bookingEnd\": \"2023-05-11 09:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"bookingsWithChangedStatus\": [\n {\n \"id\": 254,\n \"customerId\": 10,\n \"customer\": null,\n \"status\": \"pending\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 173,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 295,\n \"customerBookingId\": 254,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-11 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ]\n }\n}"
}
]
},
{
"name": "get appointments",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments&dates=2023-05-09,2023-05-10&page=1&skipServices=1&skipProviders=1",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments&dates=2023-05-09,2023-05-10&page=1&skipServices=1&skipProviders=1"
]
}
},
"response": [
{
"name": "get appointments",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/appointments&dates=2023-05-09,2023-05-10&page=1&skipServices=1&skipProviders=1",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"appointments&dates=2023-05-09,2023-05-10&page=1&skipServices=1&skipProviders=1"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:22:51 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "6889"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved appointments\",\n \"data\": {\n \"appointments\": {\n \"2023-05-09\": {\n \"date\": \"2023-05-09\",\n \"appointments\": [\n {\n \"id\": 151,\n \"bookings\": [\n {\n \"id\": 228,\n \"customerId\": 16,\n \"customer\": {\n \"id\": 16,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.com\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 100,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 151,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 269,\n \"customerBookingId\": 228,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-09 11:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": \"2023-04-25 10:55:33\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": \"2023-04-25 10:55:33\",\n \"actionsCompleted\": null\n },\n {\n \"id\": 229,\n \"customerId\": 17,\n \"customer\": {\n \"id\": 17,\n \"firstName\": \"Avatar\",\n \"lastName\": \"Last Airbender\",\n \"birthday\": null,\n \"email\": \"suraj@atla.aang\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 100,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": null,\n \"appointmentId\": 151,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 270,\n \"customerBookingId\": 229,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-09 11:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": \"2023-04-25 10:55:58\",\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": \"2023-04-25 10:55:58\",\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"approved\",\n \"serviceId\": 2,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": \"omia1hbnknkcha7addq7nc8aes\",\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": {\n \"id\": 83025905325,\n \"startUrl\": \"https://us06web.zoom.us/s/83025905325?zak=eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjbGllbnRzbSIsInVpZCI6IkNGUUQ1bV9BU1pPNXpLTE5VbS1pOFEiLCJpc3MiOiJ3ZWIiLCJzayI6IjAiLCJzdHkiOjEsIndjZCI6InVzMDYiLCJjbHQiOjAsIm1udW0iOiI4MzAyNTkwNTMyNSIsImV4cCI6MTY4MjQyNzM1OCwiaWF0IjoxNjgyNDIwMTU4LCJhaWQiOiJpeV8zd01JUFRyLTdyclZZSnZnM01nIiwiY2lkIjoiIn0.rsCwEyo4mqLRSzs9nXWEt2yFg7MHyMdGgmTfgw12zEc\",\n \"joinUrl\": \"https://us06web.zoom.us/j/83025905325?pwd=UWw5Y0NTTVpVc3lEb21iNmxvT2Nodz09\"\n },\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-09 11:00:00\",\n \"bookingEnd\": \"2023-05-09 11:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": [],\n \"cancelable\": true,\n \"reschedulable\": true,\n \"past\": false,\n \"isGroup\": false\n }\n ]\n },\n \"2023-05-10\": {\n \"date\": \"2023-05-10\",\n \"appointments\": [\n {\n \"id\": 157,\n \"bookings\": [\n {\n \"id\": 237,\n \"customerId\": 2,\n \"customer\": {\n \"id\": 2,\n \"firstName\": \"Milica\",\n \"lastName\": \"Snake\",\n \"birthday\": null,\n \"email\": \"snakemilica@yahoo.com\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 100,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Milica\\\",\\\"lastName\\\":\\\"Snake\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 157,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 277,\n \"customerBookingId\": 237,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 120,\n \"gateway\": \"wc\",\n \"gatewayTitle\": \"Check payments\",\n \"dateTime\": \"2023-04-25 16:32:11\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": \"2023-04-25 14:32:11\",\n \"actionsCompleted\": null,\n \"wcOrderId\": 330,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": 20\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": \"2023-04-25 14:32:11\",\n \"actionsCompleted\": null\n },\n {\n \"id\": 238,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 100,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 157,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 278,\n \"customerBookingId\": 238,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 120,\n \"gateway\": \"wc\",\n \"gatewayTitle\": \"Check payments\",\n \"dateTime\": \"2023-04-25 16:42:44\",\n \"status\": \"paid\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": \"2023-04-25 14:42:44\",\n \"actionsCompleted\": null,\n \"wcOrderId\": 331,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": 20\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": \"2023-04-25 14:42:44\",\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"pending\",\n \"serviceId\": 2,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": \"9v21b37kr4gsi19tabjtt97404\",\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-10 11:00:00\",\n \"bookingEnd\": \"2023-05-10 11:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": [],\n \"cancelable\": true,\n \"reschedulable\": true,\n \"past\": false,\n \"isGroup\": false\n }\n ]\n }\n },\n \"availablePackageBookings\": [],\n \"emptyPackageBookings\": [],\n \"occupied\": [],\n \"total\": 2,\n \"totalApproved\": 1,\n \"totalPending\": 1,\n \"currentUser\": {\n \"id\": null,\n \"firstName\": \"AmeliaApi\",\n \"lastName\": \"AmeliaApi\",\n \"birthday\": null,\n \"email\": \"admin@amelia.api\",\n \"phone\": null,\n \"type\": \"admin\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null\n }\n }\n}"
}
]
}
]
},
{
"name": "Bookings",
"item": [
{
"name": "add booking",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\", // required; string\n \"bookings\": [ // required; array\n {\n \"extras\": [],\n \"customFields\": {\n \"1\": { // id of custom field\n \"label\": \"text\",\n \"type\": \"text\",\n \"value\": \"custom field value\"\n }\n },\n \"deposit\": true,\n \"locale\": \"en_US\",\n \"utcOffset\": null,\n \"persons\": 1,\n \"customerId\": null,\n \"customer\": {\n \"id\": null,\n \"firstName\": \"Rob\",\n \"lastName\": \"Stark\",\n \"email\": \"robstark@test.test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"\",\n \"externalId\": null\n },\n \"duration\": 1800\n }\n ],\n \"payment\": {\n \"gateway\": \"onSite\",\n \"currency\": \"USD\",\n \"data\": {}\n },\n \"recaptcha\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"bookingStart\": \"2023-09-06 19:30\",\n \"notifyParticipants\": 1,\n \"locationId\": 2,\n \"providerId\": 1,\n \"serviceId\": 1,\n \"utcOffset\": null,\n \"recurring\": [],\n \"package\": [],\n \"couponCode\": null,\n \"runInstantPostBookingActions\": false // whether to run post booking actions (sending emails, adding google calendar events, creating a zoom meeting) in this api call\n // false by default, call /bookings/success/{booking_id} endpoint\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"response": [
{
"name": "add booking",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\",\n \"bookings\": [\n {\n \"extras\": [],\n \"customFields\": {\n \"1\": {\n \"label\": \"text\",\n \"type\": \"text\",\n \"value\": \"custom field value\"\n }\n },\n \"deposit\": true,\n \"locale\": \"en_US\",\n \"utcOffset\": null,\n \"persons\": 1,\n \"customerId\": null,\n \"customer\": {\n \"id\": null,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"email\": \"amelia@test.test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"\",\n \"externalId\": null\n },\n \"duration\": 1800\n }\n ],\n \"payment\": {\n \"gateway\": \"onSite\",\n \"currency\": \"USD\",\n \"data\": {}\n },\n \"recaptcha\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"componentProps\": null,\n \"returnUrl\": \"http://localhost/amelia/index.php/booking/\",\n \"bookingStart\": \"2023-05-22 12:30\",\n \"notifyParticipants\": 1,\n \"locationId\": 1,\n \"providerId\": 3,\n \"serviceId\": 1,\n \"utcOffset\": null,\n \"recurring\": [],\n \"package\": [],\n \"couponCode\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:57:02 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "5670"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully added booking\",\n \"data\": {\n \"type\": \"appointment\",\n \"appointment\": {\n \"id\": 175,\n \"bookings\": [\n {\n \"id\": 256,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"custom field value\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 175,\n \"persons\": 1,\n \"token\": \"85c63617ef\",\n \"payments\": [\n {\n \"id\": 297,\n \"customerBookingId\": 256,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-22 12:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": false\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": null,\n \"status\": \"approved\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 3,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": {\n \"id\": 1,\n \"status\": \"visible\",\n \"name\": \"location1\",\n \"description\": \"\",\n \"address\": \"\",\n \"phone\": \"\",\n \"latitude\": 40.748441,\n \"longitude\": -73.987853,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"\",\n \"translations\": null\n },\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-22 12:30:00\",\n \"bookingEnd\": \"2023-05-22 13:00:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"booking\": {\n \"id\": 256,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"custom field value\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 175,\n \"persons\": 1,\n \"token\": \"85c63617ef\",\n \"payments\": [\n {\n \"id\": 297,\n \"customerBookingId\": 256,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-22 12:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": false\n },\n \"utcTime\": [\n {\n \"start\": \"2023-05-22 10:30:00\",\n \"end\": \"2023-05-22 11:00:00\"\n }\n ],\n \"appointmentStatusChanged\": false,\n \"recurring\": [],\n \"package\": [],\n \"packageId\": null,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\"\n },\n \"bookable\": {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": null,\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n \"paymentId\": 297,\n \"packageCustomerId\": null,\n \"payment\": {\n \"id\": 297,\n \"customerBookingId\": 256,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-22 12:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"appointment\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n },\n \"customerCabinetUrl\": \"http://localhost/static_amelia/index.php/customer-panel\"\n }\n}"
}
]
},
{
"name": "add event booking",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\", // required\n \"bookings\": [ // required\n {\n \"customer\": {\n \"email\": \"amelia@test.test\",\n \"externalId\": null,\n \"firstName\": \"Amelia\",\n \"id\": null,\n \"lastName\": \"Test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"rs\"\n },\n \"customFields\": {\n \"1\": {\n \"label\": \"text\",\n \"value\": \"\",\n \"type\": \"text\"\n }\n },\n \"customerId\": 0,\n \"persons\": 1,\n \"ticketsData\": null,\n \"utcOffset\": null,\n \"deposit\": false\n }\n ],\n \"payment\": {\n \"amount\": \"20.00\",\n \"gateway\": \"onSite\",\n \"currency\": \"USD\"\n },\n \"recaptcha\": false,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"couponCode\": \"\",\n \"eventId\": 80\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"response": [
{
"name": "add event booking",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\",\n \"bookings\": [\n {\n \"customer\": {\n \"email\": \"amelia@test.test\",\n \"externalId\": null,\n \"firstName\": \"Amelia\",\n \"id\": null,\n \"lastName\": \"Test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"rs\"\n },\n \"customFields\": {\n \"1\": {\n \"label\": \"text\",\n \"value\": \"\",\n \"type\": \"text\"\n }\n },\n \"customerId\": 0,\n \"extras\": [],\n \"persons\": 1,\n \"ticketsData\": null,\n \"utcOffset\": null,\n \"deposit\": false\n }\n ],\n \"payment\": {\n \"amount\": \"20.00\",\n \"gateway\": \"onSite\",\n \"currency\": \"USD\"\n },\n \"recaptcha\": false,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"couponCode\": \"\",\n \"returnUrl\": \"http://localhost/amelia/index.php/event-list/\",\n \"eventId\": 16\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:04:18 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully added booking\",\n \"data\": {\n \"type\": \"event\",\n \"event\": {\n \"id\": 16,\n \"name\": \"test5\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"general\\\":{\\\"minimumTimeRequirementPriorToCanceling\\\":null,\\\"redirectUrlAfterAppointment\\\":null},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true}}\",\n \"fullPayment\": false,\n \"bookings\": [\n {\n \"id\": 258,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": \"37dac22dac\",\n \"payments\": [\n {\n \"id\": 299,\n \"customerBookingId\": 258,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-20 15:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n }\n ],\n \"periods\": [\n {\n \"id\": 16,\n \"eventId\": 16,\n \"periodStart\": \"2023-05-20 15:00:00\",\n \"periodEnd\": \"2023-05-20 23:00:00\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookings\": [],\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null\n }\n ],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": \"same\",\n \"bookingClosesRec\": \"same\",\n \"ticketRangeRec\": \"calculate\",\n \"status\": \"approved\",\n \"recurring\": {\n \"cycle\": \"monthly\",\n \"order\": 3,\n \"until\": \"2023-05-21 02:00:00\",\n \"cycleInterval\": 1,\n \"monthlyRepeat\": \"each\",\n \"monthDate\": \"2023-03-20 14:00:00\",\n \"monthlyOnRepeat\": null,\n \"monthlyOnDay\": null\n },\n \"maxCapacity\": 70,\n \"maxCustomCapacity\": null,\n \"show\": true,\n \"tags\": [],\n \"customTickets\": [],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": 1,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": 14,\n \"created\": \"2023-03-17 16:17:27\",\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": false,\n \"bookMultipleTimes\": true,\n \"translations\": null,\n \"customPricing\": false,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": false,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null\n },\n \"booking\": {\n \"id\": 258,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": \"37dac22dac\",\n \"payments\": [\n {\n \"id\": 299,\n \"customerBookingId\": 258,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-20 15:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n },\n \"utcTime\": [\n {\n \"start\": \"2023-05-20 13:00:00\",\n \"end\": \"2023-05-20 21:00:00\"\n }\n ],\n \"appointmentStatusChanged\": false,\n \"recurring\": [],\n \"package\": [],\n \"packageId\": null,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\"\n },\n \"bookable\": {\n \"id\": 16,\n \"name\": \"test5\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"general\\\":{\\\"minimumTimeRequirementPriorToCanceling\\\":null,\\\"redirectUrlAfterAppointment\\\":null},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true}}\",\n \"fullPayment\": false,\n \"bookings\": [\n {\n \"id\": 173,\n \"customerId\": 17,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 0,\n \"coupon\": null,\n \"customFields\": null,\n \"info\": \"{\\\"firstName\\\":\\\"Avatar\\\",\\\"lastName\\\":\\\"Last Airbender\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null\n },\n {\n \"id\": 174,\n \"customerId\": 18,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": null,\n \"info\": \"{\\\"firstName\\\":\\\"Ivana\\\",\\\"lastName\\\":\\\"Nikolic\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null\n },\n {\n \"id\": 257,\n \"customerId\": 11,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null\n },\n {\n \"id\": 258,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 1,\n \"token\": \"37dac22dac\",\n \"payments\": [\n {\n \"id\": 299,\n \"customerBookingId\": 258,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-20 15:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n }\n ],\n \"periods\": [\n {\n \"id\": 16,\n \"eventId\": 16,\n \"periodStart\": \"2023-05-20 15:00:00\",\n \"periodEnd\": \"2023-05-20 23:00:00\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookings\": [],\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null\n }\n ],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": \"same\",\n \"bookingClosesRec\": \"same\",\n \"ticketRangeRec\": \"calculate\",\n \"status\": \"approved\",\n \"recurring\": {\n \"cycle\": \"monthly\",\n \"order\": 3,\n \"until\": \"2023-05-21 02:00:00\",\n \"cycleInterval\": 1,\n \"monthlyRepeat\": \"each\",\n \"monthDate\": \"2023-03-20 14:00:00\",\n \"monthlyOnRepeat\": null,\n \"monthlyOnDay\": null\n },\n \"maxCapacity\": 70,\n \"maxCustomCapacity\": null,\n \"show\": true,\n \"tags\": [],\n \"customTickets\": [],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": 1,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": 14,\n \"created\": \"2023-03-17 16:17:27\",\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": false,\n \"bookMultipleTimes\": true,\n \"translations\": null,\n \"customPricing\": false,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": false,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null\n },\n \"paymentId\": 299,\n \"packageCustomerId\": null,\n \"payment\": {\n \"id\": 299,\n \"customerBookingId\": 258,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-20 15:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n },\n \"customerCabinetUrl\": \"http://localhost/static_amelia/index.php/customer-panel\"\n }\n}"
}
]
},
{
"name": "add event ticket booking",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\", // required\n \"bookings\": [ // required\n {\n \"customer\": {\n \"email\": \"amelia@test.test\",\n \"externalId\": null,\n \"firstName\": \"Amelia\",\n \"id\": null,\n \"lastName\": \"Test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"rs\"\n },\n \"customFields\": {\n \"1\": {\n \"label\": \"text\",\n \"value\": \"\",\n \"type\": \"text\"\n }\n },\n \"customerId\": 0,\n \"extras\": [],\n \"persons\": 1,\n \"ticketsData\": [\n {\n \"eventTicketId\": 28,\n \"persons\": 2\n }\n ],\n \"utcOffset\": null,\n \"deposit\": false\n }\n ],\n \"payment\": {\n \"amount\": \"40.00\",\n \"gateway\": \"onSite\",\n \"currency\": \"USD\"\n },\n \"recaptcha\": false,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"couponCode\": \"\",\n \"eventId\": 66\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"response": [
{
"name": "add event ticket booking",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\",\n \"bookings\": [\n {\n \"customer\": {\n \"email\": \"amelia@test.test\",\n \"externalId\": null,\n \"firstName\": \"Amelia\",\n \"id\": null,\n \"lastName\": \"Test\",\n \"phone\": \"\",\n \"countryPhoneIso\": \"rs\"\n },\n \"customFields\": {\n \"1\": {\n \"label\": \"text\",\n \"value\": \"\",\n \"type\": \"text\"\n }\n },\n \"customerId\": 0,\n \"extras\": [],\n \"persons\": 1,\n \"ticketsData\": [\n {\n \"id\": 0,\n \"customerBookingId\": null,\n \"eventTicketId\": 25,\n \"persons\": 0,\n \"price\": 20,\n \"name\": \"ticket2\"\n },\n {\n \"id\": 0,\n \"customerBookingId\": null,\n \"eventTicketId\": 24,\n \"persons\": 2,\n \"price\": 10,\n \"name\": \"ticket1\"\n }\n ],\n \"utcOffset\": null,\n \"deposit\": false\n }\n ],\n \"payment\": {\n \"amount\": \"40.00\",\n \"gateway\": \"onSite\",\n \"currency\": \"USD\"\n },\n \"recaptcha\": false,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\",\n \"couponCode\": \"\",\n \"returnUrl\": \"http://localhost/amelia/index.php/event-list/\",\n \"eventId\": 54\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:12:37 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully added booking\",\n \"data\": {\n \"type\": \"event\",\n \"event\": {\n \"id\": 54,\n \"name\": \"tickets event\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"general\\\":{\\\"minimumTimeRequirementPriorToCanceling\\\":null,\\\"redirectUrlAfterAppointment\\\":null},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"bookings\": [\n {\n \"id\": 262,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": \"eace84d090\",\n \"payments\": [\n {\n \"id\": 303,\n \"customerBookingId\": 262,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-17 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [\n {\n \"id\": null,\n \"eventTicketId\": 25,\n \"customerBookingId\": null,\n \"persons\": null,\n \"price\": 20\n },\n {\n \"id\": null,\n \"eventTicketId\": 24,\n \"customerBookingId\": null,\n \"persons\": 2,\n \"price\": 10\n }\n ],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n }\n ],\n \"periods\": [\n {\n \"id\": 54,\n \"eventId\": 54,\n \"periodStart\": \"2023-05-17 09:00:00\",\n \"periodEnd\": \"2023-05-17 20:30:00\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookings\": [],\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null\n }\n ],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": \"same\",\n \"bookingClosesRec\": \"same\",\n \"ticketRangeRec\": \"calculate\",\n \"status\": \"approved\",\n \"recurring\": null,\n \"maxCapacity\": 1,\n \"maxCustomCapacity\": null,\n \"show\": true,\n \"tags\": [],\n \"customTickets\": [\n {\n \"id\": 25,\n \"eventId\": 54,\n \"name\": \"ticket2\",\n \"enabled\": true,\n \"price\": 20,\n \"dateRangePrice\": null,\n \"spots\": 20,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n },\n {\n \"id\": 24,\n \"eventId\": 54,\n \"name\": \"ticket1\",\n \"enabled\": true,\n \"price\": 10,\n \"dateRangePrice\": null,\n \"spots\": 10,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n }\n ],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": 1,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": null,\n \"created\": \"2023-04-28 16:05:24\",\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": true,\n \"bookMultipleTimes\": true,\n \"translations\": null,\n \"customPricing\": true,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": false,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null\n },\n \"booking\": {\n \"id\": 262,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": \"eace84d090\",\n \"payments\": [\n {\n \"id\": 303,\n \"customerBookingId\": 262,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-17 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [\n {\n \"id\": null,\n \"eventTicketId\": 25,\n \"customerBookingId\": null,\n \"persons\": null,\n \"price\": 20\n },\n {\n \"id\": null,\n \"eventTicketId\": 24,\n \"customerBookingId\": null,\n \"persons\": 2,\n \"price\": 10\n }\n ],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n },\n \"utcTime\": [\n {\n \"start\": \"2023-05-17 07:00:00\",\n \"end\": \"2023-05-17 18:30:00\"\n }\n ],\n \"appointmentStatusChanged\": false,\n \"recurring\": [],\n \"package\": [],\n \"packageId\": null,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\"\n },\n \"bookable\": {\n \"id\": 54,\n \"name\": \"tickets event\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"general\\\":{\\\"minimumTimeRequirementPriorToCanceling\\\":null,\\\"redirectUrlAfterAppointment\\\":null},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"bookings\": [\n {\n \"id\": 259,\n \"customerId\": 11,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 40,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": null,\n \"payments\": [],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [\n {\n \"id\": 45,\n \"eventTicketId\": 25,\n \"customerBookingId\": 259,\n \"persons\": 2,\n \"price\": 20\n }\n ],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null\n },\n {\n \"id\": 262,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": \"eace84d090\",\n \"payments\": [\n {\n \"id\": 303,\n \"customerBookingId\": 262,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-17 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [\n {\n \"id\": null,\n \"eventTicketId\": 25,\n \"customerBookingId\": null,\n \"persons\": null,\n \"price\": 20\n },\n {\n \"id\": null,\n \"eventTicketId\": 24,\n \"customerBookingId\": null,\n \"persons\": 2,\n \"price\": 10\n }\n ],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": false\n }\n ],\n \"periods\": [\n {\n \"id\": 54,\n \"eventId\": 54,\n \"periodStart\": \"2023-05-17 09:00:00\",\n \"periodEnd\": \"2023-05-17 20:30:00\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookings\": [],\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null\n }\n ],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": \"same\",\n \"bookingClosesRec\": \"same\",\n \"ticketRangeRec\": \"calculate\",\n \"status\": \"approved\",\n \"recurring\": null,\n \"maxCapacity\": 1,\n \"maxCustomCapacity\": null,\n \"show\": true,\n \"tags\": [],\n \"customTickets\": [\n {\n \"id\": 25,\n \"eventId\": 54,\n \"name\": \"ticket2\",\n \"enabled\": true,\n \"price\": 20,\n \"dateRangePrice\": null,\n \"spots\": 20,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n },\n {\n \"id\": 24,\n \"eventId\": 54,\n \"name\": \"ticket1\",\n \"enabled\": true,\n \"price\": 10,\n \"dateRangePrice\": null,\n \"spots\": 10,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n }\n ],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": 1,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": null,\n \"created\": \"2023-04-28 16:05:24\",\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": true,\n \"bookMultipleTimes\": true,\n \"translations\": null,\n \"customPricing\": true,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": false,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null\n },\n \"paymentId\": 303,\n \"packageCustomerId\": null,\n \"payment\": {\n \"id\": 303,\n \"customerBookingId\": 262,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-17 09:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": \"event\",\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n },\n \"customerCabinetUrl\": \"http://localhost/static_amelia/index.php/customer-panel\"\n }\n}"
}
]
},
{
"name": "post booking actions",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('booking_id', 900)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\",\n \"appointmentStatusChanged\": false, // required\n \"recurring\": [],\n \"packageId\": null,\n \"customerId\": 11,\n \"paymentId\": 916,\n \"packageCustomerId\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/success/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"success",
"{{booking_id}}"
]
}
},
"response": [
{
"name": "post booking actions",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\",\n \"appointmentStatusChanged\": false,\n \"recurring\": [],\n \"packageId\": null,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": \"{\\\"defaultLanguage\\\":\\\"en_US\\\"}\",\n \"gender\": null,\n \"locale\": \"en_US\",\n \"timeZone\": \"Europe/Belgrade\"\n },\n \"paymentId\": 297,\n \"packageCustomerId\": null\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/success/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"success",
"{{booking_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 13:59:09 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "48"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully get booking\",\n \"data\": []\n}"
}
]
},
{
"name": "delete booking",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('booking_id', 732)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/bookings/delete/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"delete",
"{{booking_id}}"
]
}
},
"response": [
{
"name": "delete booking",
"originalRequest": {
"method": "POST",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/bookings/delete/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"delete",
"{{booking_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 28 Apr 2023 14:22:53 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "2437"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully deleted booking\",\n \"data\": {\n \"appointment\": {\n \"id\": 175,\n \"bookings\": [\n {\n \"id\": 256,\n \"customerId\": 11,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"custom field value\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 175,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 297,\n \"customerBookingId\": 256,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-22 12:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": true,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"rejected\",\n \"serviceId\": 1,\n \"parentId\": null,\n \"providerId\": 3,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null,\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-05-22 12:30:00\",\n \"bookingEnd\": \"2023-05-22 13:00:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": null,\n \"resources\": []\n },\n \"bookingsWithChangedStatus\": [\n {\n \"id\": 256,\n \"customerId\": 11,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 20,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"custom field value\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 175,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 297,\n \"customerBookingId\": 256,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-05-22 12:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 1800,\n \"created\": null,\n \"actionsCompleted\": null\n }\n ],\n \"bookingDeleted\": true,\n \"appointmentDeleted\": true\n }\n}"
}
]
},
{
"name": "cancel booking",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('booking_id', 732)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"appointment\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/cancel/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"cancel",
"{{booking_id}}"
]
}
},
"response": [
{
"name": "cancel booking",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"event\" //appointment, event\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/cancel/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"cancel",
"{{booking_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 02 Jun 2023 12:55:59 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "4589"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=99"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully updated booking status\",\n \"data\": {\n \"event\": {\n \"id\": 66,\n \"name\": \"event tickets 1234\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":false,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"general\\\":{\\\"minimumTimeRequirementPriorToCanceling\\\":null,\\\"redirectUrlAfterAppointment\\\":null},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"bookings\": [\n {\n \"id\": 357,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 2,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 397,\n \"customerBookingId\": 357,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-06-06 12:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [\n {\n \"id\": 51,\n \"eventTicketId\": 28,\n \"customerBookingId\": 357,\n \"persons\": 2,\n \"price\": 1\n }\n ],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"isUpdated\": null\n }\n ],\n \"periods\": [\n {\n \"id\": 66,\n \"eventId\": 66,\n \"periodStart\": \"2023-06-06 14:00:00\",\n \"periodEnd\": \"2023-06-07 23:00:00\",\n \"zoomMeeting\": null,\n \"lessonSpace\": null,\n \"bookings\": [],\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": null\n }\n ],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": null,\n \"bookingClosesRec\": null,\n \"ticketRangeRec\": null,\n \"status\": \"approved\",\n \"recurring\": null,\n \"maxCapacity\": 1,\n \"maxCustomCapacity\": null,\n \"show\": true,\n \"tags\": [],\n \"customTickets\": [\n {\n \"id\": 29,\n \"eventId\": 66,\n \"name\": \"tiket2\",\n \"enabled\": true,\n \"price\": 2,\n \"dateRangePrice\": null,\n \"spots\": 100,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n },\n {\n \"id\": 28,\n \"eventId\": 66,\n \"name\": \"tiket1\",\n \"enabled\": true,\n \"price\": 1,\n \"dateRangePrice\": null,\n \"spots\": 100,\n \"dateRanges\": \"[]\",\n \"sold\": 0,\n \"translations\": null\n }\n ],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": 1,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": null,\n \"created\": \"2023-06-02 13:34:01\",\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": true,\n \"bookMultipleTimes\": true,\n \"translations\": null,\n \"customPricing\": true,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": null,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null,\n \"aggregatedPrice\": true\n },\n \"appointmentStatusChanged\": false,\n \"booking\": {\n \"id\": 357,\n \"customerId\": 11,\n \"customer\": {\n \"id\": 11,\n \"firstName\": \"Amelia\",\n \"lastName\": \"Test\",\n \"birthday\": null,\n \"email\": \"amelia@test.test\",\n \"phone\": null,\n \"type\": \"customer\",\n \"status\": null,\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"gender\": null\n },\n \"status\": \"canceled\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 2,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Amelia\\\",\\\"lastName\\\":\\\"Test\\\",\\\"phone\\\":null,\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": null,\n \"persons\": 0,\n \"token\": \"4e07da78a4\",\n \"payments\": [\n {\n \"id\": 397,\n \"customerBookingId\": 357,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-06-06 12:00:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"isUpdated\": null\n },\n \"type\": \"event\",\n \"status\": \"canceled\",\n \"message\": \"Appointment status has been changed to canceled\"\n }\n}"
}
]
},
{
"name": "reschedule booking",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"pm.variables.set('booking_id', 811)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-08-25 12:20\", // required\n \"utcOffset\": null,\n \"timeZone\": \"Europe/Belgrade\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/reassign/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"reassign",
"{{booking_id}}"
]
}
},
"response": [
{
"name": "cancel booking Copy",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"bookingStart\": \"2023-06-13 10:30\",\n \"utcOffset\": null,\n \"timeZone\": \"Europe/Belgrade\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{admin_ajax_url}}/bookings/reassign/{{booking_id}}",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"bookings",
"reassign",
"{{booking_id}}"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 02 Jun 2023 13:06:16 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "3475"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully updated appointment\",\n \"data\": {\n \"booking\": {\n \"id\": 348,\n \"customerId\": 2,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 45,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"},\\\"4\\\":{\\\"label\\\":\\\"Adresa\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Milica\\\",\\\"lastName\\\":\\\"Snake\\\",\\\"phone\\\":\\\"+381631652656\\\",\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 224,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 389,\n \"customerBookingId\": 348,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-06-13 14:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 3600,\n \"created\": \"2023-05-31 16:20:22\",\n \"actionsCompleted\": null,\n \"isUpdated\": null\n },\n \"newAppointment\": null,\n \"oldAppointment\": {\n \"id\": 224,\n \"bookings\": [\n {\n \"id\": 348,\n \"customerId\": 2,\n \"customer\": null,\n \"status\": \"approved\",\n \"extras\": [],\n \"couponId\": null,\n \"price\": 45,\n \"coupon\": null,\n \"customFields\": \"{\\\"1\\\":{\\\"label\\\":\\\"text\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"text\\\"},\\\"4\\\":{\\\"label\\\":\\\"Adresa\\\",\\\"value\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}}\",\n \"info\": \"{\\\"firstName\\\":\\\"Milica\\\",\\\"lastName\\\":\\\"Snake\\\",\\\"phone\\\":\\\"+381631652656\\\",\\\"locale\\\":\\\"en_US\\\",\\\"timeZone\\\":\\\"Europe\\\\/Belgrade\\\",\\\"urlParams\\\":null}\",\n \"appointmentId\": 224,\n \"persons\": 1,\n \"token\": null,\n \"payments\": [\n {\n \"id\": 389,\n \"customerBookingId\": 348,\n \"packageCustomerId\": null,\n \"parentId\": null,\n \"amount\": 0,\n \"gateway\": \"onSite\",\n \"gatewayTitle\": \"\",\n \"dateTime\": \"2023-06-13 14:30:00\",\n \"status\": \"pending\",\n \"data\": \"\",\n \"entity\": null,\n \"created\": null,\n \"actionsCompleted\": null,\n \"wcOrderId\": null,\n \"wcOrderUrl\": null,\n \"wcItemCouponValue\": null,\n \"wcItemTaxValue\": null\n }\n ],\n \"utcOffset\": null,\n \"aggregatedPrice\": true,\n \"isChangedStatus\": null,\n \"isLastBooking\": null,\n \"packageCustomerService\": null,\n \"ticketsData\": [],\n \"duration\": 3600,\n \"created\": \"2023-05-31 16:20:22\",\n \"actionsCompleted\": null,\n \"isUpdated\": null\n }\n ],\n \"notifyParticipants\": 1,\n \"internalNotes\": \"\",\n \"status\": \"approved\",\n \"serviceId\": 4,\n \"parentId\": null,\n \"providerId\": 1,\n \"locationId\": 1,\n \"provider\": null,\n \"service\": null,\n \"location\": null,\n \"googleCalendarEventId\": null,\n \"googleMeetUrl\": null,\n \"outlookCalendarEventId\": \"AQMkADAwATYwMAItZTk0ZS1lMGRmLTAwAi0wMAoARgAAA3egvCudOo1GsyywV8xCQ2wHANjP2dT7pGFAu0b6VBSGJOoAAAIBDQAAANjP2dT7pGFAu0b6VBSGJOoABnlwGXMAAAA=\",\n \"zoomMeeting\": {\n \"id\": 81512909066,\n \"startUrl\": \"https://us06web.zoom.us/s/81512909066?zak=eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjbGllbnRzbSIsInVpZCI6IkNGUUQ1bV9BU1pPNXpLTE5VbS1pOFEiLCJpc3MiOiJ3ZWIiLCJzayI6IjAiLCJzdHkiOjEsIndjZCI6InVzMDYiLCJjbHQiOjAsIm1udW0iOiI4MTUxMjkwOTA2NiIsImV4cCI6MTY4NTU1MDAyNSwiaWF0IjoxNjg1NTQyODI1LCJhaWQiOiJpeV8zd01JUFRyLTdyclZZSnZnM01nIiwiY2lkIjoiIn0.waNhyV1_bvVKv2ce-cW7jL8tRQVYj-veHRtZmZ_n3xI\",\n \"joinUrl\": \"https://us06web.zoom.us/j/81512909066?pwd=QW0yWkwzVkhCM1cvUEVsUWh2a3R2QT09\"\n },\n \"lessonSpace\": null,\n \"bookingStart\": \"2023-06-13 10:30:00\",\n \"bookingEnd\": \"2023-06-13 11:30:00\",\n \"type\": \"appointment\",\n \"isRescheduled\": true,\n \"resources\": []\n },\n \"oldAppointmentStatusChanged\": false,\n \"existingAppointment\": null,\n \"existingAppointmentStatusChanged\": false,\n \"initialAppointmentDateTime\": {\n \"bookingStart\": \"2023-06-13 14:30:00\",\n \"bookingEnd\": \"2023-06-13 15:30:00\"\n }\n }\n}"
}
]
}
]
},
{
"name": "Entities",
"item": [
{
"name": "get entities",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/entities&types=employees,categories,locations,packages,entitiesRelations,customFields",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"entities&types=employees,categories,locations,packages,entitiesRelations,customFields"
]
}
},
"response": [
{
"name": "get entities locations",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/entities&types=locations",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"entities&types=locations"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 10:35:48 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "540"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved entities\",\n \"data\": {\n \"locations\": [\n {\n \"id\": 1,\n \"status\": \"visible\",\n \"name\": \"location1\",\n \"description\": \"\",\n \"address\": \"\",\n \"phone\": \"\",\n \"latitude\": 40.748441,\n \"longitude\": -73.987853,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"\",\n \"translations\": null\n },\n {\n \"id\": 2,\n \"status\": \"visible\",\n \"name\": \"location2\",\n \"description\": \"\",\n \"address\": \"\",\n \"phone\": \"\",\n \"latitude\": 40.748441,\n \"longitude\": -73.987853,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"\",\n \"translations\": null\n }\n ],\n \"customers\": [],\n \"appointments\": {\n \"futureAppointments\": []\n }\n }\n}"
},
{
"name": "get entities",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/entities&types=employees,categories,locations,packages,entitiesRelations,customFields",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"entities&types=employees,categories,locations,packages,entitiesRelations,customFields"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 02 Jun 2023 11:55:39 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved entities\",\n \"data\": {\n \"locations\": [\n {\n \"id\": 1,\n \"status\": \"visible\",\n \"name\": \"169 West Drive\",\n \"description\": \"Description of location\",\n \"address\": \"169 W North Ave, Northlake, IL, USA\",\n \"phone\": \"+381601234567\",\n \"latitude\": 41.906876,\n \"longitude\": -87.896297,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"http://localhost/amelia/wp-content/plugins/amelia-plugin//public/img/pins/orange.png\",\n \"translations\": null\n },\n {\n \"id\": 4,\n \"status\": \"visible\",\n \"name\": \"169 West Drive\",\n \"description\": \"Description of location\",\n \"address\": \"169 West Drive, Northlake, IL, USA\",\n \"phone\": \"+381601234567\",\n \"latitude\": 41.908659,\n \"longitude\": -87.912162,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"http://localhost/amelia/wp-content/plugins/amelia-plugin//public/img/pins/orange.png\",\n \"translations\": null\n },\n {\n \"id\": 2,\n \"status\": \"visible\",\n \"name\": \"Location2\",\n \"description\": \"\",\n \"address\": \"Velisava Vulovića 18, Belgrade, Serbia\",\n \"phone\": \"\",\n \"latitude\": 44.767476,\n \"longitude\": 20.455081,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"pin\": \"\",\n \"translations\": null\n }\n ],\n \"categories\": [\n {\n \"id\": 1,\n \"status\": \"visible\",\n \"name\": \"Category 2\",\n \"serviceList\": [\n {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"weekly\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 6,\n \"name\": \"free service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 5,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 20,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n },\n {\n \"id\": 6,\n \"name\": \"extra2\",\n \"description\": \"\",\n \"price\": 0,\n \"maxQuantity\": 3,\n \"position\": 2,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 2,\n \"settings\": \"{\\\"payments\\\":{\\\"payPal\\\":{\\\"enabled\\\":false},\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":true,\\\"durations\\\":{\\\"7200\\\":{\\\"price\\\":10,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 2,\n \"name\": \"milica service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 100,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": false,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 3,\n \"settings\": null,\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 4,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":true,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 7,\n \"name\": \"new service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 33.44,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 7,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 5,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 5,\n \"name\": \"new test 51 and 99\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 109.51,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 8,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 5400,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 13,\n \"name\": \"service lite\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 100,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 10,\n \"settings\": null,\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n }\n ],\n \"position\": 1,\n \"translations\": null\n },\n {\n \"id\": 2,\n \"status\": \"visible\",\n \"name\": \"kategorija2\",\n \"serviceList\": [\n {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 45,\n \"deposit\": 20,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 9,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 12,\n \"name\": \"Service New Name\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 11,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n },\n {\n \"id\": 10,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 11,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"position\": 2,\n \"translations\": null\n },\n {\n \"id\": 4,\n \"status\": \"visible\",\n \"name\": \"Category Name 2\",\n \"serviceList\": [\n {\n \"id\": 8,\n \"name\": \"new api service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 5,\n \"settings\": null,\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 4,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 10,\n \"name\": \"new api service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 8,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 6,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 4,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\": false, \\\"durations\\\": []}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\": false, \\\"numberOfApp\\\": 1,\\\"timeFrame\\\": \\\"day\\\", \\\"period\\\": 1, \\\"from\\\": \\\"bookingDate\\\"}\"\n },\n {\n \"id\": 9,\n \"name\": \"test service 5\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 200,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 7,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 0,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 12,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 4,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"position\": 2,\n \"translations\": null\n },\n {\n \"id\": 5,\n \"status\": \"visible\",\n \"name\": \"Category Name 2\",\n \"serviceList\": [],\n \"position\": 2,\n \"translations\": null\n }\n ],\n \"customers\": [],\n \"entitiesRelations\": {\n \"1\": {\n \"1\": [\n 1,\n 2\n ],\n \"4\": [\n 1,\n 2\n ],\n \"5\": [\n 2,\n 1\n ],\n \"7\": [\n 1,\n 2\n ],\n \"9\": [\n 2,\n 1\n ]\n },\n \"3\": {\n \"1\": [\n 1,\n 2\n ],\n \"3\": [\n 1,\n 2\n ],\n \"4\": [\n 1,\n 2\n ],\n \"5\": [\n 1,\n 2\n ],\n \"6\": [\n 1,\n 2\n ],\n \"10\": [\n 1,\n 2\n ],\n \"12\": [\n 1,\n 2\n ]\n },\n \"12\": {\n \"1\": [\n 1\n ]\n },\n \"14\": {\n \"1\": [\n 1\n ]\n }\n },\n \"employees\": [\n {\n \"id\": 25,\n \"firstName\": \"Amelia\",\n \"lastName\": \"New Last Name\",\n \"birthday\": null,\n \"email\": \"ameliaEmployee@test.test\",\n \"phone\": \"\",\n \"type\": \"provider\",\n \"status\": \"hidden\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [\n {\n \"id\": 31,\n \"dayIndex\": 1,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 33,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": 2,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 32,\n \"dayIndex\": 2,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 34,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 33,\n \"dayIndex\": 3,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 35,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 34,\n \"dayIndex\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 36,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 35,\n \"dayIndex\": 5,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 37,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"serviceList\": [\n {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 45,\n \"deposit\": 20,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 9,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 4,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 13,\n \"name\": \"service lite\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 100,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 10,\n \"settings\": null,\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n }\n ],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": 1,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n },\n {\n \"id\": 1,\n \"firstName\": \"Milica\",\n \"lastName\": \"Employee\",\n \"birthday\": null,\n \"email\": \"kpop.lover.10000@gmail.com\",\n \"phone\": \"\",\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": \"note 123\",\n \"zoomUserId\": \"CFQD5m_ASZO5zKLNUm-i8Q\",\n \"countryPhoneIso\": \"rs\",\n \"externalId\": 3,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [\n {\n \"id\": 1,\n \"dayIndex\": 1,\n \"startTime\": \"18:00:00\",\n \"endTime\": \"20:30:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 1,\n \"startTime\": \"18:00:00\",\n \"endTime\": \"20:30:00\",\n \"locationId\": 1,\n \"periodServiceList\": [\n {\n \"id\": 3,\n \"serviceId\": 4\n },\n {\n \"id\": 2,\n \"serviceId\": 7\n },\n {\n \"id\": 1,\n \"serviceId\": 1\n }\n ],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 2,\n \"dayIndex\": 2,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"20:30:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 22,\n \"startTime\": \"17:00:00\",\n \"endTime\": \"20:30:00\",\n \"locationId\": 2,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n },\n {\n \"id\": 2,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": 1,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 3,\n \"dayIndex\": 3,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"23:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 3,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"23:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 4,\n \"dayIndex\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"serviceList\": [\n {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 45,\n \"deposit\": 20,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 9,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"weekly\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 5,\n \"name\": \"new test 51 and 99\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 109.51,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 8,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 5400,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 7,\n \"name\": \"new service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 33.44,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 7,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 5,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 9,\n \"name\": \"test service 5\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 200,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 7,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 0,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 12,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 4,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"dayOffList\": [],\n \"specialDayList\": [\n {\n \"id\": 1,\n \"startDate\": \"2023-03-20\",\n \"endDate\": \"2023-03-20\",\n \"periodList\": [\n {\n \"id\": 1,\n \"startTime\": \"08:30:00\",\n \"endTime\": \"09:00:00\",\n \"locationId\": 1,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"locationId\": 1,\n \"googleCalendar\": {\n \"id\": 8,\n \"token\": \"{\\\"access_token\\\":\\\"ya29.a0AWY7CklVPjR-rsKgGJZeW-TEV5AGKG1whD2nxJOSzfHMSNk-lMY7SIx-YYQJeY9pF8B9uj1bg3267R59TvljrxY3LW_RvqJO366JupKb6mPmxJprDlt2b6ZK-oQqkJ56c1H90gsfWcPWsrpxFWCXVUDXz4X-6CpLaCgYKAeUSARMSFQG1tDrpj_oXv3oSg-Kqr5zQf5_IJA0167\\\",\\\"expires_in\\\":3599,\\\"refresh_token\\\":\\\"1\\\\/\\\\/09sXkeS88bD-HCgYIARAAGAkSNwF-L9Irfj8PzVj3FKbITRNWkHMvpJTK1CFftfnKVNVit8IUm0Vvx7z3ARNFsV1-jxCMUbKDgn4\\\",\\\"scope\\\":\\\"https:\\\\/\\\\/www.googleapis.com\\\\/auth\\\\/calendar\\\",\\\"token_type\\\":\\\"Bearer\\\",\\\"created\\\":1683879280}\",\n \"calendarId\": \"milicanikolica97@gmail.com\"\n },\n \"outlookCalendar\": {\n \"id\": 1,\n \"token\": \"{\\\"token_type\\\":\\\"Bearer\\\",\\\"scope\\\":\\\"Calendars.ReadWrite\\\",\\\"expires_in\\\":3600,\\\"ext_expires_in\\\":3600,\\\"access_token\\\":\\\"EwBgA8l6BAAUAOyDv0l6PcCVu89kmzvqZmkWABkAAdb1m6O7zKC+kHwUGCpgGpd6yU2fQPVCyGjwM2Jn3tBthmLuggK496barjs3A88pXH7oNds7XaE645H3ifIXx97Yu2kb16IOdIwDesU6DUL9QnhsS2a3hdRRyM1FGcaP4HozNdC0ayke4IcMcTl4RSbfIpKEFXHd+JWmwzeC0RU2RTEI\\\\/Y6vOq\\\\/FBUXWr2Wio1TEMUb3D8xk3EDUCQAY2eZToLLOWdqvTI+7UcbleCgfX5mVFgIsH\\\\/j6acuLbHm9cBSD8VKBKLqt1OdD0iyCMExHyB9XAahFvSI8LR+C8doHcaJFrl9nlee\\\\/3wcH7rm4hKGF5xZqxjEjAF3MILpt\\\\/yoDZgAACFBjbWNIdOd7MAIdyx96isobYlgVg3GdsLHrPIo33EHlxqXnNrn9DQJjBr1srIUaU0Ca2H1sK2fJEVjtZQM8svbNp823bQpZHnpF7z9Y5Tje7EkTQetQ5umI3iWPjbmmDuykN1qX9N0i+0tZs1kScP2zyjl3MkYHl0smJ4D6l+R6vcP21ltkfFNEXlESmcu3WD+LaNFKszjsMx7bSqt1+0xmLqXqVBJrFHWnDQdj7VlCsGBoM3d4MhU1tf8bM6+iZnbBc22LyU3sK6lLhnL1hhdkEIqx5M0A\\\\/E\\\\/X+9u9B9ERrZtKg5CvfWIy8ly53ZmUPrKo16FDL035i\\\\/lWZlmvEPxT2O+W32MAfuMhvdxcqN40wsrOfPZ1zZTb3tfHowzFL3LOPdgGDBzvCWSQm6Uw0WVV4oJaZBrR4UlvhlEXXjKArb4pidUOBQlFTA4CUOV92w3sQAUtl9OOFytCRjLGxT6wA\\\\/vFyE26EYaUlbjufVmDSAccO+eL8dnSqX7ScATF23YSljYHJgUV6qsDeK7CpYLs8joVtdgSvrE+zzwVurgmY2\\\\/8nclCskl2uuMBz\\\\/4h7lu55gJFmsR62ESSabyNdNJQNflcpcL0DaAhxT8vv6cdhqGAoh6dR0F9sXwKAx7Ov7EiVjwv4qWfB\\\\/lQRrQ6NPxwy3VLsrroL+rD7KMM65+Im6HSFssN49biHoI5C0\\\\/4z7w\\\\/XM3TOc6ZWNQqoCvl4B4j32VQzuaI93gddB5\\\\/aoj\\\\/N8m7Axjm6FjQlG8C\\\",\\\"refresh_token\\\":\\\"M.C102_BL2.-CUyNDjWsP!Vtqg0prBw2bMZy!vrdTyZNpmZEBo2nsXduf*jDbbnyc1Put0g2v7H*6rSFHpWumIu!LstQP5*B2I0mvoPI8k!nJik2AXysaKEnsIo7E!*9fWbgr52C4ErCvkEpn1hNjaU96imjW6Innso!fct7WIQxE60WhqyVq2S5i7qlN8GhR3KTv3xApcob*1Mzn2lkb*jS6VQKw9FkJqBkP719dDaQtmhnQlada*1LWtoPAEeARba7A*S1QixvG*QiY!XehK4AY4*UHFfhob8S2AvYfXyrz9jV3Mv4SiKPvySSphIt7ykMiTZONlcOPoDLR5OD7aP0LDwm6mpODlzaJJzm8B5MRDIUJ00sehb!\\\",\\\"created\\\":1685704809}\",\n \"calendarId\": \"AQMkADAwATYwMAItZTk0ZS1lMGRmLTAwAi0wMAoARgAAA3egvCudOo1GsyywV8xCQ2wHANjP2dT7pGFAu0b6VBSGJOoAAAIBBgAAANjP2dT7pGFAu0b6VBSGJOoAAAJD1gAAAA==\"\n },\n \"timeZone\": null,\n \"description\": \"\\n<p> \\n <span style=\\\"color: rgb(0, 138, 0);\\\">Marija Employee's description</span>\\n</p>\\n<p> \\n <br>\\n</p>\\n<p> \\n <br>\\n</p>\\n<p> \\n <br>\\n</p>\\n<p>xtest \\n <sub>test</sub>\\n</p>\\n<p>test \\n <sup>test</sup>\\n</p>\\n<blockquote>test description</blockquote>\\n<blockquote> \\n <br>\\n</blockquote>\\n<ul> \\n <li>blue</li> \\n <li>yellow</li> \\n <li>red</li>\\n</ul>\\n<h1> \\n <strong> \\n <em> \\n <s> \\n <u>test</u> \\n </s> \\n </em> \\n </strong>\\n</h1>\\n<h1> \\n <span class=\\\"ql-size-small ql-font-monospace\\\">fsdfsfsf</span>\\n</h1>\\n<ol> \\n <li>one</li> \\n <li>two</li> \\n <li>three</li>\\n</ol>\\n<p> \\n <img src=\\\"https://dev.wpamelia.com/wp-content/uploads/amelia/mail/60882fa217.jpg\\\">\\n</p>\\n<h1> \\n <span class=\\\"ql-font-serif\\\">test</span>\\n</h1>\\n<h1> \\n <span class=\\\"ql-font-serif\\\">test2</span>\\n</h1>\\n\"\n },\n {\n \"id\": 3,\n \"firstName\": \"Milica2\",\n \"lastName\": \"Employee2\",\n \"birthday\": null,\n \"email\": \"milicaemployee2@test.test\",\n \"phone\": \"\",\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": 6,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [\n {\n \"id\": 6,\n \"dayIndex\": 1,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 6,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": 2,\n \"periodServiceList\": [],\n \"periodLocationList\": [\n {\n \"id\": 4,\n \"locationId\": 2\n },\n {\n \"id\": 3,\n \"locationId\": 1\n }\n ]\n }\n ]\n },\n {\n \"id\": 7,\n \"dayIndex\": 2,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 7,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 9,\n \"dayIndex\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 9,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 10,\n \"dayIndex\": 5,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 10,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"serviceList\": [\n {\n \"id\": 12,\n \"name\": \"Service New Name\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 11,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n },\n {\n \"id\": 10,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 11,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 10,\n \"name\": \"new api service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 8,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 100,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 6,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":false}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 4,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\": false, \\\"numberOfApp\\\": 1,\\\"timeFrame\\\": \\\"day\\\", \\\"period\\\": 1, \\\"from\\\": \\\"bookingDate\\\"}\"\n },\n {\n \"id\": 6,\n \"name\": \"free service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 0,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 5,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 20,\n \"maxQuantity\": 1,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n },\n {\n \"id\": 6,\n \"name\": \"extra2\",\n \"description\": \"\",\n \"price\": 0,\n \"maxQuantity\": 3,\n \"position\": 2,\n \"duration\": 1800,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 2,\n \"settings\": \"{\\\"payments\\\":{\\\"payPal\\\":{\\\"enabled\\\":false},\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":true,\\\"durations\\\":{\\\"7200\\\":{\\\"price\\\":10,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 5,\n \"name\": \"new test 51 and 99\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 109.51,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 8,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 5400,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 45,\n \"deposit\": 20,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 9,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 4,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":true},\\\"lessonSpace\\\":{\\\"enabled\\\":true},\\\"activation\\\":{\\\"version\\\":\\\"6.2.3\\\"}}\",\n \"fullPayment\": false,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"disabled\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":true,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n },\n {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"weekly\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": 1,\n \"googleCalendar\": {\n \"id\": 6,\n \"token\": \"{\\\"access_token\\\":\\\"ya29.a0Ael9sCNUKwM8DqdHckgYXfi2XS9Q8Td-R7gALi3sKlHznWxnF49CRU9sBoE5Ea7GLsBL3diHIToNRhOFdaWk-NySLkn2CkcyorrthtXiHoC2CeYAAzN572srSopwTn1NnPAK0KDYi5Vk9BN5jGDFEUeMrwOAwmrkaCgYKAcESARMSFQF4udJhe9iX42PME4HUKpEs89i4dQ0167\\\",\\\"expires_in\\\":3598,\\\"refresh_token\\\":\\\"1\\\\/\\\\/03VYnEQN7q25UCgYIARAAGAMSNwF-L9IrtxxmpI4Adk6vURoOc9RSbQXca5eXO5M6UMcW-HIRy4JAbUXAUfyN_DKO5E3W8TU-QHA\\\",\\\"scope\\\":\\\"https:\\\\/\\\\/www.googleapis.com\\\\/auth\\\\/calendar\\\",\\\"token_type\\\":\\\"Bearer\\\",\\\"created\\\":1682509211}\",\n \"calendarId\": \"milicanikolica97@gmail.com\"\n },\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n },\n {\n \"id\": 14,\n \"firstName\": \"New\",\n \"lastName\": \"Employee\",\n \"birthday\": null,\n \"email\": \"newemployee@test.test\",\n \"phone\": \"\",\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [\n {\n \"id\": 16,\n \"dayIndex\": 1,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 17,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 17,\n \"dayIndex\": 2,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 18,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 18,\n \"dayIndex\": 3,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 19,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 19,\n \"dayIndex\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 20,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 20,\n \"dayIndex\": 5,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 21,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"serviceList\": [\n {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"weekly\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": 1,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n },\n {\n \"id\": 12,\n \"firstName\": \"OneLocation\",\n \"lastName\": \"Employee3\",\n \"birthday\": null,\n \"email\": \"emploeemail@test.test\",\n \"phone\": \"\",\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": \"rs\",\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [\n {\n \"id\": 11,\n \"dayIndex\": 1,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 12,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 13,\n \"dayIndex\": 3,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 14,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 14,\n \"dayIndex\": 4,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 15,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n },\n {\n \"id\": 15,\n \"dayIndex\": 5,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"timeOutList\": [],\n \"periodList\": [\n {\n \"id\": 16,\n \"startTime\": \"09:00:00\",\n \"endTime\": \"17:00:00\",\n \"locationId\": null,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"serviceList\": [\n {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 5,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": true,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [\n {\n \"id\": 4,\n \"name\": \"extra1\",\n \"description\": \"\",\n \"price\": 10,\n \"maxQuantity\": 5,\n \"position\": 1,\n \"duration\": null,\n \"serviceId\": null,\n \"aggregatedPrice\": false,\n \"translations\": null\n }\n ],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":true},\\\"square\\\":{\\\"enabled\\\":true}},\\\"zoom\\\":{\\\"enabled\\\":false},\\\"lessonSpace\\\":{\\\"enabled\\\":false},\\\"activation\\\":{\\\"version\\\":\\\"6.3\\\"}}\",\n \"fullPayment\": true,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": true,\n \"show\": true,\n \"aggregatedPrice\": true,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": \"weekly\",\n \"recurringSub\": \"future\",\n \"recurringPayment\": 0,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": false,\n \"customPricing\": \"{\\\"enabled\\\":false,\\\"durations\\\":{\\\"3600\\\":{\\\"price\\\":30,\\\"rules\\\":[]},\\\"5400\\\":{\\\"price\\\":40,\\\"rules\\\":[]}}}\",\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1,\\\"from\\\":\\\"bookingDate\\\"}\"\n }\n ],\n \"dayOffList\": [],\n \"specialDayList\": [\n {\n \"id\": 2,\n \"startDate\": \"2023-04-04\",\n \"endDate\": \"2023-04-04\",\n \"periodList\": [\n {\n \"id\": 2,\n \"startTime\": \"13:00:00\",\n \"endTime\": \"23:00:00\",\n \"locationId\": 1,\n \"periodServiceList\": [],\n \"periodLocationList\": []\n }\n ]\n }\n ],\n \"locationId\": 1,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n }\n ],\n \"appointments\": {\n \"futureAppointments\": []\n },\n \"customFields\": [\n {\n \"id\": 1,\n \"label\": \"text\",\n \"type\": \"text\",\n \"required\": false,\n \"position\": 1,\n \"options\": [],\n \"services\": [],\n \"events\": [\n {\n \"id\": 49,\n \"name\": \"daily 2 days\",\n \"description\": null,\n \"color\": null,\n \"price\": 0,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"bookings\": [],\n \"periods\": [],\n \"bookingOpens\": null,\n \"bookingCloses\": null,\n \"bookingOpensRec\": null,\n \"bookingClosesRec\": null,\n \"ticketRangeRec\": null,\n \"status\": null,\n \"recurring\": null,\n \"maxCapacity\": null,\n \"maxCustomCapacity\": null,\n \"show\": null,\n \"tags\": [],\n \"customTickets\": [],\n \"gallery\": [],\n \"providers\": [],\n \"notifyParticipants\": null,\n \"locationId\": null,\n \"location\": null,\n \"customLocation\": null,\n \"parentId\": 47,\n \"created\": null,\n \"zoomUserId\": null,\n \"organizerId\": null,\n \"type\": \"event\",\n \"bringingAnyone\": null,\n \"bookMultipleTimes\": null,\n \"translations\": null,\n \"customPricing\": null,\n \"closeAfterMin\": null,\n \"closeAfterMinBookings\": null,\n \"maxExtraPeople\": null,\n \"initialEventStart\": null,\n \"initialEventEnd\": null,\n \"aggregatedPrice\": null\n }\n ],\n \"translations\": null,\n \"allServices\": true,\n \"allEvents\": false\n },\n {\n \"id\": 4,\n \"label\": \"Adresa\",\n \"type\": \"address\",\n \"required\": false,\n \"position\": 3,\n \"options\": [],\n \"services\": [],\n \"events\": [],\n \"translations\": null,\n \"allServices\": true,\n \"allEvents\": false\n },\n {\n \"id\": 2,\n \"label\": \"Select1\",\n \"type\": \"select\",\n \"required\": false,\n \"position\": 3,\n \"options\": [\n {\n \"id\": 1,\n \"customFieldId\": 2,\n \"label\": \"Option1\",\n \"position\": 1,\n \"translations\": null\n },\n {\n \"id\": 2,\n \"customFieldId\": 2,\n \"label\": \"Option2\",\n \"position\": 2,\n \"translations\": null\n }\n ],\n \"services\": [],\n \"events\": [],\n \"translations\": null,\n \"allServices\": false,\n \"allEvents\": false\n }\n ],\n \"packages\": [\n {\n \"id\": 4,\n \"name\": \"2 category package\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 325,\n \"deposit\": 20,\n \"depositPayment\": \"fixed\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 9,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": true,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 6,\n \"quantity\": 5,\n \"service\": {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 3,\n \"providers\": [\n {\n \"id\": 12,\n \"firstName\": \"OneLocation\",\n \"lastName\": \"Employee3\",\n \"birthday\": null,\n \"email\": \"emploeemail@test.test\",\n \"phone\": null,\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [],\n \"serviceList\": [],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": null,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n }\n ],\n \"locations\": [],\n \"allowProviderSelection\": false\n },\n {\n \"id\": 7,\n \"quantity\": 5,\n \"service\": {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": null,\n \"color\": null,\n \"price\": 45,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 3,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 2,\n \"name\": \"milica package\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 300,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 8,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":true},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 4,\n \"quantity\": 3,\n \"service\": {\n \"id\": 2,\n \"name\": \"milica service\",\n \"description\": null,\n \"color\": null,\n \"price\": 100,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 3,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 3,\n \"name\": \"milica2 package\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 80,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 4,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 5,\n \"quantity\": 4,\n \"service\": {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 1,\n \"name\": \"milicas package\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 120,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 6,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":true},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 1,\n \"quantity\": 1,\n \"service\": {\n \"id\": 2,\n \"name\": \"milica service\",\n \"description\": null,\n \"color\": null,\n \"price\": 100,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n },\n {\n \"id\": 2,\n \"quantity\": 1,\n \"service\": {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 9,\n \"name\": \"new pack\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 53.44,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 3,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 15,\n \"quantity\": 1,\n \"service\": {\n \"id\": 3,\n \"name\": \"milica2 service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n },\n {\n \"id\": 16,\n \"quantity\": 1,\n \"service\": {\n \"id\": 7,\n \"name\": \"new service\",\n \"description\": null,\n \"color\": null,\n \"price\": 33.44,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 5,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 6,\n \"name\": \"new paket\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 130,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 7,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 9,\n \"quantity\": 2,\n \"service\": {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 2,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n },\n {\n \"id\": 10,\n \"quantity\": 2,\n \"service\": {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": null,\n \"color\": null,\n \"price\": 45,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 2,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": false\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 7,\n \"name\": \"test paket\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 98.44,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 5,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":false,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":false},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 11,\n \"quantity\": 1,\n \"service\": {\n \"id\": 7,\n \"name\": \"new service\",\n \"description\": null,\n \"color\": null,\n \"price\": 33.44,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 5,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n },\n {\n \"id\": 12,\n \"quantity\": 1,\n \"service\": {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [\n {\n \"id\": 14,\n \"firstName\": \"New\",\n \"lastName\": \"Employee\",\n \"birthday\": null,\n \"email\": \"newemployee@test.test\",\n \"phone\": null,\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [],\n \"serviceList\": [],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": null,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n },\n {\n \"id\": 3,\n \"firstName\": \"Milica2\",\n \"lastName\": \"Employee2\",\n \"birthday\": null,\n \"email\": \"milicaemployee2@test.test\",\n \"phone\": null,\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [],\n \"serviceList\": [],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": null,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n }\n ],\n \"locations\": [],\n \"allowProviderSelection\": false\n },\n {\n \"id\": 13,\n \"quantity\": 1,\n \"service\": {\n \"id\": 4,\n \"name\": \"Service 2\",\n \"description\": null,\n \"color\": null,\n \"price\": 45,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 1,\n \"duration\": 3600,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 2,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [\n {\n \"id\": 1,\n \"firstName\": \"Milica\",\n \"lastName\": \"Employee\",\n \"birthday\": null,\n \"email\": \"kpop.lover.10000@gmail.com\",\n \"phone\": null,\n \"type\": \"provider\",\n \"status\": \"visible\",\n \"note\": null,\n \"zoomUserId\": null,\n \"countryPhoneIso\": null,\n \"externalId\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"translations\": null,\n \"weekDayList\": [],\n \"serviceList\": [],\n \"dayOffList\": [],\n \"specialDayList\": [],\n \"locationId\": null,\n \"googleCalendar\": null,\n \"outlookCalendar\": null,\n \"timeZone\": null,\n \"description\": null\n }\n ],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n },\n {\n \"id\": 8,\n \"name\": \"test payments\",\n \"description\": \"\",\n \"color\": \"#1788FB\",\n \"price\": 20,\n \"deposit\": 0,\n \"depositPayment\": \"disabled\",\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": 1,\n \"settings\": \"{\\\"payments\\\":{\\\"paymentLinks\\\":{\\\"enabled\\\":true,\\\"changeBookingStatus\\\":false,\\\"redirectUrl\\\":null},\\\"onSite\\\":true,\\\"payPal\\\":{\\\"enabled\\\":false},\\\"stripe\\\":{\\\"enabled\\\":true},\\\"mollie\\\":{\\\"enabled\\\":false},\\\"razorpay\\\":{\\\"enabled\\\":false}}}\",\n \"fullPayment\": false,\n \"type\": \"package\",\n \"status\": \"visible\",\n \"gallery\": [],\n \"bookable\": [\n {\n \"id\": 14,\n \"quantity\": 1,\n \"service\": {\n \"id\": 1,\n \"name\": \"amelia service\",\n \"description\": null,\n \"color\": null,\n \"price\": 20,\n \"deposit\": null,\n \"depositPayment\": null,\n \"depositPerPerson\": null,\n \"pictureFullPath\": null,\n \"pictureThumbPath\": null,\n \"extras\": [],\n \"coupons\": [],\n \"position\": null,\n \"settings\": null,\n \"fullPayment\": null,\n \"minCapacity\": 1,\n \"maxCapacity\": 10,\n \"duration\": 1800,\n \"timeBefore\": null,\n \"timeAfter\": null,\n \"bringingAnyone\": null,\n \"show\": true,\n \"aggregatedPrice\": null,\n \"status\": \"visible\",\n \"categoryId\": 1,\n \"category\": null,\n \"priority\": [],\n \"gallery\": [],\n \"recurringCycle\": null,\n \"recurringSub\": null,\n \"recurringPayment\": null,\n \"translations\": null,\n \"minSelectedExtras\": null,\n \"mandatoryExtra\": null,\n \"customPricing\": null,\n \"maxExtraPeople\": null,\n \"limitPerCustomer\": null\n },\n \"minimumScheduled\": 0,\n \"maximumScheduled\": 1,\n \"providers\": [],\n \"locations\": [],\n \"allowProviderSelection\": true\n }\n ],\n \"calculatedPrice\": true,\n \"discount\": 0,\n \"endDate\": null,\n \"durationCount\": null,\n \"durationType\": null,\n \"translations\": null,\n \"sharedCapacity\": false,\n \"quantity\": 1,\n \"limitPerCustomer\": \"{\\\"enabled\\\":false,\\\"numberOfApp\\\":1,\\\"timeFrame\\\":\\\"day\\\",\\\"period\\\":1}\",\n \"available\": true\n }\n ]\n }\n}"
}
]
}
]
},
{
"name": "Search",
"item": [
{
"name": "search slots",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/search&date=2023-09-06&location=2&page=1&services=1&sort=name&timeFrom=09:00:00&timeTo=20:00:00&providers=1",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"search&date=2023-09-06&location=2&page=1&services=1&sort=name&timeFrom=09:00:00&timeTo=20:00:00&providers=1"
]
}
},
"response": [
{
"name": "search slots",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{admin_ajax_url}}/search&date=2023-05-18&location=1&page=1&services=4&sort=name&timeFrom=09:00:00&timeTo=10:30:00&providers=1",
"host": [
"{{admin_ajax_url}}"
],
"path": [
"search&date=2023-05-18&location=1&page=1&services=4&sort=name&timeFrom=09:00:00&timeTo=10:30:00&providers=1"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 05 May 2023 12:02:19 GMT"
},
{
"key": "Server",
"value": "Apache/2.4.52 (Ubuntu)"
},
{
"key": "X-Robots-Tag",
"value": "noindex"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Expires",
"value": "Wed, 11 Jan 1984 05:00:00 GMT"
},
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate, max-age=0"
},
{
"key": "Referrer-Policy",
"value": "strict-origin-when-cross-origin"
},
{
"key": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"key": "Content-Length",
"value": "145"
},
{
"key": "Keep-Alive",
"value": "timeout=5, max=100"
},
{
"key": "Connection",
"value": "Keep-Alive"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
}
],
"cookie": [],
"body": "{\n \"message\": \"Successfully retrieved searched services.\",\n \"data\": {\n \"providersServices\": [\n {\n \"4\": 1,\n \"places\": null,\n \"locations\": [\n 1\n ],\n \"price\": 45\n }\n ],\n \"total\": 1\n }\n}"
}
]
}
]
}
],
"auth": {
"type": "apikey",
"apikey": [
{
"key": "value",
"value": "",
"type": "string"
},
{
"key": "key",
"value": "Amelia",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "admin_ajax_url",
"value": "http://localhost/amelia/wp-admin/admin-ajax.php?action=wpamelia_api&call=/api/v1"
}
]
}
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com