{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"79c3cb7a-4ffb-4721-a94a-cdf7b64dd766","name":"API Documentation","description":"# 📄 Get started here\n\nThis template contains a boilerplate for documentation that you can quickly customize and reuse.\n\n---\n\n## Authentication\n\nThe authentication endpoint (auth) of this API requires authentication using a client_id and client_secret. These two parameters are essential to ensure security and proper authorization of the client within the system.\n\nThe client_id is a unique identifier assigned to the client by the API provider, while the client_secret is a secret key also generated by the provider. To authenticate successfully, the client must include these two parameters in the request to the auth endpoint. Once the client's authenticity and authorization to access API resources are validated, a valid access token will be generated, which will be used subsequently to make requests to other endpoints. It is important to keep the client_secret confidential and not share it with unauthorized third parties to ensure the security of the API and client data.\n\n### Authentication error response\n\nIf an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.\n\n## Purchases\n\nThis endpoint allows you to retrieve a list of purchases based on the specified year and month, along with the taxpayer's credential. It provides valuable insights into the financial transactions made during a particular period. To access this endpoint, send a GET request to the following URL:\n\n**Parameters:**\n\n- `year` (required): The year for which purchases are to be retrieved. Specify the year in a four-digit format (e.g., 2023).\n- `month` (required): The month for which purchases are to be retrieved. Specify the month as a two-digit number (e.g., 05 for May).\n- `X-SRI-Credentials` (required): The credential of the taxpayer. This could be an authentication token or any other form of identification to ensure authorized access to the data.\n    \n\n## Sales\n\nThis endpoint allows you to fetch a list of sales based on the specified year, month, day, and taxpayer credential. It provides comprehensive data about the sales transactions conducted on a particular date. To access this endpoint, send a GET request to the following URL:\n\n**Parameters:**\n\n- `year` (required): The year for which sales are to be retrieved. Please specify the year in a four-digit format (e.g., 2023).\n- `month` (required): The month for which sales are to be retrieved. Please specify the month as a two-digit number (e.g., 05 for May).\n- `day` (required): The day of the month for which sales are to be retrieved. Please specify the day as a two-digit number (e.g., 16 for the 16th day of the month).\n- `X-SRI-Credentials` (required): The credential of the taxpayer. This could be an authentication token or any other form of identification to ensure authorized access to the data.\n    \n\n## Ride\n\nThis endpoint allows you to retrieve the RIDE (Receipt for Issued Electronic Documents) based on the specified authorization number and token. The RIDE contains detailed information about the electronic document issued for a transaction. To access this endpoint, send a GET request to the following URL:\n\n**Parameters:**\n\n- `authorization_number` (required): The authorization number associated with the electronic document. Please provide the valid authorization number for the desired RIDE.\n- `token` (required): The authentication token required to access the RIDE. This token serves as a security measure to ensure authorized access to sensitive information.\n    \n\n### 503 response\n\nAn HTTP `503` response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP `5XX.`","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"14152103","team":5122448,"collectionId":"79c3cb7a-4ffb-4721-a94a-cdf7b64dd766","publishedId":"2s93kxcm4B","public":true,"publicUrl":"https://documenter-api.postman.tech/view/14152103/2s93kxcm4B","privateUrl":"https://go.postman.co/documentation/14152103-79c3cb7a-4ffb-4721-a94a-cdf7b64dd766","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0061FF"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Conecta tu aplicación con facilidad al Servicio de Rentas Internas (SRI) y obtén todos los documentos fiscales y la información contable en cuestión de minutos. Nuestro API simplifica y acelera el proceso, permitiéndote acceder a datos actualizados de manera segura y confiable."},{"name":"title","value":"Invoicy - Conéctate al SRI en minutos"}],"appearance":{"default":"dark","themes":[{"name":"dark","logo":"https://content.pstmn.io/d4fc8f2e-470d-4a72-9762-4bb1909cb933/bG9nby1kYXJrLXYyLXRyYW5zcGFyZW50LnBuZw==","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"0061FF"}},{"name":"light","logo":"https://content.pstmn.io/9cf28f22-ee47-4d07-a973-964265f56cab/bG9nby1kYXJrLXYyLXRyYW5zcGFyZW50LnBuZw==","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0061FF"}}]}},"version":"8.11.6","publishDate":"2023-05-17T04:00:33.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"Invoicy - Conéctate al SRI en minutos","description":"Conecta tu aplicación con facilidad al Servicio de Rentas Internas (SRI) y obtén todos los documentos fiscales y la información contable en cuestión de minutos. Nuestro API simplifica y acelera el proceso, permitiéndote acceder a datos actualizados de manera segura y confiable."},"logos":{"logoLight":"https://content.pstmn.io/9cf28f22-ee47-4d07-a973-964265f56cab/bG9nby1kYXJrLXYyLXRyYW5zcGFyZW50LnBuZw==","logoDark":"https://content.pstmn.io/d4fc8f2e-470d-4a72-9762-4bb1909cb933/bG9nby1kYXJrLXYyLXRyYW5zcGFyZW50LnBuZw=="}},"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/659e78734601ddf8230a8d9fd16147ea6ab2c71d4436935a04b107eb2c0c8d88","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/2s93kxcm4B"}