{"id":10893,"date":"2019-08-06T10:24:41","date_gmt":"2019-08-06T10:24:41","guid":{"rendered":"https:\/\/www.mageworx.com\/blog\/?p=10893"},"modified":"2022-04-19T13:58:11","modified_gmt":"2022-04-19T13:58:11","slug":"magento-2-gift-cards-by-mageworx-available-rest-api-requests","status":"publish","type":"post","link":"https:\/\/www.mageworx.com\/blog\/magento-2-gift-cards-available-rest-api-requests","title":{"rendered":"Magento 2 Gift Cards by MageWorx: Available REST API Requests"},"content":{"rendered":"\n<!-- SEO Ultimate (http:\/\/www.seodesignsolutions.com\/wordpress-seo\/) - Code Inserter module -->\n<!-- Google Tag Manager (noscript) -->\r\n<noscript><iframe src=\"https:\/\/www.googletagmanager.com\/ns.html?id=GTM-5DTCW7B8\"\r\nheight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"><\/iframe><\/noscript>\r\n<!-- End Google Tag Manager (noscript) -->\n<!-- \/SEO Ultimate -->\n\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<p>Now that you know the <a href=\"https:\/\/www.mageworx.com\/blog\/pros-and-cons-of-gift-cards\" data-type=\"URL\" data-id=\"https:\/\/www.mageworx.com\/blog\/pros-and-cons-of-gift-cards\">advantages and disadvantages of gift cards<\/a>, you should have made your choice and decided to add such functionality to your Magento 2 business or not.<\/p>\n\n\n\n<p>This article is for those who have already made their minds, and want to learn which REST API requests the <a href=\"https:\/\/www.mageworx.com\/magento-2-gift-cards.html\" data-type=\"URL\" data-id=\"https:\/\/www.mageworx.com\/magento-2-gift-cards.html\">Mageworx Gift Cards extension<\/a> for Magento 2 offers.<\/p>\n\n\n\n<p>In this article, we will cover the most critical for a\nbusiness REST API requests, which have not been previously available within\nsimilar 3<sup>rd<\/sup>-party solutions.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>With the help of the GET request, it is possible to receive the list of gift cards that were used when making an order. This request should contain \u2018searchCriteria\u2019 in the URL address. The main template for creating such requests is available here: <\/p>\n\n\n\n<p><a href=\"https:\/\/devdocs.magento.com\/redoc\/2.3\/\">https:\/\/devdocs.magento.com\/redoc\/2.3\/<\/a><\/p>\n\n\n\n<p>GET <code>\/V1\/mw-giftcards?searchCriteria[filter_groups][0][filters][0][field]=order_id&amp;searchCriteria[filter_groups][0][filters][0][value]=40&amp;searchCriteria[filter_groups][0][filters][0][condition_type]=gteq<\/code> -&gt; Get Gift Cards matching the specified criteria (variable =&gt; <code>card_id \/ order_id<\/code>)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1519\" height=\"821\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10897\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02.png 1519w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-600x324.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-1200x649.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-768x415.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-250x135.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-696x376.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-1068x577.png 1068w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/Screen_Shot_2019-07-23_at_14.51.02-777x420.png 777w\" sizes=\"auto, (max-width: 1519px) 100vw, 1519px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1528\" height=\"364\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10898\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2.png 1528w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-600x143.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-1200x286.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-768x183.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-250x60.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-696x166.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/2-1068x254.png 1068w\" sizes=\"auto, (max-width: 1528px) 100vw, 1528px\" \/><\/figure>\n\n\n\n<p>2. To receive data about a <em>gift card<\/em> by specifying its card code in the endpoint, use the following request:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>GET <code>\/V1\/mw-giftcards\/:giftCardCode<\/code> -&gt; Get Gift Card Info by Card Code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1435\" height=\"580\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10903\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3.png 1435w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-600x243.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-1200x485.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-768x310.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-250x101.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-696x281.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-1068x432.png 1068w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/3-1039x420.png 1039w\" sizes=\"auto, (max-width: 1435px) 100vw, 1435px\" \/><\/figure>\n\n\n\n<p>3. Use the following request to create a <em>gift card <\/em>with a specific card code: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>POST <code>\/V1\/mw-giftcards<\/code> -&gt; Create Gift Card with the specified code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1467\" height=\"805\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10905\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4.png 1467w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-600x329.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-1200x658.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-768x421.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-250x137.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-696x382.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-1068x586.png 1068w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/4-765x420.png 765w\" sizes=\"auto, (max-width: 1467px) 100vw, 1467px\" \/><\/figure>\n\n\n\n<p>4. The PUT request allows you to edit <a href=\"https:\/\/www.mageworx.com\/wiki\/how-to-create-a-gift-card-in-magento\" data-type=\"URL\" data-id=\"https:\/\/www.mageworx.com\/wiki\/how-to-create-a-gift-card-in-magento\">Magento 2 <em>gift cards<\/em><\/a><em> <\/em>data conveniently. It is worth remembering that it is required to specify an ID of a <em>gift card <\/em>you wish to edit in the request body.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PUT <code>\/V1\/mw-giftcards<\/code> -&gt; Update Gift Card<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1461\" height=\"828\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10917\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5.png 1461w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-600x340.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-1200x680.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-768x435.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-250x142.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-696x394.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-1068x605.png 1068w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/5-741x420.png 741w\" sizes=\"auto, (max-width: 1461px) 100vw, 1461px\" \/><\/figure>\n\n\n\n<p>5. The DELETE request naturally allows deleting <em>gift cards. <\/em>This can be performed by specifying a <em>gift card <\/em>code in the endpoint: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>DELETE <code>\/V1\/mw-giftcards\/:giftCardCode<\/code> -&gt; Delete Gift Card by Card Code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1461\" height=\"217\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10918\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6.png 1461w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-600x89.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-1200x178.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-768x114.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-250x37.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-696x103.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/6-1068x159.png 1068w\" sizes=\"auto, (max-width: 1461px) 100vw, 1461px\" \/><\/figure>\n\n\n\n<p>6. With the help of the following requests, you can find out the balance, status and the validity period of a <em>gift card.<\/em> This shall be done by specifying a <em>gift card <\/em>code in the endpoint: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>GET <code>\/V1\/mw-giftcards\/:giftCardCode\/balance<\/code> -&gt; Get Gift Card balance by Card Code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1439\" height=\"187\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10920\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7.png 1439w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-600x78.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-1200x156.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-768x100.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-250x32.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-696x90.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/7-1068x139.png 1068w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>GET <code>\/V1\/mw-giftcards\/:giftCardCode\/status<\/code> -&gt; Get Gift Card status label by Card Code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1443\" height=\"179\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10923\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8.png 1443w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-600x74.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-1200x149.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-768x95.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-250x31.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-696x86.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/8-1068x132.png 1068w\" sizes=\"auto, (max-width: 1443px) 100vw, 1443px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>GET <code>\/V1\/mw-giftcards\/:giftCardCode\/expireDate<\/code> -&gt; Get Gift Card expire date by Card Code<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1434\" height=\"155\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9.png\" alt=\"\" class=\"wp-image-10924\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9.png 1434w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-600x65.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-1200x130.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-768x83.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-250x27.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-696x75.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/9-1068x115.png 1068w\" sizes=\"auto, (max-width: 1434px) 100vw, 1434px\" \/><\/figure>\n\n\n\n<p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThe\nnext group of requests will come in handy if you develop a mobile app and need\nto use API requests in order to add\/delete a <em>gift card <\/em>to\/from the shopping cart. Let\u2019s have an insight.\n\n\n\n<\/p>\n\n\n\n<p>7. The below-mentioned requests allow you to add a <em>gift card <\/em>to the shopping cart, guest cart or a customer cart:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PUT <code>\/V1\/carts\/:cartId\/mw-giftcards\/:giftCardCode<\/code> -&gt; Add Gift Card to Cart;<\/li><li> PUT <code>\/V1\/carts\/guest-carts\/:cartId\/mw-giftcards\/:giftCardCode <\/code>-&gt; Add Gift Card to Cart for Guest;<\/li><li> PUT <code>\/V1\/carts\/mine\/mw-giftcards\/:giftCardCode<\/code>-&gt; Add Gift Card to Cart for Customer.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1439\" height=\"203\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10926\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10.png 1439w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-600x85.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-1200x169.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-768x108.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-250x35.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-696x98.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/10-1068x151.png 1068w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/figure>\n\n\n\n<p>8. The last but not least group of requests will come in handy if you need to delete <em>a gift card <\/em>from the shopping cart guest cart or a customer cart.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>DELETE <code>\/V1\/carts\/:cartId\/mw-giftcards\/:giftCardCode<\/code> -&gt; Remove Gift Card from Cart;<\/li><li> DELETE <code>\/V1\/carts\/guest-carts\/:cartId\/mw-giftcards\/:giftCardCode<\/code> -&gt; Remove Gift Card from Cart for Guest;<\/li><li> DELETE <code>\/V1\/carts\/mine\/mw-giftcards\/:giftCardCode<\/code> -&gt; Remove Gift Card from Cart for Customer.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1435\" height=\"185\" src=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11.png\" alt=\"Magento 2 Gift Cards by MageWorx: Available REST API Requests | MageWorx Magento Blog\" class=\"wp-image-10934\" srcset=\"https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11.png 1435w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-600x77.png 600w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-1200x155.png 1200w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-768x99.png 768w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-250x32.png 250w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-696x90.png 696w, https:\/\/www.mageworx.com\/blog\/wp-content\/uploads\/2019\/08\/11-1068x138.png 1068w\" sizes=\"auto, (max-width: 1435px) 100vw, 1435px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Documentation:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/performing-searches.html (opens in a new tab)\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/performing-searches.html\" target=\"_blank\">https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/performing-searches.html<\/a><\/li><li> <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/list.html (opens in a new tab)\" href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/list.html\" target=\"_blank\">https:\/\/devdocs.magento.com\/guides\/v2.3\/rest\/list.html<\/a><\/li><li> <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/support.mageworx.com\/manuals\/gift_card\/#gift-card-api (opens in a new tab)\" href=\"https:\/\/support.mageworx.com\/manuals\/gift_card\/#gift-card-api\" target=\"_blank\">https:\/\/support.mageworx.com\/manuals\/gift_card\/#gift-card-api<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>Now that you know the advantages and disadvantages of gift cards, you should have made your choice and decided to add such functionality to your Magento 2 business or not. This article is for those who have already made their minds, and want to learn which REST API requests the Mageworx Gift Cards extension for [&hellip;]<\/p>\n","protected":false},"author":38,"featured_media":10894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[255,426],"tags":[454,453],"class_list":{"0":"post-10893","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-magento-2","8":"category-extensions-tips-and-tricks","9":"tag-gift-cards","10":"tag-rest-api"},"_links":{"self":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/10893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/comments?post=10893"}],"version-history":[{"count":17,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/10893\/revisions"}],"predecessor-version":[{"id":15236,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/posts\/10893\/revisions\/15236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/media\/10894"}],"wp:attachment":[{"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/media?parent=10893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/categories?post=10893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mageworx.com\/blog\/wp-json\/wp\/v2\/tags?post=10893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}