{"id":22372,"date":"2025-10-13T14:08:20","date_gmt":"2025-10-13T14:08:20","guid":{"rendered":"https:\/\/paybylink.com\/?page_id=22372"},"modified":"2025-12-08T13:32:06","modified_gmt":"2025-12-08T13:32:06","slug":"create-a-shortened-url","status":"publish","type":"page","link":"https:\/\/paybylink.com\/nl\/integratie\/api-manual\/url-shortener\/create-a-shortened-url\/","title":{"rendered":"Create a shortened URL"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"22372\" class=\"elementor elementor-22372\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-87dcc1f elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"87dcc1f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0f07d4a\" data-id=\"0f07d4a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e09ff82 elementor-widget elementor-widget-template\" data-id=\"e09ff82\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"section\" data-elementor-id=\"22080\" class=\"elementor elementor-22080\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7884bf9a elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"7884bf9a\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-45f0c301\" data-id=\"45f0c301\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4d1f7927 elementor-widget elementor-widget-heading\" data-id=\"4d1f7927\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">API manual<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1840a48 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1840a48\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7774710\" data-id=\"7774710\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f95ba72 elementor-widget elementor-widget-html\" data-id=\"f95ba72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"content\"><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-66c9c81 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"66c9c81\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3430ed\" data-id=\"e3430ed\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-976d9e2 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"976d9e2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-897523f\" data-id=\"897523f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-59ac58b elementor-widget elementor-widget-template\" data-id=\"59ac58b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"template.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-template\">\n\t\t\t\t\t<div data-elementor-type=\"section\" data-elementor-id=\"22484\" class=\"elementor elementor-22484\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e09f34c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e09f34c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5bf171a\" data-id=\"5bf171a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6fb2195 elementor-widget__width-initial elementor-nav-menu__text-align-aside elementor-widget elementor-widget-nav-menu\" data-id=\"6fb2195\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;layout&quot;:&quot;dropdown&quot;,&quot;submenu_icon&quot;:{&quot;value&quot;:&quot;&lt;i class=\\&quot;fas fa-chevron-down\\&quot; aria-hidden=\\&quot;true\\&quot;&gt;&lt;\\\/i&gt;&quot;,&quot;library&quot;:&quot;fa-solid&quot;}}\" data-widget_type=\"nav-menu.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<nav class=\"elementor-nav-menu--dropdown elementor-nav-menu__container\" aria-hidden=\"true\">\n\t\t\t\t<ul id=\"menu-2-6fb2195\" class=\"elementor-nav-menu\"><li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23459\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/introduction\/\" class=\"elementor-item\" tabindex=\"-1\">Introduction<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-23441\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/\" class=\"elementor-item\" tabindex=\"-1\">API connection<\/a>\n<ul class=\"sub-menu elementor-nav-menu--dropdown\">\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23442\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/create-a-payment-via-the-api-http-post-or-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create API payment<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23443\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/find-payment-url\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Find payment URL<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23444\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/find-payments-based-on-a-part-of-an-order-id\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Find payments<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23445\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/change-the-status-of-a-payment-by-the-order-reference-http-post\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Change payment status<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23465\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/create-a-payment-from-a-url-for-a-qr-code-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create QR code payment<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-24107\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/create-a-mandate-request-via-the-api-http-post-or-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create API mandate request<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23467\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/find-the-url-of-a-mandate-request-by-the-mandate-number-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Find the mandate request URL<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23468\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/change-the-status-of-a-mandate-by-the-mandate-number-http-post\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Change mandate status<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23469\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/create-a-mandate-request-from-a-url-for-a-qr-code-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create QR code mandate request<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23470\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/api-connection\/create-a-direct-collect-request-via-the-api-http-post-or-http-get\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create API direct collect request<\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-23446\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/\" class=\"elementor-item\" tabindex=\"-1\">Callbacks<\/a>\n<ul class=\"sub-menu elementor-nav-menu--dropdown\">\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23447\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/additional-callback-parameters\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Additional callback parameters<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23448\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/callback-triggers\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Callback triggers<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23449\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/callback-by-mail\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Callback by mail<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23450\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/callback-by-url\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Callback by URL<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23471\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/callback-to-an-ftp-server\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Callback to an FTP server<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23472\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/callbacks\/callback-to-rezexchange\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Callback to RezExchange<\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-23451\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/\" class=\"elementor-item\" tabindex=\"-1\">URL shortener<\/a>\n<ul class=\"sub-menu elementor-nav-menu--dropdown\">\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23452\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/shortened-url-domain-names\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Shortened URL domain names<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23453\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create a shortened URL<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23454\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/get-qr-code-image\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Get QR code image<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23455\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-an-empty-shortened-url\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Create an empty shortened URL<\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-23473\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/glossary\/payment-parameters\/\" class=\"elementor-item\" tabindex=\"-1\">Glossary<\/a>\n<ul class=\"sub-menu elementor-nav-menu--dropdown\">\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23456\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/glossary\/payment-parameters\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Payment parameters<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23457\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/glossary\/mandate-parameters\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Mandate parameters<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23458\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/glossary\/direct-collect-parameters\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Direct collect parameters<\/a><\/li>\n\t<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23474\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/glossary\/usage-of-dates\/\" class=\"elementor-sub-item\" tabindex=\"-1\">Usage of dates<\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23475\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/payment-method-codes\/\" class=\"elementor-item\" tabindex=\"-1\">Payment method codes<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23476\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/variables-and-functions\/\" class=\"elementor-item\" tabindex=\"-1\">Variables and functions<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23963\"><a href=\"https:\/\/paybylink.com\/en\/functionality\/\" class=\"elementor-item\" tabindex=\"-1\">Functionality<\/a><\/li>\n<li class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-23440\"><a href=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/\" class=\"elementor-item\" tabindex=\"-1\">API manual<\/a><\/li>\n<\/ul>\t\t\t<\/nav>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-2452ba9\" data-id=\"2452ba9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a418c8c elementor-widget elementor-widget-heading\" data-id=\"a418c8c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Create a shortened URL<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3647036 elementor-widget elementor-widget-text-editor\" data-id=\"3647036\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"co-n1\"><div id=\"c7153\" class=\"csc-default\"><p class=\"bodytext\">To shorten a URL, you always must supply an entity key, and a basic authentication header created by the API username and password. The URL must be passed as a URL-encoded query parameter.<\/p><\/div><\/div><div class=\"co-n2\"><div id=\"c7206\" class=\"csc-default\">The next command shortens a URL and returns a new URL that will function as an alias for the longer URL:<br \/><b>https:\/\/spbl.eu\/create\/&lt;entitykey&gt;?url=&lt;url encoded long url&gt;<\/b><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-e628dd5 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e628dd5\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-8a3ade2\" data-id=\"8a3ade2\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4dfac73 elementor-widget elementor-widget-heading\" data-id=\"4dfac73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Example shortened URL creation<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8007956 elementor-widget elementor-widget-text-editor\" data-id=\"8007956\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>For instance if you want to shorten the following URL:<\/p><p>https:\/\/en.wikipedia.org\/wiki\/The_quick_brown_fox_jumps_over_the_lazy_dog<br \/>#Cultural_references_in_several_different_languages<br \/>and you want to do this for the entity with the entity key \u2018e7140a88-cbba-4cc2-be9f6e90536703ef, you execute an HTTP-GET command to the next url with the correct authentication header:<\/p><p>https:\/\/spbl.eu\/create\/e7140a88-cbba-4cc2-be9f- 6e90536703ef url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FThe_quick_brown_fox_jumps_over_the_lazy_dog-%23Cultural_references_in_several_different_languages<\/p><p>The result (in this example) is the URL: <a href=\"https:\/\/spbl.eu\/av0fdd9keK\">https:\/\/spbl.eu\/av0fdd9keK<\/a> that functions as an alias for the long URL.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Create a shortened URL To shorten a URL, you always must supply an entity key, and a basic authentication header created by the API username and password. The URL must be passed as a URL-encoded query parameter. The next command shortens a URL and returns a new URL that will function as an alias for <a href=\"https:\/\/paybylink.com\/nl\/integratie\/api-manual\/url-shortener\/create-a-shortened-url\/\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":22344,"menu_order":20,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-22372","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create a shortened URL - PayByLink<\/title>\n<meta name=\"description\" content=\"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/paybylink.com\/nl\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a shortened URL - PayByLink\" \/>\n<meta property=\"og:description\" content=\"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/\" \/>\n<meta property=\"og:site_name\" content=\"PayByLink\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T13:32:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/integratie\\\/api-manual\\\/url-shortener\\\/create-a-shortened-url\\\/\",\"url\":\"https:\\\/\\\/paybylink.com\\\/en\\\/integration\\\/api-manual\\\/url-shortener\\\/create-a-shortened-url\\\/\",\"name\":\"Create a shortened URL - PayByLink\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#website\"},\"datePublished\":\"2025-10-13T14:08:20+00:00\",\"dateModified\":\"2025-12-08T13:32:06+00:00\",\"description\":\"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/paybylink.com\\\/en\\\/integration\\\/api-manual\\\/url-shortener\\\/create-a-shortened-url\\\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/paybylink.com\\\/en\\\/integration\\\/api-manual\\\/url-shortener\\\/create-a-shortened-url\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/paybylink.com\\\/en\\\/integration\\\/api-manual\\\/url-shortener\\\/create-a-shortened-url\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integratie\",\"item\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/integratie\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API manual\",\"item\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/integratie\\\/api-manual\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"URL shortener\",\"item\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/integratie\\\/api-manual\\\/url-shortener\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Create a shortened URL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#website\",\"url\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/\",\"name\":\"PayByLink\",\"description\":\"Betaallinks snel, veilig en eenvoudig versturen\",\"publisher\":{\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#organization\",\"name\":\"PayByLink\",\"url\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/paybylink.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/logopbl-200x200-1.png\",\"contentUrl\":\"https:\\\/\\\/paybylink.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/logopbl-200x200-1.png\",\"width\":200,\"height\":200,\"caption\":\"PayByLink\"},\"image\":{\"@id\":\"https:\\\/\\\/paybylink.com\\\/nl\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/nl.linkedin.com\\\/company\\\/paybylink-com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a shortened URL - PayByLink","description":"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.","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:\/\/paybylink.com\/nl\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/","og_locale":"nl_NL","og_type":"article","og_title":"Create a shortened URL - PayByLink","og_description":"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.","og_url":"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/","og_site_name":"PayByLink","article_modified_time":"2025-12-08T13:32:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Geschatte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/paybylink.com\/nl\/integratie\/api-manual\/url-shortener\/create-a-shortened-url\/","url":"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/","name":"Create a shortened URL - PayByLink","isPartOf":{"@id":"https:\/\/paybylink.com\/nl\/#website"},"datePublished":"2025-10-13T14:08:20+00:00","dateModified":"2025-12-08T13:32:06+00:00","description":"Create a shortened URL. This can be done with an entity key and a basic authentication header created by the API username and password.","breadcrumb":{"@id":"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/paybylink.com\/en\/integration\/api-manual\/url-shortener\/create-a-shortened-url\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/paybylink.com\/nl\/"},{"@type":"ListItem","position":2,"name":"Integratie","item":"https:\/\/paybylink.com\/nl\/integratie\/"},{"@type":"ListItem","position":3,"name":"API manual","item":"https:\/\/paybylink.com\/nl\/integratie\/api-manual\/"},{"@type":"ListItem","position":4,"name":"URL shortener","item":"https:\/\/paybylink.com\/nl\/integratie\/api-manual\/url-shortener\/"},{"@type":"ListItem","position":5,"name":"Create a shortened URL"}]},{"@type":"WebSite","@id":"https:\/\/paybylink.com\/nl\/#website","url":"https:\/\/paybylink.com\/nl\/","name":"PayByLink","description":"Betaallinks snel, veilig en eenvoudig versturen","publisher":{"@id":"https:\/\/paybylink.com\/nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/paybylink.com\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/paybylink.com\/nl\/#organization","name":"PayByLink","url":"https:\/\/paybylink.com\/nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/paybylink.com\/nl\/#\/schema\/logo\/image\/","url":"https:\/\/paybylink.com\/wp-content\/uploads\/2022\/02\/logopbl-200x200-1.png","contentUrl":"https:\/\/paybylink.com\/wp-content\/uploads\/2022\/02\/logopbl-200x200-1.png","width":200,"height":200,"caption":"PayByLink"},"image":{"@id":"https:\/\/paybylink.com\/nl\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/nl.linkedin.com\/company\/paybylink-com"]}]}},"_links":{"self":[{"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/pages\/22372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/comments?post=22372"}],"version-history":[{"count":5,"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/pages\/22372\/revisions"}],"predecessor-version":[{"id":22811,"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/pages\/22372\/revisions\/22811"}],"up":[{"embeddable":true,"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/pages\/22344"}],"wp:attachment":[{"href":"https:\/\/paybylink.com\/nl\/wp-json\/wp\/v2\/media?parent=22372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}