{"info":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","description":"<html><head></head><body><h2 id=\"welcome\">Welcome</h2>\n<p>The ThriveCart API can be accessed in two ways:</p>\n<ol>\n<li>With an API key created from within your account</li>\n<li>Via a public-facing application</li>\n</ol>\n<p>If you want to access your own account, you can create an API key from the settings area inside of ThriveCart.</p>\n<p>If you intend to create an application that lots of ThriveCart users can all use, you'll want to create an App, and get each user to grant you permission to access their account.</p>\n<p><a href=\"https://developers.thrivecart.com/\">See our developer portal</a> for further details and how to get your credentials! Note that you will require a ThriveCart account to get started.</p>\n<h3 id=\"using-the-api\">Using the API</h3>\n<p>Please see our <a href=\"https://github.com/thrivecart/php-api\">PHP SDK</a> for the official PHP SDK that can be installed via Composter, and then see the <a href=\"https://github.com/thrivecart/api-demo/\">API demo project</a> for more details and examples on how to get your access token and begin making requests to the API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13408532","collectionId":"d1b367e5-6d66-4b28-871e-b33ece602ddc","publishedId":"TVejhANr","public":true,"customColor":{"top-bar":"272F2E","right-sidebar":"272822","highlight":"01C5C5"},"publishDate":"2020-11-10T08:08:09.000Z"},"item":[{"name":"Ping","id":"26b856d3-5299-4ee6-80b5-1f6e3c73dedc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/ping","description":"<p>Get information about the account that your API key or access token grants access to. No parameters are required for this endpoint. It's also useful to check the validity of your token.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","ping"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"19c5f647-2005-4af1-ba99-75625820129d","name":"Invalid/expired credentials","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/ping"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"invalid_token\",\n    \"error_description\": \"The access token provided is invalid\"\n}"},{"id":"e6b7deac-1314-49aa-96dc-0b0b29471028","name":"Ping","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/ping"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"account_name\": \"myaccount\",\n    \"account_id\": \"1\",\n    \"account_version\": \"pro\",\n    \"account_url\": \"https://myaccount.thrivecart.com/\",\n    \"user_id\": \"1\",\n    \"user_username\": \"marc@thrivecart.com\",\n    \"user_name\": \"Marc Fowler\",\n    \"custom_domain_enabled\": false,\n    \"custom_domain\": null\n}"}],"_postman_id":"26b856d3-5299-4ee6-80b5-1f6e3c73dedc"},{"name":"List products","id":"d5c060d8-b4c3-4531-86dc-05abbfc3faf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","products"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"ea5bce4a-abf8-49c7-9ed2-8ff6b1d93ce0","name":"List products","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"product_id\": \"2\",\n        \"name\": \"My Example Product\",\n        \"label\": \"Internal label for this product\",\n        \"url\": \"https://myaccount.thrivecart.com/my-example-product/\",\n        \"embed_type\": \"standard\",\n        \"status\": \"2\",\n        \"statusString\": \"live\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\"\n    },\n    {\n        \"product_id\": \"1\",\n        \"name\": \"My First Product\",\n        \"label\": \"Optional internal label\",\n        \"url\": \"https://myaccount.thrivecart.com/my-first-product/\",\n        \"embed_type\": \"standard\",\n        \"status\": \"1\",\n        \"statusString\": \"test\",\n        \"type\": \"2\",\n        \"typeString\": \"physical\"\n    }\n]"}],"_postman_id":"d5c060d8-b4c3-4531-86dc-05abbfc3faf9"},{"name":"List bump offers","id":"61b742b7-ae26-41e3-846f-95268ec62cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/bumps","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","bumps"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"5171f02c-d664-4722-91bd-200c067928c5","name":"List bump offers","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/bumps"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"product_id\": \"4\",\n        \"product_name\": \"My Product + Bump\",\n        \"product_label\": \"Internal product label\",\n        \"bump_id\": \"4\",\n        \"bump_name\": \"Special Bump Offer\",\n        \"name\": \"Special Bump Offer\",\n        \"id\": \"4\",\n        \"url\": \"https://myaccount.thrivecart.com/my-bump/\",\n        \"embed_type\": \"standard\",\n        \"status\": \"2\",\n        \"statusString\": \"live\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\",\n        \"payment_currency\": \"GBP\",\n        \"payment_amount\": 3200\n    },\n    {\n        \"product_id\": \"1\",\n        \"product_name\": \"Product with Bump\",\n        \"product_label\": \"Internal label for this product\",\n        \"bump_id\": \"1\",\n        \"bump_name\": \"Demo Bump\",\n        \"name\": \"Demo Bump\",\n        \"id\": \"1\",\n        \"url\": \"https://myaccount.thrivecart.com/product-with-bump/\",\n        \"embed_type\": \"standard\",\n        \"status\": \"2\",\n        \"statusString\": \"live\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\",\n        \"payment_currency\": \"USD\",\n        \"payment_amount\": 1200\n    }\n]"}],"_postman_id":"61b742b7-ae26-41e3-846f-95268ec62cf1"},{"name":"List upsells","id":"f1131e7e-984b-4da3-8297-980b513bc7d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/upsells","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","upsells"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"17ab2db6-199b-4aed-8bbf-62759e81a217","name":"List upsells","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/upsells"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"upsell_id\": \"2\",\n        \"name\": \"My Example Upsell\",\n        \"label\": \"Internal label for this upsell\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\"\n    },\n    {\n        \"upsell_id\": \"1\",\n        \"name\": \"My First Upsell\",\n        \"label\": \"Optional internal label\",\n        \"type\": \"2\",\n        \"typeString\": \"physical\"\n    }\n]"}],"_postman_id":"f1131e7e-984b-4da3-8297-980b513bc7d1"},{"name":"List downsells","id":"75604a50-cb2c-4e06-b066-38393f8a2edb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/downsells","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","downsells"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"4e5c2e0d-5007-4bc8-905c-cf54bae2dcd8","name":"List downsells","originalRequest":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/downsells"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"downsell_id\": \"2\",\n        \"name\": \"My Demo Downsell\",\n        \"label\": \"Internal label for this downsell\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\"\n    },\n    {\n        \"downsell_id\": \"1\",\n        \"name\": \"My Example Downsell\",\n        \"label\": \"Optional internal label\",\n        \"type\": \"1\",\n        \"typeString\": \"digital\"\n    }\n]"}],"_postman_id":"75604a50-cb2c-4e06-b066-38393f8a2edb"},{"name":"Get product","id":"e71e25a2-b867-42c7-8870-f3218f221bb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/products/:product_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","products",":product_id"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"fd14e0d1-9d6c-4872-92a4-e79deafcb5a7","description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"product_id"}]}},"response":[{"id":"54366844-2b4f-4a8a-b4b6-503ca4185be7","name":"Product details","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://thrivecart.com/api/external/products/:product_id","host":["https://thrivecart.com"],"path":["api","external","products",":product_id"],"variable":[{"key":"product_id","value":"","type":"string","description":"Product ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_id\": \"1\",\n    \"name\": \"My Product\",\n    \"slug\": \"my-product\",\n    \"label\": \"Internal label for this product\",\n    \"status\": \"2\",\n    \"statusString\": \"live\",\n    \"type\": \"1\",\n    \"typeString\": \"digital\",\n    \"payment_currency\": \"USD\",\n    \"url\": \"https://myaccount.thrivecart.com/my-product/\",\n    \"embed_type\": \"standard\"\n}"}],"_postman_id":"e71e25a2-b867-42c7-8870-f3218f221bb5"},{"name":"Get product price details","id":"f0f29864-9f31-49e1-9552-efb82d05b83d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://thrivecart.com/api/external/products/:product_id/pricing_options?affiliate_id=","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","products",":product_id","pricing_options"],"host":["https://thrivecart.com"],"query":[{"description":{"content":"<p>(Optional) Provide an affiliate ID to query the commissions tailored to this specific affiliate</p>\n","type":"text/plain"},"key":"affiliate_id","value":""}],"variable":[{"id":"bcf43e31-7cbb-475a-b358-4fb871d5033f","type":"any","value":"","key":"product_id"}]}},"response":[],"_postman_id":"f0f29864-9f31-49e1-9552-efb82d05b83d"},{"name":"Get bump","id":"c29e8614-a5b6-472a-8596-ee999ec30cb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/bumps/:bump_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","bumps",":bump_id"],"host":["https://thrivecart.com"],"query":[],"variable":[{"type":"string","value":"","key":"bump_id"}]}},"response":[{"id":"5829c25d-ca42-4ae3-b7f1-5cfa6a0f6343","name":"No such bump","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://thrivecart.com/api/external/bumps/:bump_id","host":["https://thrivecart.com"],"path":["api","external","bumps",":bump_id"],"variable":[{"key":"bump_id","value":"1"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"method.exception\",\n    \"reason\": \"The requested bump cannot be identified.\"\n}"},{"id":"582c3f60-1bce-4d6d-9bca-98ad73cc65d2","name":"Bump offer details","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://thrivecart.com/api/external/bumps/:bump_id","host":["https://thrivecart.com"],"path":["api","external","bumps",":bump_id"],"variable":[{"key":"bump_id","value":"366"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_id\": \"1\",\n    \"product_name\": \"My Bump Product\",\n    \"bump_id\": \"1\",\n    \"name\": \"My Bump\",\n    \"slug\": \"my-bump-product\",\n    \"label\": \"\",\n    \"status\": \"2\",\n    \"statusString\": \"live\",\n    \"type\": \"1\",\n    \"typeString\": \"digital\",\n    \"payment_currency\": \"USD\",\n    \"url\": \"https://myaccount.thrivecart.com/my-bump-product/\",\n    \"embed_type\": \"standard\"\n}"}],"_postman_id":"c29e8614-a5b6-472a-8596-ee999ec30cb4"},{"name":"Get bump price details","id":"3728f47d-f003-4494-8bbd-9313998f5562","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/bumps/:bump_id/pricing_options","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","bumps",":bump_id","pricing_options"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"101da437-2b86-40a7-b8fe-875d9af540cc","type":"any","value":"","key":"bump_id"}]}},"response":[],"_postman_id":"3728f47d-f003-4494-8bbd-9313998f5562"},{"name":"Get upsell","id":"008cb72d-479d-46ca-9822-5cd103cfa6a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/upsells/:upsell_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","upsells",":upsell_id"],"host":["https://thrivecart.com"],"query":[],"variable":[{"description":{"content":"<p>Upsell ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"upsell_id"}]}},"response":[{"id":"e3181ee8-6d91-44a8-8068-b1e92596faf0","name":"Upsell details","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://thrivecart.com/api/external/upsells/:upsell_id","host":["https://thrivecart.com"],"path":["api","external","upsells",":upsell_id"],"variable":[{"id":"60197267-ba54-44a2-b793-c47ff5e49171","key":"upsell_id","value":"1","type":"string","description":"Upsell ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"upsell_id\": \"1\",\n    \"name\": \"Example Upsell #123\",\n    \"label\": \"Internal label for this upsell\"\n}"}],"_postman_id":"008cb72d-479d-46ca-9822-5cd103cfa6a5"},{"name":"Get upsell price details","id":"4e0aab1b-6dab-43d0-9bc2-b11dd60b72b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/upsells/:upsell_id/pricing_options","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","upsells",":upsell_id","pricing_options"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"1ca21cc3-060a-4bca-bf1e-7fb7311111ce","type":"any","value":"","key":"upsell_id"}]}},"response":[],"_postman_id":"4e0aab1b-6dab-43d0-9bc2-b11dd60b72b7"},{"name":"Get downsell","id":"abe3e192-0aa8-4704-99fe-951226c61ed7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/downsells/:downsell_id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","downsells",":downsell_id"],"host":["https://thrivecart.com"],"query":[],"variable":[{"description":{"content":"<p>Downsell ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"downsell_id"}]}},"response":[{"id":"0140c21f-71e9-4d11-9982-8834297cd6e3","name":"Downsell details","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://thrivecart.com/api/external/downsells/:downsell_id","host":["https://thrivecart.com"],"path":["api","external","downsells",":downsell_id"],"variable":[{"id":"7fed9aae-1ede-4181-b9c4-70d370a37a6e","key":"downsell_id","value":"1","type":"string","description":"Downsell ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"downsell_id\": \"1\",\n    \"name\": \"My Demo Downsell\",\n    \"label\": \"Internal label for this downsell\"\n}"}],"_postman_id":"abe3e192-0aa8-4704-99fe-951226c61ed7"},{"name":"Get downsell price details","id":"2de7ff17-d146-49e3-8e13-55c26ed5647e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://thrivecart.com/api/external/downsells/:downsell_id/pricing_options","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","downsells",":downsell_id","pricing_options"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"bb8b609a-8fa4-43e8-8795-1c8153732ccc","type":"any","value":"","key":"downsell_id"}]}},"response":[],"_postman_id":"2de7ff17-d146-49e3-8e13-55c26ed5647e"},{"name":"Search transactions","id":"f36d21e1-8d3b-4d96-b195-50970a703ceb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-TC-Mode","value":"live","description":"<p>(Optional) Operate in test mode, or live mode</p>\n","type":"text"}],"url":"https://thrivecart.com/api/external/transactions?page=1&perPage=10&query=&transactionType=any&currency","description":"<p>Search through transaction events and return the info about activity within your account.</p>\n<p>Events such as charges, rebills, refunds and cancellations will be included under the <code>transaction_type</code> key.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","transactions"],"host":["https://thrivecart.com"],"query":[{"description":{"content":"<p>Page number (1 through N)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Results per page (max of 100)</p>\n","type":"text/plain"},"key":"perPage","value":"10"},{"description":{"content":"<p>Search query (e.g. customer email, order ID, etc)</p>\n","type":"text/plain"},"key":"query","value":""},{"description":{"content":"<p>'any', 'charge', 'rebill', 'refund', 'cancel'</p>\n","type":"text/plain"},"key":"transactionType","value":"any"},{"description":{"content":"<p>'usd', 'gbp', etc (optional; leave blank for all currencies)</p>\n","type":"text/plain"},"key":"currency","value":null}],"variable":[]}},"response":[{"id":"09d0fdbe-78b0-4810-869b-e6a027b05bd0","name":"Search transactions","originalRequest":{"method":"GET","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"url":{"raw":"https://thrivecart.com/api/external/transactions?page=1&perPage=25&query=&transactionType=any","host":["https://thrivecart.com"],"path":["api","external","transactions"],"query":[{"key":"page","value":"1","description":"Page number (1 through N)"},{"key":"perPage","value":"25","description":"Results per page (max of 25)"},{"key":"query","value":"","description":"Search query (e.g. customer email, order ID, etc)"},{"key":"transactionType","value":"any","description":"'any', 'stripe', 'authorize', or 'paypal'"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"}],"cookie":[],"responseTime":null,"body":"{\n    \"transactions\": [\n        {\n            \"event_id\": \"446660\",\n            \"base_product\": \"1\",\n            \"date\": \"2020-11-15\",\n            \"time\": \"2020-11-15 17:01:43\",\n            \"timestamp\": 1605459703,\n            \"transaction_type\": \"rebill\",\n            \"item_type\": \"product\",\n            \"item_id\": 1,\n            \"amount\": 10000,\n            \"order_id\": \"7700\",\n            \"invoice_id\": \"1467\",\n            \"currency\": \"USD\",\n            \"processor\": \"paypal\",\n            \"customer\": {\n                \"name\": \"Demo Customer\",\n                \"email\": \"demo@thrivecart.com\"\n            },\n            \"reference\": \"product-222-138\"\n        },\n        {\n            \"event_id\": \"446642\",\n            \"base_product\": \"2\",\n            \"date\": \"2020-11-15\",\n            \"time\": \"2020-11-15 16:22:52\",\n            \"timestamp\": 1605457372,\n            \"transaction_type\": \"rebill\",\n            \"item_type\": \"product\",\n            \"item_id\": 2,\n            \"amount\": 3300,\n            \"order_id\": \"18584\",\n            \"invoice_id\": \"2563\",\n            \"currency\": \"USD\",\n            \"processor\": \"paypal\",\n            \"customer\": {\n                \"name\": \"Other Demo Customer\",\n                \"email\": \"demo-2@thrivecart.com\"\n            }\n        }\n    ],\n    \"meta\": {\n        \"total\": 8358,\n        \"results\": 25\n    }\n}"}],"_postman_id":"f36d21e1-8d3b-4d96-b195-50970a703ceb"},{"name":"Read customer information","id":"0195ec0f-2a25-4d81-ab97-a98070057641","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"<p>(Optional) Operate in test mode, or live mode</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"<p>Customer email address</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/customer","description":"<p>Read the full history of an individual customer and all of their purchases and subscriptions.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","customer"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"3bee95c7-d76d-4e42-b748-fe09d248a59f","name":"Example containing a subscription","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"faux-customer-616855039-78@thrivecartfaux.com","description":"Customer email address","type":"text"}]},"url":"https://thrivecart.com/api/external/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer\": {\n        \"name\": \"Katerine Patterson\",\n        \"email\": \"faux-customer-616855039-78@thrivecartfaux.com\"\n    },\n    \"purchases\": [],\n    \"subscriptions\": [\n        {\n            \"status\": \"active\",\n            \"order_id\": \"851411\",\n            \"invoice_id\": \"147484955\",\n            \"subscription_id\": \"253\",\n            \"subscription_reference\": \"product-373-12132\",\n            \"currency\": \"USD\",\n            \"frequency\": \"month\",\n            \"amount\": \"12500\",\n            \"payments\": \"1\",\n            \"payments_remaining\": \"4\",\n            \"total_paid\": \"12500\",\n            \"last_payment\": \"2020-10-01 05:18:42\",\n            \"date_started\": \"2020-10-01 05:18:42\",\n            \"processor\": \"stripe\",\n            \"item_name\": \"Trial Funnel\",\n            \"item_type\": \"product\",\n            \"item_id\": \"373\",\n            \"next_payment\": \"2020-10-08 05:18:39\",\n            \"events\": [\n                {\n                    \"event_id\": \"62386787\",\n                    \"event_type\": \"charge\",\n                    \"date\": \"2020-09-26 14:00:00\",\n                    \"amount\": 12500,\n                    \"reference\": \"product-373-12132\"\n                }\n            ]\n        }\n    ],\n    \"lifetime_value\": {\n        \"USD\": 12500\n    }\n}"},{"id":"4ba42e61-05e1-41d2-9041-c11fad71d833","name":"Customer does not exist","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"fake@madeup.org","description":"Customer email address","type":"text"}]},"url":"https://thrivecart.com/api/external/customer"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"There are no orders associated with this customer.\"\n}"},{"id":"620554fc-b1ae-41cf-a3fa-03ae41711f8b","name":"Example containing one-time purchases","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"faux-customer-778560761-14@thrivecartfaux.com","description":"Customer email address","type":"text"}]},"url":"https://thrivecart.com/api/external/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"customer\": {\n        \"name\": \"Narcisa Joshua\",\n        \"email\": \"faux-customer-778560761-14@thrivecartfaux.com\"\n    },\n    \"purchases\": [\n        {\n            \"status\": \"paid\",\n            \"order_id\": \"851362\",\n            \"invoice_id\": \"147484906\",\n            \"processor\": \"stripe\",\n            \"amount\": 9500,\n            \"net_amount\": 9500,\n            \"currency\": \"USD\",\n            \"item_name\": \"My Example Product\",\n            \"item_type\": \"product\",\n            \"item_id\": \"299\",\n            \"reference\": \"product-299\"\n        }\n    ],\n    \"subscriptions\": [],\n    \"lifetime_value\": {\n        \"USD\": 9500\n    }\n}"}],"_postman_id":"0195ec0f-2a25-4d81-ab97-a98070057641"},{"name":"Cancel a subscription","id":"5b48d95b-703f-4390-bc9a-43d845e31cd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"<p>(Optional) Operate in test mode, or live mode</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"851411","description":"<p>Order ID</p>\n","type":"text"},{"key":"subscription_id","value":"253","description":"<p>Subscription ID</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/cancelSubscription","description":"<p>Cancel a subscription using the order ID and subscription ID pulled from either a Transaction search or the full history of a customer.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","cancelSubscription"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"028353be-637d-47af-b7b7-dcf2a527117f","name":"Invalid parameters","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"851411","description":"Order ID","type":"text"},{"key":"subscription_id","value":"25323425","description":"Subscription ID","type":"text"}]},"url":"https://thrivecart.com/api/external/cancelSubscription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You do not have permission to access this subscription.\"\n}"},{"id":"c9dd385c-5a8c-46ef-b59e-7eda72a5521a","name":"Cancel a subscription","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"851411","description":"Order ID","type":"text"},{"key":"subscription_id","value":"253","description":"Subscription ID","type":"text"}]},"url":"https://thrivecart.com/api/external/cancelSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"This subscription has been successfully cancelled.\"\n}"}],"_postman_id":"5b48d95b-703f-4390-bc9a-43d845e31cd4"},{"name":"Refund a transaction","id":"81743695-0291-4e65-8416-8be7e83f8921","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>(Optional) Operate in test mode, or live mode</p>\n","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Order ID</p>\n","key":"order_id","type":"text","value":"851362"},{"description":"<p>Item reference</p>\n","key":"reference","type":"text","value":"product-299"}]},"url":"https://thrivecart.com/api/external/refund","description":"<p>Refund a specific transaction using the order ID and purchase reference pulled from either a Transaction search or the full history of a customer.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","refund"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"47d40b28-7304-43c1-887b-8ec39a32229f","name":"Refund a transaction","originalRequest":{"method":"POST","header":[{"description":"(Optional) Operate in test mode, or live mode","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Order ID","key":"order_id","type":"text","value":"851362"},{"description":"Item reference","key":"reference","type":"text","value":"product-299"}]},"url":"https://thrivecart.com/api/external/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"This refund has been issued successfully.\"\n}"},{"id":"726f0d00-80a6-448a-be97-660e6c6a3793","name":"Invalid parameters","originalRequest":{"method":"POST","header":[{"description":"(Optional) Operate in test mode, or live mode","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Order ID","key":"order_id","type":"text","value":"851362"},{"description":"Item reference","key":"reference","type":"text","value":"product-29923424"}]},"url":"https://thrivecart.com/api/external/refund"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"The requested charge could not be identified.\"\n}"}],"_postman_id":"81743695-0291-4e65-8416-8be7e83f8921"},{"name":"Pause a subscription","id":"c99b714b-6fed-49b2-90c2-97125533b90d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"<p>(Optional) Operate in test mode, or live mode</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"","description":"<p>Order ID</p>\n","type":"text"},{"key":"subscription_id","value":"","description":"<p>Subscription ID</p>\n","type":"text"},{"key":"auto_resume","value":"","description":"<p>(Optional) Unix timestamp to automatically resume this subscription - must be 24 hours in the future</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/pauseSubscription","description":"<p>Pause a subscription using the order ID and subscription ID pulled from either a Transaction search or the full history of a customer.</p>\n<p>Note that you can provide an optional timestamp to automatically resume the subscription on that date, or leave this blank to pause indefinitely.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","pauseSubscription"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"14c6f63a-6fce-4c21-8cfe-1f07ed34802e","name":"Pause a subscription","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"851411","description":"Order ID","type":"text"},{"key":"subscription_id","value":"253","description":"Subscription ID","type":"text"},{"key":"auto_resume","value":"","description":"(Optional) Unix timestamp to automatically resume this subscription - must be 24 hours in the future","type":"text"}]},"url":"https://thrivecart.com/api/external/pauseSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"customer_id\": \"cus_I7ZKYD0DfM1vz0\",\n    \"frequency\": \"month\",\n    \"plan_id\": \"thrivecart-1-product-1-12500-month-usd\",\n    \"message\": \"This subscription has been successfully paused.\"\n}"},{"id":"9eafb964-5a66-4d4b-9584-795b5269a0ff","name":"Invalid parameters","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"","description":"Order ID","type":"text"},{"key":"subscription_id","value":"","description":"Subscription ID","type":"text"},{"key":"auto_resume","value":"","description":"(Optional) Unix timestamp to automatically resume this subscription - must be 24 hours in the future","type":"text"}]},"url":"https://thrivecart.com/api/external/pauseSubscription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You must provide a valid order ID.\"\n}"}],"_postman_id":"c99b714b-6fed-49b2-90c2-97125533b90d"},{"name":"Resume a subscription","id":"ea3f5ddd-f546-40ff-b76b-907da74b67aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"<p>(Optional) Operate in test mode, or live mode</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"","description":"<p>Order ID</p>\n","type":"text"},{"key":"subscription_id","value":"","description":"<p>Subscription ID</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/resumeSubscription","description":"<p>Resume a subscription using the order ID and subscription ID pulled from either a Transaction search or the full history of a customer.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","resumeSubscription"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"e7c3ba40-5b96-480a-a2d5-1ecd51b2a438","name":"Invalid parameters","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"","description":"Order ID","type":"text"},{"key":"subscription_id","value":"","description":"Subscription ID","type":"text"}]},"url":"https://thrivecart.com/api/external/resumeSubscription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You must provide a valid order ID.\"\n}"},{"id":"ee64e263-2e4a-40b4-8933-2916ca3e55f5","name":"Resume a subscription","originalRequest":{"method":"POST","header":[{"key":"X-TC-Mode","value":"live","description":"(Optional) Operate in test mode, or live mode","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"order_id","value":"851411","description":"Order ID","type":"text"},{"key":"subscription_id","value":"253","description":"Subscription ID","type":"text"}]},"url":"https://thrivecart.com/api/external/resumeSubscription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"subscription_id\": \"sub_IMaXasOaNCuHqo\",\n    \"message\": \"This subscription has been successfully resumed.\"\n}"}],"_postman_id":"ea3f5ddd-f546-40ff-b76b-907da74b67aa"},{"name":"Search affiliates","id":"61522093-225f-4425-8277-0691ea9edc15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://thrivecart.com/api/external/affiliates?product_id&query=&page=1&perPage=5","description":"<p>Search for affiliates by the product ID they're approved for, or by their name, email, or affiliate ID.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates"],"host":["https://thrivecart.com"],"query":[{"description":{"content":"<p>(Optional) Product ID</p>\n","type":"text/plain"},"key":"product_id","value":null},{"description":{"content":"<p>(Optional) Search by affiliate name, email, affiliate ID</p>\n","type":"text/plain"},"key":"query","value":""},{"description":{"content":"<p>Page number (1 through N)</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>Results per page (max of 25)</p>\n","type":"text/plain"},"key":"perPage","value":"5"}],"variable":[]}},"response":[{"id":"de3557f4-8941-431c-bf67-6270319b98fd","name":"Search affiliates","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://thrivecart.com/api/external/affiliates?product_id&query=&page=1&perPage=5","host":["https://thrivecart.com"],"path":["api","external","affiliates"],"query":[{"key":"product_id","value":null,"description":"(Optional) Product ID"},{"key":"query","value":"","description":"(Optional) Search by affiliate name, email, affiliate ID"},{"key":"page","value":"1","description":"Page number (1 through N)"},{"key":"perPage","value":"5","description":"Results per page (max of 25)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"}],"cookie":[],"responseTime":null,"body":"{\n    \"affiliates\": [\n        {\n            \"user_id\": \"649\",\n            \"email\": \"alexis_fortier@thrivecart.com\",\n            \"affiliate_id\": \"alexis_fortier\",\n            \"label\": \"alexis_fortier (alexis_fortier@thrivecart.com)\",\n            \"name\": \"Alexis Fortier\",\n            \"is_favourite\": false,\n            \"products\": [\n                {\n                    \"product_id\": \"250\",\n                    \"product_name\": \"My Demo Subscription\",\n                    \"status_string\": \"active\",\n                    \"status\": \"2\",\n                    \"affiliate_link\": \"https://alexis_fortier--myaccount.thrivecart.com/my-demo-subscription/\"\n                },\n                {\n                    \"product_id\": \"296\",\n                    \"product_name\": \"Demo Product\",\n                    \"status_string\": \"active\",\n                    \"status\": \"2\",\n                    \"affiliate_link\": \"https://alexis_fortier--myaccount.thrivecart.com/demo-product/\"\n                }\n            ]\n        },\n        {\n            \"user_id\": \"650\",\n            \"email\": \"amy_greene_dittz@thrivecart.com\",\n            \"affiliate_id\": \"amy_greene_dittz\",\n            \"label\": \"amy_greene_dittz (amy_greene_dittz@thrivecart.com)\",\n            \"name\": \"Amy Greene-Dittz\",\n            \"is_favourite\": false,\n            \"products\": [\n                {\n                    \"product_id\": \"250\",\n                    \"product_name\": \"My Demo Subscription\",\n                    \"status_string\": \"active\",\n                    \"status\": \"2\",\n                    \"affiliate_link\": \"https://amy_greene_dittz--myaccount.thrivecart.com/my-demo-subscription/\"\n                },\n                {\n                    \"product_id\": \"296\",\n                    \"product_name\": \"Demo Product\",\n                    \"status_string\": \"active\",\n                    \"status\": \"2\",\n                    \"affiliate_link\": \"https://amy_greene_dittz--myaccount.thrivecart.com/demo-product/\"\n                }\n            ]\n        }\n    ],\n    \"meta\": {\n        \"total\": 5672,\n        \"results\": 2\n    }\n}"}],"_postman_id":"61522093-225f-4425-8277-0691ea9edc15"},{"name":"Read affiliate info","id":"abb91e3a-8999-47cc-b0bb-a52484ff2f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"affiliate_id","value":"","description":"<p>Affiliate user ID, affiliate id, or email</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliate","description":"<p>Return the information about a specific affiliate by their affiliate ID, their numeric user ID, or their email address.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliate"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"0d0ce284-d374-46cc-b96f-a0356e64a1bf","name":"Read affiliate info","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"affiliate_id","value":"alexis_fortier","description":"Affiliate user ID, affiliate id, or email","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": \"649\",\n    \"email\": \"edwardmann@thrivecart.com\",\n    \"affiliate_id\": \"edward_mann\",\n    \"label\": \"alexis_fortier (demoaffiliate@thrivecart.com)\",\n    \"name\": \"Edward Mann\",\n    \"is_favourite\": false,\n    \"products\": [\n        {\n            \"product_id\": \"250\",\n            \"product_name\": \"My Demo Subscription\",\n            \"status_string\": \"active\",\n            \"status\": \"2\",\n            \"affiliate_link\": \"https://edward_mann--myaccount.thrivecart.com/my-demo-subscription/\"\n        },\n        {\n            \"product_id\": \"296\",\n            \"product_name\": \"Demo Product\",\n            \"status_string\": \"active\",\n            \"status\": \"2\",\n            \"affiliate_link\": \"https://edward_mann--myaccount.thrivecart.com/demo-product/\"\n        }\n    ]\n}"}],"_postman_id":"abb91e3a-8999-47cc-b0bb-a52484ff2f27"},{"name":"Create new affiliate","id":"77ddba43-153c-44d7-a962-1c9cba1c1ea1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","type":"text","description":"<p>Affiliate's email (used to sign in)</p>\n"},{"key":"name","value":"","type":"text","description":"<p>(Optional) Affiliate's name</p>\n"},{"key":"affiliate_id","value":"","type":"text","description":"<p>(Optional) Desired affiliate ID - may be updated by the system</p>\n"},{"key":"product_ids","value":"","type":"text","description":"<p>Array of at least one product ID to add them to</p>\n"},{"key":"auto_approve","value":"","type":"text","description":"<p>(Optional) Auto-approve the affiliate for these products?</p>\n"},{"key":"parent_affiliate","value":"","type":"text","description":"<p>(Optional) Mark this affiliate as having been referred by another?</p>\n"},{"key":"first_name","value":"","type":"text","description":"<p>(Optional) Affiliate's first name</p>\n"},{"key":"last_name","value":"","type":"text","description":"<p>(Optional) Affiliate's last name</p>\n"},{"key":"company","value":"","type":"text","description":"<p>(Optional) Affiliate's company/business name</p>\n"},{"key":"country","value":"","type":"text","description":"<p>(Optional) 2-digit country code for affiliate's country</p>\n"},{"key":"city","value":"","type":"text","description":"<p>(Optional) Affiliate's city</p>\n"},{"key":"state","value":"","type":"text","description":"<p>(Optional) Affiliate's state/region</p>\n"},{"key":"zip","value":"","type":"text","description":"<p>(Optional) Affiliate's ZIP/post code</p>\n"},{"key":"trigger_emails","value":"","description":"<p>(Optional) Trigger email to affiliate and vendor? Defaults to true</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates","description":"<p>Create a new affiliate in your account.</p>\n<p>You can optionally specify an <code>affiliate_id</code> key to set their preferred affiliate ID. Affiliate IDs are unique across the system, so this may be modified by the system to ensure uniqueness.</p>\n<p>If you do not specify any <code>affiliate_id</code>, we will generate one based on the user's name or email address.</p>\n<p>If the user already exists in the system and has an affiliate ID set already, your parameter will be ignored and their affiliate ID will not be modified.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"0f440033-3213-4537-97ce-e4e90817b7b4","name":"Create new affiliate","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"jane@example.com","type":"text","description":"Affiliate's email (used to sign in)"},{"key":"name","value":"Jane Doe","type":"text","description":"(Optional) Affiliate's name"},{"key":"affiliate_id","value":"jane_doe_01","type":"text","description":"(Optional) Desired affiliate ID - may be updated by the system"},{"key":"product_ids","value":"[1,15,99]","type":"text","description":"Array of at least one product ID to add them to"},{"key":"auto_approve","value":"true","type":"text","description":"(Optional) Auto-approve the affiliate for these products?"},{"key":"parent_affiliate","value":"","type":"text","description":"(Optional) Mark this affiliate as having been referred by another?"},{"key":"first_name","value":"","type":"text","description":"(Optional) Affiliate's first name"},{"key":"last_name","value":"","type":"text","description":"(Optional) Affiliate's last name"},{"key":"company","value":"Jane Doe Enterprises","type":"text","description":"(Optional) Affiliate's company/business name"},{"key":"country","value":"GB","type":"text","description":"(Optional) 2-digit country code for affiliate's country"},{"key":"city","value":"London","type":"text","description":"(Optional) Affiliate's city"},{"key":"state","value":"","type":"text","description":"(Optional) Affiliate's state/region"},{"key":"zip","value":"","type":"text","description":"(Optional) Affiliate's ZIP/post code"},{"key":"trigger_emails","value":"false","description":"(Optional) Trigger email to affiliate and vendor? Defaults to true","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"77ddba43-153c-44d7-a962-1c9cba1c1ea1"},{"name":"Mark affiliate as favorite","id":"c8bae6cb-9c82-494b-8f13-d1bcca073389","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/favorite","description":"<p>Mark an affiliate as a 'favorite' or VIP affiliate.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","favorite"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"fb3eca6c-6805-4031-ae68-0a81ed30f098","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"c8bae6cb-9c82-494b-8f13-d1bcca073389"},{"name":"Un-favourite an affiliate","id":"addc75f2-5799-4046-9dfb-d19b9d26b16a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/unfavorite","description":"<p>Remove the 'favorite' marker from an affiliate.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","unfavorite"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"64b68eb8-a453-4255-a2aa-4fc0db0aad5a","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"addc75f2-5799-4046-9dfb-d19b9d26b16a"},{"name":"Register affiliate for a product","id":"966cd0b6-82f5-4bfd-aed7-30c850c78fac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"product_ids","value":"","description":"<p>Array of at least one product ID to add them to</p>\n","type":"text"},{"key":"auto_approve","value":"","description":"<p>(Optional) Auto-approve the affiliate for these products?</p>\n","type":"text"},{"key":"trigger_emails","value":"","description":"<p>(Optional) Trigger email to affiliate and vendor? Defaults to true</p>\n","type":"text"},{"key":"parent_affiliate","value":"","description":"<p>(Optional) Mark this affiliate as having been referred by another?</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/register","description":"<p>Register an existing affiliate for a specific product or list of products.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","register"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"c90bfd1d-ca25-4e5f-bd43-218b67175d53","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"966cd0b6-82f5-4bfd-aed7-30c850c78fac"},{"name":"Approve an affiliate for a product","id":"728949c2-08ac-45f1-bf07-291043882a00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"product_ids","value":"","description":"<p>Array of at least one product ID to approve their application for</p>\n","type":"text"},{"key":"trigger_emails","value":"","description":"<p>(Optional) Trigger email to affiliate and vendor? Defaults to true</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/approve","description":"<p>Approve an affiliate for a pending application to a product or products. Note, if the application isn't already pending, no changes will be made.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","approve"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"3d7a87e1-d271-4243-8c12-00c4cd49c83b","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"728949c2-08ac-45f1-bf07-291043882a00"},{"name":"Reject an affiliate for a product","id":"e8773f56-a27f-4c7f-b056-0582e2ba89e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"product_ids","value":"","description":"<p>Array of at least one product ID to reject their application for</p>\n","type":"text"},{"key":"trigger_emails","value":"","description":"<p>(Optional) Trigger email to affiliate and vendor? Defaults to true</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/reject","description":"<p>Approve an affiliate for a pending application to a product or products. Note, if the application isn't already pending, no changes will be made.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","reject"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"1a044ad3-6973-43de-8720-28725d400ea4","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"e8773f56-a27f-4c7f-b056-0582e2ba89e8"},{"name":"Specify custom commissions","id":"85d41c18-1938-4b2b-855a-148b4fd1b0dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"product_id","value":"","description":"<p>Product ID to apply custom commissions for</p>\n","type":"text"},{"key":"commission_object","value":"","description":"<p>Custom commissions object (or null to remove any custom commissions set for this product)</p>\n","type":"text"}]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/custom_commissions","description":"<p>Specify a block of custom commissions for a specific affiliate and product they are promoting.</p>\n<p>This enables you to override the affiliate much like affiliate rules, and change how much, when, and how they get paid.</p>\n<p>See our <a href=\"https://github.com/thrivecart/api-demo/blob/master/examples/example_affiliate_custom_commissions.php\">example SDK</a> for further examples and insight.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","custom_commissions"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"a66f9ba5-8f9b-4177-ae57-8396a071286a","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"85d41c18-1938-4b2b-855a-148b4fd1b0dc"},{"name":"Delete affiliate user","id":"1b7f530e-59e0-46ff-81a0-75a503c5278d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://thrivecart.com/api/external/affiliates/:affiliate_id/delete","description":"<p>Return the information about a specific affiliate by their affiliate ID, their numeric user ID, or their email address.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","affiliates",":affiliate_id","delete"],"host":["https://thrivecart.com"],"query":[],"variable":[{"id":"55052605-ac4c-40f8-a1d0-270a62aac32b","description":{"content":"<p>Affiliate ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"affiliate_id"}]}},"response":[],"_postman_id":"1b7f530e-59e0-46ff-81a0-75a503c5278d"},{"name":"Create new student","id":"45f67976-3201-48f8-b8d5-0284e2c98669","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"","type":"text","description":"<p>Student's email (used to sign in)</p>\n"},{"key":"name","value":"","type":"text","description":"<p>(Optional) Student's name (max length: 150 characters)</p>\n"},{"key":"course_id","value":"","type":"text","description":"<p>Course ID to grant access to</p>\n"},{"key":"tags[]","value":"","type":"text","description":"<p>(Optional) Array of tags to apply to the student</p>\n"},{"key":"order_info[order_id]","value":"","type":"text","description":"<p>(Optional) Associate this with a ThriveCart order</p>\n"},{"key":"order_info[purchase_type]","value":"","description":"<p>(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)</p>\n","type":"text"},{"key":"order_info[purchase_id]","value":"","description":"<p>(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased</p>\n","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"<p>(Optional) Trigger email to student? Defaults to true</p>\n"}]},"url":"https://thrivecart.com/api/external/students","description":"<p>Create a new student in your Learn account.</p>\n<p>Specify the student's email address (which they will use to sign in), and the numeric course ID to add them to.</p>\n<p>You will receive a key <code>auto_signin_url</code> which will either take them to set up their password for the first time (if they aren't a student of yours already), or to sign in to your course automatically. Students should be taken here immediately after creating their access.</p>\n<p>You may specify an array of tags to apply to them.</p>\n<p>You may also specify an order ID, purchase type and purchase ID to assign this relationship to a purchase of theirs. The system will then automatically cancel their membership if the corresponding subscription is cancelled (depending on your course settings).</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","students"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"ed86e055-71e4-46f3-906d-825c3ecc8a70","name":"Successful student addition (associated with order)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"student@thrivecart.com","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"Jane Smith","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2255","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"9938882","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"product","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"5","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a32363a3034-cea8b29d93298de49e8236e7b8f3cd5e9f30c8"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"auto_signin_url\": \"https://myaccount.thrivecart.com/signin/?username=c3R1ZGVudEB0aHJpdmVjYXJ0LmNvbQ%3D%3D\",\n    \"signin_url\": \"https://myaccount.thrivecart.com/l/my-course-name/\",\n    \"student\": {\n        \"id\": \"1000002\",\n        \"username\": \"student@thrivecart.com\",\n        \"name\": \"Jane Smith\",\n        \"status\": \"1\",\n        \"date_created\": \"2022-03-10 21:25:38\",\n        \"account_id\": \"1\"\n    }\n}"},{"id":"f0395a65-18f2-430f-9977-08a9d8e777f9","name":"Successful student addition","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"student@thrivecart.com","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"Jane Smith","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2255","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a32363a3034-cea8b29d93298de49e8236e7b8f3cd5e9f30c8"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"auto_signin_url\": \"https://myaccount.thrivecart.com/signin/?username=c3R1ZGVudEB0aHJpdmVjYXJ0LmNvbQ%3D%3D\",\n    \"signin_url\": \"https://myaccount.thrivecart.com/l/my-course-name/\",\n    \"student\": {\n        \"id\": \"1000002\",\n        \"username\": \"student@thrivecart.com\",\n        \"name\": \"Jane Smith\",\n        \"status\": \"1\",\n        \"date_created\": \"2022-03-10 21:25:38\",\n        \"account_id\": \"1\"\n    }\n}"},{"id":"4a042d06-0ef5-415a-9b3f-aafeb4ba5711","name":"Successful student creation","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"student@thrivecart.com","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"Jane Smith","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2255","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a32363a3034-cea8b29d93298de49e8236e7b8f3cd5e9f30c8"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"auto_signin_url\": \"https://myaccount.thrivecart.com/signin/?access=NlY2TEQxRVVSWllaUzg3NURTR1ZNNkVXQjFHQk1SRzQ%3D&username=c3R1ZGVudEB0aHJpdmVjYXJ0LmNvbQ%3D%3D\",\n    \"signin_url\": \"https://myaccount.thrivecart.com/l/my-course-name/\",\n    \"student\": {\n        \"id\": \"1000002\",\n        \"username\": \"student@thrivecart.com\",\n        \"name\": \"Jane Smith\",\n        \"status\": \"1\",\n        \"date_created\": \"2022-03-10 21:31:43\",\n        \"account_id\": \"1\"\n    }\n}"},{"id":"28903ea8-6f04-446d-a742-878866716f53","name":"Create new student","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"marc+apistudent7@dfr.me","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"API Made","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a33313a3433-c8371f1a8cffc1b802bd4e6d40258b8e6b5eff"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"auto_signin_url\": \"https://dfr.dev.thrivecart.com/signin/?access=NlY2TEQxRVVSWllaUzg3NURTR1ZNNkVXQjFHQk1SRzQ%3D&username=bWFyYythcGlzdHVkZW50N0BkZnIubWU%3D\",\n    \"signin_url\": \"https://dfr.dev.thrivecart.com/l/tiktok-for-boomers/\",\n    \"student\": {\n        \"id\": \"90\",\n        \"username\": \"marc+apistudent7@dfr.me\",\n        \"name\": \"API Made\",\n        \"status\": \"1\",\n        \"date_created\": \"2022-03-10 21:31:43\",\n        \"account_id\": \"1\"\n    }\n}"},{"id":"6ed1dea9-9d5f-4173-ae7d-895999e1becf","name":"Invalid email provided","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"invalid_email_here","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"John Brown","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a33343a3338-1bab3e87fac2e75ac4c1349ac9a189a782174d"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You must provide a valid student email address (you provided \\\"invalid_email_here\\\").\"\n}"},{"id":"f8d57651-3c32-42e6-b44f-59eb911d5e06","name":"Invalid order details","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"student@thrivecart.com","type":"text","description":"Student's email (used to sign in)"},{"key":"name","value":"John Brown","type":"text","description":"(Optional) Student's name (max length: 150 characters)"},{"key":"course_id","value":"2","type":"text","description":"Course ID to grant access to"},{"key":"tags[]","value":"api-student","type":"text","description":"(Optional) Array of tags to apply to the student"},{"key":"order_info[order_id]","value":"4356365","type":"text","description":"(Optional) Associate this with a ThriveCart order"},{"key":"order_info[purchase_type]","value":"invalid_type","description":"(Optional) If associating with a ThriveCart order, specify the type of purchase (product, bump, upsell, downsell)","type":"text"},{"key":"order_info[purchase_id]","value":"3","description":"(Optional) If associating with a ThriveCart order, specify the numeric ID of the item purchased","type":"text"},{"key":"trigger_emails","value":"true","type":"text","description":"(Optional) Trigger email to student? Defaults to true"}],"options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/students"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"X-ThriveCart-RequestID","value":"123456-323032322d30332d31302032313a33353a3437-bdd89c52f2c91de9ee611784f79d3eaaac676c"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"To associate with an order, you must provide a valid order ID from your account.\"\n}"}],"_postman_id":"45f67976-3201-48f8-b8d5-0284e2c98669"},{"name":"Create event subscription","id":"496beb69-3970-4e44-adc8-b5e8a90afac3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>(Optional) Operate in test mode, or live mode</p>\n","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"raw","raw":"{\"event\": \"*\", \"target_url\": \"https://webhook.site/7f5edced-00f7-43fb-833d-38e8cbdc6251\", \"trigger_fields\": {\"mode_int\": 2}}","options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/subscribe","description":"<p>Subscribe an endpoint to receive custom webhook notifications. Accepts JSON containing <code>event</code>, <code>target_url</code> and <code>trigger_fields</code>.</p>\n<h2 id=\"target-url\">Target URL</h2>\n<p>You must have registered the beginning of your target URL with your app. For example, to receive events at <code>https://mysite.com/webhook</code>, you must register at least <code>https://mysite.com</code> within your app's URL settings or you will receive an error.</p>\n<p><strong>Important</strong>: Unsubscribing is done by URL. As such, as <em>highly recommend</em> creating a unique URL for each subscription you create!</p>\n<h2 id=\"potential-event-values\">Potential event values</h2>\n<ul>\n<li><code>*</code> (receives all events)</li>\n<li><code>order_payment_product</code> (notified when a product is purchased)</li>\n<li><code>order_payment_bump</code> (notified when a bump offer is purchased)</li>\n<li><code>order_payment_upsell</code> (notified when an upsell is purchased)</li>\n<li><code>order_payment_downsell</code> (notified when a downsell is purchased)</li>\n<li><code>order_payment_declined_product</code> (notified when a purchase is declined)</li>\n<li><code>cart_abandoned</code> (notified when a cart is abandoned)</li>\n<li><code>order_refund</code> (notified when a refund is issused)</li>\n<li><code>order_rebill</code> (notified on successful recurring payment)</li>\n<li><code>order_rebill_failed</code> (notified when a recurring payment fails)</li>\n<li><code>order_rebill_cancelled</code> (notified on subscription cancellation)</li>\n<li><code>order_rebill_completed</code> (notified once all payments in a split pay have been completed)</li>\n<li><code>subscription_paused</code> (notified when a subscription is paused)</li>\n<li><code>subscription_resumed</code> (notified when a subscription is resumed)</li>\n<li><code>affiliate_created</code> (notified when a new affiliate is created)</li>\n<li><code>affiliate_approved</code> (notified when an affiliate is approved for a product)</li>\n<li><code>affiliate_rejected</code> (notified when an affiliate is rejected from a product)</li>\n<li><code>affiliate_commission_earned</code> (notified when an affiliate earns commission)</li>\n<li><code>affiliate_commission_payout</code> (notified when an affiliate is paid some commission)</li>\n<li><code>affiliate_commission_refund</code> (notified when an affiliate has commission clawed back)</li>\n</ul>\n<p><a href=\"https://developers.thrivecart.com/documentation/\">See the detailed documentation on our developer site</a> to see examples and learn how to filter using trigger fields.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","subscribe"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"3163b15f-6392-41fb-851d-721a57971e05","name":"Create event subscription","originalRequest":{"method":"POST","header":[{"description":"(Optional) Operate in test mode, or live mode","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"raw","raw":"{\"event\": \"order_refund\", \"target_url\": \"https://mysite.com/webhook/1231414/\", \"trigger_fields\": {\"mode_int\": 2, \"refund\": {\"type\": \"upsell\", \"upsell_id\": [1, 5, 18]}}}","options":{"raw":{"language":"json"}}},"url":"https://thrivecart.com/api/external/subscribe"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 253485285\n}"}],"_postman_id":"496beb69-3970-4e44-adc8-b5e8a90afac3"},{"name":"Unsubscribe from an event","id":"85d06ded-b50a-41bb-8c94-767a3a5bca78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>(Optional) Operate in test mode, or live mode</p>\n","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Your endpoint URL to remove</p>\n","key":"url","type":"text","value":""}]},"url":"https://thrivecart.com/api/external/unsubscribe","description":"<p>Unsubscribe an endpoint and no longer receive notifications to it.</p>\n<p><strong>Important</strong>: As noted when creating an event subscription, we highly recommend using random and unique URLs for each subscription so that they are easily removable.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]},"isInherited":true,"source":{"_postman_id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","id":"d1b367e5-6d66-4b28-871e-b33ece602ddc","name":"ThriveCart API","type":"collection"}},"urlObject":{"path":["api","external","unsubscribe"],"host":["https://thrivecart.com"],"query":[],"variable":[]}},"response":[{"id":"e66ee902-3354-484e-b1b9-7e544d109f05","name":"Unsubscribe from an event","originalRequest":{"method":"POST","header":[{"description":"(Optional) Operate in test mode, or live mode","key":"X-TC-Mode","type":"text","value":"live"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Your endpoint URL to remove","key":"url","type":"text","value":"https://mysite.com/webhook/wg3B3No1NMnA/"}]},"url":"https://thrivecart.com/api/external/unsubscribe"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-ThriveCart-Account-Name","value":"myaccount"},{"key":"X-ThriveCart-Account-URL","value":"https://myaccount.thrivecart.com/"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[]"}],"_postman_id":"85d06ded-b50a-41bb-8c94-767a3a5bca78"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<bearer token here>"}],"advancedConfig":[{"key":"password","value":"<bearer token here>"}]}},"event":[{"listen":"prerequest","script":{"id":"4ae99e6a-5d0e-4dac-857b-ed9d57b45441","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5c7cab42-8c57-462a-b31a-9a8e534f28f1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUri","value":"https://thrivecart.com"},{"key":"Token","value":"<bearer token here>","type":"string"}]}