{"info":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","description":"<html><head></head><body><p>This REST API would be used to interact with NodiRef's Referral Engine, in order to interact with the routes, you will need to authenticate your requests, see the Authentication section on this documentation so you understand how to use it.</p>\n<p>With this API, you will be able to interact with all the resources from the Referral Management System programatically, the main idea of NodiRef, is that it can act like any other service in your back-end, to manage your partners, referral links and rewards, this way you can offload all the complexity of your reward system to us, and you can handle your main business logic.</p>\n<h3 id=\"authentication\">Authentication</h3>\n<p>In order to be able to interact with private endpoints of this API, you will need a API Token that you can get from your profile in the Back-Office. Once you get your token, you can use it like a Bearer Token in all your requests, so we can authenticate you. You can use it as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer YOUR_TOKEN_HERE\n\n</code></pre><h3 id=\"filters\">Filters</h3>\n<p>Query Param: <code>filter[filter_name]=filter_value</code></p>\n<p>In our API, we follow a very simple principle that applies to Filters, Sorts, Pagination and other operation types, which as adding a query parameter with the type of operation, the field that's used and the value, for example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.nodiref.com/partners?filter[external_id]=MyExternalId\n\n</code></pre><p>And internally we will detect it and perform a filter on your request to get the results you are looking for. Typically on every resource you will have a list of filterable fields that you can use.</p>\n<h3 id=\"pagination\">Pagination</h3>\n<p>For the pagination, you will have different options that you could use, similar to the filters, we use an operation query param, which is page, and we set the options we want, for example:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Query param</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code> or <code>page[number]</code></td>\n<td>Specifies the page to get (Default <code>1</code>)</td>\n</tr>\n<tr>\n<td><code>item_per_page</code> or <code>page[size]</code></td>\n<td>Specifies the items per page (Default <code>10</code>)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Normally you would choose wether you use <code>page</code> and <code>item_per_page</code> or <code>page[number]</code> and <code>page[size]</code>, we gave you both possibilities and it's up to you to choose which one you are more comfortable using.</p>\n<h3 id=\"includes\">Includes</h3>\n<p>If you want to have extra information on your list, you can include some information that's related to the resource you are querying, for instance, maybe if you are querying the Partners list, you would want to have the Project information whose Partner belong to, you can do this by including the <code>includes</code> query parameter into your request, and selecting the available relationship. You can concatenate the includes by separating them with a comma if you need to add more than one. For example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.nodiref.com/partners?include=project\n\n</code></pre><p>To have the available fields, you can check in the requests directly, it will be marked there.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"38948109","collectionId":"073dc2c1-fe54-4854-8020-bae53a3edb49","publishedId":"2sB34kEeDp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7E5BF6"},"publishDate":"2025-07-20T13:11:07.000Z"},"item":[{"name":"Referral","item":[{"name":"Partners","item":[{"name":"Balance","item":[{"name":"/partners/{id}/balance/available","id":"e307805f-873c-4fb8-9e02-47acbda0ea7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/partners/:partner_id/balance/available","description":"<p>This endpoint will return the available balance for this partner, this balance is already approved and ready to be used or withdrawed by the partner, depending on your business logic.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners",":partner_id","balance","available"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"description":{"content":"<p>The Partner's ID or external ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"partner_id"}]}},"response":[{"id":"40a47c1e-bd1a-4864-bcac-0373792f53ce","name":"Available balance","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/partners/:partner_id/balance/available","host":["https://api.nodiref.com"],"path":["partners",":partner_id","balance","available"],"variable":[{"key":"partner_id","value":"9f6f566d-01d7-4c69-9201-2da505d573a4","description":"The Partner's ID or external ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:8008"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 27 Jul 2025 10:43:48 GMT"},{"key":"Expires","value":"Fri, 01 Jan 1990 00:00:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Server","value":"Caddy"},{"key":"X-Powered-By","value":"PHP/8.4.10"},{"key":"Content-Length","value":"64"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"type\": \"currency\",\n            \"balance\": \"100.00\"\n        }\n    ]\n}"},{"id":"84cbca08-6a93-45b9-94ed-0c362c5445cd","name":"No balance available","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/partners/:partner_id/balance/available","host":["https://api.nodiref.com"],"path":["partners",":partner_id","balance","available"],"variable":[{"key":"partner_id","value":"9f6f566d-01d7-4c69-9201-2da505d573a4","description":"The Partner's ID or external ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:8008"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 27 Jul 2025 10:46:10 GMT"},{"key":"Expires","value":"Fri, 01 Jan 1990 00:00:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Server","value":"Caddy"},{"key":"X-Powered-By","value":"PHP/8.4.10"},{"key":"Content-Length","value":"26"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": []\n}"}],"_postman_id":"e307805f-873c-4fb8-9e02-47acbda0ea7a"},{"name":"/partners/{id}/balance/pending","id":"4d700e41-1378-49d7-a43a-235e95e7fe0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/partners/:partner_id/balance/pending","description":"<p>This endpoint will return the pending balance for this partner, this balance is not yet approved. The amount showed here is the amount of the computed rewards of the accepted conversions that are pending to be accepted or rejected.</p>\n<p>When a conversion gets accepted, it will go directly to the available balance and get discounted from the pending balance.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners",":partner_id","balance","pending"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"description":{"content":"<p>The Partner's ID or external ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"partner_id"}]}},"response":[{"id":"7e8eca97-d110-4657-945f-ca58eea0c81b","name":"Balance available","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/partners/:partner_id/balance/pending","host":["https://api.nodiref.com"],"path":["partners",":partner_id","balance","pending"],"variable":[{"key":"partner_id","value":"9f6f566d-01d7-4c69-9201-2da505d573a4","description":"The Partner's ID or external ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:8008"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 27 Jul 2025 10:45:56 GMT"},{"key":"Expires","value":"Fri, 01 Jan 1990 00:00:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Server","value":"Caddy"},{"key":"X-Powered-By","value":"PHP/8.4.10"},{"key":"Content-Length","value":"64"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"type\": \"currency\",\n            \"balance\": \"100.00\"\n        }\n    ]\n}"},{"id":"4ac98202-0155-4a11-adac-c81d633592c4","name":"No balance available","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/partners/:partner_id/balance/pending","host":["https://api.nodiref.com"],"path":["partners",":partner_id","balance","pending"],"variable":[{"key":"partner_id","value":"9f6f566d-01d7-4c69-9201-2da505d573a4","description":"The Partner's ID or external ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:8008"},{"key":"Cache-Control","value":"max-age=0, must-revalidate, no-cache, no-store, private"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Sun, 27 Jul 2025 10:45:03 GMT"},{"key":"Expires","value":"Fri, 01 Jan 1990 00:00:00 GMT"},{"key":"Pragma","value":"no-cache"},{"key":"Server","value":"Caddy"},{"key":"X-Powered-By","value":"PHP/8.4.10"},{"key":"Content-Length","value":"26"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": []\n}"}],"_postman_id":"4d700e41-1378-49d7-a43a-235e95e7fe0f"}],"id":"e9eb3195-5908-47be-972f-307c804e09a5","description":"<p>The balance available for the Partner.</p>\n<p>For now, the only balance available is currency, but we are planning on adding more balance types, in order to customize it based off of your business logic.</p>\n","_postman_id":"e9eb3195-5908-47be-972f-307c804e09a5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"/partners","id":"980095e5-a690-4510-99e4-7b994342fdac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/partners","description":"<p>This endpoint retrieves the partners list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>external_id</code> (optional): The external ID of the partner.</p>\n</li>\n<li><p><code>id</code> (optional): The ID of the partner.</p>\n</li>\n<li><p><code>name</code> (optional): The name of the partner.</p>\n</li>\n<li><p><code>project_id</code> (optional): The ID of the project associated with the partner.</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>project</code> -&gt; The project to which the Partner belongs</p>\n</li>\n<li><p><code>status</code> -&gt; The status of the Partner</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"8bd63fb5-fc38-4a55-aec1-164ef31f7322","name":"Get Partners","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/partners"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 21 May 2025 22:27:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"9ef54e02-2fc1-49f7-8496-b6549b8935c9\",\n            \"name\": \"Swift, Kemmer and McCullough\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-35cc-42cd-a4b3-178c08a59581\",\n            \"name\": \"Renner-Collins\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-41bc-4ac6-8bca-cf1c0eb7ee5b\",\n            \"name\": \"Schulist, Friesen and Hickle\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-47ae-4294-8545-f5916169a2e5\",\n            \"name\": \"Quitzon Inc\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-4c91-40c3-ac6b-d4ad4d7af568\",\n            \"name\": \"Turner-Nienow\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-6258-4a12-90b2-5be467eb76c0\",\n            \"name\": \"Kulas, Miller and Cummerata\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-773f-432f-b1b1-1b36067b551b\",\n            \"name\": \"Hessel, Barton and Hartmann\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-7c57-4723-89f4-360734f007fd\",\n            \"name\": \"Turner Ltd\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-aab3-44e1-baa1-8ed03f7ac9ee\",\n            \"name\": \"Kemmer-Sipes\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-cd8c-467b-81cb-d1587da099e9\",\n            \"name\": \"Klocko Ltd\",\n            \"external_id\": null\n        }\n    ],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/partners?page=1\",\n        \"from\": 1,\n        \"last_page\": 138,\n        \"last_page_url\": \"http://localhost:8000/api/partners?page=138\",\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=9\",\n                \"label\": \"9\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=10\",\n                \"label\": \"10\",\n                \"active\": false\n            },\n            {\n                \"url\": null,\n                \"label\": \"...\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=137\",\n                \"label\": \"137\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=138\",\n                \"label\": \"138\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"next_page_url\": \"http://localhost:8000/api/partners?page=2\",\n        \"path\": \"http://localhost:8000/api/partners\",\n        \"per_page\": 10,\n        \"prev_page_url\": null,\n        \"to\": 10,\n        \"total\": 1378\n    }\n}"}],"_postman_id":"980095e5-a690-4510-99e4-7b994342fdac"},{"name":"/partners/:id","id":"e7562bc3-bd18-4c58-81c0-0fc0f9a2167a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/partners/:id","description":"<p>This endpoint retrieves partner information.</p>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>project</code> -&gt; The project to which the Partner belongs</p>\n</li>\n<li><p><code>status</code> -&gt; The status of the Partner</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"description":{"content":"<p>The Partner's ID or external ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"id"}]}},"response":[{"id":"0097afd2-5494-499e-bb51-9f8a18f63343","name":"Get Partners","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/partners"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 21 May 2025 22:27:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"9ef54e02-2fc1-49f7-8496-b6549b8935c9\",\n            \"name\": \"Swift, Kemmer and McCullough\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-35cc-42cd-a4b3-178c08a59581\",\n            \"name\": \"Renner-Collins\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-41bc-4ac6-8bca-cf1c0eb7ee5b\",\n            \"name\": \"Schulist, Friesen and Hickle\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-47ae-4294-8545-f5916169a2e5\",\n            \"name\": \"Quitzon Inc\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-4c91-40c3-ac6b-d4ad4d7af568\",\n            \"name\": \"Turner-Nienow\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-6258-4a12-90b2-5be467eb76c0\",\n            \"name\": \"Kulas, Miller and Cummerata\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-773f-432f-b1b1-1b36067b551b\",\n            \"name\": \"Hessel, Barton and Hartmann\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-7c57-4723-89f4-360734f007fd\",\n            \"name\": \"Turner Ltd\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-aab3-44e1-baa1-8ed03f7ac9ee\",\n            \"name\": \"Kemmer-Sipes\",\n            \"external_id\": null\n        },\n        {\n            \"id\": \"9ef54e02-cd8c-467b-81cb-d1587da099e9\",\n            \"name\": \"Klocko Ltd\",\n            \"external_id\": null\n        }\n    ],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/partners?page=1\",\n        \"from\": 1,\n        \"last_page\": 138,\n        \"last_page_url\": \"http://localhost:8000/api/partners?page=138\",\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=9\",\n                \"label\": \"9\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=10\",\n                \"label\": \"10\",\n                \"active\": false\n            },\n            {\n                \"url\": null,\n                \"label\": \"...\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=137\",\n                \"label\": \"137\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=138\",\n                \"label\": \"138\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/partners?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"next_page_url\": \"http://localhost:8000/api/partners?page=2\",\n        \"path\": \"http://localhost:8000/api/partners\",\n        \"per_page\": 10,\n        \"prev_page_url\": null,\n        \"to\": 10,\n        \"total\": 1378\n    }\n}"}],"_postman_id":"e7562bc3-bd18-4c58-81c0-0fc0f9a2167a"},{"name":"/partners","id":"0e57dff0-1426-4aac-bf73-fbb9e3d67c5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_id\": \"EXTERNAL_ID\",\n    \"name\": \"PARTNER NAME\",\n    \"project_id\": \"UUID_PROJECT_ID\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/partners","description":"<p>This endpoint allows you to create a new partner by providing the necessary details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"external_id\": \"External_ID\", // Required\n  \"name\": \"Partner Name\", // Required\n  \"project_id\": \"PROJECT_UUID\" // Optional\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"f14b89c9-8a29-4496-84d6-fb9d7a5dccaf","name":"Create Partner","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_id\": \"test-id\",\n    \"name\": \"Test Partner\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/partners"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 21 May 2025 22:45:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"0e57dff0-1426-4aac-bf73-fbb9e3d67c5d"},{"name":"/partners/:id","id":"f580bf49-1044-4447-bf3d-637ae4a9cce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_id\": \"EXTERNAL_ID\",\n    \"name\": \"PARTNER NAME\",\n    \"project_id\": \"UUID_PROJECT_ID\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/partners/:id","description":"<p>This endpoint allows you to update an existing partner by providing the necessary details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"external_id\": \"External_ID\", // Required\n  \"name\": \"Partner Name\", // Required\n  \"project_id\": \"PROJECT_UUID\" // Optional\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"441625fd-403f-4e2d-9b39-dba935dfc7e5","type":"any","value":"9ef54e02-35cc-42cd-a4b3-178c08a59581","key":"id"}]}},"response":[{"id":"7494e345-d91e-4aa8-8b99-421e4ef496b4","name":"Update Partner","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_id\": \"MyExternalId\",\n    \"name\": \"Test Name 2\",\n    \"project_id\": \"9ef54dff-c212-44d3-a66d-845ce2bfb77e\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/partners/:id","host":["{{base_url}}"],"path":["partners",":id"],"variable":[{"key":"id","value":"9ef54e02-2fc1-49f7-8496-b6549b8935c9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 21 May 2025 22:45:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"f580bf49-1044-4447-bf3d-637ae4a9cce4"},{"name":"/partners/:id","id":"38f3348d-ad86-4548-b39b-fc1ccabd3317","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/partners/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified partner ID to delete the partner data.</p>\n<h3 id=\"important\">IMPORTANT</h3>\n<p>The Partner must not have been used, or else you cannot delete it, as it can have anti-fraud data attached, and referral resources such as Links, Rewards, Referrals, Conversions or other</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the structure of the response data. The schema will define the properties and their data types that will be returned upon successful deletion of the partner data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["partners",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"daa66f96-12e3-4dcf-97b1-d992b51fc5e1","type":"any","value":"9ef54e02-35cc-42cd-a4b3-178c08a59581","key":"id"}]}},"response":[],"_postman_id":"38f3348d-ad86-4548-b39b-fc1ccabd3317"}],"id":"9b32b0f6-06d6-4d34-ad37-760f20d68b7a","description":"<h2 id=\"fields\">Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>string</code> <code>uuid</code></td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>external_id</code></td>\n<td><code>string</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"filters\">Filters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td><code>string</code> <code>uuid</code></td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>external_id</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>status_id</code></td>\n<td><code>string</code> <code>uuid</code></td>\n</tr>\n<tr>\n<td><code>project_id</code></td>\n<td><code>string</code> <code>uuid</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"includes\">Includes</h2>\n<ul>\n<li><p><code>project</code></p>\n</li>\n<li><p><code>status</code></p>\n</li>\n</ul>\n","_postman_id":"9b32b0f6-06d6-4d34-ad37-760f20d68b7a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Projects","item":[{"name":"/projects","id":"51bcf847-5c49-4bde-baf7-00996c46508d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/projects","description":"<p>This endpoint retrieves the projects list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the project.</p>\n</li>\n<li><p><code>name</code> (optional): The name of the project.</p>\n</li>\n<li><p><code>company_id</code> (optional): The ID of the company associated with the project.</p>\n</li>\n<li><p><code>base_url</code> (optional): The base URL of the project.</p>\n</li>\n<li><p><code>status_id</code> (optional): The ID of the status of the project.</p>\n</li>\n<li><p><code>automatically_approve_conversions</code> (optional): Filter projects based on whether they automatically approve conversions.</p>\n</li>\n<li><p><code>automatically_approve_rewards</code> (optional): Filter projects based on whether they automatically approve rewards.</p>\n</li>\n<li><p><code>enable_fraud_detection</code> (optional): Filter projects based on whether fraud detection is enabled.</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>status</code> -&gt; The status of the Project</p>\n</li>\n<li><p><code>partners</code> -&gt; The partners associated with the Project</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["projects"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"ec8939e5-28a6-4642-b51e-a3fb0dfeb27e","name":"Get Projects","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/projects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Wed, 21 May 2025 22:45:46 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"9ef54dff-c212-44d3-a66d-845ce2bfb77e\",\n            \"name\": \"Kennith Corkery II\",\n            \"description\": \"Ut modi nulla voluptatem unde odio temporibus et maxime.\",\n            \"base_url\": \"http://www.abshire.biz/quod-sunt-qui-doloribus-odit\",\n            \"cookie_lifetime\": 21,\n            \"automatically_approve_conversions\": true\n        },\n        {\n            \"id\": \"9ef54f0c-fce4-4b5c-a342-4f5c844df8e3\",\n            \"name\": \"Ms. Georgiana Pouros DVM\",\n            \"description\": \"Ut et necessitatibus quis voluptas aut.\",\n            \"base_url\": \"http://schulist.com/eveniet-autem-quia-fugit\",\n            \"cookie_lifetime\": 5,\n            \"automatically_approve_conversions\": true\n        }\n    ],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/projects?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://localhost:8000/api/projects?page=1\",\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/projects?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": null,\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"next_page_url\": null,\n        \"path\": \"http://localhost:8000/api/projects\",\n        \"per_page\": 10,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 2\n    }\n}"}],"_postman_id":"51bcf847-5c49-4bde-baf7-00996c46508d"},{"name":"/projects/:id","id":"058bf65e-560d-4bf7-a7f4-4f978b613e0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/projects/:id","description":"<p>This endpoint retrieves project information.</p>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>status</code> -&gt; The status of the Project</p>\n</li>\n<li><p><code>partners</code> -&gt; The partners associated with the Project</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["projects",":id"],"host":["https://api.nodiref.com"],"query":[{"disabled":true,"key":"filter[namsesd]","value":"Test Name"},{"disabled":true,"key":"include","value":"status"}],"variable":[{"id":"0f0b0625-d587-4020-ae16-4450d0d49e3e","type":"any","value":"9eeb9f8a-915b-424f-8f9c-98f124673141","key":"id"}]}},"response":[],"_postman_id":"058bf65e-560d-4bf7-a7f4-4f978b613e0e"},{"name":"/projects","id":"45031b33-4ce6-4900-b75f-007074da38a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Default Project\", // Required\n    \"base_url\": \"https://nodiref.com\", // Required\n    \"cookie_lifetime\": 365, // Max is 365\n    \"status_id\": \"\", // Optional, UUID, Default: Active\n    \"automatically_approve_conversions\": false, // Optional, Default: false\n    \"automatically_approve_rewards\": false, // Optional, Default: false\n    \"enable_fraud_detection\": true // Optional, Default: true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/projects","description":"<p>This endpoint allows you to create a new project by providing the necessary details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Default Project\", // Required\n    \"base_url\": \"https://nodiref.com\", // Required\n    \"cookie_lifetime\": 365, // Max is 365\n    \"status_id\": \"\", // Optional, UUID, Default: Active\n    \"automatically_approve_conversions\": false, // Optional, Default: false\n    \"automatically_approve_rewards\": false, // Optional, Default: false\n    \"enable_fraud_detection\": true // Optional, Default: true\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["projects"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"45031b33-4ce6-4900-b75f-007074da38a6"},{"name":"/projects/:id","id":"4a56d4e1-2274-4552-bec2-380bdbd56aba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"company_id\": \"asd\",\n    \"external_id\": \"external-id\",\n    \"is_internal\": true,\n    \"name\": \"Test Name 2\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/projects/:id","description":"<p>This endpoint allows you to update an existing project by providing the necessary details.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"name\": \"Default Project\", // Required\n    \"base_url\": \"https://nodiref.com\", // Required\n    \"cookie_lifetime\": 365, // Max is 365\n    \"status_id\": \"\", // Optional, UUID, Default: Active\n    \"automatically_approve_conversions\": false, // Optional, Default: false\n    \"automatically_approve_rewards\": false, // Optional, Default: false\n    \"enable_fraud_detection\": true // Optional, Default: true\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["projects",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"7b411563-2472-4d24-aab5-b40030bfc771","type":"any","value":"9ebf0a3b-6d2b-4016-9d52-7fc97621f428","key":"id"}]}},"response":[],"_postman_id":"4a56d4e1-2274-4552-bec2-380bdbd56aba"},{"name":"/projects/:id","id":"741363c3-f68a-45a3-8dcf-7ef49315f885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/projects/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified partner ID to delete the partner data.</p>\n<h3 id=\"important\">IMPORTANT</h3>\n<p>The Project must not have been used, or else you cannot delete it, as it can have anti-fraud data attached, and referral resources such as Partners, Referrals, Conversions or other</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the structure of the response data. The schema will define the properties and their data types that will be returned upon successful deletion of the project data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["projects",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"099ffd8c-43b2-4305-9ecb-0c1c05e7910d","type":"any","value":"9eb764e6-c87b-4229-9326-866ca32b6b68","key":"id"}]}},"response":[],"_postman_id":"741363c3-f68a-45a3-8dcf-7ef49315f885"}],"id":"fc87f0f7-b27f-4d23-8500-f8299b4351d3","_postman_id":"fc87f0f7-b27f-4d23-8500-f8299b4351d3","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Referral Links","item":[{"name":"/referral-links","id":"a6a7543d-9dd9-4f31-bf7a-ac11cb7a7b47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/referral-links","description":"<p>This endpoint retrieves the referral links list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>partner_id</code> (optional): The ID of the partner associated with the link.</p>\n</li>\n<li><p><code>project_id</code> (optional): The ID of the project with the link.</p>\n</li>\n<li><p><code>code</code> (optional): The unique code of the referral link.</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>partner</code> -&gt; The partner associated with the link</p>\n</li>\n<li><p><code>project</code> -&gt; The project associated with the link</p>\n</li>\n<li><p><code>clicks</code> -&gt; The clicks associated with the link</p>\n</li>\n<li><p><code>referrals</code> -&gt; The referrals generated through this link</p>\n</li>\n<li><p><code>rewardRuleSets</code> -&gt; The reward rule sets associated with this link</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["referral-links"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"fb47c7fc-5c42-43ea-91a5-8933ad16c361","name":"Links List","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/referral-links"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 22 May 2025 21:03:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"9ef54e05-06b0-48ed-a51e-7fd873cf7a4a\",\n            \"partner_id\": \"9ef54e05-03e5-4427-8bea-d2db25b81f96\",\n            \"code\": \"03IKxxtzzC\"\n        },\n        {\n            \"id\": \"9ef54e0e-8266-4c7b-8351-040fa5ab865f\",\n            \"partner_id\": \"9ef54e0e-7eef-4c68-982b-c41cd87b9b0c\",\n            \"code\": \"091rgIQeFF\"\n        },\n        {\n            \"id\": \"9ef54f29-ed61-4a7b-85f6-75ecb8cc73ac\",\n            \"partner_id\": \"9ef54f29-ea2f-4ca0-bf86-ca7f2e731bec\",\n            \"code\": \"0AB9Ezdfi8\"\n        },\n        {\n            \"id\": \"9ef54e09-9f4c-4d9b-b721-0c03057a16fc\",\n            \"partner_id\": \"9ef54e09-9b7b-4c38-9074-6c556cc66f3d\",\n            \"code\": \"0d1ICvlOAL\"\n        },\n        {\n            \"id\": \"9ef54e0b-9a37-437b-b002-40ba9e68e393\",\n            \"partner_id\": \"9ef54e0b-937e-4a2b-bd2c-56f6708d6f06\",\n            \"code\": \"0de7cdsVo5\"\n        },\n        {\n            \"id\": \"9ef54e06-5088-4673-8ffe-99c7ee5510b9\",\n            \"partner_id\": \"9ef54e06-4d71-42d5-bea6-0d791c913215\",\n            \"code\": \"0fhf91pOFA\"\n        },\n        {\n            \"id\": \"9ef54f20-f0c5-4d11-875d-bb2507cbd042\",\n            \"partner_id\": \"9ef54f20-ecf7-4871-9027-125ce9a4aba4\",\n            \"code\": \"0gg3ib39V8\"\n        },\n        {\n            \"id\": \"9ef54f11-9409-4df0-b5c3-7e04ec298676\",\n            \"partner_id\": \"9ef54f11-881e-4866-957b-b82168041d54\",\n            \"code\": \"0ghvDCQ3mg\"\n        },\n        {\n            \"id\": \"9ef54f1b-f363-497a-a4cf-e51c4066e0e2\",\n            \"partner_id\": \"9ef54f1b-e670-47f5-a35a-2d089a16d1cd\",\n            \"code\": \"0MBG5OGtHa\"\n        },\n        {\n            \"id\": \"9ef54e0d-483c-4491-b502-7444cea18a7d\",\n            \"partner_id\": \"9ef54e0d-439a-434e-add7-8f31df69bcf2\",\n            \"code\": \"0ppWhT9ubw\"\n        }\n    ],\n    \"pagination\": {\n        \"current_page\": 1,\n        \"first_page_url\": \"http://localhost:8000/api/referral-links?page=1\",\n        \"from\": 1,\n        \"last_page\": 138,\n        \"last_page_url\": \"http://localhost:8000/api/referral-links?page=138\",\n        \"links\": [\n            {\n                \"url\": null,\n                \"label\": \"&laquo; Previous\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=1\",\n                \"label\": \"1\",\n                \"active\": true\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=2\",\n                \"label\": \"2\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=3\",\n                \"label\": \"3\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=4\",\n                \"label\": \"4\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=5\",\n                \"label\": \"5\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=6\",\n                \"label\": \"6\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=7\",\n                \"label\": \"7\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=8\",\n                \"label\": \"8\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=9\",\n                \"label\": \"9\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=10\",\n                \"label\": \"10\",\n                \"active\": false\n            },\n            {\n                \"url\": null,\n                \"label\": \"...\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=137\",\n                \"label\": \"137\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=138\",\n                \"label\": \"138\",\n                \"active\": false\n            },\n            {\n                \"url\": \"http://localhost:8000/api/referral-links?page=2\",\n                \"label\": \"Next &raquo;\",\n                \"active\": false\n            }\n        ],\n        \"next_page_url\": \"http://localhost:8000/api/referral-links?page=2\",\n        \"path\": \"http://localhost:8000/api/referral-links\",\n        \"per_page\": 10,\n        \"prev_page_url\": null,\n        \"to\": 10,\n        \"total\": 1379\n    }\n}"}],"_postman_id":"a6a7543d-9dd9-4f31-bf7a-ac11cb7a7b47"},{"name":"/referral-links/:id","id":"eb122204-3fb9-4005-9008-b8718c476185","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/referral-links/:id","description":"<p>This endpoint retrieves the referral links list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>partner_id</code> (optional): The ID of the partner associated with the link.</p>\n</li>\n<li><p><code>project_id</code> (optional): The ID of the project with the link.</p>\n</li>\n<li><p><code>code</code> (optional): The unique code of the referral link.</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>partner</code> -&gt; The partner associated with the link</p>\n</li>\n<li><p><code>project</code> -&gt; The project associated with the link</p>\n</li>\n<li><p><code>clicks</code> -&gt; The clicks associated with the link</p>\n</li>\n<li><p><code>referrals</code> -&gt; The referrals generated through this link</p>\n</li>\n<li><p><code>rewardRuleSets</code> -&gt; The reward rule sets associated with this link</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["referral-links",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"e08f45e7-e546-4676-a467-9343f49543b4","type":"any","value":"9ef54e05-06b0-48ed-a51e-7fd873cf7a4a","key":"id"}]}},"response":[{"id":"19e46a19-389c-4fd5-888a-3320a085b6bd","name":"Link Details","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/referral-links/:id","host":["{{base_url}}"],"path":["referral-links",":id"],"query":[{"key":"filter[partner_id]","value":"9eb75b36-45a8-41d1-921a-37715fde2474","disabled":true},{"key":"include","value":"test","disabled":true}],"variable":[{"key":"id","value":"9ef54e05-06b0-48ed-a51e-7fd873cf7a4a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 22 May 2025 21:04:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": \"9ef54e05-06b0-48ed-a51e-7fd873cf7a4a\",\n        \"partner_id\": \"9ef54e05-03e5-4427-8bea-d2db25b81f96\",\n        \"code\": \"03IKxxtzzC\"\n    }\n}"}],"_postman_id":"eb122204-3fb9-4005-9008-b8718c476185"},{"name":"/referral-links","id":"0398319c-3f05-48f7-a920-7ee12deef30c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"partner_id\": \"9ecebae1-5743-4698-bf24-a0ed05ee3ac7\",\n    \"code\": \"abcdefg\",\n    \"target_url\": \"https://google.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/referral-links","description":"<p>This endpoint allows you to create a new referral link by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"partner_id\": \"PARTNER_UUID\", // Required\n  \"code\": \"UNIQUE_CODE\", // Required\n  \"metadata\": {}, // Optional\n  \"project_id\": \"PROJECT_UUID\" // Optional\n}\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["referral-links"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0398319c-3f05-48f7-a920-7ee12deef30c"},{"name":"/referral-links/:id","id":"b00d493c-174d-4335-bea8-ead719c5936f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"partner_id\": \"9ebf1841-22c4-4d30-942e-7c7eb942a7a3\",\n    \"code\": \"abcdefgghijklmnop\",\n    \"target_url\": \"https://nodifyit.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/referral-links/:id","description":"<p>This endpoint allows you to update an existing referral link by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"partner_id\": \"PARTNER_UUID\", // Required\n  \"code\": \"UNIQUE_CODE\", // Required\n  \"metadata\": {}, // Optional\n  \"project_id\": \"PROJECT_UUID\" // Optional\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["referral-links",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"e6831d24-7c3d-4035-b15a-284d3f831f93","type":"any","value":"9ebf1864-aca2-40c4-9cc6-0ed9ae961e01","key":"id"}]}},"response":[],"_postman_id":"b00d493c-174d-4335-bea8-ead719c5936f"},{"name":"/referral-links/:id","id":"0808bb2f-cff8-4a52-9423-e64827aa8a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/referral-links/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["referral-links",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"9ba9fd97-4b6e-43b8-8248-fb7621e197a4","type":"any","value":"9ebf1864-aca2-40c4-9cc6-0ed9ae961e01","key":"id"}]}},"response":[],"_postman_id":"0808bb2f-cff8-4a52-9423-e64827aa8a70"}],"id":"1c5bd271-d113-454e-b131-1dc5da9129db","_postman_id":"1c5bd271-d113-454e-b131-1dc5da9129db","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Rewards","item":[{"name":"Rule Sets","item":[{"name":"/rewards/rule-sets","id":"aebb27cc-0268-4ac7-9ae6-57766b42e2ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/rule-sets","description":"<p>This endpoint retrieves the reward rule sets list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the reward rule set</p>\n</li>\n<li><p><code>name</code> (optional): The name of the reward rule set</p>\n</li>\n<li><p><code>status_id</code> (optional): The status ID of the reward rule set</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>status</code> -&gt; The status of the reward rule set</p>\n</li>\n<li><p><code>scopable</code> -&gt; The model this rule set is scoped to (Partner, ReferralLink, etc.)</p>\n</li>\n<li><p><code>triggers</code> -&gt; The triggers associated with this rule set</p>\n</li>\n<li><p><code>actions</code> -&gt; The actions associated with this rule set</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","rule-sets"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aebb27cc-0268-4ac7-9ae6-57766b42e2ac"},{"name":"/rewards/rule-sets/:id","id":"a2b54f8b-b8be-452e-8808-4e608b7dcf91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/rule-sets/:id","description":"<p>This endpoint retrieves reward rule set information.</p>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>status</code> -&gt; The status of the reward rule set</p>\n</li>\n<li><p><code>scopable</code> -&gt; The model this rule set is scoped to (Partner, ReferralLink, etc.)</p>\n</li>\n<li><p><code>triggers</code> -&gt; The triggers associated with this rule set</p>\n</li>\n<li><p><code>actions</code> -&gt; The actions associated with this rule set</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","rule-sets",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"7811f7d2-26e2-4f65-ba36-6b764080bfaa","type":"any","value":"9ec74145-51b5-492b-97bf-9a51f5b05f2d","key":"id"}]}},"response":[],"_postman_id":"a2b54f8b-b8be-452e-8808-4e608b7dcf91"},{"name":"/rewards/rule-sets","id":"60f83469-f3b4-488a-b863-292c53c4b2bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Empty Rule Set\",\n    \"description\": \"This is an empty ruleset\",\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/rule-sets","description":"<p>This endpoint allows you to create a new reward rule set by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Rule Set Name\", // Required\n  \"description\": \"Rule Set Description\", // Optional\n  \"starts_at\": \"2024-03-20T00:00:00Z\", // Optional\n  \"ends_at\": \"2024-04-20T00:00:00Z\", // Optional\n  \"scopable_id\": \"UUID\", // Optional\n  \"scopable_type\": \"Model Class\", // Optional\n  \"status_id\": \"STATUS_UUID\" // Optional\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","rule-sets"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"60f83469-f3b4-488a-b863-292c53c4b2bc"},{"name":"/rewards/rule-sets/:id","id":"c9974cb8-067e-4772-b0e6-67fb369da626","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Test Iván Update\",\n    \"description\": \"Test Iván Update Desc\",\n    \"is_active\": false,\n    \"starts_at\": \"2025-01-01\",\n    \"ends_at\": \"2025-12-31\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/rule-sets/:id","description":"<p>This endpoint allows you to update an existing reward rule set by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Rule Set Name\", // Required\n  \"description\": \"Rule Set Description\", // Optional\n  \"starts_at\": \"2024-03-20T00:00:00Z\", // Optional\n  \"ends_at\": \"2024-04-20T00:00:00Z\", // Optional\n  \"scopable_id\": \"UUID\", // Optional\n  \"scopable_type\": \"Model Class\", // Optional\n  \"status_id\": \"STATUS_UUID\" // Optional\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","rule-sets",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"2407fc6f-a993-49e2-ac38-5b4dd42a3d20","type":"any","value":"9ec74145-51b5-492b-97bf-9a51f5b05f2d","key":"id"}]}},"response":[],"_postman_id":"c9974cb8-067e-4772-b0e6-67fb369da626"},{"name":"/rewards/rule-sets/:id","id":"0c7b3900-5fd8-4be6-accf-37b57491c539","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/rewards/rule-sets/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified reward rule set ID to delete the rule set data.</p>\n<h2 id=\"important\">Important</h2>\n<p>The Reward Rule Set must not have any active rewards or be referenced by any active referrals.</p>\n<h2 id=\"response\">Response</h2>\n<p>The response of this request is a JSON schema representing the structure of the response data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","rule-sets",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"64e588d0-b109-4045-b1ff-6ca59a91770d","type":"any","value":"9eb93359-5d00-42e9-9449-077e5cffb393","key":"id"}]}},"response":[],"_postman_id":"0c7b3900-5fd8-4be6-accf-37b57491c539"}],"id":"be8e757c-f97b-44fc-8525-234a92516105","description":"<p>The Rule Sets are used to manage the rules that dictate how and when a conversion would be rewarded, each rule set is divided into two main parts:</p>\n<ol>\n<li><p>Triggers - These are used to determine what will trigger a reward. Each Trigger can be formed by one or many Trigger Conditions, to better specify the trigger conditions.</p>\n</li>\n<li><p>Actions - This is how we will reward the conversion.</p>\n</li>\n</ol>\n","_postman_id":"be8e757c-f97b-44fc-8525-234a92516105","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Triggers","item":[{"name":"/rewards/triggers","id":"e1b7b1ad-8875-4e1c-a190-f252bdbe20f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/triggers","description":"<p>This endpoint retrieves the reward triggers list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the reward trigger</p>\n</li>\n<li><p><code>reward_rule_set_id</code> (optional): The ID of the rule set this trigger belongs to</p>\n</li>\n<li><p><code>trigger_type</code> (optional): The type of trigger</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><p><code>ruleSet</code> -&gt; The rule set this trigger belongs to</p>\n</li>\n<li><p><code>conditions</code> -&gt; The conditions associated with this trigger</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1b7b1ad-8875-4e1c-a190-f252bdbe20f6"},{"name":"/rewards/triggers","id":"c6a4f659-6851-463c-a5f0-2724c0583efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_rule_set_id\": \"9ec468a5-f186-4388-ba7e-632b6a193bad\",\n    \"trigger_type\": \"subscription\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/triggers","description":"<p>This endpoint allows you to create a new reward trigger by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_rule_set_id\": \"RULESET_UUID\", // Required\n  \"trigger_type\": \"TRIGGER_TYPE\" // Required\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6a4f659-6851-463c-a5f0-2724c0583efa"},{"name":"/rewards/triggers/:id","id":"d74816c5-5161-47a4-86d5-4cf74efd7d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_rule_set_id\": \"9ebf2161-3a22-4ae7-92e2-ca32fa668b9a\",\n    \"trigger_type\": \"subscription\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/triggers/:id","description":"<p>This endpoint allows you to update an existing reward trigger by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_rule_set_id\": \"RULESET_UUID\", // Required\n  \"trigger_type\": \"TRIGGER_TYPE\" // Required\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"5d14bc03-c7e9-4f7e-ad5e-541de67b827a","type":"any","value":"9ebf2527-ec9d-464f-bb3a-67e74390245e","key":"id"}]}},"response":[],"_postman_id":"d74816c5-5161-47a4-86d5-4cf74efd7d81"},{"name":"/rewards/triggers/:id","id":"32fd70e2-b6cf-42ce-859f-c9794d9242db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/rewards/triggers/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified reward trigger ID to delete the trigger data.</p>\n<h2 id=\"response\">Response</h2>\n<p>The response of this request is a JSON schema representing the structure of the response data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"7a742216-ff85-48c8-ab40-873a33460026","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"32fd70e2-b6cf-42ce-859f-c9794d9242db"}],"id":"eee4712f-607b-485a-95d2-4666bf094072","_postman_id":"eee4712f-607b-485a-95d2-4666bf094072","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Trigger Conditions","item":[{"name":"/rewards/triggers/conditions","id":"d4e299be-4516-424a-ac41-c8a59b5a1af8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/triggers/conditions","description":"<p>This endpoint retrieves the reward trigger conditions list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the reward trigger condition</p>\n</li>\n<li><p><code>reward_trigger_id</code> (optional): The ID of the trigger this condition belongs to</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><code>trigger</code> -&gt; The trigger this condition belongs to</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers","conditions"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4e299be-4516-424a-ac41-c8a59b5a1af8"},{"name":"/rewards/triggers/conditions/:id","id":"85f5186e-3a55-44c7-b005-d47081e59959","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/triggers/conditions/:id","description":"<p>This endpoint retrieves reward trigger condition information.</p>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><code>trigger</code> -&gt; The trigger this condition belongs to</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers","conditions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"c3e397cd-d047-4f46-998e-25d1466d402f","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"85f5186e-3a55-44c7-b005-d47081e59959"},{"name":"/rewards/triggers/conditions","id":"2c020da5-09ae-432c-89a9-7f07a6c1d81e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_trigger_id\": \"9ec468bb-d40c-452a-8ca6-5d55fe12f658\",\n    \"field\": \"amount\",\n    \"operator\": \">\",\n    \"value\": \"50\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/triggers/conditions","description":"<p>This endpoint allows you to create a new reward trigger condition by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_trigger_id\": \"TRIGGER_UUID\", // Required\n  \"field\": \"FIELD_NAME\", // Required\n  \"operator\": \"OPERATOR\", // Required\n  \"value\": \"CONDITION_VALUE\" // Required\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers","conditions"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c020da5-09ae-432c-89a9-7f07a6c1d81e"},{"name":"/rewards/triggers/conditions/:id","id":"7f84c044-361c-40b1-91b8-d2906eb54367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_trigger_id\": \"9ebf2527-ec9d-464f-bb3a-67e74390245e\",\n    \"field\": \"amount\",\n    \"operator\": \"<\",\n    \"value\": \"500\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/triggers/conditions/:id","description":"<p>This endpoint allows you to update an existing reward trigger condition by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_trigger_id\": \"TRIGGER_UUID\", // Required\n  \"field\": \"FIELD_NAME\", // Required\n  \"operator\": \"OPERATOR\", // Required\n  \"value\": \"CONDITION_VALUE\" // Required\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers","conditions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"55489923-5e4f-47d9-9e2b-6b5b6cd843bb","type":"any","value":"9ebf36da-d793-4f97-b455-8d4a6b8a52dc","key":"id"}]}},"response":[],"_postman_id":"7f84c044-361c-40b1-91b8-d2906eb54367"},{"name":"/rewards/triggers/conditions/:id","id":"4cf7a0e1-77cf-4518-a6ea-0b684d16cfcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/rewards/triggers/conditions/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified reward trigger condition ID to delete the condition data.</p>\n<h2 id=\"response\">Response</h2>\n<p>The response of this request is a JSON schema representing the structure of the response data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","triggers","conditions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"9c8e097a-a08c-4a4f-9e58-c82e42fd2e05","type":"any","value":"9ebf36da-d793-4f97-b455-8d4a6b8a52dc","key":"id"}]}},"response":[],"_postman_id":"4cf7a0e1-77cf-4518-a6ea-0b684d16cfcf"}],"id":"88f351db-6a04-412e-ac7e-e6d7e784d121","_postman_id":"88f351db-6a04-412e-ac7e-e6d7e784d121","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Action","item":[{"name":"/rewards/actions","id":"d3983925-98e5-47c1-9028-dd08db19b65c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/actions","description":"<p>This endpoint retrieves the reward actions list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the reward action</p>\n</li>\n<li><p><code>reward_rule_set_id</code> (optional): The ID of the rule set this action belongs to</p>\n</li>\n<li><p><code>currency</code> (optional): The currency of the reward</p>\n</li>\n<li><p><code>reward_type</code> (optional): The type of reward</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><code>ruleSet</code> -&gt; The rule set this action belongs to</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","actions"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3983925-98e5-47c1-9028-dd08db19b65c"},{"name":"/rewards/actions/:id","id":"af2871c3-803e-4d1e-98db-48a7ca712c12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards/actions/:id","description":"<p>This endpoint retrieves the reward actions list based on the provided filters.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"available-filters\">Available filters</h3>\n<ul>\n<li><p><code>id</code> (optional): The ID of the reward action</p>\n</li>\n<li><p><code>reward_rule_set_id</code> (optional): The ID of the rule set this action belongs to</p>\n</li>\n<li><p><code>currency</code> (optional): The currency of the reward</p>\n</li>\n<li><p><code>reward_type</code> (optional): The type of reward</p>\n</li>\n</ul>\n<h3 id=\"available-includes\">Available includes</h3>\n<ul>\n<li><code>ruleSet</code> -&gt; The rule set this action belongs to</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","actions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"cd0f806b-43cd-4be9-a292-08139161562f","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"af2871c3-803e-4d1e-98db-48a7ca712c12"},{"name":"/rewards/actions","id":"05c193a7-2872-4b56-be89-80228712c25b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_rule_set_id\": \"9ec468a5-f186-4388-ba7e-632b6a193bad\",\n    \"action_type\": \"whatever\",\n    \"reward_type\": \"percentage\",\n    \"reward_amount\": \"10\",\n    \"max_cap\": \"1000\",\n    \"currency\": \"EUR\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/actions","description":"<p>This endpoint allows you to create a new reward action by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_rule_set_id\": \"RULESET_UUID\", // Required\n  \"reward_type\": \"REWARD_TYPE\", // Required\n  \"reward_amount\": \"AMOUNT\", // Required\n  \"max_cap\": \"MAX_CAP\", // Optional\n  \"currency\": \"CURRENCY_CODE\" // Optional\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 201 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","actions"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"05c193a7-2872-4b56-be89-80228712c25b"},{"name":"/rewards/actions/:id","id":"2cf05b31-ba95-4fcf-9fde-8a960fc773e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_rule_set_id\": \"9ebf2161-3a22-4ae7-92e2-ca32fa668b9a\",\n    \"action_type\": \"something here\",\n    \"reward_type\": \"percentage\",\n    \"reward_amount\": \"5\",\n    \"max_cap\": \"500\",\n    \"currency\": \"EUR\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/actions/:id","description":"<p>This endpoint allows you to update an existing reward action by providing the necessary details.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"reward_rule_set_id\": \"RULESET_UUID\", // Required\n  \"reward_type\": \"REWARD_TYPE\", // Required\n  \"reward_amount\": \"AMOUNT\", // Required\n  \"max_cap\": \"MAX_CAP\", // Optional\n  \"currency\": \"CURRENCY_CODE\" // Optional\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<p>The response for this request is an empty array with a 200 HTTP Code</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","actions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"2f94e175-8598-4617-a935-52ca3abc0b56","type":"any","value":"9ebf3b88-8a91-4b07-9658-ea4f4941ccb0","key":"id"}]}},"response":[],"_postman_id":"2cf05b31-ba95-4fcf-9fde-8a960fc773e1"},{"name":"/rewards/actions/:id","id":"51d1bf4d-a48b-44cf-a60c-fddcc34722a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://api.nodiref.com/rewards/actions/:id","description":"<p>This endpoint sends an HTTP DELETE request to the specified reward action ID to delete the action data.</p>\n<h2 id=\"response\">Response</h2>\n<p>The response of this request is a JSON schema representing the structure of the response data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","actions",":id"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"id":"82e69822-917d-440e-adf5-48a785915a00","type":"any","value":"9ebf3b88-8a91-4b07-9658-ea4f4941ccb0","key":"id"}]}},"response":[],"_postman_id":"51d1bf4d-a48b-44cf-a60c-fddcc34722a2"}],"id":"f5a9e82e-8a46-427c-83d1-e34958ba9895","_postman_id":"f5a9e82e-8a46-427c-83d1-e34958ba9895","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Trigger Types","item":[{"name":"Preview from JSON","id":"5dbbc456-52ce-4ecd-86ff-6d58001ccea9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"json_payload\": \"{\\\"amount\\\":100.95,\\\"currency\\\":\\\"EUR\\\",\\\"product_id\\\":\\\"123456789\\\",\\\"is_paid\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/trigger-types/preview-from-json","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","trigger-types","preview-from-json"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dbbc456-52ce-4ecd-86ff-6d58001ccea9"},{"name":"Create from JSON","id":"bffd292c-8c7a-4919-84c5-34c5b65edff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"json_payload\": \"{\\\"amount\\\":100.95,\\\"currency\\\":\\\"EUR\\\",\\\"product_id\\\":\\\"123456789\\\",\\\"is_paid\\\":true}\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/rewards/trigger-types/create-from-json","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards","trigger-types","create-from-json"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bffd292c-8c7a-4919-84c5-34c5b65edff9"}],"id":"e6b8ba42-abf8-4280-ae45-7bddb51392e7","_postman_id":"e6b8ba42-abf8-4280-ae45-7bddb51392e7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Get Rewards","id":"938188ee-af18-4087-84e4-273ae5959a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nodiref.com/rewards?filter[status_id]=9eeb9f0e-8023-423d-8368-749c44e43b70&include=status","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}},"urlObject":{"path":["rewards"],"host":["https://api.nodiref.com"],"query":[{"key":"filter[status_id]","value":"9eeb9f0e-8023-423d-8368-749c44e43b70"},{"key":"include","value":"status"}],"variable":[]}},"response":[],"_postman_id":"938188ee-af18-4087-84e4-273ae5959a70"}],"id":"fe771d45-e9a7-414e-8f10-2e2468c9c90b","_postman_id":"fe771d45-e9a7-414e-8f10-2e2468c9c90b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}}],"id":"4eddb8db-97c6-4174-9afb-03f61b4aa27c","description":"<p>The partners are the main resource in the referral system. This resource will hold the Referral Links and all the stats within each link.</p>\n<p>Typically a Partner will have one link, but there are some custom integrations who manage multiple links per partner.</p>\n","_postman_id":"4eddb8db-97c6-4174-9afb-03f61b4aa27c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}},{"name":"Public","item":[{"name":"Register Click","id":"123f15c9-729c-4ad0-84d7-0b610a2539aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"X-Company-Id","value":"","description":"<p>The company ID to identify the requests</p>\n","type":"text"}],"url":"https://api.nodiref.com/v1/:code/hit","description":"<h3 id=\"register-click\">Register Click</h3>\n<p>Use this endpoint to register a click and get a tracking ID for a user that clicked on a link, this value is recommended to save it in a Cookie, in order to send it over when (if) the user signs up, in order to create the Referral.</p>\n<p><strong>Note:</strong> If you are using our SDKs for the front-end, we automatically manage the persistance of the <code>tracking_id</code>.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"tracking_id\": \"cf267848-5001-4b7a-9e16-46a285d2f7e8\",\n    \"cookie_settings\": {\n        \"expires\": 10368000,\n        \"path\": \"/\",\n        \"secure\": true,\n        \"sameSite\": \"Lax\"\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["v1",":code","hit"],"host":["https://api.nodiref.com"],"query":[],"variable":[{"description":{"content":"<p>This is the code of the Partner which is shared in the link under the <code>?ref</code> parameter</p>\n","type":"text/plain"},"type":"any","value":"referral_code","key":"code"}]}},"response":[{"id":"54626d90-6bf0-436f-9fa9-4c53f7fa27f2","name":"Code not found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/v1/:code/hit?cid=9f6f566d-19e8-47f3-9e77-e6d903465d4e","host":["https://api.nodiref.com"],"path":["v1",":code","hit"],"query":[{"key":"cid","value":"9f6f566d-19e8-47f3-9e77-e6d903465d4e","description":"This is the company ID to which the click belongs to (Usually there's 1 Company per Account)"}],"variable":[{"key":"code","value":"m9dUjRlHmo","description":"This is the code of the Partner which is shared in the link under the `?ref` parameter"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":":status","value":404},{"key":"date","value":"Sun, 20 Jul 2025 13:17:17 GMT"},{"key":"content-type","value":"application/json"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"cache-control","value":"no-cache, private"},{"key":"server","value":"cloudflare"},{"key":"vary","value":"Origin"},{"key":"x-powered-by","value":"PHP/8.4.10"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=hSVbdxd4iE2R2Xmi%2FzfjSHAwRCfe2X9fZKPH2rsGRswkAyFf28Z6lAFFRBgyR83z0UW8Mhdqprqqn0HNw0QoubQxr2M93fqhIdEkLhpxYBtJS7H33kGXbOPJVg%3D%3D\"}]}"},{"key":"content-encoding","value":"br"},{"key":"cf-ray","value":"9622bce7fd2ce8ce-CDG"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"not_found\",\n    \"code\": 404\n}"},{"id":"e3c36d78-adcb-485c-a6ae-e7990b951d66","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nodiref.com/v1/:code/hit?cid=9f6f566d-19e8-47f3-9e77-e6d903465d4e","host":["https://api.nodiref.com"],"path":["v1",":code","hit"],"query":[{"key":"cid","value":"9f6f566d-19e8-47f3-9e77-e6d903465d4e","description":"This is the company ID to which the click belongs to (Usually there's 1 Company per Account)"}],"variable":[{"key":"code","value":"m9dUjRlHmo","description":"This is the code of the Partner which is shared in the link under the `?ref` parameter"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sun, 20 Jul 2025 13:17:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:8008"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"tracking_id\": \"2a777fd1-e5c8-43b9-a26b-9b4d360df32d\",\n    \"cookie_settings\": {\n        \"expires\": 10368000,\n        \"path\": \"/\",\n        \"secure\": true,\n        \"sameSite\": \"Lax\"\n    }\n}"}],"_postman_id":"123f15c9-729c-4ad0-84d7-0b610a2539aa"},{"name":"Create Referral","id":"2b4052d2-54bb-433e-a12f-752811843a65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_id\": \"Tracking ID gotten from click [Required]\",\n    \"external_id\": \"Some identifier in your system for your referral (Email, ID, etc) [Optional]\",\n    \"user_agent\": \"The user agent used by the referral to sign up [Optional]\",\n    \"ip_address\": \"The IP Address used by the referral to sign up [Optional]\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/v1/referral","description":"<h3 id=\"create-referral\">Create Referral</h3>\n<p>The <code>POST /v1/referral</code> endpoint is used to create a new referral with the provided tracking ID.</p>\n<p>A Referral is used to simulate a user in your platform in order to better track the conversions, you should create a referral when a user signs up after using a Partner's link/code.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>tracking_id</code> (string, required): The unique tracking ID for the referral. You can get this Tracking ID from the click event registered in the <code>GET /v1/:code/hit</code> route.</p>\n</li>\n<li><p><code>external_id</code> (string, optional): This is the ID of the user in your platform, it is not required, but strongly recommended in order to make the relation easier and better track the users, you can either send us the <code>external_id</code> or save the referral ID in your platform to maintain the relationship.</p>\n</li>\n<li><p><code>user_agent</code> (string, optional): The user's user_agent when signing up.</p>\n</li>\n<li><p><code>ip_address</code> -&gt; The user's IP Address when signing up</p>\n</li>\n</ul>\n<p>If you are creating the referral from your back-end, it is strongly recommended to send the user's <code>user_agent</code> and <code>ip_address</code> in order to have better results in the Fraud Detection System, if you are sending it from the front-end or using our SDK, we'll automatically get all headers needed from the client.</p>\n<h4 id=\"response\">Response</h4>\n<p>Upon successful creation, the API returns a status code of 200 and a JSON object with the <code>referral_id</code> field.</p>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"referral_id\": \"example_referral_id\"\n}\n\n</code></pre>\n","urlObject":{"path":["v1","referral"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"b79cf488-73fd-4630-b962-d7aaff3463cb","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tracking_id\": \"76e94ffc-d880-414c-9ed7-4eec02bf53dd\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v1/referral"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 03 May 2025 19:42:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:4200"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"referral_id\": \"9ed33f2d-c395-404a-88a3-d8c9e830f4b0\"\n}"}],"_postman_id":"2b4052d2-54bb-433e-a12f-752811843a65"},{"name":"Identify Partner","id":"52ed534a-4fdd-48b5-990e-78ee4e7997b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"X-Company-Id","value":"Company UUID","description":"<p>The Company UUID to be able to identify the user with the external ID</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"Partner ID or External ID\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/v1/identify","description":"<h3 id=\"identify-the-partner\">Identify the Partner</h3>\n<p>The <code>POST /v1/identify</code> endpoint is used to identify the partner on the current session, this way we can track their metadata, this information is used on the anti-fraud system, it will help us identify if the conversions were made by the Partner himself or not, among with other verifications we do to ensure you get legitimate conversions.</p>\n<p>This request must be sent from the client-side (browser or mobile app), and not the server.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>id</code> (string, required): The ID of the partner in NodiRef or the <code>external_id</code> linked to them (Have to send the <code>X-Company-Id</code> header to use the <code>external_id</code>)</li>\n</ul>\n","urlObject":{"path":["v1","identify"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"52ed534a-4fdd-48b5-990e-78ee4e7997b0"},{"name":"Register Conversion","id":"8f5598d1-73a8-4522-bd52-24a8eb00b14d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"external_id\": \"9fa7acec-522e-41d7-bd22-94ed8b0c0508\",\n\t\"event_type\": \"subscription\",\n\t\"payload\": {\n\t\t\"amount\": 449.11,\n\t\t\"currency\": \"EUR\"\n\t}\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nodiref.com/v1/convert","description":"<p>The endpoint <code>POST /v1/convert</code> is used to register a new conversion for a referral.</p>\n<p>In order to create a new conversion, you will need a referral to link it back to the partner who created it. If your flow does not require users to sign up for the conversion, you might create a new Referral using the <code>POST /v1/referral</code> route and using the ID provided to create the conversion.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>referral_id</code> (string): The referral ID for the conversion. You can also use the <code>external_id</code> instead, if you've register it in the Referral creation.</p>\n</li>\n<li><p><code>event_type</code> (string): The type of event for the conversion.</p>\n</li>\n<li><p><code>payload</code> (object): The payload containing the data to be converted.</p>\n</li>\n</ul>\n<p>If the request is being sent in the back-end, in order to enable the correct Fraud Detection checks, make sure to forward the headers sent from the front-end to correctly register them. The most important headers are:</p>\n<ul>\n<li><p><code>REMOTE_ADDR</code> -&gt; The IP Address of the client, make sure it's the IP sent by the client. If you use a internal proxy, you might have a <code>X-FORWARDED-FOR</code> header with the client's IP forwarded by your proxy or the <code>X-Real-IP</code> forwarded by external proxys.</p>\n</li>\n<li><p><code>User-Agent</code> -&gt; This is the User Agent of your client, if you cannot override the <code>User-Agent</code> in the Headers of your request, you can sent a <code>X-User-Agent</code> instead with the client's User Agent.</p>\n</li>\n</ul>\n<h3 id=\"request-header\">Request Header</h3>\n<ul>\n<li><code>X-Company-Id</code> -&gt; When making the request using the <code>external_id</code>, you have to also send a <code>X-Company-Id</code> header with your company ID (Found in your Dashboard in the back office). This is only if you are using <code>external_id</code>, if you are using the <code>referral_id</code> instead, this header is not required.</li>\n</ul>\n","urlObject":{"path":["v1","convert"],"host":["https://api.nodiref.com"],"query":[],"variable":[]}},"response":[{"id":"14b5d195-b5a7-4bdc-b875-9eb4d5fdc6d8","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"referral_id\": \"9ed33f2d-c395-404a-88a3-d8c9e830f4b0\",\n    \"event_type\": \"subscription\",\n    \"payload\": {\n        \"amount\": 49.99\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v1/convert"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.4.2"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 03 May 2025 19:54:10 GMT"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:4200"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"8f5598d1-73a8-4522-bd52-24a8eb00b14d"}],"id":"e83cab17-655e-43a2-975b-2fc483c76fab","description":"<p>These endpoints are used to interact with the API in a public environment, to handle for example the clicks, referral creation and convertions.</p>\n<h2 id=\"terms\">Terms</h2>\n<h3 id=\"click\">Click</h3>\n<p>The click or hit, are the main source of interaction, as when a user clicks on a link and lands on the configured landing page, we'll send a HIT event to the API that will return a tracking code, which needs to be stored in the cookies of the browser for future reference.</p>\n<h3 id=\"referral\">Referral</h3>\n<p>This is a resource that will simulate a potential customer, this can be used to link resources such as users in an app or clients in a e-commerce, it has an external ID that can be sent in order to make the relationship in the app.</p>\n<p>When sending a referral creation, we'll need to send the tracking code returned by the click event, in order to trace the referral. Once created, it will return a referral ID which could be stored somewhere, or not stored at all if you have access to their ID sent as an <code>external_id</code> (I.E the user's ID in your app)</p>\n<p>The referral is put in place as a way to persist the referral made, and to enable long rewards if configured (Meaning that the referee will get a reward on every purchase made by the referral - This can be configured in your platform)</p>\n<h3 id=\"convertion\">Convertion</h3>\n<p>The convertion is when a purchase has been made essentially, and you'd want to let the API know that the user with a specific external ID or Referral ID has made a purchase in order to start the computation of the rewards based on the Reward Rule Sets configured in your account.</p>\n<h2 id=\"normal-flow\">Normal flow</h2>\n<p>The normal flow of the events, is the following:</p>\n<ol>\n<li><p>The user clicks on a link and lands into the landing page with a code in the URL</p>\n</li>\n<li><p>Extract the code from the URL and send a HIT to get a <code>tracking_id</code></p>\n</li>\n<li><p>Store the <code>tracking_id</code> into the cookies</p>\n</li>\n<li><p>When the user creates a new account, use the <code>tracking_id</code> to create a referral of that user and store the user ID</p>\n</li>\n<li><p>When the user makes a purchase, send a request with the details to the conversion endpoint</p>\n</li>\n<li><p>The conversion will be stored as <code>pending</code> or <code>accepted</code> depending on your configuration</p>\n</li>\n<li><p>When the conversion is <code>accepted</code> the system will compute the rewards based on your Reward Rule Set configurations.</p>\n</li>\n</ol>\n","_postman_id":"e83cab17-655e-43a2-975b-2fc483c76fab","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"073dc2c1-fe54-4854-8020-bae53a3edb49","id":"073dc2c1-fe54-4854-8020-bae53a3edb49","name":"NodiRef API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"ebc86d15-63cf-4b30-8f1d-27194dd08115","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"c2cfcd6c-3d5f-4c93-98dd-1511ab82aeea","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseURL","value":"https://api.nodiref.com","type":"default"},{"key":"company_id","value":"","type":"default"}]}