{ "opencollection": "1.0.0", "info": { "name": "Kit Accounts Purchases API", "version": "4.0" }, "items": [ { "info": { "name": "Purchases", "type": "folder" }, "items": [ { "info": { "name": "List purchases", "type": "http" }, "http": { "method": "GET", "url": "https://api.kit.com/v4/purchases", "params": [ { "name": "after", "value": "", "type": "query", "description": "To fetch next page of results, use `?after=`" }, { "name": "before", "value": "", "type": "query", "description": "To fetch previous page of results, use `?before=`" }, { "name": "include_total_count", "value": "false", "type": "query", "description": "Set to `true` to include the `total_count` in the response. This option can cause slow responses; if paging through results, request it only on the first page and reuse the value for subsequent pages." }, { "name": "per_page", "value": "", "type": "query", "description": "Number of results per page. Default 500, maximum 1000." } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.kit.com/v4/oauth/authorize", "accessTokenUrl": "https://api.kit.com/v4/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List purchases" }, { "info": { "name": "Create a purchase", "type": "http" }, "http": { "method": "POST", "url": "https://api.kit.com/v4/purchases", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.kit.com/v4/oauth/authorize", "accessTokenUrl": "https://api.kit.com/v4/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create a purchase" }, { "info": { "name": "Get a purchase", "type": "http" }, "http": { "method": "GET", "url": "https://api.kit.com/v4/purchases/:id", "params": [ { "name": "id", "value": "15", "type": "path" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://api.kit.com/v4/oauth/authorize", "accessTokenUrl": "https://api.kit.com/v4/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a purchase" } ] } ], "bundled": true }