{"info":{"_postman_id":"7b5538ce-c332-48b9-9f96-3908f4800d5d","name":"LB Partner API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14645279","collectionId":"7b5538ce-c332-48b9-9f96-3908f4800d5d","publishedId":"Uyr7HdhR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7071BF"},"publishDate":"2022-05-13T15:15:12.000Z"},"item":[{"name":"Business","item":[{"name":"Create a subscription","id":"c3ce6ec6-e7c8-47df-a6b7-3050ded7df29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"ceo@example.com\",\n    \"name\": \"ACompany\",\n    \"monthlyInvitationAmount\": 200,\n    \"expiresInMonths\": 6\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/business/subscription-create","description":"<p>Creates a subscription and sends a welcome email. The email will contain a link to activate the subscription in Business Portal.</p>\n<p><code>email</code> is mandatory. <code>name</code> is optional.</p>\n<p>Pass <code>invitationAmount</code> for a one-time top-up OR <code>monthlyInvitationAmount</code> to assign more invites every month. For monthly subscriptions, the invites are assigned on the 1st day of every month. However, if a business doesn't have any active monthly subscription when activating a new monthly subscription, they will get the invites immediately. While activating a monthly subscription, we will cancel the previous monthly subscription automatically if there is one.</p>\n<p>Pass <code>expiresInMonths</code> to cancel a monthly subscription automatically after some period of time. If it is defined, <code>expiresAt</code> will be set to the expiration date. After expiration, the status will be set to Expired by the end of the day.</p>\n","urlObject":{"path":["api","v1","business","subscription-create"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"82186606-ca2f-465a-aa24-c9bf45966503","name":"Create a monthly subscription","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"ceo@example.com\",\n    \"name\": \"ACompany\",\n    \"monthlyInvitationAmount\": 150\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/business/subscription-create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-HAGi6R9wvmaLP6Q2LPHevhA6LeU\""},{"key":"Date","value":"Fri, 22 Apr 2022 13:42:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl2ahf2c100412vvp8t6vwnxz\",\n    \"email\": \"ceo@example.com\",\n    \"status\": \"Pending\",\n    \"invitationAmount\": null,\n    \"monthlyInvitationAmount\": 150,\n    \"createdAt\": \"2022-04-22T13:42:08.785Z\",\n    \"updatedAt\": \"2022-04-22T13:42:08.785Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": null\n}"},{"id":"008f017e-2df9-4874-b9a2-69b460136525","name":"Create a one-time subscription","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"ceo@example.com\",\n    \"name\": \"ACompany\",\n    \"invitationAmount\": 200\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/business/subscription-create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-VyWJxRF70UPbIXZkl35tikk44YA\""},{"key":"Date","value":"Fri, 22 Apr 2022 13:43:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl2ahh22p00792vvpcrtm01e9\",\n    \"email\": \"ceo@example.com\",\n    \"status\": \"Pending\",\n    \"invitationAmount\": 200,\n    \"monthlyInvitationAmount\": null,\n    \"createdAt\": \"2022-04-22T13:43:41.761Z\",\n    \"updatedAt\": \"2022-04-22T13:43:41.762Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": null\n}"},{"id":"e8557063-c677-4e31-8a42-90f99a4de799","name":"Create a subscription that expires","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"info@acompany.com\",\n    \"name\": \"ACompany\",\n    \"monthlyInvitationAmount\": 30,\n    \"expiresInMonths\": 2\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/business/subscription-create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"288"},{"key":"ETag","value":"W/\"120-tWXLfqrhKZCC4TqWlQcDSgRSlcw\""},{"key":"Date","value":"Thu, 19 May 2022 14:53:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl3d4v9lp0064pmvpuvn7p4i9\",\n    \"email\": \"info@acompany.com\",\n    \"status\": \"Pending\",\n    \"invitationAmount\": null,\n    \"monthlyInvitationAmount\": 30,\n    \"createdAt\": \"2022-05-19T14:53:50.557Z\",\n    \"updatedAt\": \"2022-05-19T14:53:50.557Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": null,\n    \"expiresAt\": \"2022-07-19T14:53:50.556Z\"\n}"}],"_postman_id":"c3ce6ec6-e7c8-47df-a6b7-3050ded7df29"},{"name":"List subscriptions","id":"b8746443-f284-4069-8903-a8163677fcb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":"{{baseUrl}}/api/v1/business/subscription-list?limit=10&status=Pending&email=ceo@example.com","description":"<p>Returns a paginated list of subscriptions that match the specified filters. The list is sorted by <code>createdAt</code> in descending order. To retrieve the next page, send a new request with the same query parameters and <code>nextCursorId</code> as <code>cursorId</code>. If <code>nextCursorId</code> is <code>null</code>, there are no more items in the list.</p>\n","urlObject":{"path":["api","v1","business","subscription-list"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>How many items to return (1-100)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"description":{"content":"<p>Skip everything before this item (null by default)</p>\n","type":"text/plain"},"key":"cursorId","value":""},{"description":{"content":"<p>Filter by status (optional). <code>Pending</code> or <code>Activated</code></p>\n","type":"text/plain"},"key":"status","value":"Pending"},{"key":"email","value":"ceo@example.com"}],"variable":[]}},"response":[{"id":"e09f5b0d-61d4-41a3-9c34-e87886b3ea87","name":"List subscriptions","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/business/subscription-list?limit=10&status=Pending&email=ceo@example.com","host":["{{baseUrl}}"],"path":["api","v1","business","subscription-list"],"query":[{"key":"limit","value":"10","description":"How many items to return (1-100)"},{"key":"cursorId","value":"","description":"Skip everything before this item (null by default)","disabled":true},{"key":"status","value":"Pending","description":"Filter by status (optional). `Pending` or `Activated`"},{"key":"email","value":"ceo@example.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"279"},{"key":"ETag","value":"W/\"117-6Exo3IJZ+FIXjpnLIJ9AH1tvNjE\""},{"key":"Date","value":"Fri, 22 Apr 2022 13:42:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"list\": [\n        {\n            \"id\": \"cl2ahf2c100412vvp8t6vwnxz\",\n            \"email\": \"ceo@example.com\",\n            \"status\": \"Pending\",\n            \"invitationAmount\": null,\n            \"monthlyInvitationAmount\": 150,\n            \"createdAt\": \"2022-04-22T13:42:08.785Z\",\n            \"updatedAt\": \"2022-04-22T13:42:08.785Z\",\n            \"activatedAt\": null,\n            \"canceledAt\": null\n        }\n    ],\n    \"nextCursorId\": null\n}"}],"_postman_id":"b8746443-f284-4069-8903-a8163677fcb0"},{"name":"Retrieve a subscription","id":"5913cfc3-44b5-4ee2-aa63-7f2df7fd0a87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":"{{baseUrl}}/api/v1/business/subscription-details/:id","urlObject":{"path":["api","v1","business","subscription-details",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"cl2ahf2c100412vvp8t6vwnxz","key":"id"}]}},"response":[{"id":"26aaed81-da42-4b48-906d-7516e1fc32e7","name":"Retrieve a subscription","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/business/subscription-details/:id","host":["{{baseUrl}}"],"path":["api","v1","business","subscription-details",":id"],"variable":[{"key":"id","value":"cl2ahf2c100412vvp8t6vwnxz"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"248"},{"key":"ETag","value":"W/\"f8-HAGi6R9wvmaLP6Q2LPHevhA6LeU\""},{"key":"Date","value":"Fri, 22 Apr 2022 13:42:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl2ahf2c100412vvp8t6vwnxz\",\n    \"email\": \"ceo@example.com\",\n    \"status\": \"Pending\",\n    \"invitationAmount\": null,\n    \"monthlyInvitationAmount\": 150,\n    \"createdAt\": \"2022-04-22T13:42:08.785Z\",\n    \"updatedAt\": \"2022-04-22T13:42:08.785Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": null\n}"}],"_postman_id":"5913cfc3-44b5-4ee2-aa63-7f2df7fd0a87"},{"name":"Cancel a subscription","id":"db173c7d-d8f8-4b1e-a763-ce54263e5b7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{baseUrl}}/api/v1/business/subscription-cancel/:id","description":"<p>Cancels a subscription. It's only possible to cancel a pending one-time or monthly subscription, or activated monthly subscription. It is not possible to cancel an activated one-time subscription. If you cancel a monthly subscription, it will remain valid till the end of the current period. After expiration the status will be set to <code>Expired</code>.</p>\n","urlObject":{"path":["api","v1","business","subscription-cancel",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"cl2ahf2c100412vvp8t6vwnxz","key":"id"}]}},"response":[{"id":"edf156eb-c972-4164-b277-1fb9f299f8a5","name":"Cancel a subscription","originalRequest":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/business/subscription-cancel/:id","host":["{{baseUrl}}"],"path":["api","v1","business","subscription-cancel",":id"],"variable":[{"key":"id","value":"cl3d4pw7e0036pmvptvyagpyy"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"334"},{"key":"ETag","value":"W/\"14e-DXe73Y7j2hJdt89nuExRpOFEFcY\""},{"key":"Date","value":"Thu, 19 May 2022 14:51:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl3d4pw7e0036pmvptvyagpyy\",\n    \"email\": \"ceo@example.com\",\n    \"status\": \"Canceled\",\n    \"invitationAmount\": null,\n    \"monthlyInvitationAmount\": 30,\n    \"createdAt\": \"2022-05-19T14:49:39.914Z\",\n    \"updatedAt\": \"2022-05-19T14:51:55.835Z\",\n    \"activatedAt\": \"2022-05-19T14:50:06.813Z\",\n    \"canceledAt\": \"2022-05-19T14:51:55.833Z\",\n    \"expiresAt\": \"2022-06-19T14:49:39.914Z\"\n}"}],"_postman_id":"db173c7d-d8f8-4b1e-a763-ce54263e5b7f"}],"id":"24a68149-46ad-48f5-92b5-3091e0e73ede","_postman_id":"24a68149-46ad-48f5-92b5-3091e0e73ede","description":""},{"name":"Individual","item":[{"name":"Create a subscription","id":"195c6ba9-0146-4109-bddf-0c4fef87a22f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"andrew@example.com\",\n    \"name\": \"Andrew Smith\",\n    \"plan\": \"Basic\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/individual/subscription-create","description":"<p>Creates a subscription and sends a welcome email. The email will contain a link to activate the subscription in Personal Portal.</p>\n<p><code>email</code> and <code>plan</code> are mandatory. <code>plan</code> can be <code>Basic</code> or <code>Recurring</code>. <code>name</code> is optional.</p>\n<p>Pass <code>expiresInMonths</code> to cancel a recurring subscription automatically after some period of time. If it is defined, <code>expiresAt</code> will be set to the expiration date. After expiration, the status will be set to <code>Expired</code> by the end of the day.</p>\n","urlObject":{"path":["api","v1","individual","subscription-create"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"ca42daff-f21f-4420-aecf-58deb5470079","name":"Create a subscription","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"andrew@example.com\",\n    \"name\": \"Andrew Smith\",\n    \"plan\": \"Basic\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/individual/subscription-create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-TG2PDOxL4UJIPzzO2YJFE1wwfh4\""},{"key":"Date","value":"Tue, 19 Apr 2022 12:25:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl264d5570059tcvpoct93eqt\",\n    \"email\": \"andrew@example.com\",\n    \"status\": \"Pending\",\n    \"createdAt\": \"2022-04-19T12:25:39.403Z\",\n    \"updatedAt\": \"2022-04-19T12:25:39.404Z\",\n    \"plan\": \"Basic\"\n}"},{"id":"26d8c1b6-df26-4adb-9fd0-ad3826818eb5","name":"Create a subscription that expires","originalRequest":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"andrew@example.com\",\n    \"name\": \"Andrew Smith\",\n    \"plan\": \"Recurring\",\n    \"expiresInMonths\": 6\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/api/v1/individual/subscription-create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"255"},{"key":"ETag","value":"W/\"ff-enPfrbHlhx2qcj3XcToODrbxZ1g\""},{"key":"Date","value":"Wed, 18 May 2022 13:43:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl3bmwoo20006rj3apxd9elbo\",\n    \"email\": \"andrew@example.com\",\n    \"status\": \"Pending\",\n    \"createdAt\": \"2022-05-18T13:43:17.474Z\",\n    \"updatedAt\": \"2022-05-18T13:43:17.475Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": null,\n    \"expiresAt\": \"2022-11-18T14:43:17.469Z\",\n    \"plan\": \"Recurring\"\n}"}],"_postman_id":"195c6ba9-0146-4109-bddf-0c4fef87a22f"},{"name":"List subscriptions","id":"34470f0e-02fb-4fac-b933-cb8ca1dd1862","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":"{{baseUrl}}/api/v1/individual/subscription-list?limit=10&email=andrew@example.com&status=Pending","description":"<p>Returns a paginated list of subscriptions that match the specified filters. The list is sorted by <code>createdAt</code> in descending order. To retrieve the next page, send a new request with the same query parameters and <code>nextCursorId</code> as <code>cursorId</code>. If <code>nextCursorId</code> is <code>null</code>, there are no more items in the list.</p>\n","urlObject":{"path":["api","v1","individual","subscription-list"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>How many items to return (1-100)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"description":{"content":"<p>Skip everything before this item (null by default)</p>\n","type":"text/plain"},"key":"cursorId","value":""},{"description":{"content":"<p>Filter by email (optional)</p>\n","type":"text/plain"},"key":"email","value":"andrew@example.com"},{"description":{"content":"<p>Filter by status (optional). <code>Pending</code> or <code>Activated</code></p>\n","type":"text/plain"},"key":"status","value":"Pending"}],"variable":[]}},"response":[{"id":"d8cb460d-70ab-4b3a-8843-5334571d7db4","name":"List subscriptions","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/individual/subscription-list?limit=10&email=andrew@example.com&status=Pending","host":["{{baseUrl}}"],"path":["api","v1","individual","subscription-list"],"query":[{"key":"limit","value":"10","description":"How many items to return (1-100)"},{"key":"cursorId","value":"","description":"Skip everything before this item (null by default)","disabled":true},{"key":"email","value":"andrew@example.com","description":"Filter by email (optional)"},{"key":"status","value":"Pending","description":"Filter by status (optional). `Pending` or `Activated`"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"386"},{"key":"ETag","value":"W/\"182-iYrQ29k7CTWTGG4hkPMP9n02EJ0\""},{"key":"Date","value":"Tue, 19 Apr 2022 12:32:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"list\": [\n        {\n            \"id\": \"cl264lrv30095tcvpyl682ec4\",\n            \"email\": \"andrew@example.com\",\n            \"status\": \"Pending\",\n            \"createdAt\": \"2022-04-19T12:32:22.095Z\",\n            \"updatedAt\": \"2022-04-19T12:32:22.096Z\",\n            \"plan\": \"Recurring\"\n        },\n        {\n            \"id\": \"cl264d5570059tcvpoct93eqt\",\n            \"email\": \"andrew@example.com\",\n            \"status\": \"Pending\",\n            \"createdAt\": \"2022-04-19T12:25:39.403Z\",\n            \"updatedAt\": \"2022-04-19T12:25:39.404Z\",\n            \"plan\": \"Basic\"\n        }\n    ],\n    \"nextCursorId\": null\n}"}],"_postman_id":"34470f0e-02fb-4fac-b933-cb8ca1dd1862"},{"name":"Retrieve a subscription","id":"316b3204-40fa-413f-b92d-5eba4600f460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":"{{baseUrl}}/api/v1/individual/subscription-details/:id","urlObject":{"path":["api","v1","individual","subscription-details",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"cl2pyw7gg0047vuvpwy8c1xtc","key":"id"}]}},"response":[{"id":"0fb1f9d2-c09c-4705-ac18-dbe73d4ea4d8","name":"Retrieve a subscription","originalRequest":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/individual/subscription-details/:id","host":["{{baseUrl}}"],"path":["api","v1","individual","subscription-details",":id"],"variable":[{"key":"id","value":"cl264d5570059tcvpoct93eqt"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-TG2PDOxL4UJIPzzO2YJFE1wwfh4\""},{"key":"Date","value":"Tue, 19 Apr 2022 12:30:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl264d5570059tcvpoct93eqt\",\n    \"email\": \"andrew@example.com\",\n    \"status\": \"Pending\",\n    \"createdAt\": \"2022-04-19T12:25:39.403Z\",\n    \"updatedAt\": \"2022-04-19T12:25:39.404Z\",\n    \"plan\": \"Basic\"\n}"}],"_postman_id":"316b3204-40fa-413f-b92d-5eba4600f460"},{"name":"Cancel a subscription","id":"bc740b48-2f32-4297-aca7-98931ca5d296","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{apiKey}}","type":"text"}],"url":"{{baseUrl}}/api/v1/individual/subscription-cancel/:id","description":"<p>Cancels a subscription. It's only possible to cancel a pending basic or recurring subscription, or activated recurring subscription. It is not possible to cancel an activated basic subscription.</p>\n<p>If you cancel a recurring subscription, the user will be able to use the platform till the end of current period. For example, a recurring subscription was created on Mar 25 and canceled on May 5. Since the user pays monthly, they will be able to use the platform till May 25.</p>\n","urlObject":{"path":["api","v1","individual","subscription-cancel",":id"],"host":["{{baseUrl}}"],"query":[],"variable":[{"id":"d3207328-5e8c-4238-a1c5-e047c55dcb2f","type":"any","value":"cl2pyw7gg0047vuvpwy8c1xtc","key":"id"}]}},"response":[{"id":"3254a7e6-6099-4699-b48d-a2b554474232","name":"Cancel a subscription","originalRequest":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{apiKey}}","type":"text"}],"url":{"raw":"{{baseUrl}}/api/v1/individual/subscription-cancel/:id","host":["{{baseUrl}}"],"path":["api","v1","individual","subscription-cancel",":id"],"variable":[{"id":"d3207328-5e8c-4238-a1c5-e047c55dcb2f","key":"id","value":"cl2pyw7gg0047vuvpwy8c1xtc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"235"},{"key":"ETag","value":"W/\"eb-tS/+kPd8RylW0FFOJV2s6fzcIPg\""},{"key":"Date","value":"Tue, 03 May 2022 09:49:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cl2pyw7gg0047vuvpwy8c1xtc\",\n    \"email\": \"ruslan@oakslab.com\",\n    \"status\": \"Canceled\",\n    \"createdAt\": \"2022-05-03T09:47:54.687Z\",\n    \"updatedAt\": \"2022-05-03T09:49:07.065Z\",\n    \"activatedAt\": null,\n    \"canceledAt\": \"2022-05-03T09:49:07.062Z\",\n    \"plan\": \"Basic\"\n}"}],"_postman_id":"bc740b48-2f32-4297-aca7-98931ca5d296"}],"id":"65108bb7-8f79-42a1-bec7-b3cb7aff9112","_postman_id":"65108bb7-8f79-42a1-bec7-b3cb7aff9112","description":""}],"event":[{"listen":"prerequest","script":{"id":"e1a15f82-33cb-4fae-8eb8-2aad0f371b4e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"63d2b4a0-0024-472c-a0ba-ce9235d0eb80","type":"text/javascript","exec":[""]}}]}