{"info":{"_postman_id":"0a887196-9c41-4c91-987b-983aa882d323","name":"CORALIX API","description":"<html><head></head><body><p>Welcome to the <strong>CORALIX API</strong>.</p>\n<p>Our API allows you to integrate payment processing into your application quickly and securely. Through a simple REST interface, you can create payment sessions, process transactions, manage refunds, tokenize payment methods, and receive real-time transaction updates via webhooks.</p>\n<p>This documentation includes:</p>\n<ul>\n<li>Authentication</li>\n<li>Payment workflow</li>\n<li>API reference</li>\n<li>Request and response examples</li>\n<li>Error codes</li>\n<li>Webhook integration</li>\n<li>Testing guidelines</li>\n<li>Production best practices</li>\n</ul>\n<p>All API communication is performed over <strong>HTTPS</strong>, and all request and response bodies are formatted as <strong>JSON</strong>.</p>\n<p>Whether you are building a custom checkout, integrating a hosted payment page, or automating payment operations, this guide provides everything you need to complete your integration.</p>\n<p>We look forward to helping you build a reliable and secure payment experience.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"547480","collectionId":"0a887196-9c41-4c91-987b-983aa882d323","publishedId":"2sBXwyGnNB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-06-29T08:53:48.000Z"},"item":[{"name":"PAYMENT FLOW","item":[],"id":"dee212b1-bb84-4779-8e35-50f05201d8eb","description":"<p><strong>1. Create a payment session</strong> — <code>POST /v1/sessions</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{ \"order_id\": \"order_123\", \"amount\": 15.00, \"currency\": \"USD\" }\n\n</code></pre>\n<p>Returns the session (<code>status: \"pending\"</code>), a <code>checkout_url</code>, and the available <code>payment_methods</code>. Sessions expire after 30 minutes.</p>\n<p><strong>2. Process the payment</strong> — <code>POST /v1/sessions/{sessionId}/pay</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payment_method_config_id\": \"&lt;id from payment_methods&gt;\",\n  \"payment_data\": {\n    \"card_number\": \"4242424242424242\",\n    \"exp_month\": 12, \"exp_year\": 2030,\n    \"cvv\": \"123\", \"holder_name\": \"John Doe\"\n  }\n}\n\n</code></pre>\n<p>Returns <code>{ status: \"success\", transaction_id, provider_ref }</code>, or on a decline <code>{ status: \"failed\", decline_reason, decline_message }</code>. Use <code>Accept-Language: es</code> or <code>en</code> to choose the message language.</p>\n<p><strong>3. Receive the webhook</strong> — Coralix <code>POST</code>s a signed <code>payment.success</code> / <code>payment.failed</code> event to your configured endpoint. You don't call this; it's pushed.</p>\n<h3 id=\"optional\">Optional</h3>\n<ul>\n<li><code>GET /v1/sessions/{sessionId}/status</code> — check a session and its transactions.</li>\n<li><code>GET /v1/transactions/{id}/attempts</code> — see each attempt and its decline reason.</li>\n</ul>\n<h2 id=\"idempotency\">Idempotency</h2>\n<p><code>order_id</code> is unique per merchant. Retrying with the <strong>same</strong> <code>order_id</code> + <code>amount</code> + <code>currency</code> returns the same session (safe retries, no double charge). Reusing an <code>order_id</code> with a different amount or currency returns <code>409</code>.</p>\n<h2 id=\"errors\">Errors</h2>\n<p>Errors return <code>{ \"error_code\", \"message\", \"request_id\" }</code>. Declines are <strong>not</strong> errors — <code>/pay</code> returns <code>200</code> with <code>status: \"failed\"</code> and a <code>decline_message</code>.</p>\n","_postman_id":"dee212b1-bb84-4779-8e35-50f05201d8eb"},{"name":"ENDPOINTS","item":[],"id":"298c6e0f-3b58-490b-a923-225dcc17b0c5","_postman_id":"298c6e0f-3b58-490b-a923-225dcc17b0c5","description":""},{"name":"TESTING","item":[],"id":"f806fbc5-df9f-42ca-92c5-4ae16ca9ed13","_postman_id":"f806fbc5-df9f-42ca-92c5-4ae16ca9ed13","description":""},{"name":"ERROR CODES","item":[],"id":"ab621510-1780-476f-95ad-66f27b31afbe","_postman_id":"ab621510-1780-476f-95ad-66f27b31afbe","description":""}]}