{"info":{"_postman_id":"34d3f90c-7395-4740-b4b9-534f78127c89","name":"Press Loft Public API (V1)","description":"<html><head></head><body><h2 id=\"hosts\">Hosts</h2>\n<p>The REST API lets you interact directly with Press Loft from anything that can send an HTTP request. <strong>All API access must use HTTPS</strong>.</p>\n<p>The primary host is <code>https://api.pressloft.com/v1</code>.</p>\n<h2 id=\"format\">Format</h2>\n<p>The entire API uses <strong>JSON</strong> encoded as <strong>UTF-8</strong>.</p>\n<p>The body of POST and PUT requests must be either a JSON object or a JSON array (depending on the particular endpoint) and the <code>Content-Type</code> header should be set to <code>application/json; charset=UTF-8</code>.</p>\n<p>The body of responses is always a JSON object, and the <code>Content-Type</code> is always <code>application/json; charset=UTF-8</code>.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<p>Unless otherwise stated, parameters must be passed:</p>\n<ul>\n<li>In the URL query string for GET and DELETE requests</li>\n<li>In the request body for PUT and POST requests</li>\n</ul>\n<p>Parameters passed in the URL must be properly URL-encoded, using the UTF-8 encoding for non-ASCII characters.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To authenticate your API requests, add these headers:</p>\n<ul>\n<li><code>x-api-key</code>: the application key</li>\n<li><code>x-api-secret</code>: the application secret</li>\n</ul>\n<p>To create these credentials log into your <a href=\"https://www.pressloft.com\">Press Loft</a> account.</p>\n<h2 id=\"authorised-access\">Authorised access</h2>\n<p>Not all endpoints are available to all account types. Currently the API is only available to registered brand accounts and registered publisher accounts. Below is a summary of which enpoints are available to each account type.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Brand Accounts</strong></th>\n<th><strong>Publisher Accounts</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Product Library</td>\n<td>Yes</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Product Categories</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Affiliate Brands</td>\n<td>No</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Sales Commission</td>\n<td>No</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Payout Receipts</td>\n<td>No</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20294542","collectionId":"34d3f90c-7395-4740-b4b9-534f78127c89","publishedId":"2s93RZM9wx","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"A647A7"},"publishDate":"2023-05-22T16:11:15.000Z"},"item":[{"name":"Product Library","item":[{"name":"Get all products","id":"75b00872-4a7c-4451-9012-e5fef958be74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/products?page-size={{integer}}&page-number={{integer}}&sort={{string}}","description":"<p>Returns a list of all products in your library. Results are paginated.</p>\n<h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of products to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: name  <br />Available: name, id, code, date</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["products"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"}],"variable":[]}},"response":[{"id":"94bb95df-f03e-4949-a620-b95ccaa6596c","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":{"raw":"https://api.pressloft.com/v1/products/?page-size=25&page-number=1&sort=-id","protocol":"https","host":["api","pressloft","com"],"path":["v1","products",""],"query":[{"key":"page-size","value":"25"},{"key":"page-number","value":"1"},{"key":"sort","value":"-id"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"meta\": {\n        \"totalRecords\": 67,\n        \"thisPage\": 1,\n        \"totalPages\": 3\n    },\n    \"data\": [\n        {\n            \"type\": \"product\",\n            \"id\": 1234567,\n            \"status\": \"complete\"\n            \"attributes\": {\n                \"code\": \"3-SEAT-SOFA\",\n                \"name\": \"Modern 3 seat sofa\",\n                \"description\": \"A modern 3 seater sofa.\",\n                \"price\": \"1234.99\",\n                \"link\": \"https://www.sofadesign.com/3-seat-sofa.html\",\n                \"timeCreated\": \"1680258095367\",\n                \"image\": {\n                    \"url\": \"https://s3.eu-west-2.amazonaws.com/imagerepositorypressloft/clients/100/l/1234567_l.jpg\",\n                    \"height\": 1200,\n                    \"width\": 1200,\n                    \"size\": 219\n                },\n                \"categories\": [\n                    {\n                        \"id\": 123,\n                        \"name\": \"Living Room > Sofa\"\n                    }\n                ],\n                \"keywords\": [\n                    \"sofa\",\n                    \"interior design\"\n                ],\n                \"hidden\": false\n            },\n            \"links\": {\n                \"self\": \"/products/1234567\"\n            }\n        },\n        {\n            ...\n        }\n    ],\n    \"links\": {\n        \"self\": \"/products?page-number=1&page-size=25&sort=-id\",\n        \"first\": \"/products?page-number=1&page-size=25&sort=-id\",\n        \"prev\": \"/products?page-number=1&page-size=25&sort=-id\",\n        \"next\": \"/products?page-number=2&page-size=25&sort=-id\",\n        \"last\": \"/products?page-number=3&page-size=25&sort=-id\"\n    }\n}"}],"_postman_id":"75b00872-4a7c-4451-9012-e5fef958be74"},{"name":"Get a single product","id":"00c4ae82-1a8d-4680-93c8-3d4665ffaa00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/products/{{id}}","description":"<p>Returns a single product from your library.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the product to return.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["products","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"e0725e94-c397-4560-ae97-403881aa3fe4","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/products/12345"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"type\": \"product\",\n            \"id\": 1234567,\n            \"status\": \"complete\",\n            \"attributes\": {\n                \"code\": \"3-SEAT-SOFA\",\n                \"name\": \"Modern 3 seat sofa\",\n                \"description\": \"A modern 3 seater sofa.\",\n                \"price\": \"1234.99\",\n                \"link\": \"https://www.sofadesign.com/3-seat-sofa.html\",\n                \"timeCreated\": \"1680258095367\",\n                \"image\": {\n                    \"url\": \"https://s3.eu-west-2.amazonaws.com/imagerepositorypressloft/clients/100/l/1234567_l.jpg\",\n                    \"height\": 1200,\n                    \"width\": 1200,\n                    \"size\": 219\n                },\n                \"categories\": [\n                    {\n                        \"id\": 123,\n                        \"name\": \"Living Room > Sofa\"\n                    }\n                ],\n                \"keywords\": [\n                    \"sofa\",\n                    \"interior design\"\n                ],\n                \"hidden\": false\n            },\n            \"links\": {\n                \"self\": \"/products/1234567\"\n            }\n        }\n    ],\n    \"links\": {\n        \"self\": \"/products/1234567\"\n    }\n}"}],"_postman_id":"00c4ae82-1a8d-4680-93c8-3d4665ffaa00"},{"name":"Add a product","id":"93802f79-d326-4d58-9c82-a9dcc3c99863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/products","description":"<p>Add a single product to your library.</p>\n<h4 id=\"body-parameters\">Body Parameters</h4>\n<p>The body must be a JSON object and the <code>Content-Type</code> header must be set to <code>application/json; charset=UTF-8</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>Your own unique product code (e.g. SKU).</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code></td>\n<td><strong>Required</strong></td>\n<td>The product name.</td>\n</tr>\n<tr>\n<td>description</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>The product description.</td>\n</tr>\n<tr>\n<td>price</td>\n<td><code>float</code></td>\n<td><strong>Optional</strong></td>\n<td>The product price.</td>\n</tr>\n<tr>\n<td>link</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>The product url.</td>\n</tr>\n<tr>\n<td>image</td>\n<td><code>string</code></td>\n<td><strong>Required</strong></td>\n<td>The url path to the product image. Must be publically accessible.</td>\n</tr>\n<tr>\n<td>categories</td>\n<td><code>array[integer]</code></td>\n<td><strong>Optional</strong>  <br />Maximum: <code>2</code></td>\n<td>An array of Press Loft category ids.</td>\n</tr>\n<tr>\n<td>keywords</td>\n<td><code>array[string]</code></td>\n<td><strong>Optional</strong>  <br />Maximum: <code>25</code></td>\n<td>An array of product keywords.</td>\n</tr>\n<tr>\n<td>hidden</td>\n<td><code>boolean</code></td>\n<td>Optional  <br /><code>true</code>, <code>false</code></td>\n<td>Hidden images are not visible to the media.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response-parameters\">Response Parameters</h4>\n<p>The response is a JSON object.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code></td>\n<td>The id of the product added.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["products"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"373f86ab-1c59-47fb-9c98-3dd3304f524f","name":"success","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"code\": \"3-SEAT-SOFA\",\n    \"name\": \"Modern 3 seat sofa\",\n    \"description\": \"A modern 3 seater sofa.\",\n    \"price\": \"1234.99\",\n    \"link\": \"https://www.sofadesign.com/3-seat-sofa.html\",\n    \"image\": \"https://www.sofadesign.com/3-seat-sofa/image.jpg\",\n    \"categories\": [123, 456],\n    \"keywords\": [\n        \"sofa\",\n        \"interior design\"\n    ],\n    \"hidden\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.pressloft.com/v1/products"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1234567\n    }\n}"}],"_postman_id":"93802f79-d326-4d58-9c82-a9dcc3c99863"},{"name":"Edit a product","id":"0947d100-e725-4e7c-99e6-e7036620a1a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/products/{{id}}","description":"<p>Update a single product in your library.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the product to update.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"body-parameters\">Body Parameters</h4>\n<p>The body must be a JSON object and the <code>Content-Type</code> header must be set to <code>application/json; charset=UTF-8</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>code</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>Your own unique product code (e.g. SKU).</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>The product name.</td>\n</tr>\n<tr>\n<td>description</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>The product description.</td>\n</tr>\n<tr>\n<td>price</td>\n<td><code>float</code></td>\n<td><strong>Optional</strong></td>\n<td>The product price.</td>\n</tr>\n<tr>\n<td>link</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong></td>\n<td>The product url.</td>\n</tr>\n<tr>\n<td>categories</td>\n<td><code>array[integer]</code></td>\n<td><strong>Optional</strong>  <br />Maximum: <code>2</code></td>\n<td>An array of Press Loft category ids.</td>\n</tr>\n<tr>\n<td>keywords</td>\n<td><code>array[string]</code></td>\n<td><strong>Optional</strong>  <br />Maximum: <code>25</code></td>\n<td>An array of product keywords.</td>\n</tr>\n<tr>\n<td>hidden</td>\n<td><code>boolean</code></td>\n<td>Optional  <br /><code>true</code>, <code>false</code></td>\n<td>Hidden images are not visible to the media.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["products","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"868b8960-59e5-440d-9775-d90e5aec712f","name":"success","originalRequest":{"method":"PUT","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"code\": \"3-SEAT-SOFA\",\n    \"name\": \"Modern 3 seat sofa\",\n    \"description\": \"A modern 3 seater sofa.\",\n    \"price\": \"1234.99\",\n    \"link\": \"https://www.sofadesign.com/3-seat-sofa.html\",\n    \"categories\": [123, 456],\n    \"keywords\": [\n        \"sofa\",\n        \"interior design\"\n    ],\n    \"hidden\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.pressloft.com/v1/products/12345"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": null\n}"}],"_postman_id":"0947d100-e725-4e7c-99e6-e7036620a1a8"},{"name":"Delete a product","id":"6809546d-b4c4-4b59-9680-e273ab1d8fca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/products/{{id}}","description":"<p>Delete a single product in your library.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the product.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["products","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"0cc74b48-da4b-4391-9909-4bad6e43284c","name":"success","originalRequest":{"method":"DELETE","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/products/12345"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": null\n}"}],"_postman_id":"6809546d-b4c4-4b59-9680-e273ab1d8fca"}],"id":"ba965ff3-9388-4b4a-8328-930a5ad6b880","description":"<p>The <code>/product</code> enpoint is for all operations to manage your Press Loft product library.</p>\n<p><strong>Authorised access to:</strong> registered brand accounts only.</p>\n<h3 id=\"quick-reference\">Quick Reference</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Method</strong></th>\n<th><strong>Path</strong></th>\n<th><strong>Brief Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/products</code></td>\n<td>List all products</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/products/{{id}}</code></td>\n<td>Get a single product</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/products</code></td>\n<td>Add a single product</td>\n</tr>\n<tr>\n<td>PUT</td>\n<td><code>/products/{{id}}</code></td>\n<td>Update a single product</td>\n</tr>\n<tr>\n<td>DELETE</td>\n<td><code>/product/{{id}}</code></td>\n<td>Delete a single product</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"ba965ff3-9388-4b4a-8328-930a5ad6b880"},{"name":"Product Categories","item":[{"name":"Get all categories","id":"bfb30805-2527-4af4-912e-f61ab2fcea7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/categories","urlObject":{"path":["categories"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"b26644b9-e944-4447-ab68-dbd924fce123","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/categories"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"name\": \"Bathroom > Accessories\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Bathroom > Baths and Basins\"\n        },\n        ...\n    ],\n    \"links\": {\n        \"self\": \"/categories\"\n    }\n}"}],"_postman_id":"bfb30805-2527-4af4-912e-f61ab2fcea7e"}],"id":"3049c419-e298-49f2-8228-7f549df4a217","description":"<p>Provides a full list of all Press Loft categories.</p>\n<p><strong>Authorised access to:</strong> registered brand accounts and registered publisher accounts.</p>\n","_postman_id":"3049c419-e298-49f2-8228-7f549df4a217"},{"name":"Affiliate Brands","item":[{"name":"Get all affiliate brands","id":"53b8a027-351f-48d4-a7d8-46af46e82ab0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/affiliates?page-size={{integer}}&page-number={{integer}}&sort={{string}}","description":"<p>Returns a list of all affiliate brands. Results are paginated.</p>\n<h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of affiliate brands to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: name  <br />Available: name, id</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["affiliates"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"}],"variable":[]}},"response":[{"id":"99a83185-9d16-4cd0-b80f-d1489ed019c7","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":{"raw":"https://api.pressloft.com/v1/affiliates/?page-size=25&page-number=1&sort=-id","protocol":"https","host":["api","pressloft","com"],"path":["v1","affiliates",""],"query":[{"key":"page-size","value":"25"},{"key":"page-number","value":"1"},{"key":"sort","value":"-id"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"meta\": {\n        \"totalRecords\": 143,\n        \"thisPage\": 1,\n        \"totalPages\": 29\n    },\n    \"data\": [\n        {\n            \"type\": \"affiliate\",\n            \"id\": 12345,\n            \"attributes\": {\n                \"name\": \"An Awesome Brand\",\n                \"domain\": \"anawesomebrand.com\",\n                \"cookiePeriod\": \"60 days\",\n                \"commission\": \"10%\",\n                \"affiliateLink\": \"https://affiliates.pressloft.com/click?id=1&url=https://anawesomebrand.com\"\n            },\n            \"links\": {\n                \"self\": \"/affiliates/12345\",\n                \"commissions\": \"/affiliates/12345/commissions\"\n            }\n        },\n        ...\n    ],\n    \"links\": {\n        \"self\": \"/affiliates?page-number=1&page-size=5&sort=-id\",\n        \"firstPage\": \"/affiliates?page-number=1&page-size=5&sort=-id\",\n        \"prevPage\": \"/affiliates?page-number=1&page-size=5&sort=-id\",\n        \"nextPage\": \"/affiliates?page-number=2&page-size=5&sort=-id\",\n        \"lastPage\": \"/affiliates?page-number=29&page-size=5&sort=-id\"\n    }\n}"}],"_postman_id":"53b8a027-351f-48d4-a7d8-46af46e82ab0"},{"name":"Get a single affiliate brand","id":"8e561f18-2948-4644-968d-19ac80357802","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/affiliates/{{id}}","description":"<p>Returns a single affiliate brand.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the affiliate brand to return.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["affiliates","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"8c3b3a03-f688-4359-abb9-1d2ca15a6668","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/affiliates/12345"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"type\": \"affiliate\",\n            \"id\": 12345,\n            \"attributes\": {\n                \"name\": \"An Awesome Brand\",\n                \"domain\": \"anawesomebrand.com\",\n                \"cookiePeriod\": \"60 days\",\n                \"commission\": \"10%\",\n                \"affiliateLink\": \"https://affiliates.pressloft.com/click?id=1&url=https://anawesomebrand.com\"\n            },\n            \"links\": {\n                \"self\": \"/affiliates/12345\",\n                \"commissions\": \"/affiliates/12345/commissions\"\n            }\n        }\n    ],\n    \"links\": {\n        \"self\": \"/affiliates/12345\"\n    }\n}"}],"_postman_id":"8e561f18-2948-4644-968d-19ac80357802"}],"id":"51d7faee-3faf-469c-bbce-fab577b10617","description":"<p>Provides a full list of all Press Loft affiliate brands.</p>\n<p><strong>Authorised access to:</strong> registered publisher accounts.</p>\n","_postman_id":"51d7faee-3faf-469c-bbce-fab577b10617"},{"name":"Sale Commissions","item":[{"name":"Get all sale commissions","id":"3a8f0ade-0bb0-4187-b540-45c51e599c49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/commissions?page-size={{integer}}&page-number={{integer}}&sort={{string}}&start-date={{date}}&end-date={{date}}","description":"<p>Returns a list of all sale commissions. Results are paginated.</p>\n<h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of records to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: name  <br />Available: date</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n<tr>\n<td>start-date</td>\n<td><code>date</code></td>\n<td>**Optional  <br />**YY-MM-DD</td>\n<td>Only return sale commissions placed on or after this date.</td>\n</tr>\n<tr>\n<td>end-date</td>\n<td><code>date</code></td>\n<td>**Optional  <br />**YY-MM-DD</td>\n<td>Only return sale commissions placed on or before this date.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["commissions"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"start-date","value":"{{date}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"end-date","value":"{{date}}"}],"variable":[]}},"response":[{"id":"a9e46006-a02f-42ad-9132-fa3dfce9f3ee","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/commissions"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"\n    \"status\": \"success\",\n    \"meta\": {\n        \"totalRecords\": 17,\n        \"thisPage\": 1,\n        \"totalPages\": 2\n    },\n    \"data\": [\n        {\n            \"type\": \"commission\",\n            \"id\": 577,\n            \"attributes\": {\n                \"affiliateID\": 12345,\n                \"affiliateName\": \"An Awesome Brand\",\n                \"orderId\": \"10024\",\n                \"orderDate\": \"2023-05-10 22:14:12\",\n                \"orderCurrency\": \"GBP\",\n                \"orderSubtotal\": 31.9,\n                \"orderDiscount\": 0,\n                \"orderTax\": 6.15,\n                \"orderPostage\": 4.95,\n                \"orderTotal\": 36.85,\n                \"commissionStatus\": \"pending\",\n                \"commissionCurrency\": \"GBP\",\n                \"commissionAmount\": \"3.19\",\n                \"receiptId\": 1234,\n                \"subIds\": {\n                    \"subId1\": 12345,\n                    \"subId2\": \"abcd\"\n                }\n            },\n            \"links\": {\n                \"self\": \"/commissions/577\",\n                \"affiliate\": \"/affiliates/12345\",\n                \"receipt\": null\n            }\n        },\n        ...\n    ],\n    \"links\": {\n        \"self\": \"/commissions?page-number=1\",\n        \"firstPage\": \"/commissions?page-number=1\",\n        \"prevPage\": \"/commissions?page-number=1\",\n        \"nextPage\": \"/commissions?page-number=2\",\n        \"lastPage\": \"/commissions?page-number=2\"\n    }\n}"}],"_postman_id":"3a8f0ade-0bb0-4187-b540-45c51e599c49"},{"name":"Get all sale commissions for an affiliate","id":"22835c66-bdb6-421c-be45-766a4f996aae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/affiliates/{{id}}/commissions?page-size={{integer}}&page-number={{integer}}&sort={{string}}&start-date={{date}}&end-date={{date}}","description":"<p>Returns a list of all sale commissions related to a single affiliate. Results are paginated.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the affiliate.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of affiliate brands to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: date  <br />Available: date</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n<tr>\n<td>start-date</td>\n<td><code>date</code></td>\n<td>**Optional  <br />**YY-MM-DD</td>\n<td>Only return sale commissions placed on or after this date.</td>\n</tr>\n<tr>\n<td>end-date</td>\n<td><code>date</code></td>\n<td>**Optional  <br />**YY-MM-DD</td>\n<td>Only return sale commissions placed on or before this date.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["affiliates","{{id}}","commissions"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"start-date","value":"{{date}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"end-date","value":"{{date}}"}],"variable":[]}},"response":[{"id":"59981052-0383-49eb-b43d-2ecef3d24958","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/affiliates/12345/commissions"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"meta\": {\n        \"totalRecords\": 4,\n        \"thisPage\": 1,\n        \"totalPages\": 1\n    },\n    \"data\": [\n        {\n            \"type\": \"commission\",\n            \"id\": 577,\n            \"attributes\": {\n                \"affiliateID\": 12345,\n                \"affiliateName\": \"An Awesome Brand\",\n                \"orderId\": \"10024\",\n                \"orderDate\": \"2023-05-10 22:14:12\",\n                \"orderCurrency\": \"GBP\",\n                \"orderSubtotal\": 31.9,\n                \"orderDiscount\": 0,\n                \"orderTax\": 6.15,\n                \"orderPostage\": 4.95,\n                \"orderTotal\": 36.85,\n                \"commissionStatus\": \"pending\",\n                \"commissionCurrency\": \"GBP\",\n                \"commissionAmount\": \"3.19\",\n                \"receiptId\": 1234,\n                \"subIds\": {\n                    \"subId1\": 12345,\n                    \"subId2\": \"abcd\"\n                }\n            },\n            \"links\": {\n                \"self\": \"/commissions/577\",\n                \"affiliate\": \"/affiliates/12345\",\n                \"receipt\": \"/receipts/1234\",\n            }\n        }\n        ...\n    ],\n    \"links\": {\n        \"self\": \"/affiliates/12345/commissions?page-number=1\",\n        \"firstPage\": \"/affiliates/12345/commissions?page-number=1\",\n        \"prevPage\": \"/affiliates/12345/commissions?page-number=1\",\n        \"nextPage\": \"/affiliates/12345/commissions?page-number=1\",\n        \"lastPage\": \"/affiliates/12345/commissions?page-number=1\"\n    }\n}"}],"_postman_id":"22835c66-bdb6-421c-be45-766a4f996aae"},{"name":"Get all sale commissions in a receipt","id":"f96b75b1-4cc8-4987-a8b3-b5ab363d6327","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/receipts/{{id}}/commissions?page-size={{integer}}&page-number={{integer}}&sort={{string}}&start-date={{date}}&end-date={{date}}","description":"<p>Returns a list of all sale commissions in a receipt. Results are paginated.</p>\n<h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of affiliate brands to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: date  <br />Available: date</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n<tr>\n<td>start-date</td>\n<td><code>date</code></td>\n<td><strong>Optional</strong>  <br />YYYY-MM-DD</td>\n<td>Only return sale commissions placed on or after this date.</td>\n</tr>\n<tr>\n<td>end-date</td>\n<td><code>date</code></td>\n<td><strong>Optional</strong>  <br />YYYY-MM-DD</td>\n<td>Only return sale commissions placed on or before this date.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the receipt.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["receipts","{{id}}","commissions"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"start-date","value":"{{date}}"},{"description":{"content":"<p>YYYY-MM-DD</p>\n","type":"text/plain"},"key":"end-date","value":"{{date}}"}],"variable":[]}},"response":[{"id":"c301ad56-feab-4232-a176-dea1c59fa0d2","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/receipts/1234/commissions"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"meta\": {\n        \"totalRecords\": 4,\n        \"thisPage\": 1,\n        \"totalPages\": 1\n    },\n    \"data\": [\n        {\n            \"type\": \"commission\",\n            \"id\": 577,\n            \"attributes\": {\n                \"affiliateID\": 12345,\n                \"affiliateName\": \"An Awesome Brand\",\n                \"orderId\": \"10024\",\n                \"orderDate\": \"2023-05-10 22:14:12\",\n                \"orderCurrency\": \"GBP\",\n                \"orderSubtotal\": 31.9,\n                \"orderDiscount\": 0,\n                \"orderTax\": 6.15,\n                \"orderPostage\": 4.95,\n                \"orderTotal\": 36.85,\n                \"commissionStatus\": \"pending\",\n                \"commissionCurrency\": \"GBP\",\n                \"commissionAmount\": \"3.19\",\n                \"receiptId\": 1234,\n                \"subIds\": {\n                    \"subId1\": 12345,\n                    \"subId2\": \"abcd\"\n                }\n            },\n            \"links\": {\n                \"self\": \"/commissions/577\",\n                \"affiliate\": \"/affiliates/12345\",\n                \"receipt\": \"/receipts/1234\",\n            }\n        }\n        ...\n    ],\n    \"links\": {\n        \"self\": \"/receipts/12345/commissions?page-number=1\",\n        \"firstPage\": \"/receipts/12345/commissions?page-number=1\",\n        \"prevPage\": \"/receipts/12345/commissions?page-number=1\",\n        \"nextPage\": \"/receipts/12345/commissions?page-number=1\",\n        \"lastPage\": \"/receipts/12345/commissions?page-number=1\"\n    }\n}"}],"_postman_id":"f96b75b1-4cc8-4987-a8b3-b5ab363d6327"},{"name":"Get a single sales commission","id":"c14562e9-ac3a-40c9-9279-a164e1ac8e8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/commissions/{{id}}","description":"<p>Returns a single sales commission.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the sales commission to return.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["commissions","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[{"id":"3e103fd3-ce25-4b6e-a586-c87e6f06f60c","name":"success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<api-key>","type":"text"},{"key":"x-api-secret","value":"<api-secret>","type":"text"}],"url":"https://api.pressloft.com/v1/commissions/577"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"type\": \"commission\",\n            \"id\": 577,\n            \"attributes\": {\n                \"affiliateID\": 12345,\n                \"affiliateName\": \"An Awesome Brand\",\n                \"orderId\": \"10024\",\n                \"orderDate\": \"2023-05-10 22:14:12\",\n                \"orderCurrency\": \"GBP\",\n                \"orderSubtotal\": 31.9,\n                \"orderDiscount\": 0,\n                \"orderTax\": 6.15,\n                \"orderPostage\": 4.95,\n                \"orderTotal\": 36.85,\n                \"commissionStatus\": \"pending\",\n                \"commissionCurrency\": \"GBP\",\n                \"commissionAmount\": \"3.19\",\n                \"receiptId\": 1234,\n                \"subIds\": {\n                    \"subId1\": 12345,\n                    \"subId2\": \"abcd\"\n                }\n            },\n            \"links\": {\n                \"self\": \"/commissions/577\",\n                \"affiliate\": \"/affiliates/12345\",\n                \"receipt\": null\n            }\n        }\n    ],\n    \"links\": {\n        \"self\": \"/commissions/577\"\n    }\n}"}],"_postman_id":"c14562e9-ac3a-40c9-9279-a164e1ac8e8e"}],"id":"a7e11d38-d3b7-44d1-9aaa-87e1a43faef6","description":"<p>Provides a full list of all sale commissions.</p>\n<p><strong>Authorised access to:</strong> registered publisher accounts.</p>\n","_postman_id":"a7e11d38-d3b7-44d1-9aaa-87e1a43faef6"},{"name":"Payout Receipts","item":[{"name":"Get all payout receipts","id":"ce22d58b-9cb2-40f3-ac08-57bf51cd846c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/receipts?page-size={{integer}}&page-number={{integer}}&sort={{string}}","description":"<p>Returns a list of all payout receipts. Results are paginated.</p>\n<h4 id=\"query-string-parameters\">Query String Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page-size</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 10  <br />Maximum: 100</td>\n<td>The number of payout receipts to return per page.</td>\n</tr>\n<tr>\n<td>page-number</td>\n<td><code>integer</code></td>\n<td><strong>Optional</strong>  <br />Default: 1</td>\n<td>The page number to return.</td>\n</tr>\n<tr>\n<td>sort</td>\n<td><code>string</code></td>\n<td><strong>Optional</strong>  <br />Default: date  <br />Available: date</td>\n<td>The order in which to sort results. Use a minus (-) before the option to sort in descending order.</td>\n</tr>\n<tr>\n<td>start-date</td>\n<td><code>date</code></td>\n<td><strong>Optional</strong></td>\n<td>Only return payout receipts created on or after this date.</td>\n</tr>\n<tr>\n<td>end-date</td>\n<td><code>date</code></td>\n<td><strong>Optional</strong></td>\n<td>Only return payout receipts created on or before this date.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["receipts"],"host":["https://api.pressloft.com/v1"],"query":[{"key":"page-size","value":"{{integer}}"},{"key":"page-number","value":"{{integer}}"},{"key":"sort","value":"{{string}}"}],"variable":[]}},"response":[],"_postman_id":"ce22d58b-9cb2-40f3-ac08-57bf51cd846c"},{"name":"Get a single payout receipt","id":"34ba51bf-6d73-4f33-acdd-0b74bf544c1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"x-api-secret","value":"{{apiSecret}}","type":"text"}],"url":"https://api.pressloft.com/v1/receipts/{{id}}","description":"<p>Returns a single payout receipt.</p>\n<h4 id=\"path-parameters\">Path Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Options</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>{{id}}</td>\n<td><code>integer</code></td>\n<td><strong>Required</strong></td>\n<td>The id of the payout receipt to return.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["receipts","{{id}}"],"host":["https://api.pressloft.com/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"34ba51bf-6d73-4f33-acdd-0b74bf544c1b"}],"id":"e3671a51-1e0b-44bc-8bb4-3bd9fe5166c7","description":"<p>Provides a full list of all receipts for sales commission payouts.</p>\n<p><strong>Authorised access to:</strong> registered publisher accounts.</p>\n","_postman_id":"e3671a51-1e0b-44bc-8bb4-3bd9fe5166c7"}],"event":[{"listen":"prerequest","script":{"id":"d9b24838-bbd5-4b37-9054-b4b7b4b74dfd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"50668d0b-317b-4c58-97a4-5ef9639d922f","type":"text/javascript","exec":[""]}}],"variable":[{"key":"basePath","value":"v1"},{"key":"baseUrl","value":"https://api.pressloft.com/v1"}]}