{"id":526,"date":"2025-03-20T17:28:11","date_gmt":"2025-03-20T17:28:11","guid":{"rendered":"http:\/\/documentation.wpgetpaid.com\/?post_type=gd_place&#038;p=526"},"modified":"2025-03-26T13:53:57","modified_gmt":"2025-03-26T13:53:57","slug":"license-manager-api-endpoints","status":"publish","type":"gd_place","link":"https:\/\/wpgetpaid.com\/documentation\/article\/license-manager\/license-manager-api-endpoints\/","title":{"rendered":"License Manager API Endpoints"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Validate License Request<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">GET\/REQUEST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id}<\/pre>\n\n\n\n<p><strong>license_key <\/strong>is the key given after purchasing the item.<br><strong>Item_id<\/strong>&nbsp;is the id of the product purchased.<\/p>\n\n\n\n<p>Example return:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{\n  &quot;id&quot;: 6,\n  &quot;status&quot;: &quot;active&quot;,\n  &quot;date_created&quot;: &quot;2023-01-19 13:54:33&quot;,\n  &quot;date_created_gmt&quot;: &quot;2023-01-19 13:54:33&quot;,\n  &quot;date_expires&quot;: &quot;2023-02-19 13:54:33&quot;,\n  &quot;date_expires_gmt&quot;: &quot;2023-02-19 13:54:33&quot;,\n  &quot;date_last_activated&quot;: &quot;0000-00-00 00:00:00&quot;,\n  &quot;date_last_activated_gmt&quot;: &quot;0000-00-00 00:00:00&quot;,\n  &quot;item_id&quot;: 5026,\n  &quot;invoice_id&quot;: 5034,\n  &quot;customer_id&quot;: 1,\n  &quot;license_key&quot;: &quot;4bb82ecd347bac6dc5f0ccbf1990&quot;,\n  &quot;activations&quot;: 1,\n  &quot;max_activations&quot;: 3,\n  &quot;activated_on&quot;: {\n    &quot;ppldb.com\/stiofan&quot;: &quot;2023-01-19 14:42:06&quot;\n  },\n  &quot;view_url&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/my-licenses\/?license=6&quot;,\n  &quot;item_version&quot;: &quot;1.0.0&quot;,\n  &quot;item_changelog&quot;: &quot;&quot;,\n  &quot;_links&quot;: {\n    &quot;self&quot;: [\n      {\n        &quot;href&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/wp-json\/getpaid\/v1\/licenses\/6&quot;\n      }\n    ],\n    &quot;collection&quot;: [\n      {\n        &quot;href&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/wp-json\/getpaid\/v1\/licenses&quot;\n      }\n    ],\n    &quot;customer&quot;: [\n      {\n        &quot;embeddable&quot;: true,\n        &quot;href&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/wp-json\/wp\/v2\/users\/1&quot;\n      }\n    ],\n    &quot;invoice&quot;: [\n      {\n        &quot;embeddable&quot;: true,\n        &quot;href&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/wp-json\/getpaid\/v1\/invoices\/5034&quot;\n      }\n    ],\n    &quot;item&quot;: [\n      {\n        &quot;embeddable&quot;: true,\n        &quot;href&quot;: &quot;https:\/\/demos.ayecode.io\/getpaid\/wp-json\/getpaid\/v1\/items\/5026&quot;\n      }\n    ]\n  }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Activate license<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">POST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id}\/activate?app={website_url}<\/pre>\n\n\n\n<p><strong>license_key <\/strong>is the key given after purchasing the item.<br><strong>Item_id<\/strong>&nbsp;is the id of the product purchased.<br><strong>website_url <\/strong>is the website where it is being activated, this can also be changed to a app name if used in an app.<\/p>\n\n\n\n<p>Example return (first time activation):&nbsp;This is the same as the validation return above.<br><br>Example return if already active on the given website:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{&quot;code&quot;: &quot;already_activated&quot;,\n&quot;message&quot;: &quot;This license key is already activated on the website.&quot;,\n&quot;data&quot;: {&quot;status&quot;: 400}\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Deactivate license<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">POST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id}\/deactivate?app={website_url}<\/pre>\n\n\n\n<p>license_key&nbsp;is the key given after purchasing the item.<br><br>Item_id&nbsp;is the id of the product purchased.<br><br>website_url&nbsp;is the website where it is being activated, this can also be changed to a app name if used in an app.<\/p>\n\n\n\n<p>Example return: This is the same as the validation return above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check if a license is active on a specific site<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">POST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id}\/check?app={website_url}<\/pre>\n\n\n\n<p>license_key&nbsp;is the key given after purchasing the item.<br>Item_id&nbsp;is the id of the product purchased.<br>website_url&nbsp;is the website where it is being activated, this can also be changed to a app name if used in an app.<\/p>\n\n\n\n<p>Example return:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{ &quot;is_active&quot;: true }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Validate License Request GET\/REQUEST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id} license_key is the key given after purchasing the item.Item_id&nbsp;is the id of the product purchased. Example return: Activate license POST: \/wp-json\/getpaid\/v1\/licenses\/{licence_key}\/{item_id}\/activate?app={website_url} license_key is the key given after purchasing the item.Item_id&nbsp;is the id of the product purchased.website_url is the website where it is being activated, this can also be changed to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[213,237],"class_list":["post-526","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-extensions-features","gd_placecategory-license-manager"],"_links":{"self":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":0,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/526\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=526"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgetpaid.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}