{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"29a03add-b9ae-17bc-c411-c51d27d32327","name":"SALENGO - API","description":"<p style=\"text-align: center;\">\r\n    Welcome to SalenGo’s Web API v2! This API is RESTful, fully featured, easy to integrate with.\r\n</p>\r\n\r\n<div>\r\n<h1>Introduction</h1>\r\n\r\n<p>The SalenGo API is organized around <a href=\"http://en.wikipedia.org/wiki/Representational_State_Transfer\" target=\"_blank\" rel=\"noopener noreferrer\">REST</a>. Our API has predictable resource-oriented URLs, accepts <a href=\"https://en.wikipedia.org/wiki/POST_(HTTP)#Use_for_submitting_web_forms\" target=\"_blank\" rel=\"noopener noreferrer\">form-encoded</a> request bodies, returns <a href=\"http://www.json.org/\" target=\"_blank\" rel=\"noopener noreferrer\">JSON-encoded</a> responses, and uses standard HTTP response codes, authentication, and verbs.</p>\r\n<p>The SalenGo API differs for every account as we release new <a href=\"#versioning\">versions</a> and tailor functionality. <span>Log in to see docs customized to your version of the API, with your test key and data.</span></p>\r\n<p>Subscribe to SalenGo's <a href=\"https://twitter.com/salengo_com\">API announce mailing list</a> for updates.</p>\r\n</div>\r\n\r\n<div>\r\n<h1>Postman Collection</h1>\r\n<p>\r\n    To make integrating with the SalenGo API easier we've made a Postman collection that you can populate with your own application credentials and environment variables.\r\n</p>\r\n<p>The collection is publicly available at: <a href=\"https://api.salengo.com\" target=\"_blank\" rel=\"noopener noreferrer\">https://api.salengo.com</a></p>\r\n</div>\r\n\r\n<div>\r\n<h1>Making a Request</h1>\r\n\r\n<h2>Base URLS</h2>\r\n<p>\r\n    The base URLs for the SalenGo API are\r\n    - <code>https://api.salengo.com.com/v2/</code> for live\r\n</p>\r\n\r\n<h2>Authentication</h2>\r\n<p>The SalenGo API uses <a href=\"/memberspages/myaccount/api.aspx\">API keys</a> to authenticate requests. You can view and manage your API keys in <a href=\"/memberspages/myaccount/api.aspx\"> SalenGo Account Settings</a>.</p>\r\n<p>You can use <a href=\"http://secure.salengo.com/memberspages/myaccount/staffs.aspx\">restricted API keys</a> for granular permissions.</p>\r\n<p>Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.</p>\r\n<p>All API requests must be made over <a href=\"http://en.wikipedia.org/wiki/HTTP_Secure\">HTTPS</a>. Calls made over plain HTTP will fail. API requests without authentication will also fail.</p>\r\n\r\n\r\n<h2>Required Headers</h2>\r\n<p>There are two required headers: </p>\r\n<ol>\r\n    <li><code>Content-Type: application/json</code></li>\r\n    <li><code>Authorization: Bearer</code> </li>\r\n</ol>\r\n\r\n<h2>Mine Types</h2>\r\n<p>\r\n    All requests and responses are JSON-formatted and UTF-8 encoded.\r\n    <pre><code><span>Accept</span>: application/json</code></pre>\r\n</p>\r\n<p>A Content-Type and Content-Length header must be given when sending data to the API (using POST and PUT endpoints)</p>\r\n<pre><code> <span>Content-Type</span>: application/json\r\n<span>Content-Length</span>: 3495\r\n</code></pre>\r\n\r\n<h2>HTTP Verbs</h2>\r\n<section class=\"table\">\r\n    <table>\r\n        <thead>\r\n            <tr>\r\n                <th><strong>Verb</strong></th>\r\n                <th><strong>Description</strong></th>\r\n            </tr>\r\n        </thead>\r\n        <tbody>\r\n            <tr>\r\n                <td>GET</td>\r\n                <td>Retrieve a resource or group of resources</td>\r\n            </tr>\r\n            <tr>\r\n                <td>POST</td>\r\n                <td>Create a new resource</td>\r\n            </tr>\r\n            <tr>\r\n                <td>PUT</td>\r\n                <td>Update an existing resource</td>\r\n            </tr>\r\n            <tr>\r\n                <td>DELETE</td>\r\n                <td>Delete an existing resource</td>\r\n            </tr>\r\n            <tr>\r\n                <td>OPTIONS</td>\r\n                <td>View allowed verbs against a specific resource</td>\r\n            </tr>\r\n        </tbody>\r\n    </table>\r\n</section>\r\n\r\n<h2>Errors</h2>\r\n<span>HTTP status code summary</span>\r\n<section class=\"table\">\r\n    <table class=\"table-container\">\r\n        <tbody>\r\n            <tr id=\"errors-200-OK\"><th class=\"table-row-property\"><span>200 - OK</span></th><td class=\"table-row-definition\"><span>Everything worked as expected.</span></td></tr>\r\n            <tr id=\"errors-400-BadRequest\"><th class=\"table-row-property\"><span>400 - Bad Request</span></th><td class=\"table-row-definition\"><span>The request was unacceptable, often due to missing a required parameter.</span></td></tr>\r\n            <tr id=\"errors-401-Unauthorized\"><th class=\"table-row-property\"><span>401 - Unauthorized</span></th><td class=\"table-row-definition\"><span>No valid API key provided.</span></td></tr>\r\n            <tr id=\"errors-402-RequestFailed\"><th class=\"table-row-property\"><span>402 - Request Failed</span></th><td class=\"table-row-definition\"><span>The parameters were valid but the request failed.</span></td></tr>\r\n            <tr id=\"errors-403-Forbidden\"><th class=\"table-row-property\"><span>403 - Forbidden</span></th><td class=\"table-row-definition\"><span>The API key doesn't have permissions to perform the request.</span></td></tr>\r\n            <tr id=\"errors-404-NotFound\"><th class=\"table-row-property\"><span>404 - Not Found</span></th><td class=\"table-row-definition\"><span>The requested resource doesn't exist.</span></td></tr>\r\n            <tr id=\"errors-406-NotAcceptable\"><th class=\"table-row-property\"><span>406 - Not Acceptable</span></th><td class=\"table-row-definition\"><span>Missing Accept header. For example: <code>Accept: application/json</code></span></td></tr>\r\n            <tr id=\"errors-409-Conflict\"><th class=\"table-row-property\"><span>409 - Conflict</span></th><td class=\"table-row-definition\"><span>The request conflicts with another request (perhaps due to using the same idempotent key).</span></td></tr>\r\n            <tr id=\"errors-429-TooManyRequests\"><th class=\"table-row-property\"><span>429 - Too Many Requests</span></th><td class=\"table-row-definition\"><span>Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.</span></td></tr>\r\n            <tr id=\"errors-500502503504-ServerErrors\"><th class=\"table-row-property\"><span>500, 502, 503, 504 - Server Errors</span></th><td class=\"table-row-definition\"><span>Something went wrong on SalenGo's end. (These are rare.)</span></td></tr>\r\n        </tbody>\r\n    </table>\r\n</section>\r\n\r\n\r\n<h2>Rate Limit Response Header</h2>\r\n<p>All calls within the Web API are allotted a specific number of requests per refresh period.</p>\r\n<p>Each Web API request returns the following header information regarding rate limits and number of requests left.</p>\r\n<p>Depending on the endpoint you are trying to reach, it will have a specific number of allowed requests per refresh period. Once this threshold has been reached, we will return a status code <code>429</code> response.</p>\r\n\r\n<pre>When You Reach a Rate Limit : You will no longer be able to make request against that endpoint for the duration of that refresh period.</pre>\r\n\r\n</div>\r\n\r\n<div>\r\n<h1>Pagination</h1>\r\n\r\n<p>\r\n    All top-level API resources have support for bulk fetches via \"list\" API methods. For instance, you can <a href=\"#list_charges\">list charges</a>, <a href=\"#list_customers\">list customers</a>, and <a href=\"#list_documents\">list documents</a>.\r\n    These list API methods share a common structure, taking at least these two parameters: <code>perpage</code> and <code>page</code>.\r\n</p>\r\n<p>\r\n    SalenGo utilizes cursor-based pagination via the <code>perpage</code> and <code>page</code> parameters.\r\n    Both parameters take an existing object ID value (see below) and return objects in reverse chronological order.\r\n</p>\r\n</div>\r\n\r\n<div>\r\n<h1>Versioning</h1>\r\n\r\n<p>\r\n    When we make backwards-incompatible changes to the API, we release new, numbered versions. <span>\r\n        The current version is <strong>2</strong>.\r\n    </span>\r\n    Read our <a href=\"\">API upgrades guide</a> to see our <a href=\"https://twitter.com/salengo_com\">API changelog</a> and to learn more about backwards compatibility.\r\n</p>\r\n\r\n<p>All requests will use your account API settings, unless you override the API version. The <a href=\"https://twitter.com/salengo_com\"> changelog</a> lists every available version. <em>Note that events generated by API requests will always be structured according to your account API version.</em></p>\r\n</div>\r\n\r\n<div>\r\n<h1>Constant</h1>\r\n\r\n<h2>Time zones / dates</h2>\r\n<p>All timestamps are formatted as ISO8601 with timezone information. For API calls that allow for a timestamp to be specified, we use that exact timestamp. These timestamps look something like 2014-02-27T15:05:06.123Z.</p>\r\n<ul>\r\n    <li>For endpoints that require date, we expect a date string of the format YYYY-MM-DD, where an example would look like 2014-02-27.</li>\r\n    <li>For endpoints that require time, we expect a time of the format of integer (number of <u>minutes</u> since midnight), where an example would look like 125.</li>\r\n</ul>\r\n\r\n<h2>Enum</h2>\r\n<h3>Rounding</h3>\r\n<p>Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode indicates how the least significant returned digit of a rounded result is to be calculated.</p>\r\n<ul>\r\n    <li>Automatic : Round value by default by the system, # of digits not specify ==> <code>enum=0</code></li>\r\n    <li>Round : Round a number to a decimal at precision x ==> <code>enum=3 with with precision x</code></li>\r\n    <li>Round Up : Round a fractional value to an integer that is greater than the fractional value at precision x. For example, round 3.12 to 3.2 ==> <code>enum=1 with with precision x</code></li>\r\n    <li>Round Down : Round a fractional value to an integer that is less than the fractional value at precision x. For example, round 3.95 to 3.9 ==> <code>enum=2 with with precision x</code></li>\r\n</ul>\r\n</div>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"747459","team":87531,"collectionId":"29a03add-b9ae-17bc-c411-c51d27d32327","publishedId":"6fWzQKn","public":true,"publicUrl":"https://documenter-api.postman.tech/view/747459/6fWzQKn","privateUrl":"https://go.postman.co/documentation/747459-29a03add-b9ae-17bc-c411-c51d27d32327","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2022-12-01T07:48:39.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/aaf7fc28deacb121babc9d7aaadce0f1693ec763516adccc677c5c856b210e62","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/6fWzQKn"}