{"id":302,"date":"2023-07-26T14:02:00","date_gmt":"2023-07-26T14:02:00","guid":{"rendered":"https:\/\/www.wellnessliving.com\/developer-portal\/?p=302"},"modified":"2024-10-16T18:59:20","modified_gmt":"2024-10-16T18:59:20","slug":"api-usage","status":"publish","type":"post","link":"https:\/\/www.wellnessliving.com\/developer-portal\/getting-started\/api-usage\/","title":{"rendered":"API usage"},"content":{"rendered":"\n<p>When using our API, keep the following information in mind:<\/p>\n\n\n\n<ul><li>When working with events that have the <strong>Clients can pay online or pay when they visit<\/strong> purchase rule set, you&#8217;ll need to set the <span class=\"coding_type\">is_force_pay_later<\/span> field of your endpoint to <span class=\"coding_type\">true<\/span> to book an event without payment using the <span class=\"coding_type\">post<\/span> method. Otherwise, an error message will appear, preventing you from successfully booking the event.<\/li><li>The term <em>promotion<\/em> is synonymous with <a href=\"https:\/\/www.wellnessliving.com\/knowledge-sharing\/knowledge-base\/purchase-options\/\">Purchase Option<\/a>.<\/li><li>In the WellnessLiving SDK, an SID is a string ID used for communicating information in a human-readable format.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When using our API, keep the following information in mind: When working with events that have the Clients can pay online or pay when they visit purchase rule set, you&#8217;ll need to set the is_force_pay_later field of your endpoint to true to book an event without payment using the post method. Otherwise, an error message [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,38],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/posts\/302"}],"collection":[{"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":7,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/posts\/302\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellnessliving.com\/developer-portal\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}