{"id":8034,"date":"2025-11-17T20:37:54","date_gmt":"2025-11-17T11:37:54","guid":{"rendered":"https:\/\/www.flow-state.jp\/amelia\/?post_type=bwl_kb&#038;p=8034"},"modified":"2025-11-17T21:10:25","modified_gmt":"2025-11-17T12:10:25","slug":"amelia-api-coupons","status":"publish","type":"bwl_kb","link":"https:\/\/www.flow-state.jp\/amelia\/mypage\/api-endpoints\/amelia-api-coupons\/","title":{"rendered":"\u30af\u30fc\u30dd\u30f3"},"content":{"rendered":"<div class=\"p-blogParts post_content\" data-partsID=\"3489\">\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer u-mb-ctrl u-mb-0\"><\/div>\n\n\n\n<p class=\"has-text-align-center has-huge-font-size\"><span style=\"--the-icon-svg: url(data:image\/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjFlbSIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBhcmlhLWhpZGRlbj0idHJ1ZSIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNMTEuNyAxLjQgNi44IDVjLS41LjQtLjggMS0uOCAxLjZ2MjguN2MwIC44LjUgMS41IDEuMiAxLjhsMjQgMTAuM2MxLjMuNiAyLjgtLjQgMi44LTEuOFYxOWMwLS44LS41LTEuNS0xLjItMS44TDEwLjIgNy41bDIuOS0yLjJjLjktLjYgMi0uOCAzLS40bDIwLjYgOC44Yy43LjMgMS4yIDEgMS4yIDEuOFY0Mi45YzAgLjkgMSAxLjMgMS43LjhsMS43LTEuNWMuNC0uNC43LS45LjctMS41VjEzYzAtLjgtLjUtMS41LTEuMi0xLjhMMTYuNy44Yy0xLjctLjctMy42LS41LTUgLjZ6Ij48L3BhdGg+PC9zdmc+)\" data-icon=\"LsBook\" data-id=\"0\" aria-hidden=\"true\" class=\"swl-inline-icon\">\u2003<\/span> <strong>\u64cd\u4f5c\u30ac\u30a4\u30c9<\/strong><\/p>\n\n\n<p><form id=\"form\" action=\"https:\/\/www.flow-state.jp\/amelia\" autocomplete=\"off\" class=\"bkb-live-search-form bkb-sbox-layout-1 rounded-box\">\n                                                <div id=\"suggest\" class=\"bkb_filter_container\">\n                                                    <input type=\"text\" size=\"25\" value=\"\" id=\"s\" name=\"s\" class=\"s\" placeholder=\"\u304a\u63a2\u3057\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u533a\u5207\u308a\u306f\u534a\u89d2\u30b9\u30da\u30fc\u30b9\uff09\" data-search-box-unique-id=\"2768865128\" data-search_limit=\"30\" data-search_only_title=\"0\" data-search_both_tc=\"0\"\/>\n                                                    <span class=\"bkbm-btn-clear bkbm-dn\"><\/span>\n                                                    <div class=\"suggestionsBox\" id=\"suggestions_2768865128\" style=\"display: none;\">\n                                                        <div class=\"suggestionList\" id=\"suggestionsList_2768865128\"> &nbsp; <\/div>\n                                                    <\/div>\n                                                <\/div>\n                                            <\/form><\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\"><strong>Amelia API \u2013 \u30af\u30fc\u30dd\u30f3<\/strong><\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u30af\u30fc\u30dd\u30f3\u306b\u95a2\u9023\u3059\u308bAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">\u3059\u3079\u3066\u306eAPI\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304a\u3088\u3073\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f8b\u306f\u3001<a href=\"https:\/\/www.flow-state.jp\/amelia\/wp-content\/uploads\/2025\/11\/amelia-api.json_.zip\" data-type=\"attachment\" data-id=\"8545\">\u3053\u3061\u3089\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3067\u304d\u308b<strong>Amelia<\/strong> API Postman\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u4f7f\u7528\u306b\u306f\u3001\u4e00\u5b9a\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u3067\u3042\u308a\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u63d0\u4f9b\u3055\u308c\u308b\u30b5\u30dd\u30fc\u30c8\u306b\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8a8d\u8a3c<\/h3>\n\n\n\n<p>\u3059\u3079\u3066\u306e<strong>Amelia<\/strong>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3001<code>Amelia<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30d8\u30c3\u30c0\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u305fAPI\u30ad\u30fc\u8a8d\u8a3c\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30b9<\/h3>\n\n\n\n<p><strong>Amelia<\/strong> API\u306e\u30d1\u30b9\u306f\u4ee5\u4e0b\u3067\u59cb\u307e\u308a\u307e\u3059\uff1a<code>{{your_site_URL}}\/wp-admin\/admin-ajax.php?action=wpamelia_api&amp;call=\/api\/v1<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30fc\u30dd\u30f3\u306e\u691c\u8a3c<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>POST<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons\/validate<\/code><\/p>\n\n\n\n<p><strong>\u5fc5\u9808\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table u-mb-ctrl u-mb-20\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u30ad\u30fc<\/strong><\/td><td><strong>\u30bf\u30a4\u30d7<\/strong><\/td><td><strong>\u8aac\u660e<\/strong><\/td><\/tr><\/thead><tbody><tr><td><code>code<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u30b3\u30fc\u30c9<\/td><\/tr><tr><td><code>id<\/code><\/td><td>integer<\/td><td>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3ID\uff08\u30b5\u30fc\u30d3\u30b9\u3001\u30a4\u30d9\u30f3\u30c8\u3001\u307e\u305f\u306f<strong>\u30b3\u30fc\u30b9<\/strong>\u306eID\uff09<\/td><\/tr><tr><td><code>type<\/code><\/td><td>string<\/td><td>\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30bf\u30a4\u30d7\u3002\u4f7f\u7528\u53ef\u80fd\u306a\u5024\uff1a<code>service<\/code>\uff08\u30b5\u30fc\u30d3\u30b9\uff09\u3001<code>package<\/code>\uff08<strong>\u30b3\u30fc\u30b9<\/strong>\uff09\u3001<code>event<\/code>\uff08\u30a4\u30d9\u30f3\u30c8\uff09<\/td><\/tr><tr><td><code>user<\/code><\/td><td>object<\/td><td><code>firstName<\/code>\u3001<code>lastName<\/code>\u3001<code>email<\/code>\uff08<strong>\u30e1\u30fc\u30eb<\/strong>\uff09\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3002<strong>\u304a\u5ba2\u69d8<\/strong>\u306e\u30af\u30fc\u30dd\u30f3\u5229\u7528\u5236\u9650\u306b\u9054\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table u-mb-ctrl u-mb-20\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u30ad\u30fc<\/strong><\/td><td><strong>\u30bf\u30a4\u30d7<\/strong><\/td><td><strong>\u8aac\u660e<\/strong><\/td><\/tr><\/thead><tbody><tr><td><code>count<\/code><\/td><td>integer<\/td><td>\u3059\u3079\u3066\u306e\u7e70\u308a\u8fd4\u3057\u4e88\u7d04\u306e\u30af\u30fc\u30dd\u30f3\u3092\u691c\u8a3c\u3059\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<code>count<\/code> = \u7e70\u308a\u8fd4\u3057\u4e88\u7d04\u306e\u6570<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons\/validate&#39; \\\n--header &#39;Content-Type: application\/json&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39; \\\n--data-raw &#39;{\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;id&quot;: 1,\n&quot;type&quot;: &quot;appointment&quot;,\n&quot;user&quot;: {\n&quot;firstName&quot;: &quot;Amelia&quot;,\n&quot;lastName&quot;: &quot;Test&quot;,\n&quot;email&quot;: &quot;amelia@test.test&quot;\n},\n&quot;count&quot;: 1\n}&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;Successfully retrieved coupon.&quot;,\n&quot;data&quot;: {\n&quot;coupon&quot;: {\n&quot;id&quot;: 5,\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 10,\n&quot;limit&quot;: 100,\n&quot;customerLimit&quot;: 2,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;serviceList&quot;: [],\n&quot;eventList&quot;: [],\n&quot;expirationDate&quot;: &quot;2023-05-06&quot;\n},\n&quot;limit&quot;: 2\n}\n}\n<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30fc\u30dd\u30f3\u306e\u8ffd\u52a0<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>POST<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons<\/code><\/p>\n\n\n\n<p><strong>\u5fc5\u9808\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/p>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table u-mb-ctrl u-mb-20\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u30ad\u30fc<\/strong><\/td><td><strong>\u30bf\u30a4\u30d7<\/strong><\/td><td><strong>\u8aac\u660e<\/strong><\/td><\/tr><\/thead><tbody><tr><td><code>code<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u30b3\u30fc\u30c9<\/td><\/tr><tr><td><code>limit<\/code><\/td><td>integer<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u4f7f\u7528\u5236\u9650<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table u-mb-ctrl u-mb-20\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u30ad\u30fc<\/strong><\/td><td><strong>\u30bf\u30a4\u30d7<\/strong><\/td><td><strong>\u8aac\u660e<\/strong><\/td><\/tr><\/thead><tbody><tr><td><code>discount<\/code><\/td><td>integer<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u5272\u5f15\u7387\uff08\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\uff09\u3002<\/td><\/tr><tr><td><code>deduction<\/code><\/td><td>float<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u5272\u5f15\u984d\u3002<\/td><\/tr><tr><td><code>customerLimit<\/code><\/td><td>integer<\/td><td><strong>\u304a\u5ba2\u69d8<\/strong>\u3042\u305f\u308a\u306e\u5229\u7528\u5236\u9650\u3002<\/td><\/tr><tr><td><code>notificationInterval<\/code><\/td><td>integer<\/td><td><strong>\u304a\u5ba2\u69d8<\/strong>\u304c\u901a\u77e5\u3067\u30af\u30fc\u30dd\u30f3\u3092\u53d7\u3051\u53d6\u308b\u3001\u627f\u8a8d\u3055\u308c\u305f\u4e88\u7d04\u306e\u56de\u6570\u3002<\/td><\/tr><tr><td><code>notificationRecurring<\/code><\/td><td>boolean<\/td><td>\u8a2d\u5b9a\u3055\u308c\u305f<code>notificationInterval<\/code>\u304c\u7e70\u308a\u8fd4\u3057\u9069\u7528\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f<code>false<\/code>\u3067\u3059\u3002<\/td><\/tr><tr><td><code>status<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3002\u4f7f\u7528\u53ef\u80fd\u306a\u5024\uff1a<code>visible<\/code>\uff08\u8868\u793a\uff09\u3001<code>hidden<\/code>\uff08\u975e\u8868\u793a\uff09<\/td><\/tr><tr><td><code>services<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b\u30b5\u30fc\u30d3\u30b9ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>events<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b\u30a4\u30d9\u30f3\u30c8ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>packages<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b<strong>\u30b3\u30fc\u30b9<\/strong>ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>expirationDate<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u6709\u52b9\u671f\u9650\u3002\u5f62\u5f0f\uff1a<code>YYYY-MM-DD<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons&#39; \\\n--header &#39;Content-Type: application\/json&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39; \\\n--data &#39;{\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 10,\n&quot;limit&quot;: 20,\n&quot;customerLimit&quot;: 2,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;events&quot;: [ 80 ],\n&quot;services&quot;: [ 1 ],\n&quot;packages&quot;: [ 1 ],\n&quot;expirationDate&quot;: &quot;2023-10-06&quot;\n}&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;New coupon successfully created.&quot;,\n&quot;data&quot;: {\n&quot;coupon&quot;: {\n&quot;id&quot;: 14,\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 10,\n&quot;limit&quot;: 20,\n&quot;customerLimit&quot;: 2,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;serviceList&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;name&quot;: &quot;amelia service&quot;,\n&quot;description&quot;: &quot;location address: %location_address%&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 20,\n&quot;deposit&quot;: 14,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: true,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [\n{\n&quot;id&quot;: 17,\n&quot;name&quot;: &quot;Extra 3&quot;,\n&quot;description&quot;: &quot;Extra description&quot;,\n&quot;price&quot;: 20,\n&quot;maxQuantity&quot;: 1,\n&quot;position&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;serviceId&quot;: null,\n&quot;aggregatedPrice&quot;: false,\n&quot;translations&quot;: null\n}\n],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 1,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;square\\&quot;:{\\&quot;enabled\\&quot;:true}},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;activation\\&quot;:{\\&quot;version\\&quot;:\\&quot;6.7\\&quot;}}&quot;,\n&quot;fullPayment&quot;: true,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 10,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: 1800,\n&quot;timeAfter&quot;: 1800,\n&quot;bringingAnyone&quot;: true,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: true,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: &quot;all&quot;,\n&quot;recurringSub&quot;: &quot;future&quot;,\n&quot;recurringPayment&quot;: 999,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: 1,\n&quot;mandatoryExtra&quot;: false,\n&quot;customPricing&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;durations\\&quot;:{\\&quot;3600\\&quot;:{\\&quot;price\\&quot;:30,\\&quot;rules\\&quot;:[]},\\&quot;5400\\&quot;:{\\&quot;price\\&quot;:40,\\&quot;rules\\&quot;:[]}}}&quot;,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;numberOfApp\\&quot;:1,\\&quot;timeFrame\\&quot;:\\&quot;day\\&quot;,\\&quot;period\\&quot;:1,\\&quot;from\\&quot;:\\&quot;bookingDate\\&quot;}&quot;\n}\n],\n&quot;eventList&quot;: [\n{\n&quot;id&quot;: 80,\n&quot;name&quot;: &quot;event 123&quot;,\n&quot;description&quot;: &quot;&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 330,\n&quot;deposit&quot;: 110,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: true,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:false}},\\&quot;general\\&quot;:{\\&quot;minimumTimeRequirementPriorToCanceling\\&quot;:null,\\&quot;redirectUrlAfterAppointment\\&quot;:null},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:false}}&quot;,\n&quot;fullPayment&quot;: false,\n&quot;bookings&quot;: [\n{\n&quot;id&quot;: 905,\n&quot;customerId&quot;: 46,\n&quot;customer&quot;: {\n&quot;id&quot;: 46,\n&quot;firstName&quot;: &quot;Amelia&quot;,\n&quot;lastName&quot;: &quot;Test&quot;,\n&quot;birthday&quot;: null,\n&quot;email&quot;: &quot;amelia@test.test&quot;,\n&quot;phone&quot;: null,\n&quot;type&quot;: &quot;\u304a\u5ba2\u69d8&quot;,\n&quot;status&quot;: null,\n&quot;note&quot;: null,\n&quot;zoomUserId&quot;: null,\n&quot;countryPhoneIso&quot;: null,\n&quot;externalId&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;translations&quot;: null,\n&quot;gender&quot;: null\n},\n&quot;status&quot;: &quot;approved&quot;,\n&quot;extras&quot;: [],\n&quot;couponId&quot;: null,\n&quot;price&quot;: 330,\n&quot;coupon&quot;: null,\n&quot;customFields&quot;: &quot;{\\&quot;1\\&quot;:{\\&quot;label\\&quot;:\\&quot;text\\&quot;,\\&quot;value\\&quot;:\\&quot;\\&quot;,\\&quot;type\\&quot;:\\&quot;text\\&quot;}}&quot;,\n&quot;info&quot;: &quot;{\\&quot;firstName\\&quot;:\\&quot;Amelia\\&quot;,\\&quot;lastName\\&quot;:\\&quot;Test\\&quot;,\\&quot;phone\\&quot;:null,\\&quot;locale\\&quot;:\\&quot;en_US\\&quot;,\\&quot;timeZone\\&quot;:\\&quot;Europe\\\\\/Belgrade\\&quot;,\\&quot;urlParams\\&quot;:null}&quot;,\n&quot;appointmentId&quot;: null,\n&quot;persons&quot;: 1,\n&quot;token&quot;: null,\n&quot;payments&quot;: [],\n&quot;utcOffset&quot;: null,\n&quot;aggregatedPrice&quot;: true,\n&quot;isChangedStatus&quot;: null,\n&quot;isLastBooking&quot;: null,\n&quot;packageCustomerService&quot;: null,\n&quot;ticketsData&quot;: [],\n&quot;duration&quot;: null,\n&quot;created&quot;: null,\n&quot;actionsCompleted&quot;: null,\n&quot;isUpdated&quot;: null\n},\n{\n&quot;id&quot;: 899,\n&quot;customerId&quot;: 23,\n&quot;customer&quot;: {\n&quot;id&quot;: 23,\n&quot;firstName&quot;: &quot;Amelia&quot;,\n&quot;lastName&quot;: &quot;New Last Name&quot;,\n&quot;birthday&quot;: null,\n&quot;email&quot;: &quot;amelia1@test.test&quot;,\n&quot;phone&quot;: &quot;+381601234567&quot;,\n&quot;type&quot;: &quot;\u304a\u5ba2\u69d8&quot;,\n&quot;status&quot;: null,\n&quot;note&quot;: &quot;Note about customer&quot;,\n&quot;zoomUserId&quot;: null,\n&quot;countryPhoneIso&quot;: null,\n&quot;externalId&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;translations&quot;: null,\n&quot;gender&quot;: &quot;female&quot;\n},\n&quot;status&quot;: &quot;approved&quot;,\n&quot;extras&quot;: [],\n&quot;couponId&quot;: null,\n&quot;price&quot;: 0,\n&quot;coupon&quot;: null,\n&quot;customFields&quot;: &quot;{\\&quot;7\\&quot;:{\\&quot;label\\&quot;:\\&quot;My address\\&quot;,\\&quot;value\\&quot;:\\&quot;\\&quot;,\\&quot;type\\&quot;:\\&quot;address\\&quot;}}&quot;,\n&quot;info&quot;: &quot;{\\&quot;firstName\\&quot;:\\&quot;Amelia\\&quot;,\\&quot;lastName\\&quot;:\\&quot;New Last Name\\&quot;,\\&quot;phone\\&quot;:\\&quot;+381601234567\\&quot;,\\&quot;locale\\&quot;:\\&quot;\\&quot;,\\&quot;timeZone\\&quot;:null,\\&quot;urlParams\\&quot;:null}&quot;,\n&quot;appointmentId&quot;: null,\n&quot;persons&quot;: 1,\n&quot;token&quot;: null,\n&quot;payments&quot;: [],\n&quot;utcOffset&quot;: null,\n&quot;aggregatedPrice&quot;: true,\n&quot;isChangedStatus&quot;: null,\n&quot;isLastBooking&quot;: null,\n&quot;packageCustomerService&quot;: null,\n&quot;ticketsData&quot;: [],\n&quot;duration&quot;: null,\n&quot;created&quot;: null,\n&quot;actionsCompleted&quot;: null,\n&quot;isUpdated&quot;: null\n},\n{\n&quot;id&quot;: 898,\n&quot;customerId&quot;: 38,\n&quot;customer&quot;: {\n&quot;id&quot;: 38,\n&quot;firstName&quot;: &quot;Frank&quot;,\n&quot;lastName&quot;: &quot;DeAlvarez&quot;,\n&quot;birthday&quot;: null,\n&quot;email&quot;: &quot;frank@test.test&quot;,\n&quot;phone&quot;: null,\n&quot;type&quot;: &quot;\u304a\u5ba2\u69d8&quot;,\n&quot;status&quot;: null,\n&quot;note&quot;: null,\n&quot;zoomUserId&quot;: null,\n&quot;countryPhoneIso&quot;: null,\n&quot;externalId&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;translations&quot;: null,\n&quot;gender&quot;: null\n},\n&quot;status&quot;: &quot;approved&quot;,\n&quot;extras&quot;: [],\n&quot;couponId&quot;: null,\n&quot;price&quot;: 330,\n&quot;coupon&quot;: null,\n&quot;customFields&quot;: &quot;{\\&quot;7\\&quot;:{\\&quot;label\\&quot;:\\&quot;My address\\&quot;,\\&quot;value\\&quot;:\\&quot;\\&quot;,\\&quot;type\\&quot;:\\&quot;address\\&quot;}}&quot;,\n&quot;info&quot;: &quot;{\\&quot;firstName\\&quot;:\\&quot;Frank\\&quot;,\\&quot;lastName\\&quot;:\\&quot;DeAlvarez\\&quot;,\\&quot;phone\\&quot;:null,\\&quot;locale\\&quot;:\\&quot;\\&quot;,\\&quot;timeZone\\&quot;:null,\\&quot;urlParams\\&quot;:null}&quot;,\n&quot;appointmentId&quot;: null,\n&quot;persons&quot;: 1,\n&quot;token&quot;: null,\n&quot;payments&quot;: [],\n&quot;utcOffset&quot;: null,\n&quot;aggregatedPrice&quot;: true,\n&quot;isChangedStatus&quot;: null,\n&quot;isLastBooking&quot;: null,\n&quot;packageCustomerService&quot;: null,\n&quot;ticketsData&quot;: [],\n&quot;duration&quot;: null,\n&quot;created&quot;: null,\n&quot;actionsCompleted&quot;: null,\n&quot;isUpdated&quot;: null\n}\n],\n&quot;periods&quot;: [\n{\n&quot;id&quot;: 80,\n&quot;eventId&quot;: 80,\n&quot;periodStart&quot;: &quot;2023-08-25 17:00:00&quot;,\n&quot;periodEnd&quot;: &quot;2023-08-27 23:40:00&quot;,\n&quot;zoomMeeting&quot;: null,\n&quot;lessonSpace&quot;: null,\n&quot;bookings&quot;: [],\n&quot;googleCalendarEventId&quot;: null,\n&quot;googleMeetUrl&quot;: null,\n&quot;outlookCalendarEventId&quot;: null\n}\n],\n&quot;bookingOpens&quot;: null,\n&quot;bookingCloses&quot;: null,\n&quot;bookingOpensRec&quot;: &quot;same&quot;,\n&quot;bookingClosesRec&quot;: &quot;same&quot;,\n&quot;ticketRangeRec&quot;: null,\n&quot;status&quot;: &quot;approved&quot;,\n&quot;recurring&quot;: null,\n&quot;maxCapacity&quot;: 11,\n&quot;maxCustomCapacity&quot;: null,\n&quot;show&quot;: true,\n&quot;tags&quot;: [],\n&quot;customTickets&quot;: [],\n&quot;gallery&quot;: [],\n&quot;providers&quot;: [],\n&quot;notifyParticipants&quot;: 1,\n&quot;locationId&quot;: null,\n&quot;location&quot;: null,\n&quot;customLocation&quot;: null,\n&quot;parentId&quot;: null,\n&quot;created&quot;: &quot;2023-08-24 15:20:44&quot;,\n&quot;zoomUserId&quot;: null,\n&quot;organizerId&quot;: 35,\n&quot;type&quot;: &quot;event&quot;,\n&quot;bringingAnyone&quot;: true,\n&quot;bookMultipleTimes&quot;: true,\n&quot;translations&quot;: null,\n&quot;customPricing&quot;: false,\n&quot;closeAfterMin&quot;: null,\n&quot;closeAfterMinBookings&quot;: false,\n&quot;maxExtraPeople&quot;: null,\n&quot;initialEventStart&quot;: null,\n&quot;initialEventEnd&quot;: null,\n&quot;aggregatedPrice&quot;: true\n}\n],\n&quot;packageList&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;name&quot;: &quot;milicas package&quot;,\n&quot;description&quot;: &quot;&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 200,\n&quot;deposit&quot;: 20,\n&quot;depositPayment&quot;: &quot;percentage&quot;,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 5,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:false}}}&quot;,\n&quot;fullPayment&quot;: false,\n&quot;type&quot;: &quot;package&quot;,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;gallery&quot;: [],\n&quot;bookable&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;quantity&quot;: 1,\n&quot;service&quot;: {\n&quot;id&quot;: 2,\n&quot;name&quot;: &quot;milica service&quot;,\n&quot;description&quot;: null,\n&quot;color&quot;: null,\n&quot;price&quot;: 0,\n&quot;deposit&quot;: null,\n&quot;depositPayment&quot;: null,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: null,\n&quot;fullPayment&quot;: null,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: null,\n&quot;timeAfter&quot;: null,\n&quot;bringingAnyone&quot;: null,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: null,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: null,\n&quot;recurringSub&quot;: null,\n&quot;recurringPayment&quot;: null,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: null,\n&quot;mandatoryExtra&quot;: null,\n&quot;customPricing&quot;: null,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: null\n},\n&quot;minimumScheduled&quot;: 0,\n&quot;maximumScheduled&quot;: 1,\n&quot;providers&quot;: [],\n&quot;locations&quot;: [],\n&quot;allowProviderSelection&quot;: true\n},\n{\n&quot;id&quot;: 2,\n&quot;quantity&quot;: 1,\n&quot;service&quot;: {\n&quot;id&quot;: 3,\n&quot;name&quot;: &quot;milica2 service&quot;,\n&quot;description&quot;: null,\n&quot;color&quot;: null,\n&quot;price&quot;: 20.45,\n&quot;deposit&quot;: null,\n&quot;depositPayment&quot;: null,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: null,\n&quot;fullPayment&quot;: null,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: null,\n&quot;timeAfter&quot;: null,\n&quot;bringingAnyone&quot;: null,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: null,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: null,\n&quot;recurringSub&quot;: null,\n&quot;recurringPayment&quot;: null,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: null,\n&quot;mandatoryExtra&quot;: null,\n&quot;customPricing&quot;: null,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: null\n},\n&quot;minimumScheduled&quot;: 0,\n&quot;maximumScheduled&quot;: 1,\n&quot;providers&quot;: [],\n&quot;locations&quot;: [],\n&quot;allowProviderSelection&quot;: true\n}\n]\n}\n],\n&quot;expirationDate&quot;: &quot;2023-10-06&quot;\n}\n}\n}\n<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30fc\u30dd\u30f3\u306e\u66f4\u65b0<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u8a73\u7d30\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>POST<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons\/{{coupon_id}}<\/code><\/p>\n\n\n\n<p><strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/p>\n\n\n\n<p>\u66f4\u65b0\u3057\u305f\u3044\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307f\u3092\u9001\u4fe1\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table u-mb-ctrl u-mb-20\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u30ad\u30fc<\/strong><\/td><td><strong>\u30bf\u30a4\u30d7<\/strong><\/td><td><strong>\u8aac\u660e<\/strong><\/td><\/tr><\/thead><tbody><tr><td><code>code<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u30b3\u30fc\u30c9<\/td><\/tr><tr><td><code>discount<\/code><\/td><td>integer<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u5272\u5f15\u7387\uff08\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\uff09\u3002<\/td><\/tr><tr><td><code>deduction<\/code><\/td><td>float<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u5272\u5f15\u984d\u3002<\/td><\/tr><tr><td><code>limit<\/code><\/td><td>integer<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u5229\u7528\u5236\u9650\u3002<\/td><\/tr><tr><td><code>customerLimit<\/code><\/td><td>integer<\/td><td><strong>\u304a\u5ba2\u69d8<\/strong>\u3042\u305f\u308a\u306e\u5229\u7528\u5236\u9650\u3002<\/td><\/tr><tr><td><code>notificationInterval<\/code><\/td><td>integer<\/td><td><strong>\u304a\u5ba2\u69d8<\/strong>\u304c\u901a\u77e5\u3067\u30af\u30fc\u30dd\u30f3\u3092\u53d7\u3051\u53d6\u308b\u3001\u627f\u8a8d\u3055\u308c\u305f\u4e88\u7d04\u306e\u56de\u6570\u3002<\/td><\/tr><tr><td><code>notificationRecurring<\/code><\/td><td>boolean<\/td><td>\u8a2d\u5b9a\u3055\u308c\u305f<code>notificationInterval<\/code>\u304c\u7e70\u308a\u8fd4\u3057\u9069\u7528\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f<code>false<\/code>\u3067\u3059\u3002<\/td><\/tr><tr><td><code>status<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3002\u4f7f\u7528\u53ef\u80fd\u306a\u5024\uff1a<code>visible<\/code>\uff08\u8868\u793a\uff09\u3001<code>hidden<\/code>\uff08\u975e\u8868\u793a\uff09<\/td><\/tr><tr><td><code>services<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b\u30b5\u30fc\u30d3\u30b9ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>events<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b\u30a4\u30d9\u30f3\u30c8ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>packages<\/code><\/td><td>array<\/td><td>\u30af\u30fc\u30dd\u30f3\u304c\u9069\u7528\u3055\u308c\u308b<strong>\u30b3\u30fc\u30b9<\/strong>ID\u306e\u914d\u5217\u3002<\/td><\/tr><tr><td><code>expirationDate<\/code><\/td><td>string<\/td><td>\u30af\u30fc\u30dd\u30f3\u306e\u6709\u52b9\u671f\u9650\u3002\u5f62\u5f0f\uff1a<code>YYYY-MM-DD<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons\/14&#39; \\\n--header &#39;Content-Type: application\/json&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39; \\\n--data &#39;{ &quot;code&quot;: &quot;COUPON&quot;, &quot;discount&quot;: 0, &quot;deduction&quot;: 20 }&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;Coupon successfully updated.&quot;,\n&quot;data&quot;: {\n&quot;coupon&quot;: {\n&quot;id&quot;: 14,\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 20,\n&quot;limit&quot;: 20,\n&quot;customerLimit&quot;: 2,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;serviceList&quot;: [],\n&quot;eventList&quot;: [],\n&quot;packageList&quot;: [],\n&quot;expirationDate&quot;: &quot;2023-10-06&quot;\n}\n}\n}\n<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30fc\u30dd\u30f3\u306e\u53d6\u5f97<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u8a73\u7d30\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons\/{{coupon_id}}<\/code><\/p>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons\/5&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;Successfully retrieved coupon.&quot;,\n&quot;data&quot;: {\n&quot;coupon&quot;: {\n&quot;id&quot;: 5,\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 10,\n&quot;limit&quot;: 100,\n&quot;customerLimit&quot;: 2,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;serviceList&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;name&quot;: &quot;amelia service&quot;,\n&quot;description&quot;: &quot;location address: %location_address%&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 20,\n&quot;deposit&quot;: 14,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: true,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 1,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;square\\&quot;:{\\&quot;enabled\\&quot;:true}},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;activation\\&quot;:{\\&quot;version\\&quot;:\\&quot;6.7\\&quot;}}&quot;,\n&quot;fullPayment&quot;: true,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 10,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: 1800,\n&quot;timeAfter&quot;: 1800,\n&quot;bringingAnyone&quot;: true,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: true,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: &quot;all&quot;,\n&quot;recurringSub&quot;: &quot;future&quot;,\n&quot;recurringPayment&quot;: 999,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: 1,\n&quot;mandatoryExtra&quot;: false,\n&quot;customPricing&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;durations\\&quot;:{\\&quot;3600\\&quot;:{\\&quot;price\\&quot;:30,\\&quot;rules\\&quot;:[]},\\&quot;5400\\&quot;:{\\&quot;price\\&quot;:40,\\&quot;rules\\&quot;:[]}}}&quot;,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;numberOfApp\\&quot;:1,\\&quot;timeFrame\\&quot;:\\&quot;day\\&quot;,\\&quot;period\\&quot;:1,\\&quot;from\\&quot;:\\&quot;bookingDate\\&quot;}&quot;\n}\n],\n&quot;eventList&quot;: [],\n&quot;packageList&quot;: [],\n&quot;expirationDate&quot;: &quot;2023-05-06&quot;\n}\n}\n}\n<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u6570\u306e\u30af\u30fc\u30dd\u30f3\u306e\u53d6\u5f97<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u8a73\u7d30\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons<\/code><\/p>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;Successfully retrieved coupons.&quot;,\n&quot;data&quot;: {\n&quot;coupons&quot;: [\n{\n&quot;id&quot;: 14,\n&quot;code&quot;: &quot;COUPON2&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 20,\n&quot;limit&quot;: 40,\n&quot;customerLimit&quot;: 1,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;hidden&quot;,\n&quot;serviceList&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;name&quot;: &quot;amelia service&quot;,\n&quot;description&quot;: &quot;location address: %location_address%&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 20,\n&quot;deposit&quot;: 14,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: true,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 1,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;square\\&quot;:{\\&quot;enabled\\&quot;:true}},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;activation\\&quot;:{\\&quot;version\\&quot;:\\&quot;6.7\\&quot;},\\&quot;general\\&quot;:{\\&quot;minimumTimeRequirementPriorToCanceling\\&quot;:null}}&quot;,\n&quot;fullPayment&quot;: true,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 10,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: 1800,\n&quot;timeAfter&quot;: 1800,\n&quot;bringingAnyone&quot;: true,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: true,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: &quot;least_expensive&quot;,\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: &quot;all&quot;,\n&quot;recurringSub&quot;: &quot;future&quot;,\n&quot;recurringPayment&quot;: 999,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: 1,\n&quot;mandatoryExtra&quot;: false,\n&quot;customPricing&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;durations\\&quot;:{\\&quot;3600\\&quot;:{\\&quot;price\\&quot;:30,\\&quot;rules\\&quot;:[]},\\&quot;5400\\&quot;:{\\&quot;price\\&quot;:40,\\&quot;rules\\&quot;:[]}}}&quot;,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;numberOfApp\\&quot;:1,\\&quot;timeFrame\\&quot;:\\&quot;day\\&quot;,\\&quot;period\\&quot;:1,\\&quot;from\\&quot;:\\&quot;bookingDate\\&quot;}&quot;\n},\n{\n&quot;id&quot;: 2,\n&quot;name&quot;: &quot;milica service&quot;,\n&quot;description&quot;: &quot;&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 0,\n&quot;deposit&quot;: 20,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: false,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 5,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;onSite\\&quot;:true,\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:false}},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;activation\\&quot;:{\\&quot;version\\&quot;:\\&quot;6.6\\&quot;}}&quot;,\n&quot;fullPayment&quot;: false,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: null,\n&quot;timeAfter&quot;: null,\n&quot;bringingAnyone&quot;: true,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: true,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: &quot;least_expensive&quot;,\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: &quot;all&quot;,\n&quot;recurringSub&quot;: &quot;future&quot;,\n&quot;recurringPayment&quot;: 999,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: null,\n&quot;mandatoryExtra&quot;: false,\n&quot;customPricing&quot;: &quot;{\\&quot;enabled\\&quot;:true,\\&quot;durations\\&quot;:{\\&quot;3600\\&quot;:{\\&quot;price\\&quot;:150,\\&quot;rules\\&quot;:[]},\\&quot;5400\\&quot;:{\\&quot;price\\&quot;:200,\\&quot;rules\\&quot;:[]}}}&quot;,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: &quot;{\\&quot;enabled\\&quot;:false,\\&quot;numberOfApp\\&quot;:null,\\&quot;period\\&quot;:null,\\&quot;timeFrame\\&quot;:null,\\&quot;from\\&quot;:null}&quot;\n}\n],\n&quot;eventList&quot;: [\n{\n&quot;id&quot;: 80,\n&quot;name&quot;: &quot;event 123&quot;,\n&quot;description&quot;: &quot;&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 330,\n&quot;deposit&quot;: 110,\n&quot;depositPayment&quot;: &quot;\u6307\u5b9a\u984d&quot;,\n&quot;depositPerPerson&quot;: true,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:false}},\\&quot;general\\&quot;:{\\&quot;minimumTimeRequirementPriorToCanceling\\&quot;:null,\\&quot;redirectUrlAfterAppointment\\&quot;:null},\\&quot;zoom\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;lessonSpace\\&quot;:{\\&quot;enabled\\&quot;:false}}&quot;,\n&quot;fullPayment&quot;: false,\n&quot;bookings&quot;: [],\n&quot;periods&quot;: [\n{\n&quot;id&quot;: 80,\n&quot;eventId&quot;: 80,\n&quot;periodStart&quot;: &quot;2023-08-25 17:00:00&quot;,\n&quot;periodEnd&quot;: &quot;2023-08-27 23:40:00&quot;,\n&quot;zoomMeeting&quot;: null,\n&quot;lessonSpace&quot;: null,\n&quot;bookings&quot;: [],\n&quot;googleCalendarEventId&quot;: null,\n&quot;googleMeetUrl&quot;: null,\n&quot;outlookCalendarEventId&quot;: null\n}\n],\n&quot;bookingOpens&quot;: null,\n&quot;bookingCloses&quot;: null,\n&quot;bookingOpensRec&quot;: &quot;same&quot;,\n&quot;bookingClosesRec&quot;: &quot;same&quot;,\n&quot;ticketRangeRec&quot;: null,\n&quot;status&quot;: &quot;approved&quot;,\n&quot;recurring&quot;: null,\n&quot;maxCapacity&quot;: 11,\n&quot;maxCustomCapacity&quot;: null,\n&quot;show&quot;: true,\n&quot;tags&quot;: [],\n&quot;customTickets&quot;: [],\n&quot;gallery&quot;: [],\n&quot;providers&quot;: [],\n&quot;notifyParticipants&quot;: 1,\n&quot;locationId&quot;: null,\n&quot;location&quot;: null,\n&quot;customLocation&quot;: null,\n&quot;parentId&quot;: null,\n&quot;created&quot;: &quot;2023-08-24 15:20:44&quot;,\n&quot;zoomUserId&quot;: null,\n&quot;organizerId&quot;: 35,\n&quot;type&quot;: &quot;event&quot;,\n&quot;bringingAnyone&quot;: true,\n&quot;bookMultipleTimes&quot;: true,\n&quot;translations&quot;: null,\n&quot;customPricing&quot;: false,\n&quot;closeAfterMin&quot;: null,\n&quot;closeAfterMinBookings&quot;: false,\n&quot;maxExtraPeople&quot;: null,\n&quot;initialEventStart&quot;: null,\n&quot;initialEventEnd&quot;: null,\n&quot;aggregatedPrice&quot;: true\n}\n],\n&quot;packageList&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;name&quot;: &quot;milicas package&quot;,\n&quot;description&quot;: &quot;&quot;,\n&quot;color&quot;: &quot;#1788FB&quot;,\n&quot;price&quot;: 200,\n&quot;deposit&quot;: 20,\n&quot;depositPayment&quot;: &quot;percentage&quot;,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: 5,\n&quot;settings&quot;: &quot;{\\&quot;payments\\&quot;:{\\&quot;paymentLinks\\&quot;:{\\&quot;enabled\\&quot;:true,\\&quot;changeBookingStatus\\&quot;:false,\\&quot;redirectUrl\\&quot;:null},\\&quot;onSite\\&quot;:true,\\&quot;payPal\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;stripe\\&quot;:{\\&quot;enabled\\&quot;:true},\\&quot;mollie\\&quot;:{\\&quot;enabled\\&quot;:false},\\&quot;razorpay\\&quot;:{\\&quot;enabled\\&quot;:false}}}&quot;,\n&quot;fullPayment&quot;: false,\n&quot;type&quot;: &quot;package&quot;,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;gallery&quot;: [],\n&quot;bookable&quot;: [\n{\n&quot;id&quot;: 1,\n&quot;quantity&quot;: 1,\n&quot;service&quot;: {\n&quot;id&quot;: 2,\n&quot;name&quot;: &quot;milica service&quot;,\n&quot;description&quot;: null,\n&quot;color&quot;: null,\n&quot;price&quot;: 0,\n&quot;deposit&quot;: null,\n&quot;depositPayment&quot;: null,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: null,\n&quot;fullPayment&quot;: null,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: null,\n&quot;timeAfter&quot;: null,\n&quot;bringingAnyone&quot;: null,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: null,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: null,\n&quot;recurringSub&quot;: null,\n&quot;recurringPayment&quot;: null,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: null,\n&quot;mandatoryExtra&quot;: null,\n&quot;customPricing&quot;: null,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: null\n},\n&quot;minimumScheduled&quot;: 0,\n&quot;maximumScheduled&quot;: 1,\n&quot;providers&quot;: [],\n&quot;locations&quot;: [],\n&quot;allowProviderSelection&quot;: true\n},\n{\n&quot;id&quot;: 2,\n&quot;quantity&quot;: 1,\n&quot;service&quot;: {\n&quot;id&quot;: 3,\n&quot;name&quot;: &quot;milica2 service&quot;,\n&quot;description&quot;: null,\n&quot;color&quot;: null,\n&quot;price&quot;: 20.45,\n&quot;deposit&quot;: null,\n&quot;depositPayment&quot;: null,\n&quot;depositPerPerson&quot;: null,\n&quot;pictureFullPath&quot;: null,\n&quot;pictureThumbPath&quot;: null,\n&quot;extras&quot;: [],\n&quot;coupons&quot;: [],\n&quot;position&quot;: null,\n&quot;settings&quot;: null,\n&quot;fullPayment&quot;: null,\n&quot;minCapacity&quot;: 1,\n&quot;maxCapacity&quot;: 1,\n&quot;duration&quot;: 1800,\n&quot;timeBefore&quot;: null,\n&quot;timeAfter&quot;: null,\n&quot;bringingAnyone&quot;: null,\n&quot;show&quot;: true,\n&quot;aggregatedPrice&quot;: null,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;categoryId&quot;: 1,\n&quot;category&quot;: null,\n&quot;priority&quot;: [],\n&quot;gallery&quot;: [],\n&quot;recurringCycle&quot;: null,\n&quot;recurringSub&quot;: null,\n&quot;recurringPayment&quot;: null,\n&quot;translations&quot;: null,\n&quot;minSelectedExtras&quot;: null,\n&quot;mandatoryExtra&quot;: null,\n&quot;customPricing&quot;: null,\n&quot;maxExtraPeople&quot;: null,\n&quot;limitPerCustomer&quot;: null\n},\n&quot;minimumScheduled&quot;: 0,\n&quot;maximumScheduled&quot;: 1,\n&quot;providers&quot;: [],\n&quot;locations&quot;: [],\n&quot;allowProviderSelection&quot;: true\n}\n]\n}\n],\n&quot;expirationDate&quot;: &quot;2023-10-06&quot;\n}\n}\n}\n<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator alignwide has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u30af\u30fc\u30dd\u30f3\u306e\u524a\u9664<\/h3>\n\n\n\n<p>\u30af\u30fc\u30dd\u30f3\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30e1\u30bd\u30c3\u30c9<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f<code>POST<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30d1\u30b9<\/strong><\/p>\n\n\n\n<p><code>\/coupons\/delete\/{{coupon_id}}<\/code><\/p>\n\n\n\n<p><strong>\u4f8b<\/strong>\uff1a<\/p>\n\n\n\n<div class=\"swell-block-accordion\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ea\u30af\u30a8\u30b9\u30c8<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>curl --location --request POST &#39;http:\/\/localhost\/amelia\/wp-admin\/admin-ajax.php?action=wpamelia_api&call=\/api\/v1\/coupons\/delete\/14&#39; \\\n--header &#39;Amelia: qUmkNNOLrWbf28izIgNnZ29O+7gVWL5M+8ySJ8VXq3r0&#39;\n<\/code><\/pre><\/div>\n<\/div><\/details>\n\n\n\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">\u30ec\u30b9\u30dd\u30f3\u30b9<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n&quot;message&quot;: &quot;Coupon successfully deleted.&quot;,\n&quot;data&quot;: {\n&quot;coupon&quot;: {\n&quot;id&quot;: 14,\n&quot;code&quot;: &quot;COUPON&quot;,\n&quot;discount&quot;: 0,\n&quot;deduction&quot;: 10,\n&quot;limit&quot;: 20,\n&quot;customerLimit&quot;: 2,\n&quot;used&quot;: 0,\n&quot;notificationInterval&quot;: 0,\n&quot;notificationRecurring&quot;: false,\n&quot;status&quot;: &quot;visible&quot;,\n&quot;serviceList&quot;: [],\n&quot;eventList&quot;: [],\n&quot;packageList&quot;: [],\n&quot;expirationDate&quot;: &quot;2023-10-06&quot;\n}\n}\n}<\/code><\/pre><\/div>\n<\/div><\/details>\n<\/div>\n","protected":false},"author":1,"parent":0,"template":"","bkb_category":[78],"bkb_tags":[],"class_list":["post-8034","bwl_kb","type-bwl_kb","status-publish","hentry","bkb_category-api-endpoints"],"_links":{"self":[{"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bwl_kb\/8034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bwl_kb"}],"about":[{"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/types\/bwl_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bwl_kb\/8034\/revisions"}],"predecessor-version":[{"id":8098,"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bwl_kb\/8034\/revisions\/8098"}],"wp:attachment":[{"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/media?parent=8034"}],"wp:term":[{"taxonomy":"bkb_category","embeddable":true,"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bkb_category?post=8034"},{"taxonomy":"bkb_tags","embeddable":true,"href":"https:\/\/www.flow-state.jp\/amelia\/wp-json\/wp\/v2\/bkb_tags?post=8034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}