{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"9e5f60b5-958e-4e4a-b89a-4873376a2439","name":"Recurrente: Documentación API","description":"La API de Recurrente te permite crear sesiones de compra, manejar tus productos, suscripciones, y clientes, hacer transferencias de dinero entre diferentes cuentas de Recurrente, y mucho más.\n\n## **Cómo empezar**\n\n- [Crea una cuenta](http://app.recurrente.com/bienvenida) en Recurrente.\n    \n- La API responde en formato JSON. Cuando retorna un error, el error es enviado en un _error key_ en JSON.\n    \n\n## Autenticación\n\nPara encontrar tus Llaves de API, dentro de tu cuenta de Recurrente, ve a:\n\n**Configuración** → **Llaves API.**\n\nPara autenticarte, debes enviar los siguientes headers en cada request:\n\n| Header | Description |\n| --- | --- |\n| `X-PUBLIC-KEY` | tu_llave_publica |\n| `X-SECRET-KEY` | tu_llave_privada |\n\n### Error en la autenticación\n\nSi tus llaves de API no se están enviando o son inválidas, recibirás un código de respuesta HTTP 401 Unauthorized.\n\n### Sandbox y pagos de prueba\n\nExisten dos formas de realizar pruebas: usando el **ambiente Sandbox** o haciendo pruebas directamente en **producción**, dependiendo del tipo de validación que necesites.\n\n#### ✅ Ambiente Sandbox\n\nEl ambiente Sandbox permite hacer pagos de prueba sin generar actividad real. Para utilizarlo:\n\n- Usa tus llaves de ambiente **TEST**.\n    \n- Simula un pago exitoso con la tarjeta **4242 4242 4242 4242**.\n    \n\nLos checkouts creados con llaves TEST:\n\n- Muestran un aviso que dice **\"PRUEBA\"** en el link de pago.\n    \n- Tienen el atributo `live_mode = false`.\n    \n- **No** crean actividad en la cuenta ni afectan el balance.\n    \n- **No** disparan webhooks.\n    \n\n> Este ambiente es ideal para pruebas durante la integración inicial o desarrollo. \n  \n\n#### ⚠️ Pruebas en producción\n\nTambién es posible realizar pruebas en ambiente **LIVE** con tus llaves de producción. En estos casos:\n\n- Se recomienda **reembolsar los pagos de prueba el mismo día**, ya sea desde el panel de Recurrente o mediante la API en `/api/refunds`.\n    \n- Los pagos reembolsados el mismo día son reembolsados al **100% del monto**.\n    \n\n> Esta opción permite validar el flujo completo, incluyendo actividad en cuenta, webhooks y conciliación. \n  \n\n### **¿Necesitas ayuda?**\n\n- Si estás usando Wordpress, te recomendamos que utilices [nuestro plugin](https://ayuda.recurrente.com/es/articles/8971522-como-instalo-el-plugin-de-recurrente-en-woocommerce).\n    \n- Únete y pregunta en nuestro [Discord](https://discord.gg/QhKPEkSKp2).\n    \n- O envíanos un correo a [soporte@recurrente.com](https://mailto:soporte@recurrente.com)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"10340859","team":696848,"collectionId":"9e5f60b5-958e-4e4a-b89a-4873376a2439","publishedId":"2sA2rFQf5R","public":true,"publicUrl":"https://documenter-api.postman.tech/view/10340859/2sA2rFQf5R","privateUrl":"https://go.postman.co/documentation/10340859-9e5f60b5-958e-4e4a-b89a-4873376a2439","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6056F1"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/96b48902-cde8-42f1-ab48-30006170efd2/bG9nby1taW5pbWFsLWRhcmsuanBn","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"6056F1"}},{"name":"light","logo":"https://content.pstmn.io/96b48902-cde8-42f1-ab48-30006170efd2/bG9nby1taW5pbWFsLWRhcmsuanBn","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6056F1"}}]}},"version":"8.11.2","publishDate":"2024-02-27T12:22:02.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/96b48902-cde8-42f1-ab48-30006170efd2/bG9nby1taW5pbWFsLWRhcmsuanBn","logoDark":"https://content.pstmn.io/96b48902-cde8-42f1-ab48-30006170efd2/bG9nby1taW5pbWFsLWRhcmsuanBn"}},"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/c9446d7ecc3a7b04da5a03c920aba50bb6d23a2fb07a9337892f1fdda390b8df","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/2sA2rFQf5R"}