{"info":{"_postman_id":"5d4e3ccc-af6a-44ae-a4c3-f04ed37737e3","name":"SmoothCode API","description":"<html><head></head><body><h2 id=\"pricing-plan-apis\">Pricing Plan APIs</h2>\n<p><strong>Start integrating with SmoothCode's Billing APIs for your custom UI</strong></p>\n<p><em>Note:</em></p>\n<ul>\n<li><code>{{api_token}}</code> is used to authenticate SmoothCode requests. This is the HMAC of your <code>SmoothCode Client ID</code> signed with your <code>SmoothCode Client Secret</code> using <code>SHA256</code> digest. <code>Client ID</code> and <code>Client Secret</code> can be obtained from the <code>App Settings</code> in the SmoothCode dashboard</li>\n<li><code>{{api_token}}</code> needs to be sent as header: <code>Smoothcode-X-Token</code></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18246697","collectionId":"5d4e3ccc-af6a-44ae-a4c3-f04ed37737e3","publishedId":"UVC3jnu6","public":true,"customColor":{"top-bar":"151625","right-sidebar":"151625","highlight":"151625"},"publishDate":"2022-06-14T11:29:09.000Z"},"item":[{"name":"Pricing Plans","item":[{"name":"List Pricing Plans","id":"9da67b06-d53a-4ac9-a3d5-46468c513ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/?query={id, name, pricing_cycle, price, is_default}","description":"<h2 id=\"use-this-api-to-show-the-listing-of-pricing-plans-on-your-ui\">Use this API to show the Listing of Pricing Plans on your UI</h2>\n<p><em>Note:</em><br />-<code>{{project_id}}</code> is the UUID associated with the project. You can find the <code>project_id</code> in your SmoothCode Dashboard</p>\n<ul>\n<li>The Pricing Plan Fields are queriable. You can use the query param like this</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\"># ?query={fields}\n# Ex:\n?query={id,name,price,is_default}\n\n</code></pre>\n<p><strong>Supported Fields:</strong></p>\n<ul>\n<li>id</li>\n<li>name</li>\n<li>description</li>\n<li>pricing_cycle</li>\n<li>price</li>\n<li>upgrade_link</li>\n<li>trial_days</li>\n<li>is_default</li>\n<li>is_visible_on_dashboard</li>\n</ul>\n","urlObject":{"path":["projects","{{project_id}}","pricing-plans",""],"host":["{{base_url}}"],"query":[{"key":"query","value":"{id, name, pricing_cycle, price, is_default}"}],"variable":[]}},"response":[{"id":"89da8eca-d0c7-4431-8bed-c535d9480961","name":"List Pricing Plans","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":{"raw":"{{base_url}}/projects/{{project_id}}/pricing-plans/?query={id, name, pricing_cycle, price, is_default}","host":["{{base_url}}"],"path":["projects","{{project_id}}","pricing-plans",""],"query":[{"key":"query","value":"{id, name, pricing_cycle, price, is_default}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 07 Nov 2021 11:19:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"584"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"cb124fde-7ff8-4204-80f4-49ea1e7bd6ff\",\n        \"name\": \"Plan 1\",\n        \"pricingCycle\": \"free\",\n        \"price\": \"0.00\",\n        \"isDefault\": true\n    },\n    {\n        \"id\": \"f4ace181-3036-4f11-b433-a3e270d8b231\",\n        \"name\": \"Plan 2\",\n        \"pricingCycle\": \"monthly\",\n        \"price\": \"50.00\",\n        \"isDefault\": false\n    },\n    {\n        \"id\": \"9466d777-b347-4024-ab47-2b34f266ca71\",\n        \"name\": \"Super Dhamaka\",\n        \"pricingCycle\": \"monthly\",\n        \"price\": \"99.99\",\n        \"isDefault\": false\n    },\n    {\n        \"id\": \"2d19e998-ff80-4dfe-b7bd-d6eb3fe34892\",\n        \"name\": \"Super Dhamaka\",\n        \"pricingCycle\": \"monthly\",\n        \"price\": \"99.99\",\n        \"isDefault\": false\n    }\n]"}],"_postman_id":"9da67b06-d53a-4ac9-a3d5-46468c513ec4"},{"name":"Get Pricing Plan","id":"6f334cbe-dec0-4c09-9573-50ce6363c230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/{{pricing_plan_id}}/","description":"<h2 id=\"use-this-api-to-fetch-details-of-a-particular-pricing-plan\">Use this API to fetch details of a particular Pricing Plan</h2>\n<p><em>Note:</em></p>\n<ul>\n<li><code>{{pricing_plan_id}}</code> is the UUID associated with the Pricing Plan. You can find this using the <code>List Pricing Plans API</code> under the field <code>id</code></li>\n</ul>\n","urlObject":{"path":["projects","{{project_id}}","pricing-plans","{{pricing_plan_id}}",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"8801cbe1-ecc7-4548-ae82-3e6e066f1b43","name":"Get Pricing Plan","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/{{pricing_plan_id}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 07 Nov 2021 11:20:58 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"232"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"f4ace181-3036-4f11-b433-a3e270d8b231\",\n    \"name\": \"Plan 2\",\n    \"description\": \"This is Plan 2\",\n    \"pricingCycle\": \"monthly\",\n    \"price\": \"50.00\",\n    \"trialDays\": 7,\n    \"isDefault\": true,\n    \"isVisibleOnDashboard\": true\n}"}],"_postman_id":"6f334cbe-dec0-4c09-9573-50ce6363c230"},{"name":"Pricing Plan Change","id":"e7a76d50-2d92-442b-a66d-e90c0b081791","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/projects/{{project_id}}/platforms/shopify/billing-init/?pricing_plan_id={{pricing_plan_id}}&shop={{shop_url}}","description":"<h2 id=\"use-this-api-to-change-the-pricing-plan-for-any-merchant\">Use this API to change the pricing plan for any merchant</h2>\n<p>This API will redirect the merchant to Shopify Payment Page so they can approve the plan. </p>\n<p><em>Note: If the merchant is downgrading to a free plan, the current subscription will be cancelled</em></p>\n<p><code>{{shop_url}}</code> Needs to be in the format -&gt; <code>shop.myshopify.com</code></p>\n","urlObject":{"path":["projects","{{project_id}}","platforms","shopify","billing-init",""],"host":["{{base_url}}"],"query":[{"key":"pricing_plan_id","value":"{{pricing_plan_id}}"},{"key":"shop","value":"{{shop_url}}"}],"variable":[]}},"response":[{"id":"51eb24b0-7820-4ed7-ba16-388bcfebe299","name":"Pricing Plan Change with Error","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/projects/{{project_id}}/platforms/shopify/billing-init/?pricing_plan_id={{pricing_plan_id}}&shop={{shop_url}}","host":["{{base_url}}"],"path":["projects","{{project_id}}","platforms","shopify","billing-init",""],"query":[{"key":"pricing_plan_id","value":"{{pricing_plan_id}}"},{"key":"shop","value":"{{shop_url}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 08 Nov 2021 16:20:49 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"46"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"Invalid Pricing Plan or Website\"\n    ]\n}"}],"_postman_id":"e7a76d50-2d92-442b-a66d-e90c0b081791"},{"name":"Create Pricing Plans","id":"a63666ef-0e77-401f-9dec-9a294d04e853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Super Dhamaka\",\n    \"description\": \"All Features Available\",\n    \"price\": 99.99,\n    \"trialDays\": 14,\n    \"pricingCycle\": \"monthly\",\n    \"isVisibleOnDashboard\": true,\n    \"isDefault\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/","urlObject":{"path":["projects","{{project_id}}","pricing-plans",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c5d71fbd-eda7-4257-8e1b-0d54df6bf12b","name":"Create Pricing Plans","originalRequest":{"method":"POST","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Super Dhamaka\",\n    \"description\": \"All Features Available\",\n    \"price\": 99.99,\n    \"trialDays\": 14,\n    \"pricingCycle\": \"monthly\",\n    \"isVisibleOnDashboard\": true,\n    \"isDefault\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 07 Nov 2021 11:18:24 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"249"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"9466d777-b347-4024-ab47-2b34f266ca71\",\n    \"name\": \"Super Dhamaka\",\n    \"description\": \"All Features Available\",\n    \"planType\": \"Enterprise\",\n    \"price\": \"99.99\",\n    \"trialDays\": 14,\n    \"isDefault\": false,\n    \"isVisibleOnDashboard\": true\n}"},{"id":"7d0ebd3f-dc60-43cc-a92f-ae1d9c022199","name":"Create Pricing Plan with Error","originalRequest":{"method":"POST","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Super Dhamaka\",\n    \"description\": \"All Features Available\",\n    \"price\": 99.99,\n    \"trialDays\": 14,\n    \"pricingCycle\": \"monthly\",\n    \"isVisibleOnDashboard\": true,\n    \"isDefault\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Apr 2021 22:09:37 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"61"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        \"There can only be 1 default plan for a project\"\n    ]\n}"}],"_postman_id":"a63666ef-0e77-401f-9dec-9a294d04e853"},{"name":"Update Pricing Plan","id":"61bb25e6-d521-45c6-9cf9-3d43eb8a4dc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"isDefault\": true,\n    \"isVisibleOnDashboard\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/{{pricing_plan_id}}/","urlObject":{"path":["projects","{{project_id}}","pricing-plans","{{pricing_plan_id}}",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"5442edca-33cf-438a-ae25-56063d27281b","name":"Update Pricing Plan","originalRequest":{"method":"PATCH","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"isDefault\": true,\n    \"isVisibleOnDashboard\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/projects/{{project_id}}/pricing-plans/{{pricing_plan_id}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 07 Nov 2021 11:20:11 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, PUT, PATCH, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"232"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"f4ace181-3036-4f11-b433-a3e270d8b231\",\n    \"name\": \"Plan 2\",\n    \"description\": \"This is Plan 2\",\n    \"pricingCycle\": \"monthly\",\n    \"price\": \"50.00\",\n    \"trialDays\": 7,\n    \"isDefault\": true,\n    \"isVisibleOnDashboard\": true\n}"}],"_postman_id":"61bb25e6-d521-45c6-9cf9-3d43eb8a4dc8"}],"id":"07996f75-df8e-4d12-9961-40402020ac60","_postman_id":"07996f75-df8e-4d12-9961-40402020ac60","description":""},{"name":"Merchants","item":[{"name":"Get Merchant","id":"fa889f68-e479-44f6-bf0c-9c8bb4f7d4e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/projects/{{project_id}}/merchants/{{subdomain}}","description":"<p>Merchant Information that is obtained from Shopify can be accessed via this API. </p>\n<p>Fields that can be accessed:</p>\n<ul>\n<li><code>url</code>: Complete URL of the Shop -&gt; {{subdomain}}.myshopify.com</li>\n<li><code>state</code>: State of your app on the Merchant's Store</li>\n<li><code>scope</code>: Access Scopes Authorized by Merchant</li>\n<li><code>access_token</code>: Access Token of Merchant having access to the scopes authorized by Merchant</li>\n<li><code>active_plan</code>: Pricing Plan that your merchant is on</li>\n</ul>\n","urlObject":{"path":["projects","{{project_id}}","merchants","{{subdomain}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a4600f43-f7c5-40bd-b667-687b421bddf2","name":"Get Merchant","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/projects/{{project_id}}/merchants/{{subdomain}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Nov 2021 20:02:51 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"368"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"{{subdomain}}.myshopify.com\",\n    \"state\": \"Installed\",\n    \"scope\": \"write_script_tags,read_orders\",\n    \"accessToken\": \"<shopify_access_token>\",\n    \"activePlan\": {\n        \"id\": \"f6d3b372-79b6-42b9-8985-90a5985e55aa\",\n        \"name\": \"Standard\",\n        \"upgradeLink\": \"{{base_url}}/projects/{{project_id}}/shopify/billing-init/?pricing_plan_id=f6d3b372-79b6-42b9-8985-90a5985e55aa\",\n        \"description\": \"\",\n        \"pricingCycle\": \"monthly\",\n        \"price\": \"10.00\",\n        \"trialDays\": 4,\n        \"isActive\": true,\n        \"isDefault\": true,\n        \"isVisibleOnDashboard\": true\n    },\n    \"shopifyProperties\": {\n        \"name\": \"Smooth Code Staging\",\n        \"plan\": {\n            \"name\": \"Developer Preview\",\n            \"isShopifyPlus\": false,\n            \"isPartnerDevelopment\": true\n        },\n        \"email\": \"hello@smoothcode.io\"\n    }\n}"},{"id":"02b3892d-f5fc-40aa-bd02-06fd6195c90f","name":"Get Merchant (Access Token)","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":{"raw":"{{base_url}}/projects/{{project_id}}/merchants/{{subdomain}}?query={url,access_token}","host":["{{base_url}}"],"path":["projects","{{project_id}}","merchants","{{subdomain}}"],"query":[{"key":"query","value":"{url,access_token}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Nov 2021 19:22:05 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"98"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"{{subdomain}}.myshopify.com\",\n    \"accessToken\": \"<shopify_access_token>\"\n}"},{"id":"1a4b4357-1ef9-43d2-8115-f54ffafeb896","name":"Get Merchant (State)","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":{"raw":"{{base_url}}/projects/{{project_id}}/merchants/{{subdomain}}?query={url,state}","host":["{{base_url}}"],"path":["projects","{{project_id}}","merchants","{{subdomain}}"],"query":[{"key":"query","value":"{url,state}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Nov 2021 19:22:47 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"73"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"smooth-code-staging.myshopify.com\",\n    \"state\": \"Waiting for Payment\"\n}"},{"id":"0d735454-c668-4335-8f1c-4c6f34e53c64","name":"Get Merchant (Uninstalled Merchant)","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/projects/{{project_id}}/merchants/{{subdomain}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 30 Nov 2021 20:01:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"115"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"{{subdomain}}.myshopify.com\",\n    \"state\": \"Uninstalled\",\n    \"scope\": null,\n    \"accessToken\": null,\n    \"activePlan\": null\n}"}],"_postman_id":"fa889f68-e479-44f6-bf0c-9c8bb4f7d4e0"},{"name":"Get Install Link","id":"c6029efc-a506-491b-8399-f3af5b3612df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/projects/{{project_id}}/merchants/install-link/?shop={{shop_url}}","description":"<p><code>shop</code> is of the form <code>my-store.myshopify.com</code></p>\n","urlObject":{"path":["projects","{{project_id}}","merchants","install-link",""],"host":["{{base_url}}"],"query":[{"key":"shop","value":"{{shop_url}}"}],"variable":[]}},"response":[{"id":"2a1fd10f-c9b1-44c7-b198-07cd31d4f2f3","name":"Get Install Link","originalRequest":{"method":"GET","header":[{"key":"Smoothcode-X-Token","value":"{{api_token}}","type":"text"}],"url":{"raw":"{{base_url}}/projects/{{project_id}}/merchants/install-link/?shop={{shop_url}}","host":["{{base_url}}"],"path":["projects","{{project_id}}","merchants","install-link",""],"query":[{"key":"shop","value":"{{shop_url}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 18 May 2022 15:35:26 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.9.1"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"677"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"installLink\": \"https://{{shop_url}}/admin/oauth/authorize?client_id={{shopify_client_id}}&redirect_uri={{redirect_url}}&scope={{access_scopes}}&state={{state}}\"\n}"}],"_postman_id":"c6029efc-a506-491b-8399-f3af5b3612df"}],"id":"c1c2d4e5-4462-4766-939e-7e8b1eb9ae96","_postman_id":"c1c2d4e5-4462-4766-939e-7e8b1eb9ae96","description":""}]}