{"id":392,"date":"2018-03-19T10:03:34","date_gmt":"2018-03-19T10:03:34","guid":{"rendered":"https:\/\/kevingoedecke.com\/?p=392"},"modified":"2018-03-19T10:17:48","modified_gmt":"2018-03-19T10:17:48","slug":"add-payment-link-to-woocommerce-subscription-renewal-email","status":"publish","type":"post","link":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/","title":{"rendered":"Add Payment Link to WooCommerce Subscription Renewal Email"},"content":{"rendered":"<p>I&#8217;m currently working for a client that manages subscriptions with WordPress and WooCommerce (in particular using the\u00a0<a href=\"https:\/\/woocommerce.com\/products\/woocommerce-subscriptions\/\">WooCommerce Subscription plugin<\/a>). Since most payment options they support are actually manual payments like bank transfer (BACS), we had to figure out a way to add a payment link to the WooCommerce subscription renewal email.<\/p>\n<p>In order to accept manual renewals enable it in the WooCommerce Subscription settings (the documentation can be found here: <a href=\"https:\/\/docs.woocommerce.com\/document\/subscriptions\/store-manager-guide\/#accept-manual-renewals\">WooCommerce Subscription Manual Renewal<\/a>).<\/p>\n<p>The template for the renewal email is called &#8220;Customer Renewal Invoice&#8221; and is usually only sent to the Customer.<\/p>\n<p><a href=\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-subscription-renewal.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-393\" src=\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-subscription-renewal-1024x624.jpg\" alt=\"\" width=\"1024\" height=\"624\" srcset=\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-subscription-renewal-1024x624.jpg 1024w, https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-subscription-renewal-300x183.jpg 300w, https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-subscription-renewal-768x468.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Please keep in mind that if you&#8217;re working in a local or staging environment you need to specifically enable automatic payments (see: <a href=\"https:\/\/docs.woocommerce.com\/document\/subscriptions-handles-staging-sites\/#section-4\">Enabling Automatic Payments for Staging Sites<\/a>).<\/p>\n<p>To add a payment link to the Customer Renewal Invoice we need to add a custom template in our theme directory.<\/p>\n<p>Create a new file in <span class=\"lang:default decode:true crayon-inline\">\/wp-content\/themes\/{your-theme}\/woocommerce\/emails\/<\/span>\u00a0 and name it <span class=\"lang:default decode:true crayon-inline\">customer-renewal-invoice.php<\/span><\/p>\n<p>Paste the following content into the file:<\/p>\n<pre class=\"\">&lt;?php\r\n\/**\r\n * Customer renewal invoice email\r\n *\r\n * @author  Brent Shepherd\r\n * @package WooCommerce_Subscriptions\/Templates\/Emails\r\n * @version 1.4.0\r\n *\/\r\nif ( ! defined( 'ABSPATH' ) ) {\r\n\texit; \/\/ Exit if accessed directly\r\n}\r\n?&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?&gt;\r\n\r\n&lt;?php if ( 'pending' == $order-&gt;get_status() ) : ?&gt;\r\n\t&lt;p&gt;\r\n\t\t&lt;?php\r\n\t\t\/\/ translators: %1$s: name of the blog, %2$s: link to checkout payment url, note: no full stop due to url at the end\r\n\t\techo wp_kses( sprintf( _x( 'An invoice has been created for you to renew your subscription with %1$s. To pay for this invoice please use the following link: %2$s', 'In customer renewal invoice email', 'woocommerce-subscriptions' ), esc_html( get_bloginfo( 'name' ) ), '&lt;a href=\"' . esc_url( $order-&gt;get_checkout_payment_url() ) . '\"&gt;' . esc_html__( 'Pay Now &amp;raquo;', 'woocommerce-subscriptions' ) . '&lt;\/a&gt;' ), array( 'a' =&gt; array( 'href' =&gt; true ) ) );\r\n\t\t?&gt;\r\n\t&lt;\/p&gt;\r\n&lt;?php elseif ( 'failed' == $order-&gt;get_status() ) : ?&gt;\r\n\t&lt;p&gt;\r\n\t\t&lt;?php\r\n\t\t\/\/ translators: %1$s: name of the blog, %2$s: link to checkout payment url, note: no full stop due to url at the end\r\n\t\techo wp_kses( sprintf( _x( 'The automatic payment to renew your subscription with %1$s has failed. To reactivate the subscription, please login and pay for the renewal from your account page: %2$s', 'In customer renewal invoice email', 'woocommerce-subscriptions' ), esc_html( get_bloginfo( 'name' ) ), '&lt;a href=\"' . esc_url( $order-&gt;get_checkout_payment_url() ) . '\"&gt;' . esc_html__( 'Pay Now &amp;raquo;', 'woocommerce-subscriptions' ) . '&lt;\/a&gt;' ), array( 'a' =&gt; array( 'href' =&gt; true ) ) ); ?&gt;&lt;\/p&gt;\r\n&lt;?php endif; ?&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email ); ?&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_email_footer', $email ); ?&gt;<\/pre>\n<p>At the position of the renewal email where you want to have the payment link add the following two lines of code:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php $pay_now_url = esc_url( $order-&gt;get_checkout_payment_url() ); ?&gt;\r\n&lt;a href=\"&lt;?php echo $pay_now_url; ?&gt;\"&gt;&lt;?php echo __('Pay now'); ?&gt;&lt;\/a&gt;<\/pre>\n<p>Your final\u00a0<span class=\"lang:default decode:true crayon-inline\">customer-renewal-invoice.php<\/span> should look similar to this:<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\/**\r\n * Customer renewal invoice email\r\n *\r\n * @author  Brent Shepherd\r\n * @package WooCommerce_Subscriptions\/Templates\/Emails\r\n * @version 1.4.0\r\n *\/\r\nif ( ! defined( 'ABSPATH' ) ) {\r\n\texit; \/\/ Exit if accessed directly\r\n}\r\n?&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?&gt;\r\n\r\n&lt;?php if ( 'pending' == $order-&gt;get_status() ) : ?&gt;\r\n\t&lt;p&gt;\r\n\t\t&lt;?php\r\n\t\t\/\/ translators: %1$s: name of the blog, %2$s: link to checkout payment url, note: no full stop due to url at the end\r\n\t\techo wp_kses( sprintf( _x( 'An invoice has been created for you to renew your subscription with %1$s. To pay for this invoice please use the following link: %2$s', 'In customer renewal invoice email', 'woocommerce-subscriptions' ), esc_html( get_bloginfo( 'name' ) ), '&lt;a href=\"' . esc_url( $order-&gt;get_checkout_payment_url() ) . '\"&gt;' . esc_html__( 'Pay Now &amp;raquo;', 'woocommerce-subscriptions' ) . '&lt;\/a&gt;' ), array( 'a' =&gt; array( 'href' =&gt; true ) ) );\r\n\t\t?&gt;\r\n\t&lt;\/p&gt;\r\n&lt;?php elseif ( 'failed' == $order-&gt;get_status() ) : ?&gt;\r\n\t&lt;p&gt;\r\n\t\t&lt;?php\r\n\t\t\/\/ translators: %1$s: name of the blog, %2$s: link to checkout payment url, note: no full stop due to url at the end\r\n\t\techo wp_kses( sprintf( _x( 'The automatic payment to renew your subscription with %1$s has failed. To reactivate the subscription, please login and pay for the renewal from your account page: %2$s', 'In customer renewal invoice email', 'woocommerce-subscriptions' ), esc_html( get_bloginfo( 'name' ) ), '&lt;a href=\"' . esc_url( $order-&gt;get_checkout_payment_url() ) . '\"&gt;' . esc_html__( 'Pay Now &amp;raquo;', 'woocommerce-subscriptions' ) . '&lt;\/a&gt;' ), array( 'a' =&gt; array( 'href' =&gt; true ) ) ); ?&gt;&lt;\/p&gt;\r\n&lt;?php endif; ?&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email ); ?&gt;\r\n\r\n\/\/ Adds a payment link to enable customers to directly pay the invoice\r\n&lt;?php $pay_now_url = esc_url( $order-&gt;get_checkout_payment_url() ); ?&gt;\r\n&lt;a href=\"&lt;?php echo $pay_now_url; ?&gt;\"&gt;&lt;?php echo __('Pay Now!'); ?&gt;&lt;\/a&gt;\r\n\r\n&lt;?php do_action( 'woocommerce_email_footer', $email ); ?&gt;<\/pre>\n<p>And this is how you add a payment link to the WooCommerce subscription renewal email.<\/p>\n<p>Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m currently working for a client that manages subscriptions with WordPress and WooCommerce (in particular using the\u00a0WooCommerce Subscription plugin). Since most payment options they support are actually manual payments like bank transfer (BACS), we had to figure out a way to add a payment link to the WooCommerce subscription renewal email. In order to accept [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15,27],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-woocommerce"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m currently working for a client that manages subscriptions with WordPress and WooCommerce (in particular using the\u00a0WooCommerce Subscription plugin). Since most payment options they support are actually manual payments like bank transfer (BACS), we had to figure out a way to add a payment link to the WooCommerce subscription renewal email. In order to accept [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Goedecke\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-19T10:03:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-19T10:17:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kevin Goedecke\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kevin Goedecke\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/\",\"url\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/\",\"name\":\"Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke\",\"isPartOf\":{\"@id\":\"https:\/\/kevingoedecke.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png\",\"datePublished\":\"2018-03-19T10:03:34+00:00\",\"dateModified\":\"2018-03-19T10:17:48+00:00\",\"author\":{\"@id\":\"https:\/\/kevingoedecke.com\/#\/schema\/person\/4b156cd6453e1af4bab9076b0a663871\"},\"breadcrumb\":{\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage\",\"url\":\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png\",\"contentUrl\":\"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png\",\"width\":1800,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kevingoedecke.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Payment Link to WooCommerce Subscription Renewal Email\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kevingoedecke.com\/#website\",\"url\":\"https:\/\/kevingoedecke.com\/\",\"name\":\"Kevin Goedecke\",\"description\":\"Founder. Entrepreneur.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kevingoedecke.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/kevingoedecke.com\/#\/schema\/person\/4b156cd6453e1af4bab9076b0a663871\",\"name\":\"Kevin Goedecke\",\"url\":\"https:\/\/kevingoedecke.com\/blog\/author\/kgoedecke\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/","og_locale":"en_US","og_type":"article","og_title":"Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke","og_description":"I&#8217;m currently working for a client that manages subscriptions with WordPress and WooCommerce (in particular using the\u00a0WooCommerce Subscription plugin). Since most payment options they support are actually manual payments like bank transfer (BACS), we had to figure out a way to add a payment link to the WooCommerce subscription renewal email. In order to accept [&hellip;]","og_url":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/","og_site_name":"Kevin Goedecke","article_published_time":"2018-03-19T10:03:34+00:00","article_modified_time":"2018-03-19T10:17:48+00:00","og_image":[{"width":1800,"height":900,"url":"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png","type":"image\/png"}],"author":"Kevin Goedecke","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kevin Goedecke","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/","url":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/","name":"Add Payment Link to WooCommerce Subscription Renewal Email - Kevin Goedecke","isPartOf":{"@id":"https:\/\/kevingoedecke.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage"},"image":{"@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage"},"thumbnailUrl":"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png","datePublished":"2018-03-19T10:03:34+00:00","dateModified":"2018-03-19T10:17:48+00:00","author":{"@id":"https:\/\/kevingoedecke.com\/#\/schema\/person\/4b156cd6453e1af4bab9076b0a663871"},"breadcrumb":{"@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#primaryimage","url":"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png","contentUrl":"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png","width":1800,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/kevingoedecke.com\/blog\/2018\/03\/19\/add-payment-link-to-woocommerce-subscription-renewal-email\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevingoedecke.com\/"},{"@type":"ListItem","position":2,"name":"Add Payment Link to WooCommerce Subscription Renewal Email"}]},{"@type":"WebSite","@id":"https:\/\/kevingoedecke.com\/#website","url":"https:\/\/kevingoedecke.com\/","name":"Kevin Goedecke","description":"Founder. Entrepreneur.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kevingoedecke.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kevingoedecke.com\/#\/schema\/person\/4b156cd6453e1af4bab9076b0a663871","name":"Kevin Goedecke","url":"https:\/\/kevingoedecke.com\/blog\/author\/kgoedecke\/"}]}},"jetpack_featured_media_url":"https:\/\/kevingoedecke.com\/blog\/wp-content\/uploads\/2018\/03\/woocommerce-renewal-payment@2x.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":1,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/posts\/392\/revisions\/394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/media\/395"}],"wp:attachment":[{"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevingoedecke.com\/blog\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}