{"info":{"_postman_id":"5bc0355e-5313-422f-843a-a0687da7e05b","name":"Paysecure API Documentation - Whitelabel Merchant","description":"<html><head></head><body><h1 id=\"overview\">Overview</h1>\n<hr>\n<p>Paysecure is a payment gateway optimization and intelligence service that merchants can use to provide a remote and frictionless payment experience.</p>\n<p>This documentation will help you get started with integrating Paysecure but if you have any questions, please do not hesitate to reach out to us by on email us at <a href=\"https://\">info@paysecure.net</a></p>\n<p>Please be advised that our support team is only available during standard business hours.</p>\n<h1 id=\"environments\">Environments</h1>\n<hr>\n<p>These are the BaseUrls for the APIs on different environments:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Environment</strong></th>\n<th><strong>Base URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Production</td>\n<td><a href=\"https://\">https://api.paysecure.net/api/v1</a></td>\n</tr>\n<tr>\n<td>Sandbox</td>\n<td><a href=\"https://\">https://api.paysecure.net/api/v1</a>  <br><code>Note: set the Sandbox flag true (checked) in your merchant account. As shown in the image below</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authentication\">Authentication</h1>\n<hr>\n<p>To access the API, you must acquire your unique API key from the merchant dashboard -&gt; API Keys section in your account. Make sure to use this key as a <strong>bearer token</strong> in the Authorization header for every request you send.</p>\n<p><code>AUTHORIZATION: Bearer Token</code></p>\n<p><code>Token: {{APIKey}} .</code></p>\n<p>Access your sandbox API key credentials by navigating to your merchant login and checking the 'is sandbox' option, located in the top right corner under merchant profile.</p>\n<img src=\"https://content.pstmn.io/dfe64a66-8699-45c8-9f10-b00f7df380b7/U2NyZWVuc2hvdCAyMDIzLTA5LTE1IGF0IDE2LjU2LjQyLnBuZw==\">\n\n<p>To get to the live API key, uncheck the <strong>'Is Sandbox'</strong> option in the top right corner of your merchant dashboard. After unchecking, the page will refresh, and you can generate an API key for live transactions in this environment.\"</p>\n<img src=\"https://content.pstmn.io/afa2574d-8438-4a63-9b29-81feb0f755e5/U2NyZWVuc2hvdCAyMDIzLTA5LTE1IGF0IDE3LjE0LjI4LnBuZw==\">\n\n<p>Reiterating, the API keys in Sandbox mode are for testing (when 'is sandbox' is CHECKED in the top right corner under merchant profile). The live API key credentials are for processing actual card transactions in Live mode (when 'is sandbox' is UNCHECKED in the same location)</p>\n<h1 id=\"request-headers\">Request Headers</h1>\n<hr>\n<p>Use these headers on every API call unless noted.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Content-Type</code></td>\n<td><code>application/json</code></td>\n<td>Yes</td>\n<td>All endpoints. Send JSON payloads.</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td><code>Bearer {MERCHANT_API_KEY}</code></td>\n<td>Yes</td>\n<td>All endpoints.  <br>Replace with your merchant API key.</td>\n</tr>\n<tr>\n<td><code>BrandId</code></td>\n<td><code>{YOUR_BRAND_ID}</code></td>\n<td>Conditional</td>\n<td><strong>Session</strong> and <strong>Customer</strong>APIs.  <br>optional in customer APIs but Mandatory in Session APIs</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Environments","slug":"environments"},{"content":"Authentication","slug":"authentication"},{"content":"Request Headers","slug":"request-headers"}],"owner":"50038237","collectionId":"5bc0355e-5313-422f-843a-a0687da7e05b","publishedId":"2sB3dHWYnT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-24T08:14:01.000Z"},"item":[{"name":"⚙️ Integration Steps","item":[],"id":"817ecfed-2641-43a5-bdea-007b024b076c","description":"<p>To start integrating you should already have your Merchant access to our admin portal and sandbox credentials which you will need to complete the integration.</p>\n<h1 id=\"1-setup--check-merchant-details\">1. Setup &amp; check merchant details</h1>\n<p>The first step in getting your integration ready is to check whether all the details about you as a merchant are correct on our Merchant portal. If you detect anomalies, then please contact your client support executive.</p>\n<p>Start with sandbox mode (see top right-hand corner on your merchant portal to toggle between modes) and generate API Key, Brand ID and Public Key and also set up the callback URLs for subscribing to webhooks.</p>\n<ol>\n<li><p><strong>API Key</strong> - necessary to send transactions via API</p>\n</li>\n<li><p><strong>Brand ID</strong> - needed to send transaction. Use different brand IDs for different shops or brands.</p>\n</li>\n<li><p><strong>Public Key -</strong> needed to signature verification received in headers of the webhook</p>\n</li>\n<li><p><strong>Webhook</strong> - recommended to get notifications from our server to your server to inform you of transaction status changes and notifications about transactions. You can check all the details of how our webhooks work on the Webhooks page.</p>\n</li>\n</ol>\n<h1 id=\"2-test-the-integration-in-sandbox-mode\">2. Test the integration in Sandbox Mode</h1>\n<p>After finishing your integration, make sure your code is working as intended and test the purchase flow in the staging environment.</p>\n<h3 id=\"testing-credentials-only-on-sandbox-mode\">Testing Credentials (only on Sandbox mode)</h3>\n<p>You have the opportunity to test the APIs by performing test Purchases. To facilitate testing payments, you may utilize the following card details:</p>\n<p><strong>Visa (2D)</strong></p>\n<ul>\n<li><p><strong>Card number:</strong> 4444 3333 2222 1111</p>\n</li>\n<li><p><strong>Name</strong>: any cardholder name</p>\n</li>\n<li><p><strong>Expiry Date</strong>: any expiry larger or equal to the current month/year</p>\n</li>\n<li><p><strong>CVC</strong>: 345</p>\n</li>\n</ul>\n<p><strong>Mastercard (3DS)</strong></p>\n<ul>\n<li><p><strong>Card number:</strong> 5555 5555 5555 4444</p>\n</li>\n<li><p><strong>Name</strong>: any cardholder name</p>\n</li>\n<li><p><strong>Expiry Date</strong>: any expiry larger or equal to the current month/year</p>\n</li>\n<li><p><strong>CVC</strong>: 345</p>\n</li>\n</ul>\n<p><em>for 3DS, OTP will be received on the email as provided in the purchases payloads.</em></p>\n<p><strong>Note:</strong> Currently, only card payment testing is supported in the sandbox environment. Testing Alternative Payment Methods (APMs) is not available in the sandbox at this time.</p>\n<h1 id=\"3-create-and-test-credentials-on-the-live-mode\">3. Create and test credentials on the Live Mode</h1>\n<p>After finishing your integration in sandbox mode, set up your production environment by truning off the sandbox mode from merchant dashboard and follwing the same steps mentioned in step one. Test the integration using small amounts to ensure everything is working.</p>\n<h1 id=\"4-go-live\">4. Go live!</h1>\n<p>Inform your Account Manager when the setup is done to get staerted with processing live traffic.</p>\n","_postman_id":"817ecfed-2641-43a5-bdea-007b024b076c"},{"name":"🔌 Webhooks","item":[{"name":"PayIn","item":[],"id":"35d57dae-885d-4155-8148-9b3a09f56c92","description":"<h2 id=\"overview\"><strong>Overview</strong></h2>\n<p>When a transaction status changes to a terminal state (e.g., paid, refunded, expired), our payment gateway sends a server-to-server POST callback to the merchant's configured Webhook URL.</p>\n<p>The callback includes full transaction details so the merchant can update order status in real time.</p>\n<h3 id=\"webhook-events-for-payins\"><strong>Webhook Events for Payins</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Event type</strong></th>\n<th><strong>Status</strong></th>\n<th><strong>When is the event triggered</strong></th>\n<th><strong>Is this a terminal event?</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>purchase created</strong></td>\n<td><code>created</code></td>\n<td>Triggered when a new purchase request is initialized and recorded in the system.</td>\n<td>❌ No</td>\n</tr>\n<tr>\n<td><strong>payment in process</strong></td>\n<td><code>payment_in_process</code></td>\n<td>Triggered when the payment is initiated and awaiting confirmation from the PSP/bank.</td>\n<td>❌ No</td>\n</tr>\n<tr>\n<td><strong>purchase overdue</strong></td>\n<td><code>overdue</code></td>\n<td>Triggered when a purchase remains in the CREATED state and the configured <em>Transaction Overdue Hours</em> (from Admin Settings) have elapsed, the system automatically updates the purchase status to OVERDUE</td>\n<td>❌ No (may lead to failed/expired/paid later)</td>\n</tr>\n<tr>\n<td><strong>purchase paid</strong></td>\n<td><code>paid</code></td>\n<td>Triggered when the payment is successfully completed and confirmed.</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td><strong>purchase failed</strong></td>\n<td><code>error</code></td>\n<td>Triggered when the payment attempt fails due to technical error, insufficient funds, or rejection by PSP/bank.</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td><strong>purchase cancelled</strong></td>\n<td><code>cancelled</code></td>\n<td>Triggered when the customer or system cancels the purchase before completion.</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td><strong>purchase expired</strong></td>\n<td><code>expired</code></td>\n<td>Triggered when the purchase is not paid within the allowed expiry time.</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td><strong>refund in process</strong></td>\n<td><code>refund_in_process</code></td>\n<td>Triggered when a refund has been initiated but is not yet completed/settled.</td>\n<td>❌ No</td>\n</tr>\n<tr>\n<td><strong>payment refund</strong></td>\n<td><code>refunded</code> / <code>fraud_refunded</code></td>\n<td>Triggered when the completed payment is refunded, refunded due to fraud, or reversed via chargeback.</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td><strong>Chargeback</strong></td>\n<td><code>chargeback</code></td>\n<td>Triggered when a chargeback is applied</td>\n<td>✅ Yes</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"webhook-payload-specification\"><strong>Webhook Payload Specification</strong></h4>\n<p><strong>Fields Description</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message.purchaseId</td>\n<td>Unique identifier of the purchase generated by Paysecure.</td>\n</tr>\n<tr>\n<td>message.client</td>\n<td>Customer’s ID in merchant’s system (if available), otherwise \"NA\".</td>\n</tr>\n<tr>\n<td>message.client.email</td>\n<td>Customer’s email address.</td>\n</tr>\n<tr>\n<td>message.client.phone</td>\n<td>Customer’s phone number (with country code).</td>\n</tr>\n<tr>\n<td>message.client.full_name</td>\n<td>Full name of the customer.</td>\n</tr>\n<tr>\n<td>message.client.date_of_birth</td>\n<td>Customer’s date of birth in YYYY-MM-DD format.</td>\n</tr>\n<tr>\n<td>message.client.street_address</td>\n<td>Customer’s full street address.</td>\n</tr>\n<tr>\n<td>message.client.country</td>\n<td>ISO 2-letter country code of the customer.</td>\n</tr>\n<tr>\n<td>message.client.city</td>\n<td>City name (and state, if applicable).</td>\n</tr>\n<tr>\n<td>message.client.zip_code</td>\n<td>Postal / ZIP code.</td>\n</tr>\n<tr>\n<td>message.client.stateCode</td>\n<td>ISO 2-letter state code.</td>\n</tr>\n<tr>\n<td>message.updated_on</td>\n<td>UNIX timestamp of the last update to the transaction.</td>\n</tr>\n<tr>\n<td>message.type</td>\n<td>Type of transaction (e.g., \"purchase\").</td>\n</tr>\n<tr>\n<td>message.paymentMethod</td>\n<td>Comma-separated list of payment methods used (e.g., \"MASTER,VISA,JCB\").</td>\n</tr>\n<tr>\n<td>message.amountUnit</td>\n<td>Unit of amount — \"MAJOR\" for full currency unit, \"MINOR\" for subunits.</td>\n</tr>\n<tr>\n<td>message.errorMsg</td>\n<td>Message describing the transaction result — success message or error details.</td>\n</tr>\n<tr>\n<td>message.created_on</td>\n<td>UNIX timestamp when the purchase was created.</td>\n</tr>\n<tr>\n<td>message.merchantRef</td>\n<td>Unique transaction reference from the merchant.</td>\n</tr>\n<tr>\n<td>message.merchantName</td>\n<td>Registered merchant name in PaySecure.</td>\n</tr>\n<tr>\n<td>message.purchase.currency</td>\n<td>Currency code (ISO 4217).</td>\n</tr>\n<tr>\n<td>message.purchase.products</td>\n<td>Array of product details (name, quantity, price, discount, tax).</td>\n</tr>\n<tr>\n<td>message.purchase.total</td>\n<td>Total amount for all products (in amount unit).</td>\n</tr>\n<tr>\n<td>message.purchase.language</td>\n<td>Language code for the transaction (ISO 639-1).</td>\n</tr>\n<tr>\n<td>message.payment.payment_type</td>\n<td>Type of payment (e.g., \"PURCHASE\").</td>\n</tr>\n<tr>\n<td>message.payment.amount</td>\n<td>Payment amount.</td>\n</tr>\n<tr>\n<td>message.payment.currency</td>\n<td>Payment currency.</td>\n</tr>\n<tr>\n<td>message.payment.paid_on</td>\n<td>UNIX timestamp when the payment was completed.</td>\n</tr>\n<tr>\n<td>message.status</td>\n<td>Current transaction status.</td>\n</tr>\n<tr>\n<td>message.status_history</td>\n<td>Array of all past statuses with timestamps.</td>\n</tr>\n<tr>\n<td>message.reference</td>\n<td>PaySecure’s unique transaction reference.</td>\n</tr>\n<tr>\n<td>status (root-level)</td>\n<td>Duplicate of current status for quick access.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"possible-status-values\"><strong>Possible Status Values</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>status</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>error</td>\n<td>purchase failed due to an error.</td>\n</tr>\n<tr>\n<td>cancelled</td>\n<td>purchase was cancelled by the user or system.</td>\n</tr>\n<tr>\n<td>created</td>\n<td>purchase record created but not paid yet.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>payment link or session expired.</td>\n</tr>\n<tr>\n<td>overdue</td>\n<td>payment overdue.</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>payment completed successfully.</td>\n</tr>\n<tr>\n<td>refunded</td>\n<td>payment refunded.</td>\n</tr>\n<tr>\n<td>fraud_refunded</td>\n<td>refunded due to fraud detection.</td>\n</tr>\n<tr>\n<td>chargeback</td>\n<td>reversed due to chargeback.</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>payment is in progress.</td>\n</tr>\n<tr>\n<td>refund_in_process</td>\n<td>refund process started but not completed.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"🔐-key-pair-generation\"><strong>🔐 Key Pair Generation</strong></h2>\n<p><strong>Paysecure uses RSA key pairs to digitally sign webhooks, ensuring all notifications are both secure and authentic.</strong></p>\n<hr />\n<p><strong>1. Generate Your Keys</strong></p>\n<img src=\"https://content.pstmn.io/6e17a656-3d35-471b-9eb3-9b4e22306c02/U2NyZWVuc2hvdCAyMDI1LTExLTE3IGF0IDguMzIuNDTigK9BTS5wbmc=\" />\n\n<ul>\n<li><p>Click “Generate Key Pair” in the dashboard.</p>\n</li>\n<li><p>A unique RSA private key and public key are created for your merchant ID.</p>\n</li>\n</ul>\n<p><strong>2. Key Storage</strong></p>\n<img src=\"https://content.pstmn.io/336ed3b4-84ad-4df2-bfbb-d59ac9427185/U2NyZWVuc2hvdCAyMDI1LTExLTE3IGF0IDguMzUuMDLigK9BTS5wbmc=\" />\n\n<ul>\n<li><p>Private Key → Stored securely by Paysecure (never exposed).</p>\n</li>\n<li><p>Public Key → Displayed to you once on the screen. Copy and save it for verifying signatures.</p>\n</li>\n</ul>\n<p><strong>3. Webhook Signing</strong></p>\n<ul>\n<li><p>Every webhook payload is signed using Paysecure’s private key.</p>\n</li>\n<li><p>The signature is included in webhook headers:</p>\n<ul>\n<li>paysecure-sign or paysecure_sign</li>\n</ul>\n</li>\n</ul>\n<p><strong>4. Verification</strong></p>\n<ul>\n<li><p>Use your public key to verify the paysecure-sign header against the webhook body.</p>\n</li>\n<li><p>This ensures the webhook came from Paysecure and was not tampered with.</p>\n</li>\n</ul>\n<h2 id=\"🔏-signature-paysecure-sign-or-paysecure_sign\"><strong>🔏 Signature: paysecure-sign (or paysecure_sign)</strong></h2>\n<p><strong>The paysecure-sign header is a Base64-encoded digital signature generated using your merchant-specific RSA private key.</strong></p>\n<hr />\n<h3 id=\"🔨-how-the-signature-is-generated\"><strong>🔨 How the Signature is Generated</strong></h3>\n<ol>\n<li>Message Construction</li>\n</ol>\n<p>Concatenate the following fields in order:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{purchaseId}|{message.status}|{brandId}\n\n</code></pre>\n<p>Example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1234567890|PAID|BRAND_001\n\n</code></pre><p>2. Signing Algorithm</p>\n<ul>\n<li><p>Algorithm: SHA256withRSA</p>\n</li>\n<li><p>Output: Base64-encoded signature (sent in the paysecure-sign header).</p>\n</li>\n</ul>\n<h3 id=\"✅-how-to-verify-the-signature\"><strong>✅ How to Verify the Signature</strong></h3>\n<ol>\n<li>Rebuild the Message</li>\n</ol>\n<p>From the webhook JSON body, extract:</p>\n<ul>\n<li><p>purchaseId</p>\n</li>\n<li><p>status (convert to uppercase)</p>\n</li>\n<li><p>brandId</p>\n</li>\n</ul>\n<p>Reconstruct the string in the same format:<br />{purchaseId}|{message.status}|{brandId}</p>\n<p>2. Verification Steps</p>\n<ul>\n<li><p>Use your stored public key.</p>\n</li>\n<li><p>Decode the paysecure-sign header from Base64.</p>\n</li>\n<li><p>Verify using SHA256withRSA.</p>\n</li>\n<li><p>If verification succeeds, the webhook is authentic and untampered.</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"💻-java-verification-example\"><strong>💻 Java Verification Example</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">public static boolean verifySignature(String message, String signatureBase64, PublicKey publicKey) throws Exception {\n    Signature signature = Signature.getInstance(\"SHA256withRSA\");\n    signature.initVerify(publicKey);\n    signature.update(message.getBytes());\n    byte[] signatureBytes = Base64.getDecoder().decode(signatureBase64);\n    return signature.verify(signatureBytes);\n}\n\n</code></pre>\n<ul>\n<li><p>message → The reconstructed string (purchaseId|STATUS|brandId)</p>\n</li>\n<li><p>signatureBase64 → Value from paysecure-sign header</p>\n</li>\n<li><p>publicKey → Your saved Paysecure public key</p>\n</li>\n</ul>\n","_postman_id":"35d57dae-885d-4155-8148-9b3a09f56c92"},{"name":"Payout","item":[],"id":"c2a8928c-d0c9-4a9b-952d-e842f17abac0","description":"<h3 id=\"overview\">Overview</h3>\n<p>When a transaction status changes to a terminal state (e.g., paid, pending_review (in development)), our payment gateway sends a server-to-server POST callback to the merchant's configured Webhook URL.</p>\n<p>The callback includes full transaction details so the merchant can update order status in real time.</p>\n<h3 id=\"webhook-events-for-payouts\">Webhook Events for Payouts</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event type (Condition applied in code)</th>\n<th>Status</th>\n<th>When is the event triggered</th>\n<th>Is this a terminal event</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Payout – Created</td>\n<td>created</td>\n<td>When the payout request is created</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Payout – in Process</td>\n<td>payout_in_process</td>\n<td>When the Payout request is triggered to the bank, and the status is in pending</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Payout – Pending Review</td>\n<td>pending_review</td>\n<td>When the payout request needs manual review from the merchant</td>\n<td>No</td>\n</tr>\n<tr>\n<td>payout – failure</td>\n<td>error</td>\n<td>Triggered when the payout request fails (system/PSP error, rejection, etc.).</td>\n<td>✅ Yes</td>\n</tr>\n<tr>\n<td>payout – success</td>\n<td>paid</td>\n<td>Triggered when the payout is processed successfully and funds are released.</td>\n<td>✅ Yes</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"webhook-payload-specification\"><strong>Webhook Payload Specification</strong></h2>\n<h3 id=\"fields-description\"><strong>Fields Description</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payload.payoutId</td>\n<td>Unique identifier of the payout generated by Paysecure.</td>\n</tr>\n<tr>\n<td>payload.client.customerId</td>\n<td>Customer’s ID in the merchant’s system (if available), otherwise \"NA\".</td>\n</tr>\n<tr>\n<td>payload.client.email</td>\n<td>Customer’s email address.</td>\n</tr>\n<tr>\n<td>payload.client.phone</td>\n<td>Customer’s phone number (with country code).</td>\n</tr>\n<tr>\n<td>payload.client.full_name</td>\n<td>Full name of the customer.</td>\n</tr>\n<tr>\n<td>payload.client.country</td>\n<td>ISO 2-letter country code of the customer.</td>\n</tr>\n<tr>\n<td>payload.updated_on</td>\n<td>UNIX timestamp of the last update to the payout transaction.</td>\n</tr>\n<tr>\n<td>payload.payoutMethod</td>\n<td>Payout method used (e.g., \"PAYOUT-INTERAC\").</td>\n</tr>\n<tr>\n<td>payload.amountUnit</td>\n<td>Unit of amount — \"MAJOR\" for full currency unit, \"MINOR\" for subunits.</td>\n</tr>\n<tr>\n<td>payload.amount</td>\n<td>Total payout amount.</td>\n</tr>\n<tr>\n<td>payload.errorMsg</td>\n<td>Message describing the payout result — success message or error details.</td>\n</tr>\n<tr>\n<td>payload.purpose</td>\n<td>Purpose/description of the payout.</td>\n</tr>\n<tr>\n<td>payload.created_on</td>\n<td>UNIX timestamp when the payout was created.</td>\n</tr>\n<tr>\n<td>payload.merchantRef</td>\n<td>Unique transaction reference from the merchant.</td>\n</tr>\n<tr>\n<td>payload.merchantName</td>\n<td>Registered merchant name in Paysecure.</td>\n</tr>\n<tr>\n<td>payload.currency</td>\n<td>Currency code of the payout (ISO 4217).</td>\n</tr>\n<tr>\n<td>payload.fx_Currency</td>\n<td>FX (foreign exchange) currency used (if applicable).</td>\n</tr>\n<tr>\n<td>payload.fx_Amount</td>\n<td>FX-adjusted payout amount.</td>\n</tr>\n<tr>\n<td>payload.transFees</td>\n<td>Transaction fee amount.</td>\n</tr>\n<tr>\n<td>payload.paymentOn</td>\n<td>UNIX timestamp when the payout was completed/paid.</td>\n</tr>\n<tr>\n<td>payload.payOutDetails.name</td>\n<td>Payout instrument name (e.g., \"INTERAC E-TRANSFER\").</td>\n</tr>\n<tr>\n<td>payload.payOutDetails.emailAddress</td>\n<td>Payout recipient email address.</td>\n</tr>\n<tr>\n<td>payload.payOutDetails.secretQA</td>\n<td>Security question used for payout (if applicable).</td>\n</tr>\n<tr>\n<td>payload.payOutDetails.secretAnswer</td>\n<td>Security answer used for payout (if applicable).</td>\n</tr>\n<tr>\n<td>payload.taxAmount</td>\n<td>Tax amount applied to the payout.</td>\n</tr>\n<tr>\n<td>payload.taxPercent</td>\n<td>Tax percentage applied to the payout.</td>\n</tr>\n<tr>\n<td>payload.redirectType</td>\n<td>Redirect method after payout completion (e.g., \"POST\").</td>\n</tr>\n<tr>\n<td>payload.pendingReview</td>\n<td>Indicates if the payout is under review (\"Yes\"/\"No\").</td>\n</tr>\n<tr>\n<td>payload.surcharge</td>\n<td>Surcharge amount applied (if any).</td>\n</tr>\n<tr>\n<td>payload.success_callback</td>\n<td>Callback URL invoked on payout success.</td>\n</tr>\n<tr>\n<td>payload.failure_callback</td>\n<td>Callback URL invoked on payout failure.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"possible-status-values\"><strong>Possible Status Values</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>status</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>error</td>\n<td>Payout failed due to an error.</td>\n</tr>\n<tr>\n<td>created</td>\n<td>Payout record created but not paid yet.</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>payment completed successfully.</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>Payout is in progress.</td>\n</tr>\n<tr>\n<td>pending_review</td>\n<td>Payout needs to be reviewed</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"🔐-key-pair-generation\"><strong>🔐 Key Pair Generation</strong></h2>\n<p><strong>Paysecure uses RSA key pairs to digitally sign webhooks, ensuring all notifications are both secure and authentic.</strong></p>\n<hr />\n<h3 id=\"1-generate-your-keys\"><strong>1. Generate Your Keys</strong></h3>\n<img src=\"https://content.pstmn.io/7518adf1-d6ec-4b0e-b1bb-b6710a5173f1/U2NyZWVuc2hvdCAyMDI1LTExLTE3IGF0IDExLjM4LjIw4oCvQU0ucG5n\" />\n\n<ul>\n<li><p>Click “Generate Key Pair” in the dashboard.</p>\n</li>\n<li><p>A unique RSA private key and public key are created for your merchant ID</p>\n</li>\n</ul>\n<h3 id=\"2-key-storage\"><strong>2. Key Storage</strong></h3>\n<img src=\"https://content.pstmn.io/0a39578e-0796-4671-80f6-d68ca391bdef/U2NyZWVuc2hvdCAyMDI1LTExLTE3IGF0IDExLjM4LjMw4oCvQU0ucG5n\" />\n\n<ul>\n<li><p>Private Key → Stored securely by Paysecure (never exposed).</p>\n</li>\n<li><p>Public Key → Displayed to you once on the screen. Copy and save it for verifying signatures.</p>\n</li>\n</ul>\n<h3 id=\"3-webhook-signing\"><strong>3. Webhook Signing</strong></h3>\n<ul>\n<li><p>Every webhook payload is signed using Paysecure’s private key.</p>\n</li>\n<li><p>The signature is included in webhook headers:</p>\n<ul>\n<li>paysecure-sign or paysecure_sign</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"4-verification\"><strong>4. Verification</strong></h3>\n<ul>\n<li><p>Use your public key to verify the paysecure-sign header against the webhook body.</p>\n</li>\n<li><p>This ensures the webhook came from Paysecure and was not tampered with.</p>\n</li>\n</ul>\n<h2 id=\"🔏-signature-paysecure-sign-or-paysecure_sign\"><strong>🔏 Signature: paysecure-sign (or paysecure_sign)</strong></h2>\n<p><strong>The paysecure-sign header is a Base64-encoded digital signature generated using your merchant-specific RSA private key.</strong></p>\n<h3 id=\"🔨-how-the-signature-is-generated\"><strong>🔨 How the Signature is Generated</strong></h3>\n<ol>\n<li><strong>Message Construction</strong></li>\n</ol>\n<p>Concatenate the following fields in order:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{payoutId}|{payload.status}\n\n</code></pre><p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1234567890|paid&lt;strong class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; &gt;\n&lt;/b&gt;\n\n</code></pre><p><strong>2. Signing Algorithm</strong></p>\n<ol>\n<li><p>Algorithm: SHA256withRSA</p>\n</li>\n<li><p>Output: Base64-encoded signature (sent in the paysecure-sign header).</p>\n</li>\n</ol>\n<h3 id=\"✅-how-to-verify-the-signature\"><strong>✅ How to Verify the Signature</strong></h3>\n<ol>\n<li><strong>Rebuild the Message</strong></li>\n</ol>\n<p>From the webhook JSON body, extract:</p>\n<ul>\n<li><p>payoutId</p>\n</li>\n<li><p>payload.status (convert to lowercase)</p>\n</li>\n</ul>\n<p>Reconstruct the string in the same format:<br />{payoutId}|{payload.status}</p>\n<p><strong>2. Verification Steps</strong></p>\n<ul>\n<li><p>Use your stored public key.</p>\n</li>\n<li><p>Decode the paysecure-sign header from Base64.</p>\n</li>\n<li><p>Verify using SHA256withRSA.</p>\n</li>\n<li><p>If verification succeeds, the webhook is authentic and untampered.</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">public static boolean verifySignature(String message, String signatureBase64, PublicKey publicKey) throws Exception {\n    Signature signature = Signature.getInstance(\"SHA256withRSA\");\n    signature.initVerify(publicKey);\n    signature.update(message.getBytes());\n    byte[] signatureBytes = Base64.getDecoder().decode(signatureBase64);\n    return signature.verify(signatureBytes);\n}\n\n</code></pre>\n<ul>\n<li><p>message → The reconstructed string (payoutId|status)</p>\n</li>\n<li><p>signatureBase64 → Value from paysecure-sign header</p>\n</li>\n<li><p>publicKey → Your saved Paysecure public key</p>\n</li>\n</ul>\n","_postman_id":"c2a8928c-d0c9-4a9b-952d-e842f17abac0"}],"id":"3b3af6de-6658-41be-9b1f-75c7ba431b49","description":"<p>To receive information about various transaction status and events, you will need to set up an endpoint which accepts payloads sent by Paysecure. Your endpoint will receive <strong>POST</strong> requests with <strong>content-type: application/json</strong>.</p>\n<h3 id=\"configuring-the-webhook-endpoint\">Configuring the webhook endpoint</h3>\n<p>The webhook endpoint can be set up on <code>Partner Dashboard -&gt; Webhooks -&gt; New Webhook</code>.</p>\n<img src=\"https://content.pstmn.io/3b411aa7-0e42-44bd-985e-9c1f1155a729/U2NyZWVuc2hvdCAyMDI1LTExLTE2IGF0IDkuNDcuMDnigK9QTS5wbmc=\" />\n\n<p>Make sure you save the endpoint by clicking \"Create\".</p>\n<p>Paysecure will post all payloads to the specified URLs. Please note that if merchant face any issues with accepting the webhook, it will not be resent. Alternatevely the merchant can call Paysecure get status API to verify the status of a purchase.</p>\n<h3 id=\"steps-to-configure-a-webhook\"><strong>Steps to Configure a Webhook</strong></h3>\n<img src=\"https://content.pstmn.io/3cd636a8-4106-48ed-a66b-ae591c3daf1f/U2NyZWVuc2hvdCAyMDI1LTExLTE2IGF0IDEwLjU3LjAz4oCvUE0ucG5n\" />\n\n<p><strong>1.Add a New Webhook:</strong></p>\n<ul>\n<li>Click on the “New Webhook” button.</li>\n</ul>\n<p><strong>2. Provide Details:</strong></p>\n<ul>\n<li><p>Name: Give the webhook a descriptive name.</p>\n</li>\n<li><p>Payment Method Selection:</p>\n</li>\n</ul>\n<p>a. Choose a specific payment method or select “All” for universal callbacks.</p>\n<ul>\n<li>Enter URL:</li>\n</ul>\n<p>a. Provide the callback URL where the event notifications will be sent.</p>\n<p><strong>3. Select Event Triggers:</strong></p>\n<p>a. Choose from a list of available events (Note: Depending on the payment method, not all events may be available.)</p>\n<p><strong>4. Save configuration:</strong></p>\n<p>a. Click “Save” to store the webhook settings.**</p>\n<h2 id=\"notes\">Notes:</h2>\n<ol>\n<li><p>You can setup one URL for all the events or individual URLs for each of the events. Paysecure would call the webhooks based on whatever the setup is. If only one URL, the developer will need to extract the message from the payload information.</p>\n</li>\n<li><p>In case of if a success_callback (webhook) or failure_callback (webhook) is given the <code>/purchases</code> API or <code>/createSession</code> API, then priority will be given to API callback webhooks, and not the webhooks set in the merchant dashboard. In other words, the webhooks given in the API will override the webhooks set in the merchant dashboard. The webhook posted would be a JSON object (either purchase or payout object as the case might be) containing the status. This object is the same as the one you will get in the <code>/getStatus</code> API call <code>https://api.paysecure.net/api/v1/purchases/{purchaseId}/</code></p>\n</li>\n</ol>\n<h2 id=\"available-event-for-subscription\">Available Event for subscription</h2>\n<p>When a transaction status changes to a terminal state (e.g., paid, refunded, expired), our payment gateway sends a server-to-server POST callback to the merchant's configured Webhook URL.</p>\n<p>The callback includes full transaction details so the merchant can update order status in real time.</p>\n<h2 id=\"http-method--headers\"><strong>HTTP Method &amp; Headers</strong></h2>\n<p><strong>Method: POST</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td><strong>application/json; charset=utf-8 — Indicates the payload format is JSON in UTF-8 encoding.</strong></td>\n</tr>\n<tr>\n<td>User-Agent</td>\n<td>Always set to \"PaySecure\" — Identifies the request origin as PaySecure.</td>\n</tr>\n<tr>\n<td>paysecure_sign</td>\n<td><strong>Present only if a signature value (paysecure_sign) is generated(</strong><a href=\"https://docs.google.com/document/d/1qgsO7_jxMOXASnezEw-RU70WNddCfKrXWCwPGJLmqUs/edit?tab=t.nwoa2ohizyre#heading=h.rlwjz036ocez\"><b>see the logic below</b></a><strong>). This is used for validating the authenticity of the callback.</strong></td>\n</tr>\n<tr>\n<td>paysecure-sign</td>\n<td><strong>Same signature value as paysecure_sign but provided in an alternate header name for better compatibility.</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"webhook-structure\"><strong>Webhook structure</strong></h3>\n<p>We add a signature as “<strong>paysecure_sign</strong>” or <strong>\"paysecure-sign\"</strong> in the webhook header for verifying the payload, If you have already created a <strong>public key</strong> from your merchant dashboard.</p>\n<p>To verify this signature, decrypt the signature with your public key. Compare this with the values which you received in your payload.</p>\n<p>Use the following method (in Java) for signature verification.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\"> private static boolean verify(String message,String signature, PublicKey publicKey) throws Exception \n{\n    Signature verifier = Signature.getInstance(\"SHA256withRSA\");\n    verifier.initVerify(publicKey);\n    verifier.update(message.getBytes());\n    return verifier.verify(Base64.getDecoder().decode(signature.getBytes()));\n}\n\n</code></pre>\n<ol>\n<li><p>Where the <strong>message</strong> is the combination of values which you received in the payload:</p>\n<ol>\n<li><p>For Payins: the message is a combination of <strong><code>purchaseId+\"|\"+status(uppercase)+\"|\"+brandId</code></strong></p>\n</li>\n<li><p>Payouts: this message is a combination of p**<code>ayoutId+\"|\"+status(lowercase)</code>**</p>\n</li>\n</ol>\n</li>\n<li><p>The signature is the value of the “<strong>paysecure_sign</strong>” or <strong>\"paysecure-sign\"</strong> you received in webhook.</p>\n</li>\n<li><p>You can obtain the <strong>Public Key</strong> from your merchant dashboard.</p>\n</li>\n</ol>\n","_postman_id":"3b3af6de-6658-41be-9b1f-75c7ba431b49"},{"name":"🖥️ Status Code","item":[{"name":"Transaction Status and Their Meaning","item":[],"id":"f1afc75c-9ba4-4f05-9b30-e8df29a0df12","description":"<p>The lifecycle of a transaction is reflected through the status of the transaction.</p>\n<p>This section details various statuses of a transaction and what it means and when does it appears.</p>\n<p>The status of a transaction can be read from the <code>\"status\"</code> field of the responses or webhook payload.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>When it Appears</strong></th>\n<th><strong>Is it Final?</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CREATED</td>\n<td>Purchase is created in the system.</td>\n<td>When Purchase API is called, the transaction is created as \"CREATED\".</td>\n<td>N</td>\n</tr>\n<tr>\n<td>CANCELLED</td>\n<td>Purchase is cancelled in the system. Only transactions in \"CREATED\" status can be cancelled.</td>\n<td>When Cancel API is called.</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>PENDING EXECUTE</td>\n<td>Purchase hasn't been completed yet. Only transactions in \"CREATED\" status can become \"PENDING EXECUTE\" after S2S API call.</td>\n<td>The callback URL provided in the S2S call response hasn't been called by merchant yet.</td>\n<td>N</td>\n</tr>\n<tr>\n<td>OVERDUE</td>\n<td>Purchase hasn't been completed yet. Only transactions in \"CREATED\" status can become \"OVERDUE\" if S2S API hasn't been called in 2 hours.</td>\n<td>S2S API hasn't been called within 2 hours since transaction creation.</td>\n<td>N</td>\n</tr>\n<tr>\n<td>EXPIRED</td>\n<td>Purchase hasn't been completed. Only transactions in \"PAYMENT IN PROCESS\" and \"PENDING EXECUTE\" status can become \"EXPIRED\". After payment in process, no data is provided.</td>\n<td>The callback URL provided in the S2S call response hasn't been called by the merchant after the specific time period.</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>PAID</td>\n<td>Purchase has been completed successfully. Only transactions in \"PAYMENT IN PROCESS\" status can become \"PAID\".</td>\n<td>The callback URL provided in the S2S call response has been called by the merchant.</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>PAYMENT IN PROCESS</td>\n<td>Purchase hasn't been completed. Only transactions in \"PENDING EXECUTE\" status can become \"PAYMENT IN PROCESS\".</td>\n<td>When the user's action is pending (e.g., OTP confirmation). Transaction can stay in this status for 24 hours since creation.</td>\n<td>N</td>\n</tr>\n<tr>\n<td>CHARGEBACK</td>\n<td>Transaction type that allows customers to receive money back.</td>\n<td>When requested by customer or merchant (manual process).</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>REFUNDED</td>\n<td>Only transactions in \"REFUND IN PROCESS\" status can become \"REFUNDED\".</td>\n<td>When the provider confirms the refund.</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>REFUND IN PROCESS</td>\n<td>Only transactions in <strong>\"PAID\"</strong> status can become <strong>\"REFUND IN PROCESS\"</strong>.</td>\n<td>When Refund API is called and a response is received with \"REFUND IN PROCESS\" status.</td>\n<td>N</td>\n</tr>\n<tr>\n<td>ERROR</td>\n<td>Only transactions in statuses: <strong>\"PENDING EXECUTE\"</strong>, <strong>\"PAYMENT IN PROCESS\"</strong>, <strong>\"PAYOUT IN PROCESS\"</strong> or <strong>\"REFUND IN PROCESS\"</strong> can become \"ERROR\".</td>\n<td>Refers to the Errors list for possible errors.</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c18652d6-0b63-4997-ac16-ed0655c4d1ce","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"67fa5379-1145-4c79-b212-a91a973540d8","type":"text/javascript","exec":[""]}}],"_postman_id":"f1afc75c-9ba4-4f05-9b30-e8df29a0df12"}],"id":"6dfea973-035d-4fa6-8da1-e6197caf2a27","description":"<h1 id=\"http-response-code\">HTTP Response Code</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Triggering Event</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Successful Response</td>\n</tr>\n<tr>\n<td>202</td>\n<td>Successful / Accepted</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request, the given data is invalid, or additional data is required</td>\n</tr>\n<tr>\n<td>401</td>\n<td>unauthorized request</td>\n</tr>\n<tr>\n<td>404</td>\n<td>page not found</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method Not Allowed (GET/POST)</td>\n</tr>\n<tr>\n<td>415</td>\n<td>unsupported media type</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable content, data is required</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too many request attempt</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div><p>You will not get Error codes if HTTPS response code is 200 or 202.</p>\n<h2 id=\"error-codes-and-messages\">Error Codes and Messages</h2>\n<h3 id=\"with-http-code-400-404-401-405-415\">with http code (400, 404, 401, 405, 415)</h3>\n<p>Below is the list of possible error codes and the corresponding messages from Paysecure System</p>\n<h2 id=\"format\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n<th><strong>APIs that could generate the error code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authentication_failed</td>\n<td>Authorization header missing</td>\n<td>All</td>\n</tr>\n<tr>\n<td>already_in_process</td>\n<td>Some Processing is running on this purchaseId</td>\n<td>All</td>\n</tr>\n<tr>\n<td>unsupported_media_type</td>\n<td>Unsupported media type \"text/plain; charset=ISO-8859-1\" in request.</td>\n<td>All</td>\n</tr>\n<tr>\n<td>authentication_failed</td>\n<td>Incorrect secret_key/Invalid Merchant Type</td>\n<td>All</td>\n</tr>\n<tr>\n<td>transaction_error</td>\n<td>See the table below</td>\n<td>See the table below</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"transaction_error-message-list\">\"transaction_error\" Message List</h2>\n<p>All the Messages possible when \"transaction_error\" is in reponse:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Message</strong></th>\n<th><strong>APIs that generate the error Message</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Cvv_error</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Expired card</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>expiry_date_error</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Insufficient fund</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Invalid card number</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Issuing bank - do not honer</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Picking card</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Temp error - card blocked</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Transaction declined - try again</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>PurchaseId Not found.</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Only purchases that can be paid for can be initiated for payment.</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Customer/Ip is Blocked</td>\n<td>after executing callback_url</td>\n</tr>\n<tr>\n<td>Client Ip could not be match with Merchant Ip</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Invalid Card Information</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Card is Blocked</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Different Type of key used to create purchase and payment</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>You charges setting is in complete .Please Contact to Administrator.</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Allowed Attempt for this Transaction has been consumed</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Customer not allowed For transaction</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Invalid Card Expiry(Valid Format:MM/YY) must be greater than current month/year</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Customer profile is Blocked</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Customer/Card not allowed for transaction</td>\n<td>s2s calling</td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>some Mandatory Parameter are missing</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Invalid_Parameter</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Invalid Email Format</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Merchant Limit is not set</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Brand not found!</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Only “curr_name” currency is allowed</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>Transaction amount must not be greater to maximum trans amount</td>\n<td>create purchase</td>\n</tr>\n<tr>\n<td>This Purchase was already fully refunded.</td>\n<td><code>/refund/</code></td>\n</tr>\n<tr>\n<td>Previous Refund Request already in Process</td>\n<td><code>/refund/</code></td>\n</tr>\n<tr>\n<td>Max Time for Refund was elapsed.</td>\n<td><code>/refund/</code></td>\n</tr>\n<tr>\n<td>Refund can not be initiated .Please contact Administrator.</td>\n<td><code>/refund/</code></td>\n</tr>\n<tr>\n<td>Only Purchases with `status == (paid)` can be refunded.</td>\n<td><code>/refund/</code></td>\n</tr>\n<tr>\n<td>Only purchases that can be paid for can be cancelled.</td>\n<td><code>/cancel/</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c18652d6-0b63-4997-ac16-ed0655c4d1ce","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"67fa5379-1145-4c79-b212-a91a973540d8","type":"text/javascript","exec":[""]}}],"_postman_id":"6dfea973-035d-4fa6-8da1-e6197caf2a27"},{"name":"Payment Methods","item":[{"name":"💰 APMs (Alternative Payment Methods)","item":[{"name":"🇨🇦 Interac e-Transfer","item":[{"name":"Concepts","item":[],"id":"adfc1dbb-7525-4581-875a-40c566338d54","description":"<h2 id=\"interac-overview\">Interac Overview</h2>\n<p>Interac is a leading Canadian payment network that facilitates secure, real-time transactions between bank accounts. It offers multiple payment options, including Interac e-Transfers.</p>\n<p>Interac e-Transfer allows users to send and receive money directly between bank accounts using email or SMS. It provides a fast, secure, and convenient alternative to traditional payment methods, accessible through most Canadian banks' online and mobile banking platforms.</p>\n<h3 id=\"paysecures-interac-product-suite-enables-merchants-to-initiate\"><strong>Paysecure’s Interac product suite enables merchants to initiate:</strong></h3>\n<ul>\n<li><p><strong>PayIns:</strong> Consumers can utilise Interac e-Transfer to transfer funds from their bank account, through their bank’s app or website.</p>\n</li>\n<li><p><strong>Payouts:</strong> Facilitate real-time disbursements directly to consumers' accounts.</p>\n</li>\n</ul>\n<h2 id=\"payin-flows\">PayIn Flows</h2>\n<p><strong>How it works</strong></p>\n<p>Interac e-Transfer enables merchants with capability to support easy collection from customers. Merchants can initiate payment requests to provide secure, efficient, and flexible options for collecting payments from customers.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://content.pstmn.io/93d3d350-d8c5-4470-960b-4eaa8d8a0d70/SW50ZXJhYyBQYXlJbiBGbG93LnBuZw==\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p><strong>Initiate Payment Request:</strong> The merchant initiates a PayIn (deposit/collection) transaction by sending a request to the Paysecure <code>/purchases</code> API. The payload must specify <code>INTERAC-ETRANSFER</code> as the payment method and include the customer’s email address or mobile number, the amount to be collected, and an optional message.</p>\n</li>\n<li><p><strong>Generate Security Question &amp; Answer:</strong> The API responds with a security question and answer that the customer must use to complete the transfer, adding an additional layer of security. By default, the request remains valid for 30 days. The merchant can configure a longer expiry period, but not shorter than 30 days.</p>\n</li>\n<li><p><strong>Customer Completes the Transfer:</strong> The customer logs into their online banking platform, inputs the amount, enter the deposit email and security question and answer, and authorizes the transfer to the merchant’s account.</p>\n</li>\n<li><p><strong>Confirm Transfer Completion:</strong> Once the funds are successfully transferred, Paysecure sends a webhook to the merchant containing the transaction details and confirmation of payment status.</p>\n</li>\n<li><p><strong>Update Merchant’s Account:</strong> The merchant’s system updates the customer’s account balance to reflect the successful receipt of funds.</p>\n</li>\n</ul>\n<h2 id=\"payout-flows\"><strong>PayOut flows</strong></h2>\n<p><strong>How it works</strong><br />Paysecure offers the ability to make payouts to customers', individuals', or businesses' bank accounts using Interac e-Transfers. Whether for refunds, rewards, or other types of disbursements, the Payouts API ensures efficient and reliable transactions, supporting real-time fund transfers and comprehensive transaction tracking over Interac e-transfers.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://content.pstmn.io/e51c224c-855b-49b3-b3a0-e38730ba20d4/SW50ZXJhYyBQYXlPdXQgRmxvdy5wbmc=\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p><strong>Initiate Payout Request:</strong> The merchant calls the Paysecure <code>/Payout</code> API. This request includes the customer’s email address or mobile number, the amount to be transferred, and an optional message.</p>\n</li>\n<li><p><strong>Security Question &amp; Answers (Optional):</strong> For the customers that have their auto-deposit turned off , the merchant can share the security question and answer at their cashier or via email. The customer must use these Security question and answer to receive the funds, adding an extra layer of security. For customers with auto-deposit turned on, the funds will be received instanteneously.</p>\n</li>\n<li><p><strong>Customer Deposits Funds (Optional):</strong> The customer with auto-deposit turned off, will have to follows the link received on their email from Interac and follow the instructions to receive the funds into their acount. For customers with auto-deposit turned on, the funds will be received instanteneously.</p>\n</li>\n<li><p><strong>Confirm Payout Completion:</strong> Upon successful deposit, the merchant will receive the webhook with transaction info and the status.</p>\n</li>\n<li><p><strong>Update Merchant’s Account:</strong> The merchant’s system updates the customer’s account balance to reflect the withdrawn funds.</p>\n</li>\n</ul>\n<h2 id=\"transaction-limits\">Transaction Limits:</h2>\n<p>The limits outlined below are generally for personal accounts and can vary by financial institution and account type. For business accounts, higher limits may apply. It’s advisable to check with your bank for the most accurate limits pertaining to your account</p>\n<h2 id=\"pay-ins\">Pay Ins:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>0.01 CAD</td>\n<td>3,000 CAD</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td>0.01 CAD</td>\n<td>3,000 CAD</td>\n</tr>\n<tr>\n<td>Per User (over a 7 day rolling period)</td>\n<td>0.01 CAD</td>\n<td>10,000 CAD</td>\n</tr>\n<tr>\n<td>Per Month (over a 30 day rolling period)</td>\n<td>0.01 CAD</td>\n<td>20,000 CAD</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"pay-outs\">Pay Outs:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>10 CAD</td>\n<td>3,000 CAD</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td>10 CAD</td>\n<td>10,000 CAD</td>\n</tr>\n<tr>\n<td>Per User (over a 7 day rolling period)</td>\n<td>10 CAD</td>\n<td>70,000 CAD</td>\n</tr>\n<tr>\n<td>Per Month (over a 30 day rolling period)</td>\n<td>10 CAD</td>\n<td>100,000 CAD</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"adfc1dbb-7525-4581-875a-40c566338d54"},{"name":"PayIn API","item":[{"name":"Purchases","id":"e45ca8ad-5cdc-4303-8734-3361de947e2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.redirect.url/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.  <br />This should be \"CA\" for Interac</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />This should be 'CAD' for Interac</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td>name of the product or service</td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>The <code>purchase.expireInMin</code>, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"943e717b-26c7-4fec-bd8d-d18649d597fb","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.redirect.url/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\"purchaseId\":\"67efd0ff97be603f97a3a697\",\"client\":{\"customerId\":\"NA\",\"email\":\"ashishm.21190@gmail.com\",\"phone\":\"+447755564318\",\"full_name\":\"Test test\",\"date_of_birth\":\"1970-07-10\",\"street_address\":\"10 New Burlington Street Apt. 214\",\"country\":\"CA\",\"city\":\"London\",\"zip_code\":\"W1S 3BE\",\"cc\":[],\"bcc\":[],\"gender\":\"MALE\",\"avatarUrl\":\"https://res.cloudinary.com/w22/image/upload/v1663783641/photos/currencies/ngn.png\",\"stateCode\":\"QLD\"},\"updated_on\":1743769856,\"type\":\"purchase\",\"paymentMethod\":\"INTERAC-ETRANSFER\",\"amountUnit\":\"MAJOR\",\"errorMsg\":\"\",\"redirectType\":\"GET\",\"force_recurring\":false,\"created_on\":1743769855,\"merchantRef\":\"67efd0ff97be603f97a3a697\",\"merchantName\":\"arunsinghal\",\"purchase\":{\"currency\":\"CAD\",\"products\":[{\"name\":\"test\",\"quantity\":1.0,\"price\":1.0,\"discount\":0,\"tax_percent\":\"0.00\"}],\"total\":1.0,\"language\":\"en\",\"notes\":\"\",\"debt\":0,\"total_formatted\":1.0,\"expireInMin\":\"43200\",\"taxAmount\":0.0,\"taxPercent\":0.0,\"request_client_details\":[],\"email_message\":\"\"},\"payment\":{\"is_outgoing\":false,\"payment_type\":\"PURCHASE\",\"amount\":1.0,\"currency\":\"CAD\",\"net_amount\":1.0,\"fee_amount\":0.0,\"pending_amount\":0.0,\"pending_unfreeze_on\":null,\"description\":\"\",\"paid_on\":1743769855,\"remote_paid_on\":1743769855},\"issuer_details\":{\"website\":\"\",\"legal_street_address\":\"\",\"legal_country\":\"\",\"legal_city\":\"\",\"legal_zip_code\":\"\",\"bank_accounts\":[{}],\"legal_name\":\"test6\",\"brand_name\":\"test6\",\"registration_number\":\"\",\"tax_number\":\"\"},\"transaction_data\":{\"payment_method\":\"\",\"flow\":\"payform\",\"extra\":{\"amount\":1.0,\"masked_pan\":\"INTERAC-ETRANSFER\"},\"country\":\"\",\"attempts\":[{\"client_ip\":\"103.59.75.41, 162.158.88.44, 130.176.93.146\",\"type\":\"execute\",\"payment_method\":\"INTERAC-ETRANSFER\",\"flow\":\"payform\",\"successful\":true,\"country\":\"INTERAC-ETRANSFER\",\"processing_time\":1743769855,\"extra\":{\"amount\":1.0,\"masked_pan\":\"INTERAC-ETRANSFER\"}}]},\"status\":\"PAYMENT_IN_PROCESS\",\"status_history\":[{\"status\":\"created\",\"timestamp\":1743769855},{\"status\":\"pending_execute\",\"timestamp\":1743769855},{\"status\":\"payment_in_process\",\"timestamp\":1743769856},{\"status\":\"viewed\",\"timestamp\":1744026697}],\"viewedOn\":1744026697,\"is_test\":false,\"brand_id\":\"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\"send_receipt\":false,\"is_recurring_token\":false,\"skip_capture\":false,\"reference_generated\":\"PS620\",\"issued\":\"2025-04-04\",\"due\":1743769855,\"refund_upto\":0,\"cc_descriptor\":\"Africhange Technologies\",\"fraudScore\":\"NA\",\"trustScore\":\"NA\",\"payInDetails\":{\"name\":\"INTERAC\",\"emailAddress\":\"transfer@ieft.ca\",\"secretQA\":\"66a8c78af1fc2f768304bce4\",\"secretAnswer\":\"ps8766a8af\"},\"paidOn\":0,\"receivedAmt\":0.0,\"refund_availability\":\"NONE\",\"refundable_amount\":0.0,\"success_redirect\":\"https://your.redirect.url/getResponse.jsp?success=true\",\"failure_redirect\":\"https://your.redirect.url/getResponse.jsp?success=false\",\"cancel_redirect\":\"\",\"success_callback\":\"https://your.success.callback.url\",\"failure_callback\":\"https://your.success.failure.url\",\"platform\":\"API\",\"created_from_ip\":\"103.59.75.41, 162.158.88.44, 130.176.93.146\",\"checkout_url\":\"https://api.choicepay.ca/payments/67efd0ff97be603f97a3a697/\",\"payoutProcess\":false}"}],"_postman_id":"e45ca8ad-5cdc-4303-8734-3361de947e2b"},{"name":"Get Status","id":"29baf744-b4c2-418c-a9d4-170bf32f69a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d85d2c54-d1e9-4269-b0e7-732c0cccc822","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"6790e75fa46a5a5bb0b00e55\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"Test test\",\n        \"date_of_birth\": \"1970-07-10\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"country\": \"CA\",\n        \"city\": \"London\",\n        \"zip_code\": \"W1S 3BE\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"gender\": \"MALE\",\n        \"stateCode\": \"QLD\"\n    },\n    \"updated_on\": 1737549752,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"Transaction succeeded-APPROVED\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1737549663,\n    \"merchantRef\": \"6790e75fa46a5a5bb0b00e55\",\n    \"merchantName\": \"arunsinghal\",\n    \"purchase\": {\n        \"currency\": \"CAD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1,\n                \"price\": 1,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 2,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"expireInMin\": \"43200\",\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 1,\n        \"currency\": \"CAD\",\n        \"net_amount\": 1,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1737549663,\n        \"remote_paid_on\": 1737549663\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 1,\n            \"masked_pan\": \"INTERAC-ETRANSFER\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.42, 172.71.186.102, 130.176.183.14\",\n                \"type\": \"execute\",\n                \"payment_method\": \"INTERAC-ETRANSFER\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"INTERAC\",\n                \"processing_time\": 1737549663,\n                \"extra\": {\n                    \"amount\": 1,\n                    \"masked_pan\": \"INTERAC-ETRANSFER\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1737549663\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1737549663\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1737549664\n        },\n        {\n            \"status\": \"paid 2.0\",\n            \"timestamp\": 1737549752\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1737549750\n        }\n    ],\n    \"viewedOn\": 1738749942,\n    \"is_test\": false,\n    \"brand_id\": \"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS376\",\n    \"issued\": \"2025-01-22\",\n    \"due\": 1737549663,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"Africhange Technologies\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"payInDetails\": {\n        \"name\": \"INTERAC\",\n        \"emailAddress\": \"deposit@ieft.ca\",\n        \"secretQA\": \"66a8c78af1fc2f768304bce4\",\n        \"secretAnswer\": \"ps8766a8af\"\n    },\n    \"paidOn\": 1737549752,\n    \"receivedAmt\": 2,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://webhook.site/83df9776-3590-4e25-9222-870e931ac868\",\n    \"failure_callback\": \"https://webhook.site/83df9776-3590-4e25-9222-870e931ac868\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.42, 172.71.186.102, 130.176.183.14\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/6790e75fa46a5a5bb0b00e55/\",\n    \"payoutProcess\": false\n}"},{"id":"744fb728-ab23-4bd9-ac18-afa8436257de","name":"Purchases Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Message\",\n    \"code\": \"error_code\"\n}"}],"_postman_id":"29baf744-b4c2-418c-a9d4-170bf32f69a1"}],"id":"85609870-fee5-4c82-8474-592bcd7b1b4c","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/cfWw_RYZ9eZVEKzKjeRW4I_VwbBTyqH78LUrJG6ulp7FkE1pXVD6DZr9MnQXB9KH_oLFasJDb156naCsBc2bgotPaVY7LtGOJNifpTOb5uks3fjAKpgVhU4dsXQmQ7hFKNFIVhZEl2p8fCN1YufsRaA\" />\n\n<ol>\n<li><p>The merchant initiates the purchase via the create purchase API. If successful, they receive PayIn details along with a checkout URL in the response JSON</p>\n</li>\n<li><p>The merchant then has 2 options</p>\n<ol>\n<li><p>Redirect the end-user to the checkoutURL present in the response, where the customer is shown the following details required to make Interac payments:</p>\n<ol>\n<li><p>Payment Amount</p>\n</li>\n<li><p>Deposit email address</p>\n</li>\n<li><p>Secret Question</p>\n</li>\n<li><p>Secret Answer</p>\n</li>\n</ol>\n</li>\n<li><p>Retrieve the PayIn details in the response JSON (as shown below) to create a webpage within the merchant’s IT estate, and show to user the PayIn instruction</p>\n</li>\n</ol>\n</li>\n<li><p>After a successful or failed payment by the end user, an appropriate webhook would be sent to the merchant. If option 2a was employed, the user would be redirected to the appropriate success or failure redirect URL.</p>\n</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> \"payInDetails\": {\n        \"name\": \"INTERAC-ETRANSFER\",\n        \"emailAddress\": \"deposit@ieft.ca\",\n        \"secretQA\": \"6789df35bbefe612e3cb4641\",\n        \"secretAnswer\": \"PS7466835\"\n   }\n\n</code></pre>\n","_postman_id":"85609870-fee5-4c82-8474-592bcd7b1b4c"},{"name":"PayOut API","item":[{"name":"Create PayOut","id":"35dc0a28-0cd4-412e-a416-cbe7a7c0078a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n       \"email\": \"ashishm.21190@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"+14377717874\",\r\n       \"full_name\": \"Test Person-uk\"\r\n       \r\n    },\r\n    \"purpose\" : \"Transfer Reversed\",\r\n    \"currency\" : \"CAD\",\r\n    \"payoutMethod\" : \"PAYOUT-INTERAC-ETRANSFER\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is /payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email client.phone</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>CA</td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td>PAYOUT-INTERAC-ETRANSFER</td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>CAD</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td>Payout Amount</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td>Transfer Reversed</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"47d1d902-41be-4ef7-b45b-44711a3699d0","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n       \"email\": \"ashishm.21190@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"+14377717874\",\r\n       \"full_name\": \"Test Person-uk\"\r\n       \r\n    },\r\n    \"purpose\" : \"test payout\",\r\n    \"currency\" : \"CAD\",\r\n    \"payoutMethod\" : \"PAYOUT-INTERAC-ETRANSFER\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"67efc0586720dd3a164fe8b3\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ajayqa77@gmail.com\",\n        \"phone\": \"+447755564318\",\n        \"full_name\": \"Test Person-uk\",\n        \"country\": \"CA\"\n    },\n    \"updated_on\": 1743765592,\n    \"payoutMethod\": \"PAYOUT-INTERAC-ETRANSFER\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 5,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1743765592,\n    \"merchantRef\": \"67efc0586720dd3a164fe8b3\",\n    \"merchantName\": \"arunsinghal\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1743765592\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1743765610\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1744025266\n        }\n    ],\n    \"viewedOn\": 1744026844,\n    \"currency\": \"CAD\",\n    \"paymentOn\": 1743765610,\n    \"success_callback\": \"https://success.com\",\n    \"failure_callback\": \"https://failure.com\"\n}"},{"id":"b9f74f9b-d41d-4042-ac59-e2d41987eee4","name":"create payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Insufficient Balance [5.23]\",\n    \"code\": \"transaction_error\"\n}"}],"_postman_id":"35dc0a28-0cd4-412e-a416-cbe7a7c0078a"},{"name":"Get Status","id":"7a012c24-02df-40d4-a769-631db72ffc38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"0c5effe8-506c-41a7-a073-dc2a4ced9ab9","name":"Get success Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"66bf2e76e3defc36cd575481\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"Ashish Mistry\",\n        \"country\": \"CA\"\n    },\n    \"updated_on\": 1723805728,\n    \"payoutMethod\": \"PAYOUT-INTERAC-ETRANSFER\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 12,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1723805302,\n    \"merchantRef\": \"66bf2e76e3defc36cd575481\",\n    \"merchantName\": \"arunsinghal\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1723805302\n        },\n        {\n            \"status\": \"payout_in_process\",\n            \"timestamp\": 1723805310\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1723805728\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1738750221\n        }\n    ],\n    \"viewedOn\": 1738750221,\n    \"currency\": \"USD\",\n    \"paymentOn\": 1723805728,\n    \"payOutDetails\": {\n        \"name\": \"INTERAC E-TRANSFER\",\n        \"emailAddress\": \"ashishm.21190@gmail.com\",\n        \"secretQA\": \"q66276336575481202\",\n        \"secretAnswer\": \"a66276336575481202\"\n    },\n    \"success_callback\": \"https://webhook.site/d7660184-d724-480c-bad0-cf0480f5518e\",\n    \"failure_callback\": \"https://webhook.site/d7660184-d724-480c-bad0-cf0480f5518e\"\n}"},{"id":"4e79ace1-40df-4e5d-a6c4-84dbf1b5d12e","name":"Get Error Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Message\",\n    \"code\": \"error_code\"\n}"}],"_postman_id":"7a012c24-02df-40d4-a769-631db72ffc38"}],"id":"bb6c68f1-425e-48b8-a022-e76cf7e13206","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/Uxy8jmp5RP-c360-oIMAZy2As8naqJdARgKsWU0x_BtszfJlwdRVM6-obffbtjTABfI9V0hxH4Ad-Ns96We42lIMdL434tTzLJ6aEQBt0dzX_ZXeM4RtG_kmEeem7WIsN520Zh5PS3xTFYNzOmks0ak\" />\n\n<ul>\n<li><p>The merchant initiates a PayOut via the payout API.</p>\n</li>\n<li><p>After a successful or failed payment attempt, the status is reflected on the response, and the details on the status history. You can also get the status through getStatus (purchases/{payID}) API.</p>\n</li>\n</ul>\n","_postman_id":"bb6c68f1-425e-48b8-a022-e76cf7e13206"},{"name":"Get Balance API","item":[{"name":"Checking Balance","id":"7947a19d-46b9-408b-9abb-5d126517c486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC-ETRANSFER\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance","description":"<h2 id=\"api-for-checking-available-balance\"><strong>API for checking available balance</strong></h2>\n<ol>\n<li><p>URL :- /getBalance/</p>\n</li>\n<li><p>RequestType: POST</p>\n</li>\n<li><p>Request Body</p>\n</li>\n</ol>\n<p>Note: Currency is not a mandatory parameter. If no parameter is specified then all respective currency balances would be provided, if any specific currency parameter is provided then only that currency balance would be provided.</p>\n","urlObject":{"path":["getBalance"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"69f06125-fb83-4c90-939c-91cd8dde8086","name":"Checking Balance payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC-ETRANSFER\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"currency\": \"AUD\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"currency\": \"BRL\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"currency\": \"EUR\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"currency\": \"INR\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"currency\": \"JPY\",\n            \"balance\": \"0.00\"\n        },\n        {\n            \"currency\": \"USD\",\n            \"balance\": \"0.00\"\n        }\n    ]\n}"},{"id":"c61ec6d0-8321-48e4-9df4-5c9515f4057d","name":"Checking Balance payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC-ETRANSFER\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Message\",\n    \"code\": \"No currency account found\"\n}"}],"_postman_id":"7947a19d-46b9-408b-9abb-5d126517c486"}],"id":"bc435b03-d04c-4483-9649-df9a4a83ba70","_postman_id":"bc435b03-d04c-4483-9649-df9a4a83ba70","description":""}],"id":"5c81dd80-f93b-4933-b356-419a3dc86557","_postman_id":"5c81dd80-f93b-4933-b356-419a3dc86557","description":""},{"name":"🇨🇦 Interac Express","item":[{"name":"Concepts","item":[],"id":"5f56e3b9-1909-4636-b5e4-00e4789a5eaf","description":"<h2 id=\"customer-payment-journey\">Customer Payment Journey</h2>\n<ol>\n<li><p><strong>Merchant creates a payment request</strong> via Paysecure API and receives a Reference ID.</p>\n</li>\n<li><p><strong>Customer is shown the Reference ID</strong>, the recipient email/mobile, and the exact amount.</p>\n</li>\n<li><p><strong>Customer logs into their bank</strong> and initiates a transfer using these details.</p>\n</li>\n<li><p><strong>Customer must input the Reference ID</strong> in the message/memo field of the transfer.</p>\n</li>\n<li><p><strong>Paysecure matches the Reference ID</strong> and the payment amount to validate the transaction.</p>\n</li>\n</ol>\n<h3 id=\"edge-cases\">Edge Cases</h3>\n<ul>\n<li><p><strong>Incorrect or Missing Reference ID</strong>: Payment cannot be matched. The transaction will not be marked as successful and the amount will be auto-refunded after the transaction expires.</p>\n</li>\n<li><p><strong>Overpayment</strong>: The transaction will be marked as <strong>Paid</strong> and the excess amount will be <strong>auto-refunded</strong> to the customer.</p>\n</li>\n<li><p><strong>Underpayment</strong>: The transaction remains in <strong>In Progress</strong> status. The customer can:</p>\n<ul>\n<li><p>Pay the remaining amount using the same Reference ID, which will update the status to <strong>Paid</strong>, OR</p>\n</li>\n<li><p>Wait for expiry, after which the initial payment is <strong>auto-refunded</strong>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Expired Transactions</strong>: All transactions are valid for <strong>24 hours</strong>. Any payment made after expiry is <strong>auto-refunded</strong>.</p>\n</li>\n</ul>\n","_postman_id":"5f56e3b9-1909-4636-b5e4-00e4789a5eaf"},{"name":"Payin API","item":[{"name":"Purchases","id":"bc634370-fd90-4f60-84b5-fc081c1dacf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test Customer\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"INTERAC-EXPRESS\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://tyour.redirect.url/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.  <br />This should be \"CA\" for Interac</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />This should be 'CAD' for Interac</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td>name of the product or service</td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>The <code>purchase.expireInMin</code>, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"cb4e1a33-95e3-4271-bbe9-255abfe39a9a","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"INTERAC-EXPRESS\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.redirect.url/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"6890aba7faa4173bbbbb76c6\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"seo2009@test.com\",\n        \"phone\": \"+447755564318\",\n        \"full_name\": \"Test test\",\n        \"date_of_birth\": \"1970-07-10\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"country\": \"CA\",\n        \"city\": \"London\",\n        \"zip_code\": \"W1S 3BE\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"QLD\"\n    },\n    \"updated_on\": 1754311599,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"INTERAC-EXPRESS\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1754311591,\n    \"extraParam\": {\n        \"reference\": \"wkdjabf43\"\n    },\n    \"merchantRef\": \"6890aba7faa4173bbbbb76c6\",\n    \"merchantName\": \"arunsinghal\",\n    \"purchase\": {\n        \"currency\": \"CAD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1.0,\n                \"price\": 100.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100.0,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1.0,\n        \"expireInMin\": \"1440\",\n        \"taxAmount\": 0.0,\n        \"taxPercent\": 0.0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 100.0,\n        \"currency\": \"CAD\",\n        \"net_amount\": 100.0,\n        \"fee_amount\": 0.0,\n        \"pending_amount\": 0.0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1754311592,\n        \"remote_paid_on\": 1754311592\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 100.0,\n            \"masked_pan\": \"INTERAC-EXPRESS\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.176, 104.23.216.90, 18.68.12.74\",\n                \"type\": \"execute\",\n                \"payment_method\": \"INTERAC-EXPRESS\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"INTERAC-EXPRESS\",\n                \"processing_time\": 1754311592,\n                \"extra\": {\n                    \"amount\": 100.0,\n                    \"masked_pan\": \"INTERAC-EXPRESS\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1754311591\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1754311592\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1754311599\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\n    \"is_recurring_token\": false,\n    \"reference_generated\": \"PS1060\",\n    \"issued\": \"2025-08-04\",\n    \"due\": 1754311591,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"0\",\n    \"trustScore\": \"0\",\n    \"payInDetails\": {\n        \"name\": \"INTERAC E-TRANSFER\",\n        \"emailAddress\": \"fund@ieft.ca\",\n        \"reference_number\": \"8g1lya\"\n    },\n    \"paidOn\": 0,\n    \"receivedAmt\": 0.0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0.0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.176, 104.23.216.90, 18.68.12.74\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/6890aba7faa4173bbbbb76c6/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"bc634370-fd90-4f60-84b5-fc081c1dacf5"}],"id":"a1b76271-45d4-4e9a-88bf-99bf3187c349","description":"<h3 id=\"how-it-works\">How It Works</h3>\n<p>Interac-Express uses a <strong>Reference ID-based flow</strong> to streamline collections. Merchants generate a transaction-specific ID which customers must include when transferring funds from their bank account. This ensures precise, secure, and automated payment reconciliation.</p>\n<h4 id=\"key-steps\">Key Steps</h4>\n<p><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Initiate Payment Request</strong><br /> Merchant initiates a PayIn by calling the <code>/purchases</code> API. The request must include:</p>\n<ul>\n<li><p><code>paymentMethod</code>: <code>INTERAC-EXPRESS</code></p>\n</li>\n<li><p>Customer email or mobile</p>\n</li>\n<li><p>Amount</p>\n</li>\n<li><p>Optional message</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Reference ID Generation</strong><br /> Paysecure returns a unique <code>Reference ID</code> associated with the transaction. This ID is valid for 24 hours and must be included by the customer in the message/memo field during their bank transfer.</p>\n</li>\n<li><p><strong>Customer Transfer</strong><br /> The customer logs into their online or mobile banking, inputs the transfer amount, adds the Paysecure-provided email or mobile, and includes the Reference ID exactly as provided.</p>\n</li>\n<li><p><strong>Validation &amp; Matching</strong><br /> Paysecure validates the incoming transfer by matching the Reference ID and amount.</p>\n<ul>\n<li><p>If matched correctly, the transaction is marked as successful.</p>\n</li>\n<li><p>See edge cases above for incorrect, underpaid, overpaid, or expired scenarios.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Webhook Notification</strong><br /> Once the transfer is matched and verified, Paysecure sends a webhook to the merchant with full transaction details and status.</p>\n</li>\n<li><p><strong>Merchant Reconciliation</strong><br /> Merchant updates the customer account or order status based on the received webhook data.</p>\n</li>\n</ol>\n","_postman_id":"a1b76271-45d4-4e9a-88bf-99bf3187c349"},{"name":"Payout API","item":[{"name":"Create Payout","id":"6a4c46f8-42b0-4cee-bc95-bf7c120a851e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n       \"email\": \"ashishm.21190@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"+14377717874\",\r\n       \"full_name\": \"Test Person-uk\"\r\n       \r\n    },\r\n    \"purpose\" : \"Transfer Reversed\",\r\n    \"currency\" : \"CAD\",\r\n    \"payoutMethod\" : \"PAYOUT-INTERAC-ETRANSFER\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is /payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email client.phone</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>CA</td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td>PAYOUT-INTERAC-EXPRESS</td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>CAD</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td>Payout Amount</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td>Transfer Reversed</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"5b907613-44cc-4eab-8a01-081d3309e423","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n       \"email\": \"ashishm.21190@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"+14377717874\",\r\n       \"full_name\": \"Test Person-uk\"\r\n       \r\n    },\r\n    \"purpose\" : \"test payout\",\r\n    \"currency\" : \"CAD\",\r\n    \"payoutMethod\" : \"PAYOUT-INTERAC-EXPRESS\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"67efc0586720dd3a164fe8b3\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"CA\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"Test Person-uk\"\n    },\n    \"updated_on\": 1743765592,\n    \"payoutMethod\": \"PAYOUT-INTERAC-EXPRESS\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 10,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1743765592,\n    \"merchantRef\": \"67efc0586720dd3a164fe8b3\",\n    \"merchantName\": \"arunsinghal\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1743765592\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1743765610\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1744025266\n        }\n    ],\n    \"viewedOn\": 1744026844,\n    \"currency\": \"CAD\",\n    \"paymentOn\": 1743765610,\n    \"success_callback\": \"https://success.com\",\n    \"failure_callback\": \"https://failure.com\"\n}"}],"_postman_id":"6a4c46f8-42b0-4cee-bc95-bf7c120a851e"}],"id":"9d79299c-2708-4e0a-8c6c-9e8495146414","description":"<h3 id=\"how-it-works\">How It Works</h3>\n<p>Merchants can send funds to customers using Interac-Express by specifying the recipient’s email or mobile. Funds are typically delivered in real-time, depending on the recipient’s bank setup.</p>\n<h4 id=\"key-steps\">Key Steps</h4>\n<p><strong>Flow:</strong></p>\n<ol>\n<li><p><strong>Initiate Payout Request</strong><br /> Merchant initiates a payout using the <code>/payout</code> API, passing:</p>\n<ul>\n<li><p><code>paymentMethod</code>: <code>INTERAC-EXPRESS</code></p>\n</li>\n<li><p>Recipient email or mobile number</p>\n</li>\n<li><p>Amount</p>\n</li>\n<li><p>Optional message</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Recipient Notification</strong><br /> The customer receives a notification from their bank to accept the incoming funds. If the recipient has <strong>Auto-Deposit</strong> enabled, funds are deposited instantly. Otherwise, the customer must manually claim the payment via the bank’s standard process.</p>\n</li>\n<li><p><strong>Webhook Confirmation</strong><br /> Paysecure notifies the merchant via webhook once the payout has been successfully claimed or credited.</p>\n</li>\n<li><p><strong>Update Records</strong><br /> Merchant updates the customer's profile or balance based on payout status.</p>\n</li>\n</ol>\n<hr />\n","_postman_id":"9d79299c-2708-4e0a-8c6c-9e8495146414"}],"id":"3888c25d-efd4-42d9-972e-88e1dae19338","description":"<h3 id=\"overview\">Overview</h3>\n<p>Interac-Express is a real-time Canadian payment method that enables secure bank-to-bank transfers through customer-initiated actions via their banking apps or websites. It’s designed for fast, reference-based validation—no security questions, no delays.</p>\n<p>Paysecure enables merchants to use Interac-Express for:</p>\n<ul>\n<li><p><strong>PayIns</strong>: Customers initiate bank transfers referencing a unique ID tied to their transaction.</p>\n</li>\n<li><p><strong>Payouts</strong>: Businesses can send funds directly to customer accounts in near real-time.</p>\n</li>\n</ul>\n","_postman_id":"3888c25d-efd4-42d9-972e-88e1dae19338"},{"name":"🇧🇷 PIX","item":[{"name":"Concepts","item":[],"id":"eae25d0c-ed91-41f2-8843-c13407e6d3ef","description":"<h2 id=\"payin-flows\">PayIn Flows</h2>\n<p><strong>How it works</strong><br />To initiate a PIX payment, a payer can scan the code using their PIX payment app (such as Itau, NuBank, etc).<br />These codes comply with BCB’s infrastructure requirements to ensure that the merchant's details are stored securely and there are no errors during the<br />payment journey</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/UcxDawvzgu9zw6gCa8i_KrzNRn2baEIsJOJfAkuyBWu9yl3Hky5JyA0xQnNrT18ovLe4Lwl2sdD0kjKMFQUrYUMvnKimvRbxLio0pd5xjNy63PlYeV4phxMspF6sYGLug0OHaw__oWW8UE8m2Nt-3XA\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p>Merchant platforms can create a dynamic QR code by passing the relevant parameter using Paysecure’s API.</p>\n</li>\n<li><p>The platform can display the dynamic QR code on its app or any website at checkout or on a third-party app.</p>\n</li>\n<li><p>The payer scans the QR code from the PIX app of their choice on their mobile.</p>\n</li>\n<li><p>The payer authorizes the transaction on the app by entering a valid PIN.</p>\n</li>\n<li><p>Once the payment is done, the merchant platform receives a transaction status callback from Paysecure to a pre-configured endpoint.</p>\n</li>\n<li><p>The platform can also check the request status using the reference ID generated from the collection request using the Check Payment Status API.</p>\n</li>\n</ul>\n<h2 id=\"payout-flows\"><strong>PayOut flows</strong></h2>\n<p><strong>How it works</strong></p>\n<p>To initiate a payout, the merchant has to give Paysecure the PIX details such as the recipient's PIX key (e.g., CPF/CNPJ, phone number, or email), amount, and any additional information.</p>\n<p>If the merchant has enough balance, then the transaction amount will be deducted from the merchant balance and sent to the user.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/ezT3e0yYTc3TGWJ87RKK6sQpMhbgfr5Q-NfSMxnjz4WTxMJs5tr9-mUME-a2PpvYtA8QOrrKGw29dQFHdGcLsBiNW-jF-xiFxbuJZa0a7jd-zI3aIe6mO-JVSj6NIwiTyvBU_VVGGLdtOrjmX8Usf1k\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p><strong>Initiation:</strong></p>\n<ul>\n<li><p><strong>User initiates:</strong> The process starts with a user requesting payout from the merchant.</p>\n</li>\n<li><p><strong>Merchant approval:</strong> if everything is OK, the merchant approves payout request</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Processing:</strong></p>\n<ul>\n<li><p><strong>Payment details:</strong> Using Paysecure’s API, the merchant provides the recipient's Pix key (which can be a phone number, email, CPF/CNPJ, or random key) and the transfer amount.</p>\n</li>\n<li><p><strong>Funds check:</strong> Paysecure verifies if sufficient funds are available in the merchant account to cover the transfer.</p>\n</li>\n<li><p><strong>Processing &amp; Key mapping:</strong> the recipient's Pix key is validated using the DICT (Transactional Identifier Directory). This central database links Pix keys with users' bank accounts.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Payout:</strong></p>\n<ul>\n<li><strong>Instant transfer:</strong> If everything checks out, the payer's bank instantly transfers the funds to the recipient's bank account. The recipient typically receives confirmation messages from their respective bank about the successful transaction.</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"eae25d0c-ed91-41f2-8843-c13407e6d3ef"},{"name":"PayIn API","item":[{"name":"Purchases","id":"376fce32-c531-457b-804c-f40606a7cd5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"full_name\": \"test test\",\r\n        \"tax_number\": \"39933551809\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"BRL\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"PIX\",\r\n    \"merchantRef\": \"test12\",\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814 \",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>client.email</td>\n<td></td>\n</tr>\n<tr>\n<td>client.tax_number</td>\n<td>CPF (Brazilian tax identification number of customer), must contain 11 digits</td>\n</tr>\n<tr>\n<td>paymentMethod</td>\n<td>PIX</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />This should be 'BRL' for PIX</td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> the object “pix_payload.payload” contains all the necessary fields to create a page containing a QR code and other information on the merchant portal. The field “pix_payload.qr_code” value is in Base64. This can be used to show the QR code image.</p>\n<h2 id=\"essential-optional-parameters\">Essential Optional Parameters</h2>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n<tr>\n<td>some Mandatory Parameter are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid Email Format</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Merchant Limit is not set</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>Brand not found!</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Only <code>“{curr_name}\"</code> currency is allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid_Parameter</td>\n<td>You'd usually get it when one or more mandatory parameters are not present in the request.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6a257103-966c-458d-8181-1d81fa14881e","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"full_name\": \"test test\",\r\n        \"tax_number\": \"39933551809\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"BRL\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"PIX\",\r\n    \"merchantRef\": \"test12\",\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814 \",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n   \"purchaseId\": \"65f9368cb905381ba207b3c4\",\r\n   \"client\": {\r\n       \"email\": \"test@gmail.com\",\r\n       \"full_name\": \"Test test\",\r\n       \"tax_number\": \"39933551809\"\r\n   },\r\n   \"updated_on\": 1710831244,\r\n   \"type\": \"purchase\",\r\n   \"paymentMethod\": \"PIX\",\r\n   \"amountUnit\": \"MAJOR\",\r\n   \"errorMsg\": \"\",\r\n   \"redirectType\": \"POST\",\r\n   \"force_recurring\": false,\r\n   \"created_on\": 1710831244,\r\n   \"merchantRef\": \"65f9368cb905381ba207b3c4\",\r\n   \"merchantName\": \"test\",\r\n   \"purchase\": {\r\n       \"currency\": \"USD\",\r\n       \"products\": [\r\n           {\r\n               \"price\": 10.0\r\n           }\r\n       ],\r\n       \"total\": 10.0,\r\n       \"language\": \"en\",\r\n       \"total_formatted\": 1.0,\r\n       \"timezone\": \"MIT\"\r\n   },\r\n   \"issuer_details\": {\r\n       \"bank_accounts\": [\r\n           {\r\n               \"bank_account\": \"\",\r\n               \"bank_code\": \"\"\r\n           }\r\n       ],\r\n       \"legal_name\": \"newbrand\",\r\n       \"brand_name\": \"newbrand\"\r\n   },\r\n   \"transaction_data\": {},\r\n   \"status\": \"CREATED\",\r\n   \"status_history\": [\r\n       {\r\n           \"status\": \"created\",\r\n           \"timestamp\": 1710831244\r\n       }\r\n   ],\r\n   \"pix_payload\": {\r\n       \"payload\": \"00020101021226800014br.gov.bcb.pix2558pix.asaas.com/qr/cobv/e3eb36eb-7e9b-404d-9bd3-b486a42da3445204000053039865802BR5925A55 CONSULTORIA EM CREDIT6009Sao Paulo61080455202062070503***630451CA\",\r\n       \"qr_code\": \"iVBORw0KGgoAAAANSUhEUgAAAZ8AAAGfCAIAAAAPgEjDAAAP4UlEQVR42u3bUY7cSA4EUN … ..\",\r\n       \"expiration_date\": \"2025-03-27 23:59:59\"\r\n   },\r\n   \"is_test\": false,\r\n   \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814\",\r\n   \"send_receipt\": false,\r\n   \"is_recurring_token\": false,\r\n   \"skip_capture\": false,\r\n   \"reference_generated\": \"PS2696\",\r\n   \"issued\": \"2024-03-19\",\r\n   \"due\": 1710831244,\r\n   \"refund_upto\": 0,\r\n   \"cc_descriptor\": \"\",\r\n   \"fraudScore\": \"NA\",\r\n   \"trustScore\": \"NA\",\r\n   \"refund_availability\": \"NONE\",\r\n   \"refundable_amount\": 0.0,\r\n   \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n   \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n   \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n   \"cancel_redirect\": \"\",\r\n   \"success_callback\": \"https://test1.com\",\r\n   \"failure_callback\": \"https://test2.com\",\r\n   \"platform\": \"API\",\r\n   \"created_from_ip\": \"223.182.100.34\",\r\n   \"checkout_url\": \"https://api.paysecure.net/payments/65f9368cb905381ba207b3c4/\"\r\n}\r\n"},{"id":"c5b0b4b9-53fa-4743-9c13-45bd90d0a814","name":"Purchase-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"GB\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"USD\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"brand_id\": \"{{SriTrustScoreTestBrandID}}\",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"376fce32-c531-457b-804c-f40606a7cd5b"},{"name":"Purchases","id":"f4ff3096-4e08-45df-a423-71f4bec15fdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>The purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"93ac84af-46ef-4611-9fc6-99529c4b2e9f","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n   \"purchaseId\": \"65f9368cb905381ba207b3c4\",\r\n   \"client\": {\r\n       \"email\": \"test@gmail.com\",\r\n       \"full_name\": \"Test test\",\r\n       \"tax_number\": \"39933551809\"\r\n   },\r\n   \"updated_on\": 1710831244,\r\n   \"type\": \"purchase\",\r\n   \"paymentMethod\": \"PIX\",\r\n   \"amountUnit\": \"MAJOR\",\r\n   \"errorMsg\": \"\",\r\n   \"redirectType\": \"POST\",\r\n   \"force_recurring\": false,\r\n   \"created_on\": 1710831244,\r\n   \"merchantRef\": \"65f9368cb905381ba207b3c4\",\r\n   \"merchantName\": \"test\",\r\n   \"purchase\": {\r\n       \"currency\": \"USD\",\r\n       \"products\": [\r\n           {\r\n               \"price\": 10.0\r\n           }\r\n       ],\r\n       \"total\": 10.0,\r\n       \"language\": \"en\",\r\n       \"total_formatted\": 1.0,\r\n       \"timezone\": \"MIT\"\r\n   },\r\n   \"issuer_details\": {\r\n       \"bank_accounts\": [\r\n           {\r\n               \"bank_account\": \"\",\r\n               \"bank_code\": \"\"\r\n           }\r\n       ],\r\n       \"legal_name\": \"newbrand\",\r\n       \"brand_name\": \"newbrand\"\r\n   },\r\n   \"transaction_data\": {},\r\n   \"status\": \"CREATED\",\r\n   \"status_history\": [\r\n       {\r\n           \"status\": \"created\",\r\n           \"timestamp\": 1710831244\r\n       }\r\n   ],\r\n   \"is_test\": false,\r\n   \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814\",\r\n   \"send_receipt\": false,\r\n   \"is_recurring_token\": false,\r\n   \"skip_capture\": false,\r\n   \"reference_generated\": \"PS2696\",\r\n   \"issued\": \"2024-03-19\",\r\n   \"due\": 1710831244,\r\n   \"refund_upto\": 0,\r\n   \"cc_descriptor\": \"\",\r\n   \"fraudScore\": \"NA\",\r\n   \"trustScore\": \"NA\",\r\n   \"refund_availability\": \"NONE\",\r\n   \"refundable_amount\": 0.0,\r\n   \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n   \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n   \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n   \"cancel_redirect\": \"\",\r\n   \"success_callback\": \"https://test1.com\",\r\n   \"failure_callback\": \"https://test2.com\",\r\n   \"platform\": \"API\",\r\n   \"created_from_ip\": \"223.182.100.34\",\r\n   \"checkout_url\": \"https://api.paysecure.net/payments/65f9368cb905381ba207b3c4/\"\r\n}\r\n"},{"id":"2303436f-4a3c-41dc-aa4b-688d323dcd7e","name":"Purchases-failure","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"f4ff3096-4e08-45df-a423-71f4bec15fdb"}],"id":"8c6160a0-b4ee-4363-ac80-3e44aa4a588d","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/QiIrZmMWISniXvk4h0Wpq5y4QDrWlUNK8cVUra7HhfDL9B12sdZv7kwGJ24R8Hs6AKPLRKZJafk1p5S3jCikw0V1lIBTVUy67hEgNRNNjH5Q2HysOP-3HlHZAjZiVvPsohyopIwZA48ejeFF0Ul1PX4\" />\n\n<ol>\n<li><p><strong>Initiate Purchase:</strong> The merchant calls the create purchase API to start the purchase process.</p>\n</li>\n<li><p><strong>Get Checkout URL:</strong> If the API call is successful, the response body contains a checkout URL.</p>\n</li>\n<li><p><strong>Redirect Client:</strong> The merchant redirects the client to the checkout URL received.</p>\n</li>\n<li><p><strong>Client Payment:</strong> The client is presented with a QR code to complete the payment.</p>\n<ol>\n<li>Please note that instead of redirecting to the checkout URL, the information to create a page on the merchant’s digital estate itself containing the QR code and other information can be achieved by utilizing the data on the “pix_payload“ object in the response.</li>\n</ol>\n</li>\n<li><p><strong>Payment Outcome:</strong> After the payment attempt, the client is redirected to a URL indicating success or failure, which was specified in the create purchase API.</p>\n</li>\n<li><p><strong>Callback Posting:</strong> Upon successful or failed payment, the entire payload of the transaction is posted to designated success or failure callback URLs.</p>\n</li>\n</ol>\n","_postman_id":"8c6160a0-b4ee-4363-ac80-3e44aa4a588d"},{"name":"PayOut API","item":[{"name":"Create PayOut","id":"b81145a6-d582-4ae4-b3b6-8ac82c26dc79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n   \"client\": {\r\n       \"email\": \"test@gmail.com\",\r\n       \"full_name\": \"Test test\",\r\n       \"documentId\": \" 97c1c590-554b-4449-a0f1-8da9f9756937\",\r\n       \"documentType\": \"evp\"\r\n   },\r\n   \"purpose\": \"payout to test\",\r\n   \"payoutMethod\": \"Payout-PIX\",\r\n   \"amount\": 10,\r\n   \"currency\": \"BRL\",\r\n   \"success_callback\": \"https://success.com\",\r\n   \"failure_callback\": \"https://failure.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payout, the very first call to make is/payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a PayOut, you are required to provide the <code>API key</code> (in the header), which can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>client.documentId</td>\n<td>Document Type Supported</td>\n</tr>\n<tr>\n<td>cpf='tax_id Brazil',</td>\n<td></td>\n</tr>\n<tr>\n<td>cnpj='tax_id Brazil company',</td>\n<td></td>\n</tr>\n<tr>\n<td>evp='random key generated by the bank',</td>\n<td></td>\n</tr>\n<tr>\n<td>email='email as key to receive pix',</td>\n<td></td>\n</tr>\n<tr>\n<td>phone='phone as key to receive pix' )</td>\n<td></td>\n</tr>\n<tr>\n<td>client.documentType</td>\n<td></td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td></td>\n</tr>\n<tr>\n<td>Amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"8f4da4f3-7ce1-4758-a1d5-a81816856da4","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n   \"client\": {\r\n       \"email\": \"test@gmail.com\",\r\n       \"full_name\": \"Test test\",\r\n       \"documentId\": \" 97c1c590-554b-4449-a0f1-8da9f9756937\",\r\n       \"documentType\": \"evp\"\r\n   },\r\n   \"purpose\": \"payout to test\",\r\n   \"payoutMethod\": \"Payout-PIX\",\r\n   \"amount\": 10,\r\n   \"currency\": \"BRL\",\r\n   \"success_callback\": \"https://Success.com\",\r\n   \"failure_callback\": \"https://failure.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n   \"payoutId\": \"65f93895c96bae142f7b1765\",\r\n   \"client\": {\r\n       \"email\": \" test@gmail.com \",\r\n       \"full_name\": \"Test test\",\r\n       \"documentId\": \"97c1c590-554b-4449-a0f1-8da9f9756937\",\r\n       \"documentType\": \"evp\",\r\n   },\r\n   \"updated_on\": 1710831765,\r\n   \"payoutMethod\": \"Payout-PIX\",\r\n   \"amountUnit\": \"MAJOR\",\r\n   \"amount\": 20.0,\r\n   \"errorMsg\": \"errors.wallet.transfer_balance_insufficient\",\r\n   \"created_on\": 1710831768,\r\n   \"merchantRef\": \"65f93895c96bae142f7b1765\",\r\n   \"merchantName\": \"test\",\r\n   \"status\": \"ERROR\",\r\n   \"status_history\": [\r\n       {\r\n           \"status\": \"created\",\r\n           \"timestamp\": 1710831765\r\n       },\r\n       {\r\n           \"status\": \"error\",\r\n           \"timestamp\": 1710831768\r\n       }\r\n   ],\r\n   \"currency\": \"BRL\",\r\n   \"success_callback\": https: //success.com\r\n   \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"88590aa4-b287-4c66-b6cb-3f018c69e31b","name":"create payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n   \"client\": {\r\n       \"email\": \"test@gmail.com\",\r\n       \"full_name\": \"Test test\",\r\n       \"documentId\": \" 97c1c590-554b-4449-a0f1-8da9f9756937\",\r\n       \"documentType\": \"evp\"\r\n   },\r\n   \"purpose\": \"payout to test\",\r\n   \"payoutMethod\": \"Payout-PIX\",\r\n   \"amount\": 10,\r\n   \"currency\": \"BRL\",\r\n   \"success_callback\": \"https://Success.com\",\r\n   \"failure_callback\": \"https://failure.com\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":" {\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"b81145a6-d582-4ae4-b3b6-8ac82c26dc79"},{"name":"Get Status","id":"38ac9e25-85e2-4d3d-934b-fb89a0c3f103","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e7fc47a3-c9e2-4a88-91db-bbe08f2ff81d","name":"Get Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n   \"payoutId\": \"65f93895c96bae142f7b1765\",\r\n   \"client\": {\r\n       \"email\": \"customer141@email.uk\",\r\n       \"full_name\": \"Test Person-uk\",\r\n       \"documentId\": \"97c1c590-554b-4449-a0f1-8da9f9756937\",\r\n       \"documentType\": \"evp\",\r\n   },\r\n   \"updated_on\": 1710831765,\r\n   \"payoutMethod\": \"Payout-PIX\",\r\n   \"amountUnit\": \"MAJOR\",\r\n   \"amount\": 20.0,\r\n   \"errorMsg\": \"errors.wallet.transfer_balance_insufficient\",\r\n   \"created_on\": 1710831768,\r\n   \"merchantRef\": \"65f93895c96bae142f7b1765\",\r\n   \"merchantName\": \"test\",\r\n   \"status\": \"ERROR\",\r\n   \"status_history\": [\r\n       {\r\n           \"status\": \"created\",\r\n           \"timestamp\": 1710831765\r\n       },\r\n       {\r\n           \"status\": \"error\",\r\n           \"timestamp\": 1710831768\r\n       }\r\n   ],\r\n   \"currency\": \"EUR\",\r\n   \"success_callback\": https: //Success.com\r\n   \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"e7a24ca2-d30f-4dc8-882c-6b03b3befef1","name":"Get Status-error","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"38ac9e25-85e2-4d3d-934b-fb89a0c3f103"}],"id":"909a0b46-2cce-426e-9baa-a35168c41973","description":"<p><strong>Payout API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/C3wVvecNtQw4_DB4-8CRpFabuqko5aLMycrWTkTjyCTHPuK1Of3lNOiyyTV2wKCwT0gLmsFZkfAgJ4sa6NHBp3ea0l6dD9gJAX2FQhOTG4p7pa-YZzQRXY5aHsYOB8uGk76XIcBZ7rLq9G4gHbHnYqU\" />\n\n<p><strong>API Steps</strong></p>\n<ul>\n<li><p>The merchant initiates a PayOut via the payout API.</p>\n</li>\n<li><p>After a successful or failed payment attempt, the status is reflected on the response and the details of the status history.</p>\n</li>\n<li><p>To get the status of the transaction, call “/purchases/{purchaseId}/” API.</p>\n</li>\n</ul>\n","_postman_id":"909a0b46-2cce-426e-9baa-a35168c41973"},{"name":"Get Balance API","item":[{"name":"Checking Balance","id":"e9bd6586-5bfa-463a-9b48-8a27b43ecdcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance","description":"<h2 id=\"api-for-checking-balance-payout\"><strong>API for Checking Balance payout</strong></h2>\n<ol>\n<li><p>URL :- /getBalance/</p>\n</li>\n<li><p>RequestType: POST</p>\n</li>\n<li><p>Request Body</p>\n</li>\n</ol>\n<p>Note: Currency is not a mandatory parameter. If no parameter is specified then all respective currency balances would be provided, if any specific currency parameter is provided then only that currency balance would be provided.</p>\n","urlObject":{"path":["getBalance"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4dafb601-e4cf-4e47-b97b-302e28e75f8e","name":"Checking Balance payout-success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"PIX\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"paymentMethod\": \"PIX\",\r\n    \"status\": \"success\",\r\n    \"data\": [\r\n        {\r\n            \"currency\": \"BRL\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"USD\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"JPY\",\r\n            \"balance\": \"0.00\"\r\n        }\r\n    ]\r\n}\r\n"},{"id":"71885d48-81c9-4d1e-91c4-4f40616a515a","name":"Checking Balance payout-error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"PIX\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"No currency account found\"\r\n}\r\n"}],"_postman_id":"e9bd6586-5bfa-463a-9b48-8a27b43ecdcd"}],"id":"e85660b5-0b46-4d89-87df-24b4abaa57ff","_postman_id":"e85660b5-0b46-4d89-87df-24b4abaa57ff","description":""}],"id":"17f71af3-a2c1-45c8-8f08-9afbb66acfea","_postman_id":"17f71af3-a2c1-45c8-8f08-9afbb66acfea","description":""},{"name":"🇪🇬 FawryPay","item":[{"name":"Concepts","item":[],"id":"4fde9306-7354-4a0d-b632-9085750aa3fc","description":"<h2 id=\"fawry-overview\">Fawry Overview</h2>\n<p>Fawry is a leading Egyptian payment network that facilitates secure, online and offline transactions across various financial services. It offers multiple payment options, including Fawry Pay, enabling seamless transactions between businesses and consumers.</p>\n<p>Fawry Pay allows users to make and receive payments directly through various channels, such as retail points, mobile apps, and online platforms. It provides a fast, secure, and convenient alternative to traditional payment methods, accessible through numerous banks and financial institutions in Egypt.</p>\n<h3 id=\"paysecures-fawry-product-suite-enables-merchants-to-initiate\"><strong>Paysecure’s Fawry product suite enables merchants to initiate:</strong></h3>\n<ul>\n<li><p>PayIns: Consumers can use Fawry Pay to transfer funds from their bank account or via Fawry’s extensive network of retail locations and online services.</p>\n</li>\n<li><p>Payouts*: Facilitate real-time disbursements directly to consumers' accounts or through Fawry's network.</p>\n</li>\n</ul>\n<p>*Note: Payouts APIs are under development and will be availabe soon</p>\n<h2 id=\"payin-flows\">PayIn Flows</h2>\n<p><strong>How it works</strong></p>\n<p>Paysecure’s Fawry PayIn leverages Fawry’s payment network to support a wide range of collection scenarios. Merchants can initiate payment requests via various channels such as mobile apps, online platforms, or physical retail points, providing secure, efficient, and flexible options for collecting payments from customers.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://content.pstmn.io/f6db7c5d-71f5-4e5e-aeb8-e238de5cff02/aW1hZ2UucG5n\" width=\"1351\" height=\"472\" />\n\n<p><strong>PayIn Flow</strong></p>\n<ul>\n<li><p>Initiate Payment: The customer initiates a payment by clicking on a ”Pay with FAWRY” button and selecting the deposit amount on the merchant’s website or app.</p>\n</li>\n<li><p>Receive Unique Reference Code: The customer is provided with a unique reference code for the payment.</p>\n</li>\n<li><p>Go to Fawry Agent: The customer visits a Fawry agent, which can be any shop or retail location within Fawry’s extensive network.</p>\n</li>\n<li><p>Provide Reference Code: The customer provides the unique reference code to the Fawry agent.</p>\n</li>\n<li><p>Make Payment: The customer pays the amount due in cash or through available electronic payment methods at the Fawry agent.</p>\n</li>\n<li><p>Receive Confirmation: The customer receives a confirmation message indicating that the payment was successful, either via SMS, email, or app notification.</p>\n</li>\n</ul>\n<h2 id=\"transaction-limits\">Transaction Limits:</h2>\n<h3 id=\"pay-ins\">Pay Ins:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>10 EGP</td>\n<td>100,000 EGP</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Per User</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Per Month</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"pay-outs\">Pay Outs:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>100 EGP</td>\n<td>150,000 EGP</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Per User</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>Per Month</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"4fde9306-7354-4a0d-b632-9085750aa3fc"},{"name":"PayIn API","item":[{"name":"Purchases","id":"fde59306-2f88-44ac-8c67-72458ddb53e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"DEEPAKDEEPAKSINGHAL@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"EG\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"EGP\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"FawryPay\",\r\n    \"brand_id\": \"{{brand_id}}\",\r\n    \"success_redirect\": \"https://your.success.redirect.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case. Example “SG” (Alpha2)</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />Please note, the currency has to be enbaled by the account manager for your account.</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"42262395-ca92-4bee-9f67-8a310cf8ded1","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"DEEPAKDEEPAKSINGHAL@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"EG\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"EGP\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"FawryPay\",\r\n    \"brand_id\": \"{{brand_id}}\",\r\n    \"success_redirect\": \"https://your.success.redirect.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"667cfb2cf0bd8d672c8fc562\",\r\n    \"client\": {\r\n        \"email\": \"deepakdeepaksinghal@gmail.com\",\r\n        \"phone\": \"+447755564318\",\r\n        \"full_name\": \"Test test\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"country\": \"EG\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"cc\": [],\r\n        \"bcc\": [],\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"updated_on\": 1719466796,\r\n    \"type\": \"purchase\",\r\n    \"paymentMethod\": \"FAWRYPAY\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1719466796,\r\n    \"merchantRef\": \"667cfb2cf0bd8d672c8fc562\",\r\n    \"instruction\": \"Please use the reference number 9350804722 to pay 10 EGP for this order at Fawrypay store. Complete the payment before 6/29/2024 5:39:59 AM +00:00\",\r\n    \"merchantName\": \"merchant002\",\r\n    \"purchase\": {\r\n        \"currency\": \"EGP\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"quantity\": 1.0,\r\n                \"price\": 10.0,\r\n                \"discount\": 0,\r\n                \"tax_percent\": \"0.00\"\r\n            }\r\n        ],\r\n        \"total\": 10.0,\r\n        \"language\": \"en\",\r\n        \"notes\": \"\",\r\n        \"debt\": 0,\r\n        \"total_formatted\": 1.0,\r\n        \"request_client_details\": [],\r\n        \"timezone\": \"MIT\",\r\n        \"email_message\": \"\"\r\n    },\r\n    \"payment\": {\r\n        \"is_outgoing\": false,\r\n        \"payment_type\": \"PURCHASE\",\r\n        \"amount\": 10.0,\r\n        \"currency\": \"EGP\",\r\n        \"net_amount\": 10.0,\r\n        \"fee_amount\": 0.0,\r\n        \"pending_amount\": 0.0,\r\n        \"pending_unfreeze_on\": null,\r\n        \"description\": \"\",\r\n        \"paid_on\": 1719466796,\r\n        \"remote_paid_on\": 1719466796\r\n    },\r\n    \"issuer_details\": {\r\n        \"website\": \"\",\r\n        \"legal_street_address\": \"\",\r\n        \"legal_country\": \"\",\r\n        \"legal_city\": \"\",\r\n        \"legal_zip_code\": \"\",\r\n        \"bank_accounts\": [\r\n            {}\r\n        ],\r\n        \"legal_name\": \"test6\",\r\n        \"brand_name\": \"test6\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\"\r\n    },\r\n    \"transaction_data\": {\r\n        \"payment_method\": \"\",\r\n        \"flow\": \"payform\",\r\n        \"extra\": {\r\n            \"amount\": 10.0,\r\n            \"masked_pan\": \"FAWRYPAY\"\r\n        },\r\n        \"country\": \"\",\r\n        \"attempts\": [\r\n            {\r\n                \"client_ip\": \"110.235.229.106\",\r\n                \"type\": \"execute\",\r\n                \"payment_method\": \"FAWRYPAY\",\r\n                \"flow\": \"payform\",\r\n                \"successful\": true,\r\n                \"country\": \"FAWRYPAY\",\r\n                \"processing_time\": 1719466796,\r\n                \"extra\": {\r\n                    \"amount\": 10.0,\r\n                    \"masked_pan\": \"FAWRYPAY\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"PAYMENT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719466796\r\n        },\r\n        {\r\n            \"status\": \"pending_execute\",\r\n            \"timestamp\": 1719466796\r\n        },\r\n        {\r\n            \"status\": \"payment_in_process\",\r\n            \"timestamp\": 1719466796\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS10252\",\r\n    \"issued\": \"2024-06-27\",\r\n    \"due\": 1719466796,\r\n    \"refund_upto\": 1735015199,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"payInDetails\": {\r\n        \"reference_number\": \"9350804722\",\r\n        \"payment_method\": \"PAYATFAWRY\",\r\n        \"transaction_expiry\": \"29 Jun 2024 05:39:59:054 +0000\"\r\n    },\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 10.0,\r\n    \"success_redirect\": \"https://your.success.redirect.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com/getResponse.jsp?success=false\",\r\n    \"cancel_redirect\": \"\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n  \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"110.235.229.106\",\r\n    \"checkout_url\": \"https://api.paysecure.net/payments/667cfb2cf0bd8d672c8fc562/\"\r\n}"},{"id":"9463508c-20a8-4915-b686-278efaf5f01d","name":"Create Purchase","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"fde59306-2f88-44ac-8c67-72458ddb53e9"},{"name":"Get Status","id":"7813f67c-c8f7-4c61-9365-deb7d38b85de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9ccc01cc-3769-493a-88f0-950da0dd3136","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"667cfc59f0bd8d672c8fc6c8\",\r\n    \"client\": {\r\n        \"email\": \"deepakdeepaksinghal@gmail.com\",\r\n        \"phone\": \"+447755564318\",\r\n        \"full_name\": \"Test test\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"country\": \"EG\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"cc\": [],\r\n        \"bcc\": [],\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"updated_on\": 1719467097,\r\n    \"type\": \"purchase\",\r\n    \"paymentMethod\": \"FAWRYPAY\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1719467097,\r\n    \"merchantRef\": \"667cfc59f0bd8d672c8fc6c8\",\r\n    \"instruction\": \"Please use the reference number 9350717665 to pay 10 EGP for this order at Fawrypay store. Complete the payment before 6/29/2024 5:45:00 AM +00:00\",\r\n    \"merchantName\": \"merchant002\",\r\n    \"purchase\": {\r\n        \"currency\": \"EGP\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"quantity\": 1.0,\r\n                \"price\": 10.0,\r\n                \"discount\": 0,\r\n                \"tax_percent\": \"0.00\"\r\n            }\r\n        ],\r\n        \"total\": 10.0,\r\n        \"language\": \"en\",\r\n        \"notes\": \"\",\r\n        \"debt\": 0,\r\n        \"total_formatted\": 1.0,\r\n        \"request_client_details\": [],\r\n        \"timezone\": \"MIT\",\r\n        \"email_message\": \"\"\r\n    },\r\n    \"payment\": {\r\n        \"is_outgoing\": false,\r\n        \"payment_type\": \"PURCHASE\",\r\n        \"amount\": 10.0,\r\n        \"currency\": \"EGP\",\r\n        \"net_amount\": 10.0,\r\n        \"fee_amount\": 0.0,\r\n        \"pending_amount\": 0.0,\r\n        \"pending_unfreeze_on\": null,\r\n        \"description\": \"\",\r\n        \"paid_on\": 1719467097,\r\n        \"remote_paid_on\": 1719467097\r\n    },\r\n    \"issuer_details\": {\r\n        \"website\": \"\",\r\n        \"legal_street_address\": \"\",\r\n        \"legal_country\": \"\",\r\n        \"legal_city\": \"\",\r\n        \"legal_zip_code\": \"\",\r\n        \"bank_accounts\": [\r\n            {}\r\n        ],\r\n        \"legal_name\": \"test6\",\r\n        \"brand_name\": \"test6\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\"\r\n    },\r\n    \"transaction_data\": {\r\n        \"payment_method\": \"\",\r\n        \"flow\": \"payform\",\r\n        \"extra\": {\r\n            \"amount\": 10.0,\r\n            \"masked_pan\": \"FAWRYPAY\"\r\n        },\r\n        \"country\": \"\",\r\n        \"attempts\": [\r\n            {\r\n                \"client_ip\": \"110.235.229.106\",\r\n                \"type\": \"execute\",\r\n                \"payment_method\": \"FAWRYPAY\",\r\n                \"flow\": \"payform\",\r\n                \"successful\": true,\r\n                \"country\": \"FAWRYPAY\",\r\n                \"processing_time\": 1719467097,\r\n                \"extra\": {\r\n                    \"amount\": 10.0,\r\n                    \"masked_pan\": \"FAWRYPAY\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"PAYMENT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719467097\r\n        },\r\n        {\r\n            \"status\": \"pending_execute\",\r\n            \"timestamp\": 1719467097\r\n        },\r\n        {\r\n            \"status\": \"payment_in_process\",\r\n            \"timestamp\": 1719467097\r\n        },\r\n        {\r\n            \"status\": \"viewed\",\r\n            \"timestamp\": 1719467160\r\n        }\r\n    ],\r\n    \"viewedOn\": 1719467160,\r\n    \"is_test\": false,\r\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS10253\",\r\n    \"issued\": \"2024-06-27\",\r\n    \"due\": 1719467097,\r\n    \"refund_upto\": 1735015500,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"payInDetails\": {\r\n        \"reference_number\": \"9350717665\",\r\n        \"payment_method\": \"PAYATFAWRY\",\r\n        \"transaction_expiry\": \"29 Jun 2024 05:45:00:245 +0000\"\r\n    },\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 10.0,\r\n     \"success_redirect\": \"https://your.success.redirect.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com/getResponse.jsp?success=false\",\r\n    \"cancel_redirect\": \"\",\r\n     \"success_callback\": \"https://your.success.callback.com\",\r\n  \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"110.235.229.106\",\r\n     \"checkout_url\": \"https://api.paysecure.net/payments/667cfb2cf0bd8d672c8fc562/\"\r\n}"},{"id":"b88ae92e-153b-4a8f-8543-5257331520bd","name":"Purchases","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"7813f67c-c8f7-4c61-9365-deb7d38b85de"}],"id":"398dfd40-dc31-4698-b387-805aa36a5052","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/cfWw_RYZ9eZVEKzKjeRW4I_VwbBTyqH78LUrJG6ulp7FkE1pXVD6DZr9MnQXB9KH_oLFasJDb156naCsBc2bgotPaVY7LtGOJNifpTOb5uks3fjAKpgVhU4dsXQmQ7hFKNFIVhZEl2p8fCN1YufsRaA\" />\n\n<ol>\n<li><p>The merchant initiates the purchase via the create purchase API. If successful, they receive PayIn details (Unique Ref Code) along with a checkout URL in the response JSON</p>\n</li>\n<li><p>The merchant then has 2 options</p>\n<ol>\n<li><p>Use the PayIn details in the JSON to create a webpage within the merchant’s IT estate, and show to user the PayIn instruction</p>\n</li>\n<li><p>Or direct the end-user to our checkout URL, where the client sees bank details for payment.</p>\n</li>\n</ol>\n</li>\n<li><p>After a successful or failed payment by the end user, an appropriate webhook would be sent to the merchant. If option 2b was the method employed, the user would be redirected to the appropriate redirect URL.</p>\n</li>\n</ol>\n","_postman_id":"398dfd40-dc31-4698-b387-805aa36a5052"},{"name":"PayOut API","item":[{"name":"Create PayOut","id":"24b541fa-e414-4c11-aaf2-6740da869328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n    \"email\": \"test@gmail.com\",\r\n       \"country\" : \"EG\",\r\n \"phone\" : \"9586445444\",\r\n\"full_name\": \"Test Person-uk\",\r\n\"documentId\":\"29206260104051\"\r\n    },\r\n    \"purpose\" : \"test payout\",\r\n    \"currency\" : \"EGP\",\r\n    \"payoutMethod\" : \"Payout-fawrypay\",\r\n    \"amount\" : 20,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is/payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email or client.phone</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td></td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"6ed284bc-8d3a-4e4f-9800-6a1a57aea613","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n    \"email\": \"test@gmail.com\",\r\n       \"country\" : \"EG\",\r\n \"phone\" : \"9586445444\",\r\n\"full_name\": \"Test Person-uk\",\r\n\"documentId\":\"29206260104051\"\r\n    },\r\n    \"purpose\" : \"test payout\",\r\n    \"currency\" : \"EGP\",\r\n    \"payoutMethod\" : \"Payout-fawrypay\",\r\n    \"amount\" : 20,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"6687d86dde5d5c0feecf7621\",\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"phone\": \"9586445444\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"country\": \"EG\",\r\n        \"documentId\": \"29206260104051\"\r\n    },\r\n    \"updated_on\": 1720178797,\r\n    \"payoutMethod\": \"PAYOUT-FAWRYPAY\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 20.0,\r\n    \"errorMsg\": \"\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1720178797,\r\n    \"merchantRef\": \"6687d86dde5d5c0feecf7621\",\r\n    \"status\": \"PAYOUT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1720178797\r\n        },\r\n        {\r\n            \"status\": \"payout_in_process\",\r\n            \"timestamp\": 1720178799\r\n        }\r\n    ],\r\n    \"currency\": \"EGP\",\r\n    \"paymentOn\": 0,\r\n    \"payOutDetails\": {\r\n        \"instruction\": \"Please use transaction reference 20514294 with the BTC 77361 at any Fawry store to get cashout within 72 hrs\"\r\n    },\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}"},{"id":"ced788c5-fa99-47c9-bb62-455fb1d2d47e","name":"create payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n    \"email\": \"test@gmail.com\",\r\n       \"country\" : \"EG\",\r\n \"phone\" : \"9586445444\",\r\n\"full_name\": \"Test Person-uk\",\r\n\"documentId\":\"29206260104051\"\r\n    },\r\n    \"purpose\" : \"test payout\",\r\n    \"currency\" : \"EGP\",\r\n    \"payoutMethod\" : \"Payout-fawrypay\",\r\n    \"amount\" : 20,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":" {\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"24b541fa-e414-4c11-aaf2-6740da869328"},{"name":"Get Status","id":"eb554a81-9f88-4a58-ae47-1e3805f9245a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"64ab6f5d-81c7-489a-8844-00b4a6f270bb","name":"Get success Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"6685467c0e5b201a73f91256\",\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"phone\": \"9586445444\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"country\": \"EG\",\r\n        \"documentId\": \"29206260104051\"\r\n    },\r\n    \"updated_on\": 1720010823,\r\n    \"payoutMethod\": \"PAYOUT-FAWRYPAY\",\r\n    \"beneficiaryDetail\": {\r\n        \"bankAccountNumber\": \"123456789011\",\r\n        \"upi\": \"charles.babbage@okhdfc\",\r\n        \"transferType\": \"IMPS\",\r\n        \"ifscCode\": \"SBIN0001077\",\r\n        \"payeeName\": \"deepak singhal\"\r\n    },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 20.0,\r\n    \"errorMsg\": \"\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1720010364,\r\n    \"merchantRef\": \"6685467c0e5b201a73f91256\",\r\n    \"merchantName\": \"test\",\r\n    \"status\": \"PAID\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1720010364\r\n        },\r\n        {\r\n            \"status\": \"payout_in_process\",\r\n            \"timestamp\": 1720010367\r\n        },\r\n        {\r\n            \"status\": \"viewed\",\r\n            \"timestamp\": 1720010582\r\n        },\r\n        {\r\n            \"status\": \"paid\",\r\n            \"timestamp\": 1720010823\r\n        }\r\n    ],\r\n    \"viewedOn\": 1720179568,\r\n    \"currency\": \"EGP\",\r\n    \"paymentOn\": 1720010823,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}"},{"id":"67516ea4-fb21-44df-8e7a-717cfb312e88","name":"Get Error Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}"}],"_postman_id":"eb554a81-9f88-4a58-ae47-1e3805f9245a"}],"id":"3ee1c39e-4622-4ecb-a673-2926048185d2","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/Uxy8jmp5RP-c360-oIMAZy2As8naqJdARgKsWU0x_BtszfJlwdRVM6-obffbtjTABfI9V0hxH4Ad-Ns96We42lIMdL434tTzLJ6aEQBt0dzX_ZXeM4RtG_kmEeem7WIsN520Zh5PS3xTFYNzOmks0ak\" />\n\n<ul>\n<li><p>The merchant initiates a PayOut via the payout API.</p>\n</li>\n<li><p>After a successful or failed payment attempt, the status is reflected on the response, and the details on the status history. You can also get the status through getStatus (purchases/{payID}) API.</p>\n</li>\n</ul>\n","_postman_id":"3ee1c39e-4622-4ecb-a673-2926048185d2"},{"name":"Get Balance API","item":[{"name":"Checking Balance","id":"3682a7b1-7fa1-49db-b402-c81f989e601d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance","description":"<h2 id=\"api-for-checking-balance-payout\"><strong>API for Checking Balance payout</strong></h2>\n<ol>\n<li><p>URL :- /getBalance/</p>\n</li>\n<li><p>RequestType: POST</p>\n</li>\n<li><p>Request Body</p>\n</li>\n</ol>\n<p>Note: Currency is not a mandatory parameter. If no parameter is specified then all respective currency balances would be provided, if any specific currency parameter is provided then only that currency balance would be provided.</p>\n","urlObject":{"path":["getBalance"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d0bed0a9-82c3-487a-bebf-83be5ca7b3a7","name":"Checking Balance payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"paymentMethod\": \"FAWRYPAY\",\r\n    \"status\": \"success\",\r\n    \"data\": [\r\n        {\r\n            \"currency\": \"AUD\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"CAD\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"EGP\",\r\n            \"balance\": \"-1.20\"\r\n        },\r\n        {\r\n            \"currency\": \"EUR\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"GBP\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"INR\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"NGN\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"USD\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"ZAR\",\r\n            \"balance\": \"0.00\"\r\n        }\r\n    ]\r\n}\r\n"},{"id":"b6291b20-1f2a-466f-80f3-2306a7e79185","name":"Checking Balance payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"INTERAC\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"No currency account found\"\r\n}\r\n"}],"_postman_id":"3682a7b1-7fa1-49db-b402-c81f989e601d"}],"id":"6a6ee910-1233-453d-abde-b9411e106e62","_postman_id":"6a6ee910-1233-453d-abde-b9411e106e62","description":""}],"id":"ca9be25a-a710-41d7-97e6-f0b2dce9ff63","_postman_id":"ca9be25a-a710-41d7-97e6-f0b2dce9ff63","description":""},{"name":"🇮🇳 UPI","item":[{"name":"Concepts","item":[],"id":"a93e2de9-8466-43c4-af4b-bca1ec234622","description":"<h2 id=\"upi-overview\">UPI Overview</h2>\n<p>The Unified Payments Interface (UPI) technology unifies various banking functions, smooth fund routing, and merchant payments under one roof by enabling numerous bank accounts into a single mobile application (of any participating bank).</p>\n<h3 id=\"paysecures-upi-product-suite-enables-merchants-to-initiate\"><strong>Paysecure’s UPI product suite enables merchants to initiate:</strong></h3>\n<ul>\n<li><p><strong>PayIns:</strong> Consumers can utilise UPI to transfer funds from their bank account, through their bank’s app or website.</p>\n</li>\n<li><p><strong>Payouts:</strong> Facilitate real-time disbursements directly to consumers' accounts by UPI ID, IMPS, RTGS,NEFT.</p>\n</li>\n</ul>\n<h2 id=\"payin-flows\">PayIn Flows</h2>\n<p><strong>How it works</strong></p>\n<p>Paysecure’s UPI PayIn API lets the platforms collect funds from payers through intent flow/payment link without entering the payer's VPA. Suitable for app or mobile-based flows.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://content.pstmn.io/3c74812c-5c9f-405b-ad81-8d87f944ddb0/aW1hZ2UucG5n\" width=\"1244\" height=\"560\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p>Initiate Transfer Request: The merchant sends a request to the UPI PayIn API to initiate a PayIn (deposit/collections) transaction. This request includes the customer’s email address or mobile number, the amount to be collected, and an optional message.</p>\n</li>\n<li><p>UPI payment options: The API generates a Multiple payment option (PayTM, GPay, PhonePe apps as well by scanning QR code) where end user can select any one payment option to complete the transaction.</p>\n</li>\n<li><p>User pays using their App: User will then pay the amount using their desired payment app and method through default UPI apps or by scanning the QR code via any bank app)</p>\n</li>\n<li><p>Confirm Transfer Completion: Once the transfer is completed by the end user, the paysecure would send webhook of payment completion with the status. The balance of merchant would be updated to reflect the new transaction’s outcome.</p>\n</li>\n<li><p>Update Merchant’s Account: The merchant would then update (on the merchant’s system) the customer’s account balance to reflect the received funds.</p>\n</li>\n</ul>\n<h2 id=\"payout-flows\"><strong>PayOut flows</strong></h2>\n<p><strong>How it works</strong></p>\n<p>Our APIs enable UPI payouts through various channels, including IMPS, UPI, RTGS, and NEFT, to both bank accounts and UPI IDs (VPAs).</p>\n<p>Here are some common use cases, though not limited to these:</p>\n<ol>\n<li><p>Vendor Payouts: Quickly settle payments for goods or services with your vendors or distributors.</p>\n</li>\n<li><p>Payroll &amp; Reimbursements: Disburse salaries, ad-hoc payments, or employee reimbursements to staff or agents.</p>\n</li>\n<li><p>Disbursements: Facilitate loan or credit disbursements to merchants or consumers' bank accounts via your own or a lender's account.</p>\n</li>\n</ol>\n<p>*<em>Key Steps</em><em>*</em></p>\n<img src=\"https://content.pstmn.io/617fb471-49f3-42da-a00e-51059ae89857/aW1hZ2UucG5n\" width=\"1538\" height=\"570\" />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p>We recommend that merchan't validate the bank accounts of their customer's bank accoiunt before doing payouts.</p>\n</li>\n<li><p>Ensure that enough balance is there in your merchant account do the payout. This can be ascertained by calling the \"GetBalance\" API.</p>\n</li>\n<li><p>The merchant platform initiates the creation of a payout by passing beneficiary details, along with payout details.</p>\n</li>\n<li><p>Beneficiary's bank details</p>\n<ul>\n<li><p>Beneficiary's transferType (IMPS, RTGS, NEFT, UPI)</p>\n</li>\n<li><p>Beneficiary's ifscCode (if transferType is either of IMPS, RTGS, or NEFT)</p>\n</li>\n<li><p>Beneficiary's payeeName (if transferType is either of IMPS, RTGS, or NEFT)</p>\n</li>\n<li><p>Beneficiary's bankAccountNumber (if transferType is either of IMPS, RTGS, or NEFT)</p>\n</li>\n<li><p>Beneficiary's UPIId (if transferType is UPI)</p>\n</li>\n</ul>\n</li>\n<li><p>Upon completion of the payout, reaching either a Success or Failure state, Paysecure notifies the merchant’s platform via webhook, providing the final status of the transaction and additional details.</p>\n</li>\n</ul>\n<h2 id=\"transaction-limits\">Transaction Limits:</h2>\n<p>The limits outlined below are generally for personal accounts and can vary by financial institution and account type. For business accounts, higher limits may apply. It’s advisable to check with your bank for the most accurate limits pertaining to your account</p>\n<h2 id=\"pay-ins\">Pay Ins:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>100 INR</td>\n<td>100,000 INR  <br />Note:  <br />1. this is dependent on respective bank's limit. Diffferent banks will have different limits  <br />2. If the user saves the QR code image and scans the code using the camera then the limit would be INR 2,000</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td>100 INR</td>\n<td>100,000 INR  <br />Note:  <br />1. this is dependent on respective bank's limit. Diffferent banks will have different limits  <br />2. If the user saves the QR code image and scans the code using the camera then the limit would be INR 2,000</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"pay-outs\">Pay Outs:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Criteria</strong></th>\n<th><strong>Min Amount</strong></th>\n<th><strong>Max Amount</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Per Transaction</td>\n<td>1000 INR</td>\n<td>100,000 INR</td>\n</tr>\n<tr>\n<td>Per Day</td>\n<td>3000 INR</td>\n<td>100,000 INR</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"a93e2de9-8466-43c4-af4b-bca1ec234622"},{"name":"PayIn API","item":[{"name":"Purchases","id":"423cae13-9678-44b7-a076-f5d3e0597e80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"yogesh@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"EG\",\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"INR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"\",\r\n    \"brand_id\": \"{{merchant_brand_id}}\",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://api.paysecure.net\",\r\n    \"failure_callback\": \"https://api.paysecure.net\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.  <br />This should be \"CA\" for Interac</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />This should be 'CAD' for Interac</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>This parameter, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"323aa155-be0d-4996-98d8-a305e2c02f63","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"DEEPAKDEEPAKSINGHAL@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"IN\",\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"INR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"UPI\",\r\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\r\n    \"success_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://staging.paysecure.net\",\r\n    \"failure_callback\": \"https://staging.paysecure.net\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"6682942d5273633e7b8d30c8\",\r\n    \"client\": {\r\n        \"email\": \"deepakdeepaksinghal@gmail.com\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"country\": \"EG\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"cc\": [],\r\n        \"bcc\": [],\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"updated_on\": 1719833645,\r\n    \"type\": \"purchase\",\r\n    \"paymentMethod\": \"UPI\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1719833645,\r\n    \"merchantRef\": \"6682942d5273633e7b8d30c8\",\r\n    \"merchantName\": \"merchant002\",\r\n    \"purchase\": {\r\n        \"currency\": \"INR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"quantity\": 1.0,\r\n                \"price\": 10.0,\r\n                \"discount\": 0,\r\n                \"tax_percent\": \"0.00\"\r\n            }\r\n        ],\r\n        \"total\": 10.0,\r\n        \"language\": \"en\",\r\n        \"notes\": \"\",\r\n        \"debt\": 0,\r\n        \"total_formatted\": 1.0,\r\n        \"request_client_details\": [],\r\n        \"timezone\": \"MIT\",\r\n        \"email_message\": \"\"\r\n    },\r\n    \"payment\": {\r\n        \"is_outgoing\": false,\r\n        \"payment_type\": \"PURCHASE\",\r\n        \"amount\": 10.0,\r\n        \"currency\": \"INR\",\r\n        \"net_amount\": 10.0,\r\n        \"fee_amount\": 0.0,\r\n        \"pending_amount\": 0.0,\r\n        \"pending_unfreeze_on\": null,\r\n        \"description\": \"\",\r\n        \"paid_on\": 1719833645,\r\n        \"remote_paid_on\": 1719833645\r\n    },\r\n    \"issuer_details\": {\r\n        \"website\": \"\",\r\n        \"legal_street_address\": \"\",\r\n        \"legal_country\": \"\",\r\n        \"legal_city\": \"\",\r\n        \"legal_zip_code\": \"\",\r\n        \"bank_accounts\": [\r\n            {}\r\n        ],\r\n        \"legal_name\": \"test6\",\r\n        \"brand_name\": \"test6\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\"\r\n    },\r\n    \"transaction_data\": {\r\n        \"payment_method\": \"\",\r\n        \"flow\": \"payform\",\r\n        \"extra\": {\r\n            \"amount\": 10.0,\r\n            \"masked_pan\": \"UPI\"\r\n        },\r\n        \"country\": \"\",\r\n        \"attempts\": [\r\n            {\r\n                \"client_ip\": \"110.235.229.42\",\r\n                \"type\": \"execute\",\r\n                \"payment_method\": \"UPI\",\r\n                \"flow\": \"payform\",\r\n                \"successful\": true,\r\n                \"country\": \"UPI\",\r\n                \"processing_time\": 1719833645,\r\n                \"extra\": {\r\n                    \"amount\": 10.0,\r\n                    \"masked_pan\": \"UPI\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"PAYMENT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719833645\r\n        },\r\n        {\r\n            \"status\": \"pending_execute\",\r\n            \"timestamp\": 1719833645\r\n        },\r\n        {\r\n            \"status\": \"payment_in_process\",\r\n            \"timestamp\": 1719833645\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS10421\",\r\n    \"issued\": \"2024-07-01\",\r\n    \"due\": 1719833645,\r\n    \"refund_upto\": 0,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"payInDetails\": {\r\n        \"qrCode\": \"iVBORw0KGgoAAAANSUhEUgAAAb0AAAG9AQAAAACpVZXpAAAH7UlEQVR4nO1cQY7qSgw0yiJLjpCbJBdDIhIXg5vkCCyzQPi7qtwkM2/zNcsYpIfeQFcvTNtdLtsx/9trtS/wC/wCv8A/AZ9mdnpevb9bt6zj+TWso3Uen17i33nGkgverotN/orP7FoHeHV/AG1nfnoZ+kfYrcdKv8ei/gEMvljxRkQZ4MVi5Ww2nm9LbBF/xnLYd7YVVu3dZ262hPUvA3+CUsCnDesJ39/PHhidtlg5cRFek9+WtSgwPO595ldGI4dTAohX/8ZpG2Hp8MdiQPnjEL7XIWJdEae6BfvgC0SxCGCx2Q2fvf5x5GMDGckRov7X2+8r4NhAvW6O82QrHBBeuGBHHjSHK7rDtDxtv8jD0YERv8PPwAHcRjogbv43/BF/wuZwytgHO9r4serxgbIg7vvzPNALY1GHzXDrwYJji2JgTsvOkY8PxGnDDYeVsPHcYjWoUtx6jF04cjPsa8PmjxWAroMWUbtbdPPHPuGZsOqdX8SfOJXGu26zagVgLILHraTWvOUDjRuuU4jq4a2xj8y9hLd6HaArFcMtD997gVoHJYCRwa8H2HzgWVxBDkoBxR5lraVHxIpgdWXEcjJKHrmw+S2Z071F8gLA+JSGCkwEbISoOFnJHiNtvSAhgc0RpyKmw/BeBqgUFUcJGIPWAZnjY1VXis+bUMdw93McHph0kXedfA/pBfMx5CKLlJCJ9n3+FEkOD1QSiuUyrSWaQfyuc0eS3UElm+m8ZYDNqrCbkQMgMMGWEcCQhdEB6a1Jsps/VgCGybASWTtOFu1Lz8SlD/lsgheepBXFupaUFQEiC4MXzozaRjYQrnhRAksioORDbx8doAAQkfwM3qzrP4MVI3lwRqeEOEgTgc37eyVg5zxFZNAuboR0HlkY5VZdbszbELtk6SpAk/DV44yBB2H5zFSWgR3KPAkSKIHZT3nt6EA4INgPmKJRim/1L1MljKI8zS0NbSwElG5qrX6DwsQkDQh5Kr91prI3V4jfqHUBYKfKH9jPQPbDCpchTkmop/xzgiYi9dULASm2863TQeuxGYuDYVUzmtFOm3tuxaDjA+Fi0AehAZFB0zOpfxikD4Uo7YOw9SFIBYAqkN4UyRnY4ZnNFWnfVlpX7WeTEI8PBGWepDvLZCDPopBZOQVVgj+CCNwaaaoBxP8p/zDloN5jZI/sQABGeYe7ctftyBUAPpmmozqBpAyZ/ArxmXmqfJTqIZVWbLGJJBWAtCXqN8rCqIN1rqh9N0qIs84dGzU2raMAkPEbJjMWt85atJg1fZXZhm7CURyqDvCpWpejnUci4QrxmWSSVQwqRGwT47qdEFQBOPCWpxeCPBulsl55KiyIOM96hiLWw+sAndSQB+1KqQxnjEBmIC+xb2NNjFnJp95RASjimEViKtAiTWoEM1bf1YHK2vKOPR4fiJuLyrIZuk0hNOP6Z9McsxJk8gsJEm44sYEqQHaghvF4fQk9ch+9MXR3aOdRJA9KsJVKDw9k1FbDE1WyiOkUghiwSQlQycmyz5mCRyWgZxAyFU2dJJvxm59RsgerlmS/XXMFgOzfYU3H1OFuSlaRnq288JyuyL5dhLJPB0IBIBa9mbCrOYxaqkqlqPwhlcU1B89Ud/wnklcABjdCmi4dEcoyo1Nrt2yVsDGrGGpqrgNUqY8siQblQXMeOcZv6Ijr1LpYdjWd4wM9h2yYcanE02gRxY3WmSHSxBKP1wFK4NFVz0i0jZUwO2Viz3PHA7nrfD4+8MlRLCRl4NITs42WxPdZxKGQdpXSah/aWQDo5IcJVB2ZhBrHi0UcmjY7eH/8HAWAraaTxMfSAU1ah9E9L8pAVD6tBGQnt/h1bMFGg3fLMdjUwvaMNfMOzCJtR+7wQPWucKBmZjjnV61DjJtxXkJpiO1qOhWAOV/TYhKcUpM2F91rxqGJVrHYdXcXAPIA5dDsIPXwnUZWOxRpgrMjEzORW8GrAnDO4tbE8QnORrCfBeeOMvSk3h/LLR6FgNtIIyui1OglaTAhYXNYamicufGdIx8eqFz9ZTkMYWy8dA1vqRp4Ir/2WcLINlBQAPgkIWQQz0c8OFvlkl8zA5lzGAeHz9+FgO6ii+y9QCRSowHdTtH9xOZTjWBn6asKUK2VvtBaUuFH+R62oAZkObLfKzM71wHCqhyVaFPpIs/emndV+mLfBmtivv85Dg9kAwajE+K3kg8lpq3YA0dlY48GAM+FgDklq7wDoVtUaVT/e/YdJDdiUcPrAHmeFJhemkBKMunZ/y6nZDeYGMKmzB8eCBshHW1T6VhuqdabzmI+P2Tpm1OWAWoei88uSBV+o9G7eimfN4O0f9e/enyg9PgL5Xk9tqDP9OKmKilbCNU0dxL6Wgr4aOlo/yGOagQ7yeZqwYRnXndlxArAnNHfRvbzXlML5ktJmWdij2rgsxAQVlVJMF2xaUCcGuUH6n9SpX3f9XR8IF7qQIiTlUWcznXf5/CRZfflqIGuaxkgDEVqaOyX4+VmnNvic2SyTCi5VRWfdgVUAF5dUVtj6KrpwL545dMX7TNg/LMaeHygnr7YxNM2JcEvVOLJrISKolk9oPpxW7ep+JJodLJqnkpN9Vs1IFxsarqzpLKHsrUXGaW1+vrFfj3w8+BA+iOHA1omrxbCJ9F67IP2oUK04+QFgC2Sq8U7x5CGTyVsaL3LLjIp9ywC/NPrC/wCv8Av8C/A/wCpreUSrYyOqQAAAABJRU5ErkJggg==\",\r\n        \"gpayUri\": \"gpay://upi/pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"phonepeUri\": \"phonepe://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"paytmUri\": \"paytmmp://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"generatedLink\": \"https://api.decf.in/pay/ndaszpvy7j\"\r\n    },\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 0.0,\r\n    \"success_redirect\": \"https://api.paysecure.net/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://api.paysecure.net/getResponse.jsp?success=false\",\r\n    \"cancel_redirect\": \"\",\r\n    \"success_callback\": \"https://api.paysecure.net\",\r\n    \"failure_callback\": \"https://api.paysecure.net\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"110.235.229.42\",\r\n    \"checkout_url\": \"https://api.paysecure.net/payments/6682942d5273633e7b8d30c8/\"\r\n}\r\n"},{"id":"a47dd9d8-ebcb-436e-919d-a076e1d77c78","name":"Create Purchase","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"423cae13-9678-44b7-a076-f5d3e0597e80"},{"name":"Get Status","id":"4689f84d-5102-4efc-a428-60d15713576c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"628b2925-6c65-4735-b6b8-3f784078b0a1","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"66c4667bb993c970367c288a\",\r\n    \"client\": {\r\n        \"email\": \"deepakdeepaksinghal@gmail.com\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"country\": \"IN\",\r\n        \"city\": \"London\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"cc\": [],\r\n        \"bcc\": [],\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"updated_on\": 1724147324,\r\n    \"type\": \"purchase\",\r\n    \"paymentMethod\": \"UPI\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1724147324,\r\n    \"merchantRef\": \"66c4667bb993c970367c288a\",\r\n    \"merchantName\": \"merchant002\",\r\n    \"purchase\": {\r\n        \"currency\": \"INR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"quantity\": 1.0,\r\n                \"price\": 10.0,\r\n                \"discount\": 0,\r\n                \"tax_percent\": \"0.00\"\r\n            }\r\n        ],\r\n        \"total\": 10.0,\r\n        \"language\": \"en\",\r\n        \"notes\": \"\",\r\n        \"debt\": 0,\r\n        \"total_formatted\": 1.0,\r\n        \"expireInMin\": \"35\",\r\n        \"request_client_details\": [],\r\n        \"timezone\": \"MIT\",\r\n        \"email_message\": \"\"\r\n    },\r\n    \"payment\": {\r\n        \"is_outgoing\": false,\r\n        \"payment_type\": \"PURCHASE\",\r\n        \"amount\": 10.0,\r\n        \"currency\": \"INR\",\r\n        \"net_amount\": 10.0,\r\n        \"fee_amount\": 0.0,\r\n        \"pending_amount\": 0.0,\r\n        \"pending_unfreeze_on\": null,\r\n        \"description\": \"\",\r\n        \"paid_on\": 1724147324,\r\n        \"remote_paid_on\": 1724147324\r\n    },\r\n    \"issuer_details\": {\r\n        \"website\": \"\",\r\n        \"legal_street_address\": \"\",\r\n        \"legal_country\": \"\",\r\n        \"legal_city\": \"\",\r\n        \"legal_zip_code\": \"\",\r\n        \"bank_accounts\": [\r\n            {}\r\n        ],\r\n        \"legal_name\": \"test6\",\r\n        \"brand_name\": \"test6\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\"\r\n    },\r\n    \"transaction_data\": {\r\n        \"payment_method\": \"\",\r\n        \"flow\": \"payform\",\r\n        \"extra\": {\r\n            \"amount\": 10.0,\r\n            \"masked_pan\": \"UPI\"\r\n        },\r\n        \"country\": \"\",\r\n        \"attempts\": [\r\n            {\r\n                \"client_ip\": \"103.59.75.113\",\r\n                \"type\": \"execute\",\r\n                \"payment_method\": \"UPI\",\r\n                \"flow\": \"payform\",\r\n                \"successful\": true,\r\n                \"country\": \"UPI\",\r\n                \"processing_time\": 1724147324,\r\n                \"extra\": {\r\n                    \"amount\": 10.0,\r\n                    \"masked_pan\": \"UPI\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"PAYMENT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1724147324\r\n        },\r\n        {\r\n            \"status\": \"pending_execute\",\r\n            \"timestamp\": 1724147324\r\n        },\r\n        {\r\n            \"status\": \"payment_in_process\",\r\n            \"timestamp\": 1724147324\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS10907\",\r\n    \"issued\": \"2024-08-20\",\r\n    \"due\": 1724147324,\r\n    \"refund_upto\": 1725871728,\r\n    \"cc_descriptor\": \"test1\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"payInDetails\": {\r\n        \"qrCode\": \"iVBORw0KGgoAAAANSUhEUgAAAb0AAAG9AQAAAACpVZXpAAAH7UlEQVR4nO1cQY7qSgw0yiJLjpCbJBdDIhIXg5vkCCyzQPi7qtwkM2/zNcsYpIfeQFcvTNtdLtsx/9trtS/wC/wCv8A/AZ9mdnpevb9bt6zj+TWso3Uen17i33nGkgverotN/orP7FoHeHV/AG1nfnoZ+kfYrcdKv8ei/gEMvljxRkQZ4MVi5Ww2nm9LbBF/xnLYd7YVVu3dZ262hPUvA3+CUsCnDesJ39/PHhidtlg5cRFek9+WtSgwPO595ldGI4dTAohX/8ZpG2Hp8MdiQPnjEL7XIWJdEae6BfvgC0SxCGCx2Q2fvf5x5GMDGckRov7X2+8r4NhAvW6O82QrHBBeuGBHHjSHK7rDtDxtv8jD0YERv8PPwAHcRjogbv43/BF/wuZwytgHO9r4serxgbIg7vvzPNALY1GHzXDrwYJji2JgTsvOkY8PxGnDDYeVsPHcYjWoUtx6jF04cjPsa8PmjxWAroMWUbtbdPPHPuGZsOqdX8SfOJXGu26zagVgLILHraTWvOUDjRuuU4jq4a2xj8y9hLd6HaArFcMtD997gVoHJYCRwa8H2HzgWVxBDkoBxR5lraVHxIpgdWXEcjJKHrmw+S2Z071F8gLA+JSGCkwEbISoOFnJHiNtvSAhgc0RpyKmw/BeBqgUFUcJGIPWAZnjY1VXis+bUMdw93McHph0kXedfA/pBfMx5CKLlJCJ9n3+FEkOD1QSiuUyrSWaQfyuc0eS3UElm+m8ZYDNqrCbkQMgMMGWEcCQhdEB6a1Jsps/VgCGybASWTtOFu1Lz8SlD/lsgheepBXFupaUFQEiC4MXzozaRjYQrnhRAksioORDbx8doAAQkfwM3qzrP4MVI3lwRqeEOEgTgc37eyVg5zxFZNAuboR0HlkY5VZdbszbELtk6SpAk/DV44yBB2H5zFSWgR3KPAkSKIHZT3nt6EA4INgPmKJRim/1L1MljKI8zS0NbSwElG5qrX6DwsQkDQh5Kr91prI3V4jfqHUBYKfKH9jPQPbDCpchTkmop/xzgiYi9dULASm2863TQeuxGYuDYVUzmtFOm3tuxaDjA+Fi0AehAZFB0zOpfxikD4Uo7YOw9SFIBYAqkN4UyRnY4ZnNFWnfVlpX7WeTEI8PBGWepDvLZCDPopBZOQVVgj+CCNwaaaoBxP8p/zDloN5jZI/sQABGeYe7ctftyBUAPpmmozqBpAyZ/ArxmXmqfJTqIZVWbLGJJBWAtCXqN8rCqIN1rqh9N0qIs84dGzU2raMAkPEbJjMWt85atJg1fZXZhm7CURyqDvCpWpejnUci4QrxmWSSVQwqRGwT47qdEFQBOPCWpxeCPBulsl55KiyIOM96hiLWw+sAndSQB+1KqQxnjEBmIC+xb2NNjFnJp95RASjimEViKtAiTWoEM1bf1YHK2vKOPR4fiJuLyrIZuk0hNOP6Z9McsxJk8gsJEm44sYEqQHaghvF4fQk9ch+9MXR3aOdRJA9KsJVKDw9k1FbDE1WyiOkUghiwSQlQycmyz5mCRyWgZxAyFU2dJJvxm59RsgerlmS/XXMFgOzfYU3H1OFuSlaRnq288JyuyL5dhLJPB0IBIBa9mbCrOYxaqkqlqPwhlcU1B89Ud/wnklcABjdCmi4dEcoyo1Nrt2yVsDGrGGpqrgNUqY8siQblQXMeOcZv6Ijr1LpYdjWd4wM9h2yYcanE02gRxY3WmSHSxBKP1wFK4NFVz0i0jZUwO2Viz3PHA7nrfD4+8MlRLCRl4NITs42WxPdZxKGQdpXSah/aWQDo5IcJVB2ZhBrHi0UcmjY7eH/8HAWAraaTxMfSAU1ah9E9L8pAVD6tBGQnt/h1bMFGg3fLMdjUwvaMNfMOzCJtR+7wQPWucKBmZjjnV61DjJtxXkJpiO1qOhWAOV/TYhKcUpM2F91rxqGJVrHYdXcXAPIA5dDsIPXwnUZWOxRpgrMjEzORW8GrAnDO4tbE8QnORrCfBeeOMvSk3h/LLR6FgNtIIyui1OglaTAhYXNYamicufGdIx8eqFz9ZTkMYWy8dA1vqRp4Ir/2WcLINlBQAPgkIWQQz0c8OFvlkl8zA5lzGAeHz9+FgO6ii+y9QCRSowHdTtH9xOZTjWBn6asKUK2VvtBaUuFH+R62oAZkObLfKzM71wHCqhyVaFPpIs/emndV+mLfBmtivv85Dg9kAwajE+K3kg8lpq3YA0dlY48GAM+FgDklq7wDoVtUaVT/e/YdJDdiUcPrAHmeFJhemkBKMunZ/y6nZDeYGMKmzB8eCBshHW1T6VhuqdabzmI+P2Tpm1OWAWoei88uSBV+o9G7eimfN4O0f9e/enyg9PgL5Xk9tqDP9OKmKilbCNU0dxL6Wgr4aOlo/yGOagQ7yeZqwYRnXndlxArAnNHfRvbzXlML5ktJmWdij2rgsxAQVlVJMF2xaUCcGuUH6n9SpX3f9XR8IF7qQIiTlUWcznXf5/CRZfflqIGuaxkgDEVqaOyX4+VmnNvic2SyTCi5VRWfdgVUAF5dUVtj6KrpwL545dMX7TNg/LMaeHygnr7YxNM2JcEvVOLJrISKolk9oPpxW7ep+JJodLJqnkpN9Vs1IFxsarqzpLKHsrUXGaW1+vrFfj3w8+BA+iOHA1omrxbCJ9F67IP2oUK04+QFgC2Sq8U7x5CGTyVsaL3LLjIp9ywC/NPrC/wCv8Av8C/A/wCpreUSrYyOqQAAAABJRU5ErkJggg==\",\r\n        \"gpayUri\": \"gpay://upi/pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"phonepeUri\": \"phonepe://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"paytmUri\": \"paytmmp://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\r\n        \"generatedLink\": \"https://staging.decf.in/pay/514o5z3m9z\"\r\n    },\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 10.0,\r\n    \"success_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=false\",\r\n    \"cancel_redirect\": \"\",\r\n    \"success_callback\": \"https://staging.paysecure.net\",\r\n    \"failure_callback\": \"https://staging.paysecure.net\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"103.59.75.113\",\r\n    \"checkout_url\": \"https://staging.paysecure.net/payments/66c4667bb993c970367c288a/\",\r\n    \"payoutProcess\": false\r\n}"},{"id":"2d4ebf5b-e39c-40db-a0c4-82d06880b0da","name":"Purchases","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"4689f84d-5102-4efc-a428-60d15713576c"}],"id":"0e7db449-3693-4cdc-b6dd-ae756c9192a5","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/cfWw_RYZ9eZVEKzKjeRW4I_VwbBTyqH78LUrJG6ulp7FkE1pXVD6DZr9MnQXB9KH_oLFasJDb156naCsBc2bgotPaVY7LtGOJNifpTOb5uks3fjAKpgVhU4dsXQmQ7hFKNFIVhZEl2p8fCN1YufsRaA\" />\n\n<ol>\n<li><p>The merchant initiates the purchase via the create purchase API. If successful, they receive PayIn details along with a checkout URL in the response JSON</p>\n</li>\n<li><p>The merchant then has 2 options</p>\n<ol>\n<li><p>Retrieve the PayIn details in the response JSON (as shown below).<br /> Although json contains numerous payInDetails links, users can utilize this to be redirected to a specific link.  </p>\n</li>\n<li><p>Upon utilizing the checkout URL, the user will be presented with several payment choices from which to choose in order to complete the payment.</p>\n<ol>\n<li><p>Paytm</p>\n</li>\n<li><p>Googlepay</p>\n</li>\n<li><p>Phonepay</p>\n</li>\n<li><p>QRCode</p>\n</li>\n</ol>\n</li>\n</ol>\n</li>\n<li><p>After a successful or failed payment by the end user, an appropriate webhook would be sent to the merchant. If option 2b was the method employed, the user would be redirected to the appropriate redirect URL.</p>\n</li>\n</ol>\n","_postman_id":"0e7db449-3693-4cdc-b6dd-ae756c9192a5"},{"name":"PayOut API","item":[{"name":"Create PayOut","id":"aa8b3464-a052-4d7f-8416-daab8f5a25f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"yogesh@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"766225230591\",\r\n       \"full_name\": \"Test Person-uk\"\r\n    },\r\n    \"beneficiaryDetail\":{\r\n        \"transferType\" : \"IMPS\",\r\n        \"ifscCode\":\"SBIN0001077\",\r\n        \"payeeName\":\"YOgesh\",\r\n         \"bankAccountNumber\": \"123456789011\"\r\n    },\r\n       \"purpose\" : \"test payout\",\r\n    \"currency\" : \"INR\",\r\n    \"payoutMethod\" : \"Payout-UPI\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"   \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is/payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td></td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.transferType</td>\n<td>One of the following values  <br />IMPS, UPI, RTGS, or NEFT,</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.ifscCode</td>\n<td>if transferType is either of IMPS, RTGS, or NEFT</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.payeeName</td>\n<td>if transferType is either of IMPS, RTGS, or NEFT</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankAccountNumber</td>\n<td>if transferType is either of IMPS, RTGS, or NEFT</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.UPIid</td>\n<td>if transferType is UPI</td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id>**</h3>\n<p>Transfer Type:**</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>TYPE</th>\n<th>REQUIRED</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>UPI</td>\n<td>UPI id</td>\n</tr>\n<tr>\n<td>IMPS</td>\n<td>IFSC code  <br />payeeName  <br />bankAccountNumber</td>\n</tr>\n<tr>\n<td>NEFT</td>\n<td>IFSC code  <br />payeeName  <br />bankAccountNumber</td>\n</tr>\n<tr>\n<td>RTGS</td>\n<td>IFSC code  <br />payeeName  <br />bankAccountNumber</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"346e1613-b011-4b66-a187-6c00bb57f987","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"yogesh@gmail.com\",\r\n       \"country\" : \"CA\",\r\n       \"phone\" : \"766225230591\",\r\n       \"full_name\": \"Test Person-uk\"\r\n    },\r\n    \"beneficiaryDetail\":{\r\n        \"transferType\" : \"IMPS\",\r\n        \"ifscCode\":\"SBIN0001077\",\r\n        \"payeeName\":\"YOgesh\",\r\n         \"bankAccountNumber\": \"123456789011\"\r\n    },\r\n       \"purpose\" : \"test payout\",\r\n    \"currency\" : \"INR\",\r\n    \"payoutMethod\" : \"Payout-UPI\",\r\n    \"amount\" : 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"   \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"668397060cb39c1e2033e827\",\r\n    \"client\": {\r\n        \"email\": \"yogesh@gmail.com\",\r\n        \"phone\": \"766225230591\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"country\": \"CA\"\r\n    },\r\n    \"updated_on\": 1719899910,\r\n    \"payoutMethod\": \"PAYOUT-UPI\",\r\n    \"beneficiaryDetail\": {\r\n        \"bankAccountNumber\": \"123456789011\",\r\n        \"transferType\": \"IMPS\",\r\n        \"ifscCode\": \"SBIN0001077\",\r\n        \"payeeName\": \"YOgesh\"\r\n    },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 5.0,\r\n    \"errorMsg\": \"\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1719899910,\r\n    \"merchantRef\": \"668397060cb39c1e2033e827\",\r\n    \"status\": \"PAYOUT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719899910\r\n        },\r\n        {\r\n            \"status\": \"payout_in_process\",\r\n            \"timestamp\": 1719899913\r\n        }\r\n    ],\r\n    \"currency\": \"INR\",\r\n    \"paymentOn\": 0,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"664245c9-127a-4ee1-ad9c-d92b3d8edd1d","name":"create payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":" {\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"aa8b3464-a052-4d7f-8416-daab8f5a25f4"},{"name":"Get Status","id":"8bbbf42c-c33b-4612-94dd-eb7ef00fbee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"24be9d65-e3a6-4d49-8702-12b470d1bc14","name":"Get success Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"66838ae86d41e41c10a8656d\",\r\n    \"client\": {\r\n        \"email\": \"Yogesh@gmail.com\",\r\n        \"phone\": \"766533230591\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"country\": \"CA\"\r\n    },\r\n    \"updated_on\": 1719896808,\r\n    \"payoutMethod\": \"PAYOUT-UPI\",\r\n    \"beneficiaryDetail\": {\r\n        \"upi\": \"charles.babbage@okhdfc\",\r\n        \"transferType\": \"UPI\"\r\n    },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 10.0,\r\n    \"errorMsg\": \"\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1719896808,\r\n    \"merchantRef\": \"66838ae86d41e41c10a8656d\",\r\n    \"merchantName\": \"newMerchant777\",\r\n    \"status\": \"PAYOUT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719896808\r\n        },\r\n        {\r\n            \"status\": \"payout_in_process\",\r\n            \"timestamp\": 1719896810\r\n        },\r\n        {\r\n            \"status\": \"viewed\",\r\n            \"timestamp\": 1719900796\r\n        }\r\n    ],\r\n    \"viewedOn\": 1719900796,\r\n    \"currency\": \"INR\",\r\n    \"paymentOn\": 0,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"cae6e133-0978-493a-a435-5b099ebb4724","name":"Get Error Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}"}],"_postman_id":"8bbbf42c-c33b-4612-94dd-eb7ef00fbee1"}],"id":"de5e5ba8-33a6-4d8b-8620-d9b3c0e9c5f8","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/Uxy8jmp5RP-c360-oIMAZy2As8naqJdARgKsWU0x_BtszfJlwdRVM6-obffbtjTABfI9V0hxH4Ad-Ns96We42lIMdL434tTzLJ6aEQBt0dzX_ZXeM4RtG_kmEeem7WIsN520Zh5PS3xTFYNzOmks0ak\" />\n\n<ul>\n<li><p>The merchant initiates a PayOut via the payout API.</p>\n</li>\n<li><p>After a successful or failed payment attempt, the status is reflected on the response, and the details on the status history. You can also get the status through getStatus (purchases/{payID}) API.</p>\n</li>\n</ul>\n","_postman_id":"de5e5ba8-33a6-4d8b-8620-d9b3c0e9c5f8"},{"name":"Get Balance API","item":[{"name":"Checking Balance","id":"31573f1a-d800-4650-94ac-e1760ec8bdca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n    \"paymentMethod\" : \"PAYOUT-UPI\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance","description":"<h2 id=\"api-for-checking-balance-payout\"><strong>API for Checking Balance payout</strong></h2>\n<ol>\n<li><p>URL :- /getBalance/</p>\n</li>\n<li><p>RequestType: POST</p>\n</li>\n<li><p>Request Body</p>\n</li>\n</ol>\n<p>Note: Currency is not a mandatory parameter. If no parameter is specified then all respective currency balances would be provided, if any specific currency parameter is provided then only that currency balance would be provided.</p>\n","urlObject":{"path":["getBalance"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"742ab566-6313-4be6-bc61-052d12b90a99","name":"Checking Balance payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n     \"paymentMethod\" : \"PAYOUT-UPI\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"paymentMethod\": \"PAYOUT-UPI\",\r\n    \"status\": \"success\",\r\n    \"data\": [\r\n        {\r\n            \"currency\": \"INR\",\r\n            \"balance\": \"11.25\"\r\n        },\r\n        {\r\n            \"currency\": \"USD\",\r\n            \"balance\": \"0.00\"\r\n        }\r\n    ]\r\n}\r\n"},{"id":"a39f095e-f1b2-4570-b1ce-23b312260a02","name":"Checking Balance payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"No currency account found\"\r\n}\r\n"}],"_postman_id":"31573f1a-d800-4650-94ac-e1760ec8bdca"}],"id":"d15fdd17-3e6b-4020-9cec-36c407db4ad2","_postman_id":"d15fdd17-3e6b-4020-9cec-36c407db4ad2","description":""}],"id":"a22793ee-e652-49ac-9246-301020ad979b","_postman_id":"a22793ee-e652-49ac-9246-301020ad979b","description":""},{"name":"🇲🇽 SPEI Payments","item":[{"name":"Concepts","item":[],"id":"29c195b0-27ac-407c-9d02-bbbbf4da714c","description":"<ol>\n<li><p><strong>CLABE (Clave Bancaria Estandarizada):</strong> A 18-digit standardized bank account identifier used to route funds correctly.</p>\n</li>\n<li><p><strong>Expiration Window:</strong> SPEI instructions typically expire within a 3 days; merchants must display clear expiry times to reduce failed payments.</p>\n</li>\n<li><p><strong>Webhook-Driven Confirmation:</strong> Once funds arrive, the SPEI network triggers a webhook to notify your system—no polling required.</p>\n</li>\n</ol>\n<h3 id=\"customer-journey\">Customer Journey</h3>\n<ol>\n<li><p><strong>Select SPEI at Checkout:</strong></p>\n<ul>\n<li><p>User adds items to cart, proceeds to checkout, and clicks “Pay with SPEI.”</p>\n</li>\n<li><p>Merchant’s site sends a Payin API request to generate SPEI instructions.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Display Payment Instructions:</strong></p>\n<ul>\n<li><p>Merchant shows a summary screen with:</p>\n<ul>\n<li><p><strong>Beneficiary CLABE (One-time CLABE)</strong></p>\n</li>\n<li><p><strong>Beneficiary Name</strong></p>\n</li>\n<li><p><strong>Amount (MXN)</strong></p>\n</li>\n<li><p><strong>Expiration Time</strong> (e.g., “Expires in 2 hours”)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Customer Initiates Transfer:</strong></p>\n<ul>\n<li><p>Customer logs into their bank’s web/mobile app.</p>\n</li>\n<li><p>They select “Transfer via SPEI,” enter the provided CLABE, amount, and reference.</p>\n</li>\n<li><p>Customer confirms transfer (two-factor auth, OTP, or biometric—bank-dependent).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Funds Sent &amp; Confirmation:</strong></p>\n<ul>\n<li><p>Once Banco de México settles the transfer (typically &lt;15 minutes), PaySecure’s SPEI webhook fires.</p>\n</li>\n<li><p>Merchant backend receives webhook payload with transaction status = “paid” (or “error,” “cancelled,” as applicable).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Merchant Acknowledges Payment:</strong></p>\n<ul>\n<li><p>Backend updates order status to “Paid”</p>\n</li>\n<li><p>Frontend redirects customer to success page or sends confirmation email/SMS.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Edge Cases &amp; Failure Handling:</strong></p>\n<ul>\n<li><p>If customer never initiates transfer before expiration, status = “expired.”</p>\n</li>\n<li><p>If customer sends incorrect CLABE/amount, merchant receives webhook with error codes—trigger “error” flow.</p>\n</li>\n</ul>\n</li>\n</ol>\n","_postman_id":"29c195b0-27ac-407c-9d02-bbbbf4da714c"},{"name":"Payin API","item":[{"name":"Payin API","id":"4d2e2e28-57a1-4b5a-a03b-d510dd80c86a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"MX\",\n        \"city\": \"123\",\n        \"stateCode\": \"ca\",\n        \"full_name\": \"Test test\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\"\n    },\n    \"purchase\": {\n        \"currency\": \"MXN\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"price\": \"100\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"SPEI\",\n    \"extraParam\": {},\n    \"status\": \"created\",\n    \"brand_id\": \"{{your_brand_id_}}\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<h3 id=\"1-endpoint--authentication\">1. Endpoint &amp; Authentication</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http POST &lt;https://api.paysecure.net/api/v1/purchases&gt;\nHeaders:\n  Authorization: Bearer {LIVE_API_KEY}\n  Content-Type: application/json\n\n</code></pre>\n<p>– Use your live or sandbox API key in the <code>Authorization</code> header.</p>\n<p>– All requests must be sent as <code>application/json</code>.</p>\n<hr />\n<h3 id=\"2-request-payload-structure\">2. Request Payload Structure</h3>\n<p>Supply a JSON payload with these top‐level objects:</p>\n<ul>\n<li><p><code>client</code> (customer details)</p>\n</li>\n<li><p><code>purchase</code> (order details)</p>\n</li>\n<li><p><code>paymentMethod</code> (string, must be <code>\"SPEI\"</code>)</p>\n</li>\n<li><p><code>extraParam</code> (optional, leave <code>{}</code> if unused)</p>\n</li>\n<li><p><code>status</code> (set to <code>\"created\"</code>)</p>\n</li>\n<li><p><code>brand_id</code> (your merchant/brand UUID)</p>\n</li>\n<li><p>Redirect &amp; callback URLs</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"3-displaying-spei-instructions-to-end-user\">3. Displaying SPEI Instructions to End User</h3>\n<p>Once you parse <code>payInDetails</code> from the response:</p>\n<ol>\n<li><p><strong>Show CLABE, Beneficiary &amp; Amount</strong></p>\n</li>\n<li><p><strong>Display Expiration</strong></p>\n</li>\n<li><p><strong>Show Redirect Path (Optional)</strong></p>\n<ul>\n<li>If you’re using the hosted <code>checkout_url</code>, simply redirect customers to it and let Paysecure handle the UI.</li>\n</ul>\n</li>\n</ol>\n<hr />\n<h3 id=\"4-webhook-handling--status-transitions\">4. Webhook Handling &amp; Status Transitions</h3>\n<ol>\n<li><p><strong>Configure Webhooks</strong></p>\n<ul>\n<li>In Paysecure’s Dashboard, set your <code>success_callback</code> and <code>failure_callback</code> URLs (one for each event type).</li>\n</ul>\n</li>\n<li><p><strong>Listen for These Events</strong>:</p>\n<ul>\n<li><p><code>payment.paid</code> – Banco de México has settled the transfer.</p>\n</li>\n<li><p><code>payment.error</code> – CLABE/amount mismatch or network error.</p>\n</li>\n<li><p><code>payment.expired</code> – Customer did not pay before <code>expireInMin</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Update Order Status</strong>:</p>\n<ul>\n<li><p>On <code>payment.paid</code>: mark as paid, trigger fulfillment, send confirmation.</p>\n</li>\n<li><p>On <code>payment.error</code>: alert customer, allow retry or alternative payment.</p>\n</li>\n<li><p>On <code>payment.expired</code>: cancel order.</p>\n</li>\n</ul>\n</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","purchases"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"c994ad6f-a195-4c5e-8731-3aba0ce5b4f6","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"MX\",\n        \"city\": \"123\",\n        \"stateCode\": \"ca\",\n        \"full_name\": \"Test test\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\"\n    },\n    \"purchase\": {\n        \"currency\": \"MXN\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"price\": \"100\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"SPEI\",\n    \"extraParam\": {},\n    \"status\": \"created\",\n    \"brand_id\": \"{{your_brand_id_}}\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"683d768a22ae19559d740836\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"phone\": \"9999999999\",\n        \"full_name\": \"Test test\",\n        \"date_of_birth\": \"1970-07-10\",\n        \"street_address\": \"test test\",\n        \"country\": \"MX\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1748858506,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"SPEI\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1748858506,\n    \"extraParam\": {},\n    \"merchantRef\": \"683d768a22ae19559d740836\",\n    \"merchantName\": \"arunsinghal\",\n    \"purchase\": {\n        \"currency\": \"MXN\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"expireInMin\": \"4320\",\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 100,\n        \"currency\": \"MXN\",\n        \"net_amount\": 100,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1748858506,\n        \"remote_paid_on\": 1748858506\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 100,\n            \"masked_pan\": \"SPEI\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.242, 162.158.22.197, 130.176.183.5\",\n                \"type\": \"execute\",\n                \"payment_method\": \"SPEI\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"SPEI\",\n                \"processing_time\": 1748858506,\n                \"extra\": {\n                    \"amount\": 100,\n                    \"masked_pan\": \"SPEI\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748858506\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1748858506\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1748858506\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"{{your_brand_id}}\",\n    \"is_recurring_token\": false,\n    \"reference_generated\": \"PS786\",\n    \"issued\": \"2025-06-02\",\n    \"due\": 1748858506,\n    \"refund_upto\": 1749891706,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"0\",\n    \"trustScore\": \"2\",\n    \"payInDetails\": {\n        \"clabe\": \"710969000049618169\",\n        \"beneficiary\": \"CHOICEPAY LTD.\",\n        \"amount\": \"100.00\"\n    },\n    \"paidOn\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 100,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.242, 162.158.22.197, 130.176.183.5\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/683d768a22ae19559d740836/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"4d2e2e28-57a1-4b5a-a03b-d510dd80c86a"}],"id":"813fc796-3c79-455b-a659-26f4458b1064","_postman_id":"813fc796-3c79-455b-a659-26f4458b1064","description":""},{"name":"Payout API","item":[{"name":"Payout API","id":"b38b1cf4-e1af-4390-8844-1929c221c984","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"MX\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"MARCO ANTONIO FERNANDEZ RAMIREZ\",\n        \"stateCode\": \"test\",\n        \"spei_clabe\": \"012180027944986158\"\n    },\n    \"purpose\": \"payout\",\n    \"currency\": \"MXN\",\n    \"payoutMethod\": \"PAYOUT-SPEI\",\n    \"amount\": 20,\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\n    \"success_callback\": \"https://test1.com\",\n    \"failure_callback\": \"https://test2.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p><strong>Payout API Integration (SPEI)</strong></p>\n<hr />\n<h4 id=\"1-endpoint--authentication\">1. Endpoint &amp; Authentication</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">http POST https://api.paysecure.net/api/v1/payout/\nHeaders:\n  Authorization: Bearer {LIVE_API_KEY}\n  Content-Type: application/json\n\n</code></pre>\n<ul>\n<li><p>Use your live or sandbox API key in the <code>Authorization</code> header.</p>\n</li>\n<li><p>All requests must be sent as <code>application/json</code>.</p>\n</li>\n</ul>\n<hr />\n<h4 id=\"2-request-payload-structure\">2. Request Payload Structure</h4>\n<p>Submit a JSON payload containing:</p>\n<ul>\n<li><p><code>client</code> (beneficiary details)</p>\n</li>\n<li><p><code>purpose</code> (should be <code>\"payout\"</code>)</p>\n</li>\n<li><p><code>currency</code> (always <code>\"MXN\"</code>)</p>\n</li>\n<li><p><code>payoutMethod</code> (must be <code>\"PAYOUT-SPEI\"</code>)</p>\n</li>\n<li><p><code>amount</code> (numeric, in major units)</p>\n</li>\n<li><p>Redirect &amp; callback URLs</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">jsonCopy{\n  \"client\": {\n    \"email\": \"ashishm.21190@gmail.com\",\n    \"country\": \"MX\",\n    \"phone\": \"+14377717874\",\n    \"full_name\": \"MARCO ANTONIO FERNANDEZ RAMIREZ\",\n    \"stateCode\": \"test\",\n    \"spei_clabe\": \"012180027944986158\"\n  },\n  \"purpose\": \"payout\",\n  \"currency\": \"MXN\",\n  \"payoutMethod\": \"PAYOUT-SPEI\",\n  \"amount\": 20,\n  \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\n  \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\n  \"success_callback\": \"https://test1.com\",\n  \"failure_callback\": \"https://test2.com\"\n}\n\n</code></pre>\n<ul>\n<li><p><strong>client.email</strong>, <strong>client.phone</strong>, <strong>client.full_name</strong>, <strong>client.country</strong>, <strong>client.stateCode</strong>: Required beneficiary/contact info.</p>\n</li>\n<li><p><strong>client.spei_clabe</strong>: 18-digit CLABE of beneficiary’s bank account (validate format client-side to avoid runtime failures).</p>\n</li>\n<li><p><strong>purpose</strong>: Always set to <code>\"payout\"</code>.</p>\n</li>\n<li><p><strong>currency</strong>: Must be <code>\"MXN\"</code>.</p>\n</li>\n<li><p><strong>payoutMethod</strong>: Must be <code>\"PAYOUT-SPEI\"</code>.</p>\n</li>\n<li><p><strong>amount</strong>: Numeric amount (e.g., <code>20</code> for MXN 20.00).</p>\n</li>\n<li><p><strong>success_redirect</strong> / <strong>failure_redirect</strong>: URLs for end-user redirect after they click “Return to Merchant” (GET).</p>\n</li>\n<li><p><strong>success_callback</strong> / <strong>failure_callback</strong>: Webhook endpoints for asynchronous payout status notifications.</p>\n</li>\n</ul>\n<hr />\n<h4 id=\"3-sample-response--key-fields\">3. Sample Response &amp; Key Fields</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">jsonCopy{\n  \"payoutId\": \"683d778dc74d23074a56ea94\",\n  \"client\": {\n    \"customerId\": \"NA\",\n    \"email\": \"ashishm.21190@gmail.com\",\n    \"phone\": \"+14377717874\",\n    \"full_name\": \"MARCO ANTONIO FERNANDEZ RAMIREZ\",\n    \"country\": \"MX\",\n    \"spei_clabe\": \"012180027944986155\",\n    \"stateCode\": \"test\"\n  },\n  \"updated_on\": 1748858765,\n  \"payoutMethod\": \"PAYOUT-SPEI\",\n  \"amountUnit\": \"MAJOR\",\n  \"amount\": 20.0,\n  \"errorMsg\": \"This customer can not be processed !\",\n  \"purpose\": \"test payout\",\n  \"created_on\": 1748858765,\n  \"merchantRef\": \"683d778dc74d23074a56ea94\",\n  \"status\": \"ERROR\",\n  \"status_history\": [\n    {\n      \"status\": \"created\",\n      \"timestamp\": 1748858765\n    },\n    {\n      \"status\": \"error\",\n      \"timestamp\": 1748858765\n    }\n  ],\n  \"currency\": \"MXN\",\n  \"paymentOn\": 0,\n  \"taxAmount\": 0.0,\n  \"taxPercent\": 0.0,\n  \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\n  \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\n  \"redirectType\": \"GET\",\n  \"success_callback\": \"https://test1.com\",\n  \"failure_callback\": \"https://test2.com\"\n}\n\n</code></pre>\n<ul>\n<li><p><strong>payoutId</strong> (<code>string</code>): Unique PaySecure identifier for this payout request.</p>\n</li>\n<li><p><strong>client.customerId</strong>: <code>\"NA\"</code> for a new beneficiary or your internal customer ID if returning.</p>\n</li>\n<li><p><strong>client.spei_clabe</strong>: Echoed beneficiary CLABE (note: if the CLABE in response differs by a digit, double-check formatting/validation).</p>\n</li>\n<li><p><strong>updated_on / created_on</strong>: Unix timestamps (seconds since epoch).</p>\n</li>\n<li><p><strong>payoutMethod</strong>: <code>\"PAYOUT-SPEI\"</code>.</p>\n</li>\n<li><p><strong>amountUnit</strong>: <code>\"MAJOR\"</code> indicates amount is in MXN major units (no subunit conversion required).</p>\n</li>\n<li><p><strong>amount</strong>: <code>20.0</code> (MXN 20.00).</p>\n</li>\n<li><p><strong>errorMsg</strong>: Describes any immediate rejection reason. If non-empty, <code>status</code> will be <code>\"ERROR\"</code>.</p>\n</li>\n<li><p><strong>purpose</strong>: Echo of the <code>\"payout\"</code> field or any custom string you passed.</p>\n</li>\n<li><p><strong>merchantRef</strong>: Mirror of <code>payoutId</code> by default; can be overwritten if you pass a custom reference.</p>\n</li>\n<li><p><strong>status</strong>: One of:</p>\n<ul>\n<li><p><code>\"created\"</code> → request accepted, preparing SPEI transfer</p>\n</li>\n<li><p><code>\"processing\"</code> → SPEI transfer initiated, awaiting Banco de México settlement</p>\n</li>\n<li><p><code>\"success\"</code> → funds successfully delivered</p>\n</li>\n<li><p><code>\"error\"</code> → immediate failure (e.g., invalid CLABE, validation issue)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>status_history</strong>: Array showing timestamped states from <code>\"created\"</code> → <code>\"processing\"</code> → (<code>\"success\"</code> or <code>\"error\"</code>).</p>\n</li>\n<li><p><strong>paymentOn</strong>: Unix timestamp when the transfer actually occurred (0 if not delivered).</p>\n</li>\n<li><p><strong>redirectType</strong>: Always <code>\"GET\"</code>, meaning customer is redirected via HTTP GET to your provided URL.</p>\n</li>\n<li><p><strong>success_redirect</strong> / <strong>failure_redirect</strong> / <strong>success_callback</strong> / <strong>failure_callback</strong>: Echo of whatever you passed in request.</p>\n</li>\n</ul>\n<p><strong>Note:</strong> If you see <code>\"status\": \"ERROR\"</code> and an <code>errorMsg</code>, do not retry automatically—inspect the message, correct client data, then reinitiate a new payout request.</p>\n<hr />\n<h4 id=\"5-handling-payout-webhooks--status-flow\">5. Handling Payout Webhooks &amp; Status Flow</h4>\n<ol>\n<li><p><strong>Configure Webhooks</strong></p>\n<ul>\n<li>In your PaySecure Dashboard, register your <code>success_callback</code> and <code>failure_callback</code> URLs (these will receive POSTs once SPEI settles or fails).</li>\n</ul>\n</li>\n<li><p><strong>Listen for Events</strong></p>\n<ul>\n<li><p><code>payout.success</code>: Banco de México confirmed the credit to beneficiary’s CLABE.</p>\n</li>\n<li><p><code>payout.error</code>: CLABE invalid, account closed, or transfer rejected.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Update Your Records</strong></p>\n<ul>\n<li><p>On <code>payout.success</code>: Mark disbursement as complete; notify your finance/operations teams.</p>\n</li>\n<li><p>On <code>payout.error</code>: Log failure details, alert operations for manual review, and optionally retry after fixing the root cause.</p>\n</li>\n</ul>\n</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","payout",""],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"4dab5d98-0256-4010-b792-0fdae91bc97f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"MX\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"MARCO ANTONIO FERNANDEZ RAMIREZ\",\n        \"stateCode\": \"test\",\n        \"spei_clabe\": \"012180027944986158\"\n    },\n    \"purpose\": \"payout\",\n    \"currency\": \"MXN\",\n    \"payoutMethod\": \"PAYOUT-SPEI\",\n    \"amount\": 20,\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\n    \"success_callback\": \"https://test1.com\",\n    \"failure_callback\": \"https://test2.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"683d778dc74d23074a56ea94\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"MARCO ANTONIO FERNANDEZ RAMIREZ\",\n        \"country\": \"MX\",\n        \"spei_clabe\": \"012180027944986155\",\n        \"stateCode\": \"test\"\n    },\n    \"updated_on\": 1748858765,\n    \"payoutMethod\": \"PAYOUT-SPEI\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 20,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1748858765,\n    \"merchantRef\": \"683d778dc74d23074a56ea94\",\n    \"status\": \"paid\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748858765\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1748858765\n        }\n    ],\n    \"currency\": \"MXN\",\n    \"paymentOn\": 0,\n    \"taxAmount\": 0,\n    \"taxPercent\": 0,\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\n    \"redirectType\": \"GET\",\n    \"success_callback\": \"https://test1.com\",\n    \"failure_callback\": \"https://test2.com\"\n}"}],"_postman_id":"b38b1cf4-e1af-4390-8844-1929c221c984"}],"id":"ae26816c-452d-489c-9da8-dba5ccfd4fdf","_postman_id":"ae26816c-452d-489c-9da8-dba5ccfd4fdf","description":""}],"id":"48c75ca6-f257-4774-883a-44f039e746cc","description":"<h2 id=\"overview\">Overview</h2>\n<p>SPEI (Sistema de Pagos Electrónicos Interbancarios) is Mexico’s real-time interbank transfer network operated by Banco de México. By integrating SPEI as a payment option, merchants can offer a frictionless, low-cost alternative to cards—funds settle in minutes, not days. SPEI is ubiquitous in Mexico (think coffee-to-cash within seconds), and this integration lets you tap into that network without reinventing the wheel.</p>\n<p>Key benefits:</p>\n<ul>\n<li><p><strong>Instant Settlement:</strong> Funds move from payer’s bank to merchant’s account in near real-time.</p>\n</li>\n<li><p><strong>Broad Adoption:</strong> Over 90% of Mexican bank accounts are SPEI-enabled.</p>\n</li>\n<li><p><strong>Low Fees:</strong> Typically lower transaction fees compared to card rails.</p>\n</li>\n<li><p><strong>Regulatory Compliance:</strong> Leverages Banco de México’s secure infrastructure and industry-standard validations.</p>\n</li>\n</ul>\n","_postman_id":"48c75ca6-f257-4774-883a-44f039e746cc"},{"name":"🌍 MobileMoney (Africa)","item":[{"name":"Concepts","item":[],"id":"87c5273e-8347-4f94-afe7-73c52e068b4d","description":"<h2 id=\"mobile-money-overview\"><strong>Mobile Money Overview</strong></h2>\n<p>Mobile Money is a digital payment service that allows users to send, receive, and manage money via their mobile devices. It facilitates secure and instant transactions directly between mobile wallets in the country, offering a convenient alternative to traditional banking methods in Africa.</p>\n<p>This payment method enables merchants to accept payments via Mobile Money from number of countries in Africa, and also to do payouts as well (to cutomer's local mobile wallet)</p>\n<h3 id=\"payins\"><strong>Payins</strong></h3>\n<p><strong>How It Works</strong></p>\n<p>The payin process harnesses mobile money capabilities to support effortless collections. Merchants can initiate payment requests via USSD, offering a secure, efficient, and flexible method to collect customer payments.</p>\n<blockquote>\n<p>💡 Note that the refunds are not possible over Mobile Money. Merchants have to initiate a PayOut request manually to process any refunds. </p>\n</blockquote>\n<p><strong>Key Steps</strong></p>\n<ol>\n<li><p><strong>Initiate Transfer Request:</strong><br /> The merchant sends a transaction request to the Mobile Money PayIn API. This request includes the customer’s mobile number, the collection amount, and an optional message.</p>\n</li>\n<li><p><strong>Send Notification:</strong><br /> The customer receives a USSD pop-up with payment instructions on their mobile device.</p>\n</li>\n<li><p><strong>Customer Completes Transfer:</strong><br /> The customer follows the USSD instructions, enters their security PIN if required, and authorizes the transfer of funds to the merchant’s account.</p>\n</li>\n<li><p><strong>Confirm Transfer Completion:</strong><br /> Once the payment is successful, the merchant receives a confirmation via a webhook indicating a successful transaction.</p>\n</li>\n<li><p><strong>Update Merchant’s Account:</strong><br /> The merchant’s system updates the customer’s account balance to reflect the received funds.</p>\n</li>\n</ol>\n<img src=\"https://content.pstmn.io/889a56dc-0e8a-4926-989a-9b9023d099eb/aW1hZ2UucG5n\" width=\"499\" height=\"319\" />\n\n<h3 id=\"payouts\"><strong>Payouts</strong></h3>\n<p>The payout API offers seamless payouts to customers over mobile money. Whether processing refunds, rewards, or other disbursements, our APIs delivers efficient, reliable transactions with real-time fund transfers and detailed transaction tracking.</p>\n<p><strong>Key Steps:</strong></p>\n<ol>\n<li><p><strong>Initiate Payout Request:</strong><br /> When a customer requests a withdrawal, the merchant site calls the Paysecure Payouts API to start the mobile money payout. This request includes the customer’s mobile number, the transfer amount, and the currency.</p>\n</li>\n<li><p><strong>Send Notification:</strong><br /> Customers receive an immediate USSD notification confirming the successful payout, while merchants are notified via an instant webhook.</p>\n</li>\n<li><p><strong>Update Merchant’s Account:</strong><br /> The merchant’s account balance is promptly updated to reflect the transaction.</p>\n</li>\n</ol>\n","_postman_id":"87c5273e-8347-4f94-afe7-73c52e068b4d"},{"name":"Coverage","item":[],"id":"14fee8a0-b087-41a7-ba27-c4a5b56439df","description":"<h3 id=\"fully-supported-countries-pay-ins--pay-outs\">Fully Supported Countries: Pay-ins &amp; Pay-outs</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Country</strong></th>\n<th><strong>Region</strong></th>\n<th><strong>Telco</strong></th>\n<th><strong>Settlement Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Cameroon</td>\n<td>FSSA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Cameroon*</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>DRC</td>\n<td>SEA</td>\n<td>Airtel</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>DRC</td>\n<td>SEA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>DRC</td>\n<td>SEA</td>\n<td>Vodacom</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Uganda</td>\n<td>SEA</td>\n<td>Airtel</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Uganda</td>\n<td>SEA</td>\n<td>MTN**</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Zambia</td>\n<td>SEA</td>\n<td>Airtel_*\\_</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Zambia</td>\n<td>SEA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>Footnotes:</strong></p>\n<ul>\n<li><p>*For Cameroon, a licence is required.</p>\n</li>\n<li><p>**MTN support in Uganda covers only pay-ins (collections).</p>\n</li>\n<li><p>*_\\_Airtel support in Zambia covers only pay-ins (collections).</p>\n</li>\n</ul>\n<h2 id=\"partially-supported-countries\">Partially Supported Countries</h2>\n<h3 id=\"pay-ins-collections-only--crossborder\">Pay-ins (Collections) Only – Crossborder</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Country</strong></th>\n<th><strong>Region</strong></th>\n<th><strong>Telco</strong></th>\n<th><strong>Settlement Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Benin</td>\n<td>FSSA</td>\n<td>Moov</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Benin</td>\n<td>FSSA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Burkina Faso</td>\n<td>FSSA</td>\n<td>Moov</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Burkina Faso</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Burkina Faso</td>\n<td>FSSA</td>\n<td>Mobicash</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Côte d'Ivoire</td>\n<td>FSSA</td>\n<td>Moov</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Côte d'Ivoire</td>\n<td>FSSA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Côte d'Ivoire</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Côte d'Ivoire</td>\n<td>FSSA</td>\n<td>Wave</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Guinea Conakry</td>\n<td>FSSA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Guinea Conakry</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Kenya</td>\n<td>SEA</td>\n<td>M-Pesa</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Mali</td>\n<td>FSSA</td>\n<td>Mobicash</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Mali</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Nigeria</td>\n<td>AWA</td>\n<td>Baxi</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Nigeria</td>\n<td>AWA</td>\n<td>Banks</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Rwanda</td>\n<td>SEA</td>\n<td>Airtel</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Rwanda</td>\n<td>SEA</td>\n<td>MTN</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Senegal</td>\n<td>FSSA</td>\n<td>Free</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Senegal</td>\n<td>FSSA</td>\n<td>Orange</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Senegal</td>\n<td>FSSA</td>\n<td>Wave</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Tanzania</td>\n<td>SEA</td>\n<td>Airtel</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Tanzania</td>\n<td>SEA</td>\n<td>Vodacom</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Tanzania</td>\n<td>SEA</td>\n<td>Tigo</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Togo</td>\n<td>FSSA</td>\n<td>Moov – Flooz</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Togo</td>\n<td>FSSA</td>\n<td>Togocell T-Money</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Additional countries going live in General Release in Q2 2025: Botswana, Congo Brazzaville, and Gabon.</em></p>\n<p><em>South Africa will go liver in Q3 2025.</em></p>\n<hr />\n<h3 id=\"pay-outs-disbursement-only--crossborder\">Pay-outs (Disbursement) Only – Crossborder</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Country</strong></th>\n<th><strong>Region</strong></th>\n<th><strong>Telco</strong></th>\n<th><strong>Disbursement Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Ethiopia</td>\n<td>FSSA</td>\n<td>Amole</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Malawi</td>\n<td>SEA</td>\n<td>Airtel</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>Malawi</td>\n<td>SEA</td>\n<td>TNM</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n<tr>\n<td>South Sudan</td>\n<td>FSSA</td>\n<td>Mgurush</td>\n<td>Crossborder – USD, EUR</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>Additional countries going live in General Release in Q2 2025 (subject to successful testing and compliance review): Botswana, Congo Brazzaville, Gabon, Ivory Coast (Côte d'Ivoire), Nigeria, Rwanda, Senegal, and Tanzania.</em><br /><strong>South Africa will go live in Q3.</strong><br /><em><strong>More countries to be launched in Q2 – please speak with your Account Manager or Sales Representative for further details.</strong></em></p>\n<p><strong>Region Abbreviations:</strong></p>\n<ul>\n<li><p><strong>FSSA:</strong> Francophone Sub-Saharan Africa</p>\n</li>\n<li><p><strong>SEA:</strong> Southern and Eastern Africa</p>\n</li>\n<li><p><strong>AWA:</strong> Anglophone West Africa</p>\n</li>\n</ul>\n","_postman_id":"14fee8a0-b087-41a7-ba27-c4a5b56439df"},{"name":"PayIn API","item":[{"name":"Purchases","id":"9516942e-d693-478b-b1af-014ee281ac59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"full_name\": \"akshaya singhal\",\n        \"email\": \"akshaya@gmail.com\",\n        \"country\": \"ZA\",\n        \"city\": \"sdf\",\n        \"stateCode\": \"CA\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\",\n        \"tax_number\": \"34946395822\"\n    },\n    \"purchase\": {\n        \"currency\": \"ZAR\",\n        \"expireInMin\": \"40\",\n        \"products\": [\n            {\n                \"name\": \"he2938h\",\n                \"price\": \"100\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"MOBILEWALLET\",\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"merchantRef\": \"\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />eg. This should be 'TZS' for Tanzania</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>This parameter, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"protocol":"https","path":["api","v1","purchases",""],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"01e22647-afb2-4e8b-9bb1-7e7e761b0f06","name":"Collection","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"full_name\": \"akshaya singhal\",\n        \"email\": \"akshaya@gmail.com\",\n        \"country\": \"ZA\",\n        \"city\": \"sdf\",\n        \"stateCode\": \"ca\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\",\n        \"tax_number\": \"34946395822\"\n    },\n    \"purchase\": {\n        \"currency\": \"ZAR\",\n        \"expireInMin\": \"40\",\n        \"products\": [\n            {\n                \"name\": \"he2938h\",\n                \"price\": \"200\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"MOBILEMONEY\",\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"merchantRef\": \"\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Dec 2024 14:59:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=pWCTJZboe33ICYkJiwuwk9QQ4TLxjgXAKCGEbQUbwdP%2Bdbr%2FHFvOVzWWsAS7UIypOGSXOnu52hAILUoGn0yrB2iqXMR9PhPHoTuxnVIEyihZEXx8Fv7QXgASe%2F4CUAQc%2BMupXRwPfFI%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8edd237addbf0f97-EWR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"},{"key":"server-timing","value":"cfL4;desc=\"?proto=TCP&rtt=223565&min_rtt=223292&rtt_var=63299&sent=15&recv=16&lost=0&retrans=0&sent_bytes=4524&recv_bytes=3359&delivery_rate=19323&cwnd=255&unsent_bytes=0&cid=6b5591269d33c417&ts=10327&x=0\""}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"purchaseId\": \"67531141002e65664c0ef342\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"akshaya@gmail.com\",\n        \"phone\": \"9999999999\",\n        \"full_name\": \"akshaya singhal\",\n        \"street_address\": \"test test\",\n        \"country\": \"ZA\",\n        \"city\": \"sdf\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"tax_number\": \"34946395822\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1733497153,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"MOBILEWALLET\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"This customer can not be processed !\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1733497153,\n    \"merchantRef\": \"67531141002e65664c0ef342\",\n    \"merchantName\": \"merchant002\",\n    \"purchase\": {\n        \"currency\": \"ZAR\",\n        \"products\": [\n            {\n                \"name\": \"he2938h\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"expireInMin\": \"40\",\n        \"request_client_details\": [],\n        \"timezone\": \"MIT\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 100,\n            \"masked_pan\": \"MOBILEWALLET\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"49.36.232.165\",\n                \"type\": \"execute\",\n                \"payment_method\": \"MOBILEWALLET\",\n                \"flow\": \"payform\",\n                \"successful\": false,\n                \"country\": \"MOBILEWALLET\",\n                \"processing_time\": 1733497153,\n                \"extra\": {\n                    \"amount\": 100,\n                    \"masked_pan\": \"MOBILEWALLET\"\n                },\n                \"error\": {\n                    \"message\": \"This customer can not be processed !\",\n                    \"code\": \"transaction_error\"\n                }\n            }\n        ]\n    },\n    \"status\": \"ERROR\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1733497153\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1733497153\n        },\n        {\n            \"status\": \"error\",\n            \"timestamp\": 1733497153\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"is_recurring_token\": false,\n    \"reference_generated\": \"PS12859\",\n    \"issued\": \"2024-12-06\",\n    \"due\": 1733497153,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"49.36.232.165\",\n    \"checkout_url\": \"https://staging.paysecure.net/payments/67531141002e65664c0ef342/\",\n    \"reconciled\": false,\n    \"payoutProcess\": false\n}"}],"_postman_id":"9516942e-d693-478b-b1af-014ee281ac59"}],"id":"714a0010-1d16-44ad-bf36-7636f1f7b9e5","_postman_id":"714a0010-1d16-44ad-bf36-7636f1f7b9e5","description":""},{"name":"Payout API","item":[{"name":"Payout","id":"6f88c7c7-0f09-4167-866c-0ba1cd1c49b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"client\": {\n       \"email\": \"akshayas@gmail.com\",\n       \"full_name\": \"Akshaya Signal\",\n   },\n   \"purpose\": \"withdraw\",\n   \"payoutMethod\": \"Payout-MOBILEMONEY\",\n   \"amount\": 100,\n   \"currency\": \"TZS\",\n   \"success_callback\": \"https://Success.com\",\n   \"failure_callback\": \"https://failure.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payout, the very first call to make is/payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a PayOut, you are required to provide the <code>API key</code> (in the header), which can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.full_name</td>\n<td>Receiver Full Name</td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td>Payout-MOBILEMONEY</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td>Amount in currency</td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td>Purpose of Payout</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b7c88f76-1a7b-4d68-9bde-fd63f697245d","name":"Payout","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n   \"client\": {\n       \"email\": \"akshayas@gmail.com\",\n       \"full_name\": \"Akshaya Signal\"\n   },\n   \"purpose\": \"withdraw\",\n   \"payoutMethod\": \"Payout-MOBILEMONEY\",\n   \"amount\": 100,\n   \"currency\": \"TZS\",\n   \"success_callback\": \"https://Success.com\",\n   \"failure_callback\": \"https://failure.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\"payoutId\":\"67c93735a055ad58b6c154f0\",\"client\":{\"customerId\":\"NA\",\"email\":\"test@gmail.com\",\"phone\":\"+260762220028\",\"full_name\":\"Michael Nawa\",\"country\":\"ZZ\"},\"updated_on\":1741240117,\"payoutMethod\":\"PAYOUT-MOBILEMONEY\",\"amountUnit\":\"MAJOR\",\"amount\":500.0,\"errorMsg\":\"\",\"purpose\":\"payout to test\",\"created_on\":1741240117,\"merchantRef\":\"67c93735a055ad58b6c154f0\",\"status\":\"PAYOUT_IN_PROCESS\",\"status_history\":[{\"status\":\"created\",\"timestamp\":1741240117},{\"status\":\"payout_in_process\",\"timestamp\":1741240125}],\"currency\":\"UGX\",\"paymentOn\":0,\"success_callback\":\"\",\"failure_callback\":\"\"}"}],"_postman_id":"6f88c7c7-0f09-4167-866c-0ba1cd1c49b2"}],"id":"c4fa2ea8-323f-4d2d-9dd9-c4e8a23dfcaf","_postman_id":"c4fa2ea8-323f-4d2d-9dd9-c4e8a23dfcaf","description":""}],"id":"b7ffa088-6e76-4c7c-84e0-b809ecdd154a","_postman_id":"b7ffa088-6e76-4c7c-84e0-b809ecdd154a","description":""},{"name":"🌐 Paymint - Crypto Wallet","item":[{"name":"Concepts","item":[],"id":"7802c0e3-8fb1-4eaa-a95e-e299b7067df0","description":"<h3 id=\"customer-payment-flow\">Customer Payment Flow</h3>\n<p>1. Onboarding &amp; Wallet Creation</p>\n<ul>\n<li><p>Customer visits your site and selects a product/service.</p>\n</li>\n<li><p>At checkout, if the merchant has not pre-populated the email field, the system prompts the customer to input their email address.</p>\n</li>\n</ul>\n<p>2. Fiat Payment Initiation</p>\n<ul>\n<li><p>Customer selects a payment method and pays in fiat (currency shown on the checkout screen).</p>\n</li>\n<li><p>Paysecure monitors the transaction and, on successful payment, give success to merchant.</p>\n</li>\n<li><p>On the backend, we convert the amount to stablecoin (e.g., USDC).</p>\n</li>\n</ul>\n<p>3. Post Fiat-Payment Notification</p>\n<ul>\n<li>Merchant can track the transaction through webhooks or the Paysecure dashboard.</li>\n</ul>\n<p>4. Fiat to Crypto Conversion (Behind the scenes)</p>\n<ul>\n<li><p>The fiat amount is converted to crypto using Paysecure’s exchange integrations.</p>\n</li>\n<li><p>The converted crypto is credited to the customer’s wallet in real time.</p>\n</li>\n</ul>\n<p>5. Merchant Crypto Settlement</p>\n<ul>\n<li><p>The required amount is automatically transferred from the customer’s Paymint wallet to your merchant's Paymint wallet.</p>\n</li>\n<li><p>Both transactions (funding and transfer) are recorded in Paysecure’s ledger for compliance and traceability.</p>\n</li>\n</ul>\n<p>6. Wallet Management<br />Customer Dashboard Access Customers can manage their Paymint wallets through paymint.locker, where they can view wallet balance and transaction history.</p>\n<p>7. Wallet Security</p>\n<ul>\n<li><p>2FA verification for wallet access.</p>\n</li>\n<li><p>Ledger integrity checks for all transactions.</p>\n</li>\n</ul>\n<p>Wallet Recovery or Closure</p>\n<ul>\n<li>Customers can recover wallet access via OTP/email.</li>\n</ul>\n","_postman_id":"7802c0e3-8fb1-4eaa-a95e-e299b7067df0"},{"name":"Payin API","item":[{"name":"Purchases","id":"86cb029d-470c-4891-9efc-6d72c8a407a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"extraParam\": {\r\n        \"IsCryptoPurchase\": \"yes\"\r\n    },\r\n    \"paymentMethod\": \"\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.  <br />This should be \"CA\" for Interac</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />This should be 'CAD' for Interac</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td>name of the product or service</td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>extraParam.IsCryptoPurchase</td>\n<td>for paymint, send \"Yes\"</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>The <code>purchase.expireInMin</code>, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"381c2db4-77ac-4c10-a2a4-8562c89572a7","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"seo2009@test.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"CA\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"CAD\",\r\n        \"expireInMin\": \"80\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 100\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\r\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\r\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.url\",\r\n    \"failure_callback\": \"https://your.success.failure.url\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\"purchaseId\":\"67efd0ff97be603f97a3a697\",\"client\":{\"customerId\":\"NA\",\"email\":\"ashishm.21190@gmail.com\",\"phone\":\"+447755564318\",\"full_name\":\"Test test\",\"date_of_birth\":\"1970-07-10\",\"street_address\":\"10 New Burlington Street Apt. 214\",\"country\":\"CA\",\"city\":\"London\",\"zip_code\":\"W1S 3BE\",\"cc\":[],\"bcc\":[],\"gender\":\"MALE\",\"avatarUrl\":\"https://res.cloudinary.com/w22/image/upload/v1663783641/photos/currencies/ngn.png\",\"stateCode\":\"QLD\"},\"updated_on\":1743769856,\"type\":\"purchase\",\"paymentMethod\":\"INTERAC-ETRANSFER\",\"amountUnit\":\"MAJOR\",\"errorMsg\":\"\",\"redirectType\":\"GET\",\"force_recurring\":false,\"created_on\":1743769855,\"merchantRef\":\"67efd0ff97be603f97a3a697\",\"merchantName\":\"arunsinghal\",\"purchase\":{\"currency\":\"CAD\",\"products\":[{\"name\":\"test\",\"quantity\":1.0,\"price\":1.0,\"discount\":0,\"tax_percent\":\"0.00\"}],\"total\":1.0,\"language\":\"en\",\"notes\":\"\",\"debt\":0,\"total_formatted\":1.0,\"expireInMin\":\"43200\",\"taxAmount\":0.0,\"taxPercent\":0.0,\"request_client_details\":[],\"email_message\":\"\"},\"payment\":{\"is_outgoing\":false,\"payment_type\":\"PURCHASE\",\"amount\":1.0,\"currency\":\"CAD\",\"net_amount\":1.0,\"fee_amount\":0.0,\"pending_amount\":0.0,\"pending_unfreeze_on\":null,\"description\":\"\",\"paid_on\":1743769855,\"remote_paid_on\":1743769855},\"issuer_details\":{\"website\":\"\",\"legal_street_address\":\"\",\"legal_country\":\"\",\"legal_city\":\"\",\"legal_zip_code\":\"\",\"bank_accounts\":[{}],\"legal_name\":\"test6\",\"brand_name\":\"test6\",\"registration_number\":\"\",\"tax_number\":\"\"},\"transaction_data\":{\"payment_method\":\"\",\"flow\":\"payform\",\"extra\":{\"amount\":1.0,\"masked_pan\":\"INTERAC-ETRANSFER\"},\"country\":\"\",\"attempts\":[{\"client_ip\":\"103.59.75.41, 162.158.88.44, 130.176.93.146\",\"type\":\"execute\",\"payment_method\":\"INTERAC-ETRANSFER\",\"flow\":\"payform\",\"successful\":true,\"country\":\"INTERAC-ETRANSFER\",\"processing_time\":1743769855,\"extra\":{\"amount\":1.0,\"masked_pan\":\"INTERAC-ETRANSFER\"}}]},\"status\":\"PAYMENT_IN_PROCESS\",\"status_history\":[{\"status\":\"created\",\"timestamp\":1743769855},{\"status\":\"pending_execute\",\"timestamp\":1743769855},{\"status\":\"payment_in_process\",\"timestamp\":1743769856},{\"status\":\"viewed\",\"timestamp\":1744026697}],\"viewedOn\":1744026697,\"is_test\":false,\"brand_id\":\"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\"send_receipt\":false,\"is_recurring_token\":false,\"skip_capture\":false,\"reference_generated\":\"PS620\",\"issued\":\"2025-04-04\",\"due\":1743769855,\"refund_upto\":0,\"cc_descriptor\":\"Africhange Technologies\",\"fraudScore\":\"NA\",\"trustScore\":\"NA\",\"payInDetails\":{\"name\":\"INTERAC\",\"emailAddress\":\"transfer@ieft.ca\",\"secretQA\":\"66a8c78af1fc2f768304bce4\",\"secretAnswer\":\"ps8766a8af\"},\"paidOn\":0,\"receivedAmt\":0.0,\"refund_availability\":\"NONE\",\"refundable_amount\":0.0,\"success_redirect\":\"https://your.redirect.url/getResponse.jsp?success=true\",\"failure_redirect\":\"https://your.redirect.url/getResponse.jsp?success=false\",\"cancel_redirect\":\"\",\"success_callback\":\"https://your.success.callback.url\",\"failure_callback\":\"https://your.success.failure.url\",\"platform\":\"API\",\"created_from_ip\":\"103.59.75.41, 162.158.88.44, 130.176.93.146\",\"checkout_url\":\"https://api.choicepay.ca/payments/67efd0ff97be603f97a3a697/\",\"payoutProcess\":false}"}],"_postman_id":"86cb029d-470c-4891-9efc-6d72c8a407a1"},{"name":"Get Status","id":"bb340f9c-f2fb-42a1-931d-2646f4a9439c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5ffec083-1ed9-4735-9705-0cf3c02630e4","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"6790e75fa46a5a5bb0b00e55\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"phone\": \"+14377717874\",\n        \"full_name\": \"Test test\",\n        \"date_of_birth\": \"1970-07-10\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"country\": \"CA\",\n        \"city\": \"London\",\n        \"zip_code\": \"W1S 3BE\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"gender\": \"MALE\",\n        \"stateCode\": \"QLD\"\n    },\n    \"updated_on\": 1737549752,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"INTERAC-ETRANSFER\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"Transaction succeeded-APPROVED\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1737549663,\n    \"merchantRef\": \"6790e75fa46a5a5bb0b00e55\",\n    \"merchantName\": \"arunsinghal\",\n    \"purchase\": {\n        \"currency\": \"CAD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1,\n                \"price\": 1,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 2,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"expireInMin\": \"43200\",\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 1,\n        \"currency\": \"CAD\",\n        \"net_amount\": 1,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1737549663,\n        \"remote_paid_on\": 1737549663\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 1,\n            \"masked_pan\": \"INTERAC-ETRANSFER\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.42, 172.71.186.102, 130.176.183.14\",\n                \"type\": \"execute\",\n                \"payment_method\": \"INTERAC-ETRANSFER\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"INTERAC\",\n                \"processing_time\": 1737549663,\n                \"extra\": {\n                    \"amount\": 1,\n                    \"masked_pan\": \"INTERAC-ETRANSFER\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1737549663\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1737549663\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1737549664\n        },\n        {\n            \"status\": \"paid 2.0\",\n            \"timestamp\": 1737549752\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1737549750\n        }\n    ],\n    \"viewedOn\": 1738749942,\n    \"is_test\": false,\n    \"brand_id\": \"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS376\",\n    \"issued\": \"2025-01-22\",\n    \"due\": 1737549663,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"Africhange Technologies\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"payInDetails\": {\n        \"name\": \"INTERAC\",\n        \"emailAddress\": \"deposit@ieft.ca\",\n        \"secretQA\": \"66a8c78af1fc2f768304bce4\",\n        \"secretAnswer\": \"ps8766a8af\"\n    },\n    \"paidOn\": 1737549752,\n    \"receivedAmt\": 2,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.redirect.url/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://your.redirect.url/getResponse.jsp?success=false\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://webhook.site/83df9776-3590-4e25-9222-870e931ac868\",\n    \"failure_callback\": \"https://webhook.site/83df9776-3590-4e25-9222-870e931ac868\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.42, 172.71.186.102, 130.176.183.14\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/6790e75fa46a5a5bb0b00e55/\",\n    \"payoutProcess\": false\n}"},{"id":"9c57967a-ed25-4652-8467-42d40b69f033","name":"Purchases Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Message\",\n    \"code\": \"error_code\"\n}"}],"_postman_id":"bb340f9c-f2fb-42a1-931d-2646f4a9439c"}],"id":"0fd2e4e3-958b-46af-a087-3a5653e435ba","description":"<p><strong>API Flow</strong></p>\n<ol>\n<li><p>The merchant initiates the purchase via the <code>/purchases</code> API. If successful, they receive PayIn details along with a checkout URL in the response JSON</p>\n</li>\n<li><p>The merchant then has 2 options</p>\n<ol>\n<li><p>If the \"paymentMethod\" is passed, the payment instructions are shared with the customer. The flow differs as per the payment method.</p>\n</li>\n<li><p>If the \"paymentMethod\" is not passed, the custoemr is redirected to Paysecure cashier and complet the payment.</p>\n</li>\n</ol>\n</li>\n<li><p>After a successful or failed payment by the end user, an appropriate webhook would be sent to the merchant and the user would be redirected to the appropriate success or failure redirect URL.</p>\n</li>\n</ol>\n","_postman_id":"0fd2e4e3-958b-46af-a087-3a5653e435ba"}],"id":"8276ec47-9545-464a-a524-94994d9d9a10","description":"<h2 id=\"overview\">Overview</h2>\n<p>Paymint is a new payment method by Paysecure that allows your customers to pay in fiat while you receive funds directly in cryptocurrency, such as USDC. With Paymint, you can offer your customers a seamless payment experience in their local currency, while crypto conversion and settlement are handled in the background.<br />This guide explains the core concepts and outlines the API integration steps required to enable Paymint on your platform.</p>\n","_postman_id":"8276ec47-9545-464a-a524-94994d9d9a10"},{"name":"🌎 Neosurf - Voucher Payments","item":[{"name":"Concepts","item":[],"id":"3e56dd73-6c16-4665-a27c-67e1b96e1d64","description":"<h2 id=\"1-what-is-a-neosurf-voucher\">1. What Is a Neosurf Voucher?</h2>\n<p>A <strong>Neosurf voucher</strong> is a prepaid payment instrument that lets users make online purchases without needing a bank account or credit card. Each voucher comes with a unique code (and sometimes a PIN) and is issued in fixed denominations. These vouchers are particularly popular for digital goods and services such as gaming, software, and entertainment.</p>\n<p><strong>Key Features:</strong></p>\n<ul>\n<li><p><strong>Prepaid &amp; Secure:</strong> Funds are preloaded, reducing fraud risk.</p>\n</li>\n<li><p><strong>Anonymous:</strong> No need to share personal banking details.</p>\n</li>\n<li><p><strong>Fixed Denominations:</strong> Typically available in preset values (e.g., €10, €20, €50).</p>\n</li>\n<li><p><strong>Instant Use:</strong> Once purchased, the voucher can be used immediately for online transactions.</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"2-how-can-a-customer-buy-a-neosurf-voucher\">2. How Can a Customer Buy a Neosurf Voucher?</h2>\n<p>Neosurf vouchers are available both online and at physical retail locations. Availability varies by region, and the list below provides a general guide.</p>\n<h3 id=\"europe\"><strong>Europe</strong></h3>\n<ul>\n<li><p><strong>Western &amp; Central Europe:</strong></p>\n<ul>\n<li><p><strong>Countries:</strong> France, Germany, United Kingdom, Italy, Spain, Belgium, Netherlands, Luxembourg, Switzerland, Austria, Portugal, Ireland, Denmark, Sweden, Norway, Finland.</p>\n</li>\n<li><p><strong>Where to Buy:</strong> Local convenience stores, newsagents, supermarkets, and authorized online resellers.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Eastern Europe:</strong></p>\n<ul>\n<li><p><strong>Countries:</strong> Poland, Czech Republic, Hungary, Romania, etc.</p>\n</li>\n<li><p><strong>Where to Buy:</strong> Local retail outlets and specialized online vendors.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"north-america\"><strong>North America</strong></h3>\n<ul>\n<li><p><strong>United States &amp; Canada:</strong></p>\n<ul>\n<li><strong>Where to Buy:</strong> Select online vendors and select physical retail outlets (availability may be limited). Always verify with local authorized distributors.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"asia\"><strong>Asia</strong></h3>\n<ul>\n<li><p><strong>Southeast Asia:</strong></p>\n<ul>\n<li><p><strong>Countries:</strong> Singapore, Malaysia, Indonesia, Thailand.</p>\n</li>\n<li><p><strong>Where to Buy:</strong> Authorized e-voucher platforms online.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Other Regions:</strong></p>\n<ul>\n<li>Availability may vary. Check the Neosurf official website for up-to-date information.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"africa\"><strong>Africa</strong></h3>\n<ul>\n<li><p><strong>Example Countries:</strong></p>\n<ul>\n<li><strong>South Africa, Morocco, Tunisia:</strong> Available through select online platforms and local authorized vendors.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"oceania\"><strong>Oceania</strong></h3>\n<ul>\n<li><p><strong>Australia &amp; New Zealand:</strong></p>\n<ul>\n<li>Vouchers may be available primarily via online resellers; check local availability.</li>\n</ul>\n</li>\n</ul>\n<blockquote>\n<p>Note: For the most comprehensive and current list of regions and authorized vendors, please refer to the official Neosurf website or contact Neosurf support. </p>\n</blockquote>\n<hr />\n<h2 id=\"3-how-to-pay-using-a-neosurf-voucher\">3. How to Pay Using a Neosurf Voucher</h2>\n<p>The payment process using a Neosurf voucher with Paysecure is streamlined to offer a secure and user-friendly checkout experience. The high-level flow is as follows:</p>\n<ol>\n<li><p><strong>User Selects Neosurf at Checkout:</strong></p>\n<p> On your payment page, the customer chooses “Neosurf” as their payment method.</p>\n</li>\n<li><p><strong>API Call Initiation:</strong></p>\n<ul>\n<li><p>Merchant invokes Paysecure’s <code>/v1/purchases</code> endpoint with <code>paymentMethod = NEOSURF</code>.</p>\n</li>\n<li><p>Paysecure returns a <code>checkoutUrl</code> where the customer is redirected to Neosurf page and asked to enter their Neosurf voucher code or pay via MyNeosurf account in selected regions.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Voucher Validation:</strong></p>\n<p> Neosurf checks the voucher’s validity and available balance. <strong>If valid,</strong> the billing amount is debited from the voucher.</p>\n</li>\n<li><p><strong>Transaction Confirmation:</strong></p>\n<p> A successful webhook response confirms the transaction, and the merchant system can finalize the order.</p>\n</li>\n</ol>\n<h2 id=\"4-why-should-a-merchant-accept-neosurf-voucher\">4. Why Should a Merchant Accept NeoSurf Voucher?</h2>\n<p>Integrating Neosurf offers several compelling advantages for merchants:</p>\n<ul>\n<li><p><strong>Broader Customer Reach:</strong></p>\n<ul>\n<li>Attract customers without bank accounts or credit cards, especially in regions where traditional banking is less prevalent.</li>\n</ul>\n</li>\n<li><p><strong>Enhanced Security &amp; Reduced Fraud:</strong></p>\n<ul>\n<li>Prepaid vouchers reduce the risk of fraudulent transactions since funds are preloaded.</li>\n</ul>\n</li>\n<li><p><strong>Increased Conversion Rates:</strong></p>\n<ul>\n<li>Offering a simple and fast payment option can lower cart abandonment rates, particularly in digital and gaming markets.</li>\n</ul>\n</li>\n<li><p><strong>Customer Privacy:</strong></p>\n<ul>\n<li>NeoSurf enables anonymous transactions, appealing to users concerned about data privacy.</li>\n</ul>\n</li>\n<li><p><strong>Competitive Advantage:</strong></p>\n<ul>\n<li>Stand out by offering multiple payment options, making your platform more attractive to a diverse audience.</li>\n</ul>\n</li>\n<li><p><strong>Streamlined Integration:</strong></p>\n<ul>\n<li>With direct integration via Paysecure’s API, merchants can quickly add NeoSurf without complex changes to their existing payment workflows</li>\n</ul>\n</li>\n</ul>\n<p>Accepting NeoSurf not only diversifies your payment portfolio but also taps into a growing market of digital consumers looking for secure, convenient, and privacy-focused payment options.</p>\n","_postman_id":"3e56dd73-6c16-4665-a27c-67e1b96e1d64"},{"name":"Payin API","item":[{"name":"Purchases","id":"ad98ebbd-074d-4f08-b8dc-7db9439c7763","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"example22@paysecure.net\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"stateCode\": \"ca\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\"\n    },\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"price\": \"1\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"NEOSURF\",\n    \"brand_id\": \"{{your_brand_id_}}\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<p>The API endpoint <a href=\"https://api.paysecure.net/api/v1/purchases\">/v1/purchases</a> is a POST request used to create a new purchase. The request body should contain the client information including email, address, and phone, the purchase details such as currency and products, the payment method, and various callback and redirect URLs.</p>\n<p><strong>Final Steps for Payin API Integration</strong></p>\n<ol>\n<li><p><strong>Set Up Authentication &amp; Headers</strong></p>\n<ul>\n<li><p><strong>Endpoint:</strong> POST &gt;</p>\n</li>\n<li><p><strong>Headers (mandatory):</strong></p>\n<ul>\n<li><p>Authorization: Bearer {LIVE_API_KEY}</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Construct the Request Payload</strong></p>\n<ul>\n<li><p>Build a JSON body with:</p>\n<ul>\n<li><p>client object (KYC/AML fields):</p>\n<ul>\n<li><p>email</p>\n</li>\n<li><p>country (ISO-2 code)</p>\n</li>\n<li><p>city</p>\n</li>\n<li><p>stateCode</p>\n</li>\n<li><p>street_address</p>\n</li>\n<li><p>zip_code</p>\n</li>\n<li><p>phone</p>\n</li>\n</ul>\n</li>\n<li><p>purchase object:</p>\n<ul>\n<li><p>currency</p>\n</li>\n<li><p>products array (≥1 item with name and price)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Top-level fields:</strong></p>\n<ul>\n<li><p>paymentMethod (e.g., \"NEOSURF\")</p>\n</li>\n<li><p>brand_id (your Brand UUID)</p>\n</li>\n<li><p>success_redirect (HTTPS URL after success)</p>\n</li>\n<li><p>failure_redirect (HTTPS URL after failure)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Invoke the Payin API</strong></p>\n<ul>\n<li><p>Send the JSON payload to <a href=\"https://api.paysecure.net/v1/purchases\">https://api.paysecure.net/v1/purchases</a></p>\n</li>\n<li><p>Expect 200 OK with a response containing:</p>\n<ul>\n<li><p>purchaseId</p>\n</li>\n<li><p>status = PENDING</p>\n</li>\n<li><p>checkout_url</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Extract Key References</strong></p>\n<ul>\n<li><p>purchaseId (e.g., 68394314d3c4ef68d6cbb58c): for tracking/reconciliation.</p>\n</li>\n<li><p>checkout_url (e.g., <a href=\"https://api.paysecure.net/payments/68394314d3c4ef68d6cbb58c/\">https://api.paysecure.net/payments/68394314d3c4ef68d6cbb58c/</a>): redirect here so the customer can complete voucher entry.</p>\n</li>\n<li><p>Redirect Customer <code>window.location.href = response.checkout_url;</code> Customer enters their 10-digit Neosurf voucher on redirected page.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Listen for Webhook Notifications</strong></p>\n<ul>\n<li><p>Ensure your endpoint handles:</p>\n<ul>\n<li><p>purchase.paid</p>\n</li>\n<li><p>purchase.error</p>\n</li>\n<li><p>purchase.cancelled</p>\n</li>\n</ul>\n</li>\n<li><p>Each payload will include purchaseId, status, amount, currency, etc.</p>\n</li>\n</ul>\n</li>\n</ol>\n<h3 id=\"mandatory-parameters\">Mandatory Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Authorization</strong></td>\n<td>string</td>\n<td><code>Bearer {API_KEY}</code> (replace with your live or staging API key).</td>\n</tr>\n<tr>\n<td><strong>Content-Type</strong></td>\n<td>string</td>\n<td>Must be <code>application/json</code>.</td>\n</tr>\n<tr>\n<td><strong>client.email</strong></td>\n<td>string</td>\n<td>Customer’s email (e.g., <code>example22@paysecure.net</code>).</td>\n</tr>\n<tr>\n<td><strong>client.country</strong></td>\n<td>string</td>\n<td>ISO‐3166 Alpha-2 code (e.g., <code>IN</code>).</td>\n</tr>\n<tr>\n<td><strong>client.city</strong></td>\n<td>string</td>\n<td>City name or code (e.g., <code>123</code>).</td>\n</tr>\n<tr>\n<td><strong>client.stateCode</strong></td>\n<td>string</td>\n<td>State or province code (two letters where possible, e.g., <code>ca</code>).</td>\n</tr>\n<tr>\n<td><strong>client.street_address</strong></td>\n<td>string</td>\n<td>Street address line (e.g., <code>test test</code>).</td>\n</tr>\n<tr>\n<td><strong>client.zip_code</strong></td>\n<td>string</td>\n<td>Postal/ZIP code (e.g., <code>234567</code>).</td>\n</tr>\n<tr>\n<td><strong>client.phone</strong></td>\n<td>string</td>\n<td>Customer’s phone number (E.164 recommended, e.g., <code>9999999999</code>).</td>\n</tr>\n<tr>\n<td><strong>purchase.currency</strong></td>\n<td>string</td>\n<td>Currency code (e.g., <code>AUD</code>).</td>\n</tr>\n<tr>\n<td><strong>purchase.products</strong></td>\n<td>array</td>\n<td>Must contain at least one object with <code>name</code> and <code>price</code>.</td>\n</tr>\n<tr>\n<td>└─ <strong>products.name</strong></td>\n<td>string</td>\n<td>Product name or SKU (e.g., <code>dk</code>).</td>\n</tr>\n<tr>\n<td>└─ <strong>products.price</strong></td>\n<td>string</td>\n<td>Unit price in major currency units (e.g., <code>\"1\"</code> = 1.00 AUD).</td>\n</tr>\n<tr>\n<td><strong>paymentMethod</strong></td>\n<td>string</td>\n<td>Payment rail code (e.g., <code>NEOSURF</code>).</td>\n</tr>\n<tr>\n<td><strong>brand_id</strong></td>\n<td>string</td>\n<td>Live or staging Brand UUID (e.g., <code>c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636</code>).</td>\n</tr>\n<tr>\n<td><strong>success_redirect</strong></td>\n<td>string</td>\n<td>HTTPS URL to redirect after successful payment (e.g., <code>https://your.success.redirect.com</code>).</td>\n</tr>\n<tr>\n<td><strong>failure_redirect</strong></td>\n<td>string</td>\n<td>HTTPS URL to redirect after failed payment (e.g., <code>https://your.failure.redirect.com</code>).</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","purchases"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"3d4d2138-0924-491d-9956-dac80cc5224f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"example22@paysecure.net\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"stateCode\": \"ca\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\"\n    },\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"price\": \"1\"\n            }\n        ]\n    },\n    \"paymentMethod\": \"NEOSURF\",\n    \"brand_id\": \"{{your_brand_id_}}\",\n    \"send_receipt\": \"\",\n    \"skip_capture\": \"\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"683d6bab12b471481d4f66cf\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"example22@paysecure.net\",\n        \"phone\": \"9999999999\",\n        \"date_of_birth\": \"1800-01-01\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1748855724,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"NEOSURF\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1748855723,\n    \"merchantRef\": \"683d6bab12b471481d4f66cf\",\n    \"merchantName\": \"arunsinghal\",\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 1,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 1,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 1,\n        \"currency\": \"AUD\",\n        \"net_amount\": 1,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1748855723,\n        \"remote_paid_on\": 1748855723\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 1,\n            \"masked_pan\": \"NEOSURF\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.242, 162.158.23.126, 130.176.183.12\",\n                \"type\": \"execute\",\n                \"payment_method\": \"NEOSURF\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"NEOSURF\",\n                \"processing_time\": 1748855723,\n                \"extra\": {\n                    \"amount\": 1,\n                    \"masked_pan\": \"NEOSURF\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748855723\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1748855723\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1748855724\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"30f7ce6e-3b7e-46a2-9b50-484fc55be689\",\n    \"is_recurring_token\": false,\n    \"reference_generated\": \"PS784\",\n    \"issued\": \"2025-06-02\",\n    \"due\": 1748855723,\n    \"refund_upto\": 1749024924,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"0\",\n    \"trustScore\": \"0\",\n    \"paidOn\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 1,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.242, 162.158.23.126, 130.176.183.12\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/683d6bab12b471481d4f66cf/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"ad98ebbd-074d-4f08-b8dc-7db9439c7763"}],"id":"1126cb88-7adb-4cb4-a297-7fd0376b988b","_postman_id":"1126cb88-7adb-4cb4-a297-7fd0376b988b","description":""},{"name":"Payout API","item":[{"name":"Payout API","id":"5033366d-74dc-4ec2-897a-2e27c5183977","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"akshayadeepsinghal@gmail.com\",\n        \"country\": \"AU\",\n        \"phone\": \"+11111111\",\n        \"full_name\": \"PAYOUT USER\",\n        \"stateCode\": \"test\"\n    },\n    \"purpose\": \"test payout\",\n    \"currency\": \"AUD\",\n    \"payoutMethod\": \"PAYOUT-NEOSURF\",\n    \"amount\": 1,\n    \"success_callback\": \"https://success.com\",\n    \"failure_callback\": \"https://failure.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<h3 id=\"create-payout\">Create Payout</h3>\n<p>This endpoint allows you to initiate a payout transaction.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>client</code> (object, required): Details of the client initiating the payout.</p>\n<ul>\n<li><p><code>email</code> (string): The email of the client.</p>\n</li>\n<li><p><code>country</code> (string): The country of the client.</p>\n</li>\n<li><p><code>phone</code> (string): The phone number of the client.</p>\n</li>\n<li><p><code>full_name</code> (string): The full name of the client.</p>\n</li>\n<li><p><code>stateCode</code> (string): The state code of the client.</p>\n</li>\n</ul>\n</li>\n<li><p><code>purpose</code> (string, required): The purpose of the payout.</p>\n</li>\n<li><p><code>currency</code> (string, required): The currency of the payout.</p>\n</li>\n<li><p><code>payoutMethod</code> (string, required): The method of payout.</p>\n</li>\n<li><p><code>amount</code> (number, required): The amount of the payout.</p>\n</li>\n<li><p><code>success_callback</code> (string, required): The URL to which the success callback will be sent.</p>\n</li>\n<li><p><code>failure_callback</code> (string, required): The URL to which the failure callback will be sent.</p>\n</li>\n</ul>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will contain the details of the initiated payout transaction.</p>\n","urlObject":{"protocol":"https","path":["api","v1","payout",""],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"8f9a2a04-c490-4da1-a9d7-3ef5b9a3fb65","name":"New Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{your_API_Key}}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"akshayadeepsinghal@gmail.com\",\n        \"country\": \"AU\",\n        \"phone\": \"+11111111\",\n        \"full_name\": \"PAYOUT USER\",\n        \"stateCode\": \"test\"\n    },\n    \"purpose\": \"test payout\",\n    \"currency\": \"AUD\",\n    \"payoutMethod\": \"PAYOUT-NEOSURF\",\n    \"amount\": 1,\n    \"success_callback\": \"https://success.com\",\n    \"failure_callback\": \"https://failure.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"683d6fee57aff00ab5faf3c6\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"akshayadeepsinghal@gmail.com\",\n        \"phone\": \"+11111111\",\n        \"full_name\": \"PAYOUT USER\",\n        \"country\": \"AU\",\n        \"stateCode\": \"test\"\n    },\n    \"updated_on\": 1748856814,\n    \"payoutMethod\": \"PAYOUT-NEOSURF\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 1,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1748856814,\n    \"merchantRef\": \"683d6fee57aff00ab5faf3c6\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748856814\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1748856816\n        }\n    ],\n    \"currency\": \"AUD\",\n    \"paymentOn\": 1748856816,\n    \"taxAmount\": 0,\n    \"taxPercent\": 0,\n    \"redirectType\": \"POST\",\n    \"success_callback\": \"https://success.com\",\n    \"failure_callback\": \"https://failure.com\"\n}"}],"_postman_id":"5033366d-74dc-4ec2-897a-2e27c5183977"}],"id":"58e50607-07f1-4ce8-8909-1e2b6c7944f7","_postman_id":"58e50607-07f1-4ce8-8909-1e2b6c7944f7","description":""}],"id":"e567cab4-2c8e-47d3-a1f6-91bbe67aa62e","description":"<p>Neosurf is now available as a payment method on Paysecure, giving your customers a fast, secure, and convenient prepaid payment option. This guide explains what a Neosurf voucher is, how to acquire one across different regions, how to process a payment with it, and other key details of the integration.</p>\n","_postman_id":"e567cab4-2c8e-47d3-a1f6-91bbe67aa62e"},{"name":"🇦🇺 PayID","item":[{"name":"Concepts","item":[],"id":"b9b80b73-855f-498e-a7e9-2e83fa274f07","description":"<h3 id=\"what-is-a-payid\">What is a PayID?</h3>\n<p>A <strong>PayID</strong> is a user-friendly alias (such as an email, mobile number, or ABN) linked to a bank account. Payments made to a PayID are resolved in real-time via the <strong>NPP (New Payments Platform)</strong> to the associated account.</p>\n<h3 id=\"use-cases\">Use Cases</h3>\n<ul>\n<li><p><strong>PayIn:</strong> Accept customer payments instantly with lower failure rates and no chargebacks.</p>\n</li>\n<li><p><strong>PayOut:</strong> Send real-time refunds, payroll, commissions, or supplier settlements via PayID.</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"payin-customer-journey\">PayIn Customer Journey</h2>\n<ol>\n<li><p><strong>Customer Initiates Payment</strong><br /> On the merchant’s checkout page or app, the user selects PayID as the payment method and proceeds.</p>\n</li>\n<li><p><strong>API Call to Paysecure</strong><br /> The merchant initiates a <code>POST /purchases</code> request with transaction details (amount, currency). Paysecure responds with a <code>purchaseId</code>, <code>checkoutUrl</code>, and a <strong>merchant PayID</strong> to which the customer should transfer funds.</p>\n</li>\n<li><p><strong>Customer Authorizes via Banking App</strong><br /> The customer logs into their internet or mobile banking, enters the <strong>PayID</strong> (received from Paysecure), the <strong>exact amount</strong>, and confirms the transfer.</p>\n</li>\n<li><p><strong>Real-time Bank Transfer</strong><br /> The customer’s bank processes the payment via NPP. Funds are instantly credited to Paysecure’s account.</p>\n</li>\n<li><p><strong>Webhook Notification</strong><br /> Once payment is received, Paysecure sends a webhook (<code>purchase.paid</code>) to the merchant. Merchant updates order status to “paid.”</p>\n</li>\n<li><p><strong>Error Handling</strong><br /> If the payment fails (due to invalid PayID, rejection by bank, or insufficient funds), Paysecure returns a <code>purchase.failed</code> status.</p>\n</li>\n</ol>\n<hr />\n<h2 id=\"payout-customer-journey\">PayOut Customer Journey</h2>\n<ol>\n<li><p><strong>User Requests Withdrawal</strong><br /> A user initiates a payout (e.g., a refund, reward, or withdrawal) from the merchant interface.</p>\n</li>\n<li><p><strong>Merchant Approval</strong><br /> The merchant verifies and approves the request.</p>\n</li>\n<li><p><strong>API Call to Paysecure</strong><br /> Merchant sends a <code>POST /payouts</code> request with:</p>\n<ul>\n<li><p>Recipient's PayID (e.g., email or phone)</p>\n</li>\n<li><p>Amount</p>\n</li>\n<li><p>Currency</p>\n</li>\n<li><p>Optional reference or metadata</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Bank Transfer via NPP</strong><br /> Paysecure initiates the payout. Funds are credited to the recipient’s bank account in real-time via NPP.</p>\n</li>\n<li><p><strong>Webhook Notification</strong><br /> Once successful, Paysecure notifies the merchant (<code>payout.success</code>) so they can update their system.</p>\n</li>\n<li><p><strong>Failure Scenarios</strong><br /> If the PayID is invalid or unregistered, the payout fails. Paysecure responds with an error, and the merchant can retry after fixing the issue.</p>\n</li>\n</ol>\n<hr />\n","_postman_id":"b9b80b73-855f-498e-a7e9-2e83fa274f07"},{"name":"Payin API","item":[{"name":"Purchases","id":"5ebbed07-4d64-4d52-95ef-de9ecc78a4ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"seo2009@test.com\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"city\": \"Sydney\",\n        \"full_name\": \"Test test\",\n        \"zip_code\": \"W1S 3BE\",\n        \"country\": \"AU\",\n        \"stateCode\": \"QLD\",\n        \"phone\": \"+447755564318\"\n    },\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"price\": 100\n            }\n        ]\n    },\n    \"paymentMethod\": \"PAYID\",\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\n    \"success_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=true>\",\n    \"pending_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=true>\",\n    \"failure_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=false>\",\n    \"success_callback\": \"<https://your.success.callback.url>\",\n    \"failure_callback\": \"<https://your>..failure.callback.url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<h3 id=\"purchase-api-endpoint\">Purchase API Endpoint</h3>\n<p>This endpoint allows you to create a new purchase transaction. It processes the purchase details, including client information, product details, and payment method, and returns the result of the transaction.</p>\n<h4 id=\"request-format\">Request Format</h4>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>URL</strong>: <code>https://api.paysecure.net/api/v1/purchases</code></p>\n</li>\n<li><p><strong>Request Body</strong>: The request should be in JSON format and must include the following structure:</p>\n</li>\n</ul>\n<h4 id=\"response-structure\">Response Structure</h4>\n<p>The response will contain the result of the purchase transaction. The structure of the response may include:</p>\n<ul>\n<li><p><strong>status</strong>: Indicates the success or failure of the transaction.</p>\n</li>\n<li><p><strong>message</strong>: A descriptive message regarding the transaction status.</p>\n</li>\n<li><p><strong>transaction_id</strong>: Unique identifier for the transaction (if successful).</p>\n</li>\n<li><p><strong>redirect_url</strong>: URL to redirect the user based on the transaction result.</p>\n</li>\n</ul>\n<p>Make sure to handle the response appropriately based on the status returned.</p>\n","urlObject":{"protocol":"https","path":["api","v1","purchases"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"5e1b4229-d0e8-4764-87b2-abce4159ac61","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"seo2009@test.com\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"city\": \"Sydney\",\n        \"full_name\": \"Test test\",\n        \"zip_code\": \"W1S 3BE\",\n        \"country\": \"AU\",\n        \"stateCode\": \"QLD\",\n        \"phone\": \"+447755564318\"\n    },\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"price\": 100\n            }\n        ]\n    },\n    \"paymentMethod\": \"PAYID\",\n    \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\n    \"success_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=true>\",\n    \"pending_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=true>\",\n    \"failure_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=false>\",\n    \"success_callback\": \"<https://your.success.callback.url>\",\n    \"failure_callback\": \"<https://your>..failure.callback.url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"68441c2a7559cf659fd7e835\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"arun44@gmail.com\",\n        \"phone\": \"+237679544810\",\n        \"full_name\": \"Olive Tsafack\",\n        \"street_address\": \"test test\",\n        \"country\": \"AU\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1749294123,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"PAYID\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1749294123,\n    \"merchantRef\": \"68441c2a7559cf659fd7e835\",\n    \"merchantName\": \"Merchant002\",\n    \"purchase\": {\n        \"currency\": \"AUD\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"timezone\": \"MIT\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"44\",\n        \"brand_name\": \"44\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CREATED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1749294123\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS19963\",\n    \"issued\": \"2025-06-07\",\n    \"due\": 1749294123,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"paidOn\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=true>\",\n    \"failure_redirect\": \"<https://your.redirect.url/getResponse.jsp?success=false>\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"<https://webhook.site/ec813a7a-4dd1-4aa3-99f3-f01637ab224c>\",\n    \"failure_callback\": \"<https://webhook.site/ec813a7a-4dd1-4aa3-99f3-f01637ab224c>\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"183.83.54.51\",\n    \"checkout_url\": \"<https://staging.paysecure.net/payments/68441c2a7559cf659fd7e835/>\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"5ebbed07-4d64-4d52-95ef-de9ecc78a4ec"}],"id":"81376dd5-f0dc-4ccf-9f11-438d640eaa41","_postman_id":"81376dd5-f0dc-4ccf-9f11-438d640eaa41","description":""},{"name":"Payout API","item":[{"name":"New Request","id":"d49481ba-c0ab-46b9-ad6a-9c10937b1a0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"CA\",\n        \"phone\": \"7665230591\",\n        \"full_name\": \"Test Person-uk\"\n    },\n    \"purpose\": \"testing payout\",\n    \"currency\": \"AUD\",\n    \"payoutMethod\": \"PAYOUT-PAYID\",\n    \"amount\": 50,\n    \"extraParam\": {\n        \"payId\": \"KeU6r2egQmQZeqUfkPYC7HSU1EDrn2GYyU\",\n        \"bankName\": \"test bank name\",\n        \"accountName\": \"arun\"\n    },\n    \"success_callback\": \"<https://success.com>\",\n    \"failure_callback\": \"<https://failure.com>\"\n}","options":{"raw":{"language":"json"}}},"url":"<https://staging.paysecure.net/api/v1/payout/>","description":"<h2 id=\"payout-request-api\">Payout Request API</h2>\n<p>This endpoint allows clients to initiate a payout transaction. It requires specific details about the client and the payout method to process the request successfully.</p>\n<h3 id=\"request-format\">Request Format</h3>\n<p>The request must be sent as a JSON object in the raw body. The following parameters are expected:</p>\n<ul>\n<li><p><strong>client</strong>: An object containing client information.</p>\n<ul>\n<li><p><strong>email</strong> (string): The email address of the client.</p>\n</li>\n<li><p><strong>country</strong> (string): The country of the client.</p>\n</li>\n<li><p><strong>phone</strong> (string): The phone number of the client.</p>\n</li>\n<li><p><strong>full_name</strong> (string): The full name of the client.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>purpose</strong> (string): A brief description of the reason for the payout (e.g., \"testing payout\").</p>\n</li>\n<li><p><strong>currency</strong> (string): The currency in which the payout is to be made (e.g., \"AUD\").</p>\n</li>\n<li><p><strong>payoutMethod</strong> (string): The method used for the payout (e.g., \"PAYOUT-PAYID\").</p>\n</li>\n<li><p><strong>amount</strong> (number): The amount to be paid out.</p>\n</li>\n<li><p><strong>extraParam</strong>: An object containing additional payout parameters.</p>\n<ul>\n<li><p><strong>payId</strong> (string): The unique identifier for the payout.</p>\n</li>\n<li><p><strong>bankName</strong> (string): The name of the bank associated with the payout.</p>\n</li>\n<li><p><strong>accountName</strong> (string): The name on the account receiving the payout.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>success_callback</strong> (string): A URL that will be called upon successful completion of the payout.</p>\n</li>\n<li><p><strong>failure_callback</strong> (string): A URL that will be called if the payout fails.</p>\n</li>\n</ul>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>The response from this endpoint will typically include details about the status of the payout request, which may include:</p>\n<ul>\n<li><p>A success message or error details.</p>\n</li>\n<li><p>A transaction ID for tracking purposes.</p>\n</li>\n<li><p>Any additional information relevant to the payout process.</p>\n</li>\n</ul>\n<p>Ensure to handle both success and failure callbacks appropriately based on the response received from this endpoint.</p>\n","urlObject":{"protocol":"<https","path":["api","v1","payout",">"],"host":["staging","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"5277c7e7-5395-4c46-8bc8-a9e93046b164","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"CA\",\n        \"phone\": \"7665230591\",\n        \"full_name\": \"Test Person-uk\"\n    },\n    \"purpose\": \"testing payout\",\n    \"currency\": \"AUD\",\n    \"payoutMethod\": \"PAYOUT-PAYID\",\n    \"amount\": 50,\n    \"extraParam\": {\n        \"payId\": \"KeU6r2egQmQZeqUfkPYC7HSU1EDrn2GYyU\",\n        \"bankName\": \"test bank name\",\n        \"accountName\": \"arun\"\n    },\n    \"success_callback\": \"<https://success.com>\",\n    \"failure_callback\": \"<https://failure.com>\"\n}","options":{"raw":{"language":"json"}}},"url":"<https://staging.paysecure.net/api/v1/payout/>"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"683d6fee57aff00ab5faf3c6\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"akshayadeepsinghal@gmail.com\",\n        \"phone\": \"+11111111\",\n        \"full_name\": \"PAYOUT USER\",\n        \"country\": \"AU\",\n        \"stateCode\": \"test\"\n    },\n    \"updated_on\": 1748856814,\n    \"payoutMethod\": \"PAYOUT-PAYID\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 1,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1748856814,\n    \"merchantRef\": \"683d6fee57aff00ab5faf3c6\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748856814\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1748856816\n        }\n    ],\n    \"currency\": \"AUD\",\n    \"paymentOn\": 1748856816,\n    \"taxAmount\": 0,\n    \"taxPercent\": 0,\n    \"redirectType\": \"POST\",\n    \"success_callback\": \"<https://success.com>\",\n    \"failure_callback\": \"<https://failure.com>\"\n}"},{"id":"d6632b66-55a6-4a62-8381-dafac8be87d0","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"ashishm.21190@gmail.com\",\n        \"country\": \"CA\",\n        \"phone\": \"7665230591\",\n        \"full_name\": \"Test Person-uk\"\n    },\n    \"purpose\": \"testing payout\",\n    \"currency\": \"AUD\",\n    \"payoutMethod\": \"PAYOUT-PAYID\",\n    \"amount\": 50,\n    \"extraParam\": {\n        \"payId\": \"KeU6r2egQmQZeqUfkPYC7HSU1EDrn2GYyU\",\n        \"bankName\": \"test bank name\",\n        \"accountName\": \"arun\"\n    },\n    \"success_callback\": \"<https://success.com>\",\n    \"failure_callback\": \"<https://failure.com>\"\n}","options":{"raw":{"language":"json"}}},"url":"<https://staging.paysecure.net/api/v1/payout/>"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"payoutId\": \"683d6fee57aff00ab5faf3c6\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"akshayadeepsinghal@gmail.com\",\n        \"phone\": \"+11111111\",\n        \"full_name\": \"PAYOUT USER\",\n        \"country\": \"AU\",\n        \"stateCode\": \"test\"\n    },\n    \"updated_on\": 1748856814,\n    \"payoutMethod\": \"PAYOUT-PAYID\",\n    \"amountUnit\": \"MAJOR\",\n    \"amount\": 1,\n    \"errorMsg\": \"\",\n    \"purpose\": \"test payout\",\n    \"created_on\": 1748856814,\n    \"merchantRef\": \"683d6fee57aff00ab5faf3c6\",\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1748856814\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1748856816\n        }\n    ],\n    \"currency\": \"AUD\",\n    \"paymentOn\": 1748856816,\n    \"taxAmount\": 0,\n    \"taxPercent\": 0,\n    \"redirectType\": \"POST\",\n    \"success_callback\": \"<https://success.com>\",\n    \"failure_callback\": \"<https://failure.com>\"\n}"}],"_postman_id":"d49481ba-c0ab-46b9-ad6a-9c10937b1a0d"}],"id":"c6b9dd27-e6fd-46c5-bc06-a158c0924015","_postman_id":"c6b9dd27-e6fd-46c5-bc06-a158c0924015","description":""}],"id":"d3daf44f-6b6d-414c-b034-7b2fe2a98a9d","description":"<p>PayID is a real-time payment method in Australia built on the New Payments Platform (NPP). It allows customers to make or receive payments using simple identifiers like their mobile number or email address, eliminating the need to remember BSB and account numbers.</p>\n<p>Paysecure enables merchants to both <strong>accept payments (PayIn)</strong> and <strong>send payouts (PayOut)</strong> using PayID. Transactions are settled instantly, and users benefit from seamless user experience with low friction.</p>\n","_postman_id":"d3daf44f-6b6d-414c-b034-7b2fe2a98a9d"},{"name":"🌐 CryptoBridge","item":[{"name":"Concepts","item":[],"id":"ffef1044-5ad9-481b-885d-c5b95ae5ab33","description":"<h2 id=\"💸-customer-payin-journey\">💸 Customer PayIn Journey</h2>\n<ol>\n<li><p><strong>Checkout</strong><br /> Customer chooses <strong>CryptoBridge</strong> as the payment method on merchant's checkout page.</p>\n</li>\n<li><p><strong>Payment Pop-up Opens</strong><br /> A secure pop-up opens where the customer:</p>\n<ul>\n<li><p>Selects their preferred exchange or DeFi wallet</p>\n</li>\n<li><p>Links the account</p>\n</li>\n<li><p>Selects the eligible token and blockchain network</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Fee Preview</strong><br /> Customer reviews the full fee structure:</p>\n<ul>\n<li><p><strong>Gas Fee</strong>: Network charge</p>\n</li>\n<li><p><strong>Institution Fee</strong>: Fee from exchange or wallet provider</p>\n</li>\n<li><p><strong>Client Fee</strong>: Optional merchant fee (can be configured via <code>clientFee</code> param)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Authentication &amp; Confirmation</strong><br /> The customer authenticates (if required by the linked wallet or exchange) and confirms the transfer.</p>\n</li>\n<li><p><strong>Payment &amp; Notification</strong><br /> On successful transfer:</p>\n<ul>\n<li><p>Crypto is sent to the merchant's <strong>receiver address</strong></p>\n</li>\n<li><p>Webhook is triggered to notify merchant of successful payment</p>\n</li>\n<li><p>Customer is redirected to success or failure URL based on transaction outcome</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Smart-Finding (Auto Swap)</strong><br /> If customer lacks sufficient balance in selected token, the system suggests a real-time token swap—reducing drop-offs and boosting conversions.</p>\n</li>\n</ol>\n","_postman_id":"ffef1044-5ad9-481b-885d-c5b95ae5ab33"},{"name":"Payin API","item":[{"name":"Purchases","id":"22b46753-0841-4092-a73a-87d124a24f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{your_API_Key}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"gaurav@gmail.com\",\n        \"full_name\": \"Gaurav Test\",\n        \"country\": \"US\",\n        \"city\": \"123\",\n        \"stateCode\": \"NYC\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\",\n        \"tax_number\": \"39933551809\"\n    },\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"product name\",\n                \"price\": 5.86\n            }\n        ]\n    },\n    \"paymentMethod\": \"CRYPTO-BRIDGE\",\n    \"brand_id\": \"cec67fe3-a01d-4d0d-b100-9fafb200fe15\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"extraParam\": {\n        \"clientFee\": 0.1 //optional\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<h3 id=\"💡-key-fields-explained\">💡 Key Fields Explained</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>paymentMethod</code></td>\n<td>Always use <code>\"CRYPTO-BRIDGE\"</code> to trigger this payment method</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>The fiat currency for the order (e.g., USD, EUR). You will be paid in crypto but this defines how much the customer will pay</td>\n</tr>\n<tr>\n<td><code>products</code></td>\n<td>One or more items being sold, with name and price</td>\n</tr>\n<tr>\n<td><code>clientFee</code></td>\n<td>Optional: A custom fee you (the merchant) want to charge — shown to the user at checkout</td>\n</tr>\n<tr>\n<td><code>success_redirect</code> / <code>failure_redirect</code></td>\n<td>Where the user should land after completing or canceling the payment</td>\n</tr>\n<tr>\n<td><code>success_callback</code> / <code>failure_callback</code></td>\n<td>Your backend URL to receive transaction status via webhook</td>\n</tr>\n<tr>\n<td><code>client</code></td>\n<td>Customer billing info</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","purchases"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"12053351-e3b3-4c86-b9a1-572dfe9d8913","name":"Purchases","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{your_API_Key}"}],"body":{"mode":"raw","raw":"{\n    \"client\": {\n        \"email\": \"gaurav@gmail.com\",\n        \"full_name\": \"Gaurav Test\",\n        \"country\": \"US\",\n        \"city\": \"123\",\n        \"stateCode\": \"NYC\",\n        \"street_address\": \"test test\",\n        \"zip_code\": \"234567\",\n        \"phone\": \"9999999999\",\n        \"tax_number\": \"39933551809\"\n    },\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"product name\",\n                \"price\": 5.86\n            }\n        ]\n    },\n    \"paymentMethod\": \"CRYPTO-BRIDGE\",\n    \"brand_id\": \"cec67fe3-a01d-4d0d-b100-9fafb200fe15\",\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"extraParam\": {\n        \"clientFee\": 0.1 //optional\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"6874ce9402f0f25ed8fc66a7\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"gaurav@gmail.com\",\n        \"phone\": \"9999999999\",\n        \"full_name\": \"Test test\",\n        \"date_of_birth\": \"1800-01-01\",\n        \"street_address\": \"test test\",\n        \"country\": \"US\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"tax_number\": \"39933551809\",\n        \"stateCode\": \"NYC\"\n    },\n    \"updated_on\": 1752485524,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"CRYPTO-BRIDGE\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1752485524,\n    \"extraParam\": {\n        \"clientFee\": 0.1\n    },\n    \"merchantRef\": \"6874ce9402f0f25ed8fc66a7\",\n    \"merchantName\": \"test\",\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"product name\",\n                \"quantity\": 1,\n                \"price\": 5.86,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 5.86,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"timezone\": \"Asia/Hong_Kong\",\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 5.86,\n        \"currency\": \"USD\",\n        \"net_amount\": 5.86,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1752485524,\n        \"remote_paid_on\": 1752485524\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"iUnicharge\",\n        \"brand_name\": \"iUnicharge\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 5.86,\n            \"masked_pan\": \"CRYPTO-BRIDGE\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.157, 172.69.203.75, 18.68.12.102\",\n                \"type\": \"execute\",\n                \"payment_method\": \"CRYPTO-BRIDGE\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"CRYPTO-BRIDGE\",\n                \"processing_time\": 1752485524,\n                \"extra\": {\n                    \"amount\": 5.86,\n                    \"masked_pan\": \"CRYPTO-BRIDGE\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1752485524\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1752485524\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1752485524\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"cec67fe3-a01d-4d0d-b100-9fafb200fe15\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS1682\",\n    \"issued\": \"2025-07-14\",\n    \"due\": 1752485524,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"100\",\n    \"trustScore\": \"2\",\n    \"paidOn\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.157, 172.69.203.75, 18.68.12.102\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/6874ce9402f0f25ed8fc66a7/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"22b46753-0841-4092-a73a-87d124a24f78"}],"id":"a8b41a0b-a25b-472f-931e-8817a600b250","description":"<h2 id=\"🔗-how-to-accept-payments-with-cryptobridge-payin-api\">🔗 How to Accept Payments with CryptoBridge (PayIn API)</h2>\n<p>To let your customers pay in crypto (while you list your prices in fiat), you need to initiate a <strong>Create Purchase API</strong> call from your backend when a customer selects CryptoBridge at checkout. This API tells PaySecure the details of the transaction, customer, and where to redirect the user after payment.</p>\n<h3 id=\"🔥-what-happens-when-you-call-this-api\">🔥 What Happens When You Call This API</h3>\n<ul>\n<li><p>You send order details (amount, products, etc.) in <strong>USD or any fiat currency</strong></p>\n</li>\n<li><p>You specify that the <strong>payment method</strong> is <code>CRYPTO-BRIDGE</code></p>\n</li>\n<li><p>Optionally, you can <strong>add your own processing fee</strong> using <code>clientFee</code> — this will be shown to the customer before they confirm payment</p>\n</li>\n<li><p>PaySecure returns a secure <code>checkout_url</code> which you can use to <strong>redirect the customer to a crypto payment pop-up</strong></p>\n</li>\n<li><p>The customer pays using their crypto wallet or exchange, and once it's confirmed:</p>\n<ul>\n<li><p>You get an <strong>instant webhook notification</strong></p>\n</li>\n<li><p>The user is redirected back to your success or failure page</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"a8b41a0b-a25b-472f-931e-8817a600b250"}],"id":"d0f349bb-efa4-4bd2-b4ee-941a4ecdb3d4","description":"<h2 id=\"📖-overview\">📖 Overview</h2>\n<p><strong>CryptoBridge</strong> is a fiat-denominated crypto payment method that allows merchants to list goods and services in fiat while accepting payment in crypto. The platform automatically handles real-time conversion, token selection, and network routing—abstracting all crypto complexities from the merchant.</p>\n<p>Customers can link their exchange or DeFi wallets (from over 400+ supported providers including Binance, Coinbase, Metamask, etc.) and make seamless crypto transfers. Fees such as gas, institutional charges, and optional merchant processing fees are transparently displayed and deducted before confirmation.</p>\n<hr />\n<h3 id=\"✅-key-benefits\">✅ Key Benefits</h3>\n<ul>\n<li><p><strong>Fiat-based pricing</strong> with crypto-native checkout</p>\n</li>\n<li><p><strong>No crypto inventory management</strong> needed</p>\n</li>\n<li><p><strong>Real-time conversion</strong> of fiat to eligible tokens</p>\n</li>\n<li><p><strong>Access to 400+ exchanges and DeFi wallets</strong></p>\n</li>\n<li><p><strong>Smart token swapping</strong> feature for low-balance users – improves approval rates by up to 40%</p>\n</li>\n<li><p><strong>Full transparency</strong> in fee breakdown: gas, institutional, merchant/client fee</p>\n</li>\n<li><p><strong>Webhook-based confirmation</strong> for real-time order processing</p>\n</li>\n</ul>\n","_postman_id":"d0f349bb-efa4-4bd2-b4ee-941a4ecdb3d4"},{"name":"Virtual Accounts (South Korea)","item":[{"name":"Concepts","item":[],"id":"7991ca13-7aac-4a1e-9c0d-4d255fc97c5d","description":"<h3 id=\"payin\"><strong>Payin</strong></h3>\n<p>The PayIn flow proceeds as follows:</p>\n<ol>\n<li><p><strong>Customer Initiates:</strong> The merchant’s site or app presents Virtual Account as a payment option to its customers. The customer selects it and clicks on Pay.</p>\n</li>\n<li><p><strong>API Request:</strong> The merchant calls Paysecure’s PayIn API (e.g. POST <code>/purchases</code> ) with the transaction amount and the currency. Paysecure returns a purchase ID and provide a URL for the customer to continue.</p>\n</li>\n<li><p><strong>Virtual Account Displayed</strong>: The customer is shown their unique bank account details in which they need to deposit the money.</p>\n</li>\n<li><p><strong>Customer Authorisation</strong>: The customer logs into their online/mobile banking and adds the bank account as a beneficiary and amount provided by Paysecure. They confirm the transaction in their banking app.</p>\n</li>\n<li><p><strong>Real-time Transfer</strong>: The customer’s bank sends the funds to the virtual account generated for the user.</p>\n</li>\n<li><p><strong>Notification</strong>: Once payment is received, Paysecure triggers a webhook to the merchant with details (amount, currency, payer info, timestamp, etc.). The purchase status in Paysecure can also be queried via the get status API.</p>\n</li>\n<li><p><strong>Merchant Fulfillment:</strong> Upon webhook confirmation, the merchant fulfills the order or credits the customer’s wallet.</p>\n</li>\n<li><p>If any step fails (e.g. the bank account is invalid, the customer’s bank declines the transfer, or there are insufficient funds), Paysecure returns an error status. The merchant sees the payment failed and can prompt the customer to retry or choose another method.</p>\n</li>\n</ol>\n","_postman_id":"7991ca13-7aac-4a1e-9c0d-4d255fc97c5d"},{"name":"Payin","item":[{"name":"Create Purchase","id":"ef0b7b8b-3587-42c7-a11f-2342b94a967a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n  \"client\": {\n    \"email\": \"seo2009@test.com\",\n    \"street_address\": \"10 New Burlington Street Apt. 214\",\n    \"city\": \"Sydney\",\n    \"full_name\": \"Test test\",\n    \"zip_code\": \"W1S 3BE\",\n    \"country\": \"KR\",\n    \"stateCode\": \"QLD\",\n    \"phone\": \"+447755564318\",\n    \"date_of_birth\": \"1970-07-10\"\n  },\n  \"purchase\": {\n    \"currency\": \"KRW\",\n    \"products\": [\n      {\n        \"name\": \"test\",\n        \"price\": 100\n      }\n    ]\n  },\n  \"paymentMethod\": \"VIRTUAL-ACCOUNT\",\n  \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\n  \"success_redirect\": \"https://your.success.redirect.url\",\n  \"pending_redirect\": \"https://your.pending.redirect.url\",\n  \"failure_redirect\": \"https://your.failure.redirect.url\",\n  \"success_callback\": \"https://your.success.callback.url\",\n  \"failure_callback\": \"https://your.failure.callback.url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<h3 id=\"payin-api\"><strong>Payin API</strong></h3>\n<img src=\"https://content.pstmn.io/e448df41-3cb5-4b2a-9dc5-f961d9048bff/dW5uYW1lZC0yLnBuZw==\" alt height=\"301\" width=\"800\" />\n\n<p><strong>Integration Steps:</strong> To integrate Virtual Account payments with Paysecure, follow these steps:</p>\n<ol>\n<li><p><strong>Enable Virtual Account in Paysecure</strong>: Sign up with Paysecure and ensure the Virtual Account payment method is enabled for your merchant account. Get your API keys for authentication (test and live).</p>\n</li>\n<li><p><strong>Configure Webhooks</strong>: Set up Paysecure webhooks (e.g. transaction.paid, transaction.failed) so your system is notified of payment status changes.</p>\n</li>\n<li><p><strong>Implement PayIn</strong> (Customer Payments): In your checkout flow, allow the customer to choose Virtual Account and then call Paysecure’s PayIn API (e.g. POST /purchases ) with parameters such as amount, currency and paymentMethod=VIRTUAL-ACCOUNT. To generate a Purchase, you are required to provide the Brand ID (in the request body) and API key (in the header). Both can be located in the Dashboard section of your merchant account login.</p>\n</li>\n</ol>\n","urlObject":{"protocol":"https","path":["api","v1","purchases"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"960ab212-7095-403a-8120-f102a4a1888e","name":"purchase-sucess","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\n  \"client\": {\n    \"email\": \"seo2009@test.com\",\n    \"street_address\": \"10 New Burlington Street Apt. 214\",\n    \"city\": \"Sydney\",\n    \"full_name\": \"Test test\",\n    \"zip_code\": \"W1S 3BE\",\n    \"country\": \"KR\",\n    \"stateCode\": \"QLD\",\n    \"phone\": \"+447755564318\",\n    \"date_of_birth\": \"1970-07-10\"\n  },\n  \"purchase\": {\n    \"currency\": \"KRW\",\n    \"products\": [\n      {\n        \"name\": \"test\",\n        \"price\": 100\n      }\n    ]\n  },\n  \"paymentMethod\": \"VIRTUAL-ACCOUNT\",\n  \"brand_id\": \"f6aff7d7-bb40-4857-bc84-9b4c8310b043\",\n  \"success_redirect\": \"https://your.success.redirect.url\",\n  \"pending_redirect\": \"https://your.pending.redirect.url\",\n  \"failure_redirect\": \"https://your.failure.redirect.url\",\n  \"success_callback\": \"https://your.success.callback.url\",\n  \"failure_callback\": \"https://your.failure.callback.url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"purchaseId\": \"68441c2a7559cf659fd7e835\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"arun44@gmail.com\",\n        \"phone\": \"+237679544810\",\n        \"full_name\": \"Olive Tsafack\",\n        \"street_address\": \"test test\",\n        \"country\": \"KR\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1749294123,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"VIRTUAL-ACCOUNT\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1749294123,\n    \"merchantRef\": \"68441c2a7559cf659fd7e835\",\n    \"merchantName\": \"Merchant002\",\n    \"purchase\": {\n        \"currency\": \"KRW\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"timezone\": \"MIT\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"44\",\n        \"brand_name\": \"44\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CREATED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1749294123\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS19963\",\n    \"issued\": \"2025-06-07\",\n    \"due\": 1749294123,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"paidOn\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.success.redirect.url\",\n    \"pending_redirect\": \"https://your.pending.redirect.url\",\n    \"failure_redirect\": \"https://your.failure.redirect.url\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.url\",\n    \"failure_callback\": \"https://your.failure.callback.url\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"183.83.54.51\",\n    \"checkout_url\": \"https://staging.paysecure.net/payments/68441c2a7559cf659fd7e835/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"ef0b7b8b-3587-42c7-a11f-2342b94a967a"},{"name":"Get Status","id":"daf96390-c01f-4be4-ac3b-31bde951772f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f703ebaa-a3d7-497d-b3ab-14d05de91d2e","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"65f95faa70fe897720c40a15\",\r\n    \"client\": {\r\n----\r\n       },\r\n    \"updated_on\": 1710841770,\r\n    \"type\": \"purchase\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1710841770,\r\n    \"merchantRef\": \"65f95faa70fe897720c40a15\",\r\n    \"merchantName\": \"test\",\r\n    \"purchase\": {\r\n----\r\n    },\r\n    \"issuer_details\": {\r\n-----\r\n    },\r\n    \"transaction_data\": {\r\n----\r\n    },\r\n    \"status\": \"CREATED\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1710841770\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS2697\",\r\n    \"issued\": \"2024-03-19\",\r\n    \"due\": 1710841770,\r\n    \"refund_upto\": 0,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 0.0,\r\n    \"paymentMethod\" : \"BANKTRANSFER\",\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814 \",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n    \"cancel_redirect\": \"\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"110.235.229.223\",\r\n    \"checkout_url\": \"https://app.paysecure.net/payments/65f95faa70fe897720c40a15/\"\r\n}\r\n"},{"id":"092b4ebf-8119-4b89-b157-4104fc0cb01e","name":"Purchases","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"daf96390-c01f-4be4-ac3b-31bde951772f"}],"id":"7a315c6b-531a-4e0b-9af2-eb1efde81914","_postman_id":"7a315c6b-531a-4e0b-9af2-eb1efde81914","description":""}],"id":"9e1414b5-864a-4a67-a8f8-6aed4f517411","description":"<p>A <strong>Virtual Account (VA)</strong> is a unique, system-generated bank account number provided to a merchant or end-customer for the purpose of collecting payments.</p>\n<p>Unlike a traditional pooled account where many customers pay into the same bank account and merchants must rely on payer references to reconcile funds, a Virtual Account is unique per customer, transaction, or use case. This ensures that when a payment is received, it is automatically mapped and reconciled to the correct merchant/customer without manual intervention.</p>\n<h2 id=\"concepts\">Concepts</h2>\n<ul>\n<li><p><strong>Unique Identifiers:</strong> Each VA has its own account number or IBAN.</p>\n</li>\n<li><p><strong>Seamless Reconciliation:</strong> Payments are matched automatically based on the VA, eliminating reliance on free-text references.</p>\n</li>\n<li><p><strong>Local &amp; Cross-Border Coverage:</strong> Can be issued in multiple currencies and geographies (e.g., USD ACH, EUR SEPA, GBP FPS, INR UPI).</p>\n</li>\n<li><p><strong>Temporary or Permanent:</strong> Can be dynamic (per transaction/session) or static (per customer).</p>\n</li>\n<li><p><strong>Bank-Grade Security:</strong> Issued through Paysecure’s partner banks and fully compliant with local regulations.</p>\n</li>\n</ul>\n<h2 id=\"benefits\">Benefits</h2>\n<ul>\n<li><p><strong>Operational Efficiency</strong> – no manual reconciliation of payer references.</p>\n</li>\n<li><p><strong>Improved Customer Experience</strong> – clear payment instructions, fewer failed/misapplied payments.</p>\n</li>\n<li><p><strong>Global Reach</strong> – merchants can collect funds locally in multiple regions without needing a local bank entity.</p>\n</li>\n<li><p><strong>Scalability</strong> – supports thousands of customers with individual VAs.</p>\n</li>\n</ul>\n<h2 id=\"use-cases\"><strong>Use Cases</strong></h2>\n<ul>\n<li><p><strong>User-Specific Collections &amp; Attribution:</strong> Assign a unique VA to each user or customer, enabling precise tracking and reconciliation. Ideal for platforms needing granular visibility into who sent what and when.</p>\n</li>\n<li><p><strong>Digital Wallets &amp; Balances:</strong> Support digital wallets by integrating dedicated VAs per wallet to manage real-time balances.</p>\n</li>\n<li><p><strong>In-House Banking / Treasury Management:</strong> Use VAs to simulate an internal banking structure. This supports efficient ledger transfers between your internal entities, lowering operational cost and friction.</p>\n</li>\n<li><p><strong>One-Time Transaction Handling (Events, Invoices, Deposits):</strong> Create temporary or dynamic VAs for specific, short-term needs.</p>\n</li>\n<li><p><strong>Local &amp; Multi-Currency Receivables:</strong> Facilitate local payments in multiple currencies and countries without opening physical accounts.</p>\n</li>\n</ul>\n","_postman_id":"9e1414b5-864a-4a67-a8f8-6aed4f517411"}],"id":"774850b4-dfb4-4d16-9255-4dbff8ad87d6","_postman_id":"774850b4-dfb4-4d16-9255-4dbff8ad87d6","description":""},{"name":"🏦 Bank Transfers","item":[{"name":"Concepts","item":[],"id":"f7ee921a-c78d-4b70-a064-982747ab9b95","description":"<h2 id=\"payin-flows\">PayIn Flows</h2>\n<p><strong>How it works</strong></p>\n<p>Paysecure's A2A paying system, utilizes the powerful Virtual Accounts capabilities, enabling you to support a wide range of scenarios using the following methods.</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/XMBcrVkVU_Iak6-k1uzllUV3Lr6e_wVP_25CzedW8zYahgDiRS1KmuGMn8obKpQ8DnSrMuNvE4GvFEcoe3_0oeDNnAsGtfGf9EtQnNZpnoFNt9iAuoWtSjBDwXIAm6a3fdeY61GPtXbJUw0d_bGBRIU\" alt />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p>The merchant platform retrieves the account details (Account number, IBAN, and SWIFT code) for the merchant-assigned currency account intended for the PayIn.</p>\n</li>\n<li><p>These account details are then provided to the payer, who is instructed to make the payment to this account.</p>\n</li>\n<li><p>The payer accesses their banking app and inputs the provided account details along with the transaction amount.</p>\n</li>\n<li><p>Upon receiving the money from the payer, Paysecure promptly receives an Inward Credit Notification (ICN) webhook from its banking partner, confirming that the funds have been deposited into the corresponding virtual account.</p>\n</li>\n<li><p>The ICN contains all relevant transaction details. Paysecure forwards this notification to the merchant to inform them of the transaction.</p>\n</li>\n</ul>\n<h2 id=\"payout-flows\"><strong>PayOut flows</strong></h2>\n<p><strong>How it works</strong><br />Paysecure offers the ability to make payments to customers', individuals', or businesses' bank accounts using various transfer methods via its dashboard or suite of APIs. The dashboard consolidates all available features accessible through APIs, allowing you to easily go live with minimal technical setup.\"</p>\n<p><strong>Key Steps</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/Zuu8ZB-0YkxC4jOKNmeEqwM6LMvLMxdTewRcU9AzcNQUOttY3aqan6-ojn2OOU7cF5B2npN8zrPPFnjbV90i2Uu0Ai05H-a730GMu52zK39fTEy0WWIEP3HC9UDTf4t78nagMG1-GannNAvqOXmD9vM\" alt />\n\n<p><strong>Flow</strong></p>\n<ul>\n<li><p>The merchant platform initiates the creation of a payout by passing beneficiary details, along with payout details.</p>\n</li>\n<li><p>Beneficiary details include</p>\n</li>\n<li><p>Beneficiary ID (email or phone)</p>\n</li>\n<li><p>Beneficiary's address (is mandatory but not validated. So if you have this data we recommend you send it, otherwise, use some random value.)</p>\n</li>\n<li><p>Beneficiary's bank details</p>\n</li>\n<li><p>Beneficiary's name</p>\n</li>\n<li><p>Upon completion of the payout, reaching either a Success or Failure state, Paysecure notifies the merchant’s platform via webhook, providing the final status of the transaction and additional details.</p>\n</li>\n</ul>\n","_postman_id":"f7ee921a-c78d-4b70-a064-982747ab9b95"},{"name":"Status Code","item":[],"id":"3ffa848b-5388-4173-8b3b-244df495b457","description":"<h1 id=\"http-response-code\">HTTP Response Code</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Triggering Event</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Successful Response</td>\n</tr>\n<tr>\n<td>202</td>\n<td>successful / Accepted</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request, the given data is invalid, or data is required</td>\n</tr>\n<tr>\n<td>401</td>\n<td>unauthorized request</td>\n</tr>\n<tr>\n<td>404</td>\n<td>page not found</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method Not Allowed (GET/POST)</td>\n</tr>\n<tr>\n<td>415</td>\n<td>unsupported media type</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable content, data is required</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too many request attempt</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div><p>You will not get Error codes if HTTPS response code is 200 or 202.</p>\n<h2 id=\"error-codes-and-messages\">Error Codes and Messages</h2>\n<h3 id=\"with-http-code400404401415405\">with http code(400,404,401,415,405)</h3>\n<p>Below is the list of possible error codes and the corresponding messages from Paysecure System</p>\n<h2 id=\"format\">Format</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Message</strong></th>\n<th><strong>APIs that could generate the error code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authentication_failed</td>\n<td>Authorization header missing</td>\n<td>All</td>\n</tr>\n<tr>\n<td>already_in_process</td>\n<td>Some Processing is running on this purchaseId</td>\n<td>All</td>\n</tr>\n<tr>\n<td>unsupported_media_type</td>\n<td>Unsupported media type \"text/plain; charset=ISO-8859-1\" in request.</td>\n<td>All</td>\n</tr>\n<tr>\n<td>authentication_failed</td>\n<td>Incorrect secret_key/Invalid Merchant Type</td>\n<td>All</td>\n</tr>\n<tr>\n<td>transaction_error</td>\n<td>See the table below</td>\n<td>See the table below</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"5af90fb4-8ae2-4850-abb1-358ff7401f8e"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"299ca791-48ad-4b21-a1d5-5b52f87a3690"}}],"_postman_id":"3ffa848b-5388-4173-8b3b-244df495b457"},{"name":"PayIn API","item":[{"name":"Create Purchase","id":"0385cff7-be68-4b2f-a095-682c0c4978d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"GB\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"USD\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814 \",\r\n    \"success_redirect\": \"https://your.success.redirect.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"signature\": \"RShYJXst+wi8yPMAi/PSqV4JkJpTrXrl9yRYPUiagrSqBNMXEPndEQD6gnKQYq1syKW7B/s7XmRmnzWnB2QDCBHjtv/ZAg4o5lDmOIPDjVdIgHpZ8EMOvF/O/64D9JaLRViIrjSM/kPiAKbxWsoQtmKumfcly7hwL50iZNUovp3jnzoGtOTWLkbUTDk4xPH1OrAwVUeqkmYFgD9bkQZ/MgSB+p/0ahRskx6jjNlKlG1vujk1dWckgw35CwLJwThx/ZW52kpAp+3GwDaANic0vV3dJOhsqpW8+3G0tIiL4+8FBFAFb31jM6K7CpjuI1lwFZoa4+mQEw+/xLBMiDjPyQ==\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case. Example “SG” (Alpha2)</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />Please note, the currency has to be enbaled by the account manager for your account.</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in progress</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"digital-signature-optional-parameter-\">Digital Signature (Optional Parameter) :</h3>\n<p>To ensure authenticity and non-repudiation of the the pay in request, there is an option to digitally sign the pay in request by using the merchant's public key.</p>\n<p><strong>Public key generation :-</strong></p>\n<img src=\"https://content.pstmn.io/1e198415-45ef-49d9-9dbf-8270bb853dab/aW1hZ2UucG5n\" width=\"1570\" height=\"743\" />\n\n<p><strong>Signature generation :-</strong></p>\n<p>This digitial signature is generated by encrypting the following elements of the pay in request:<br />Plaintext= Client.email+purchase.currency+ purchase.products.price+brand_id</p>\n<p><strong>Example of encrypt plaintext with public key in java:-</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">private String encryptData(String plaintext, PublicKey publicKey) throws Exception {\n    Cipher cipher = Cipher.getInstance(\"RSA\");\n    cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n    byte[] encryptedbytes = cipher.doFinal(message.getBytes());\n    return new String(Base64.getEncoder * ().encode(encryptedbytes));\n}\n\n</code></pre>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"2def4773-73f7-4385-a7a7-5316e950b1ea","name":"Purchase- success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"GB\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"USD\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"brand_id\": \"{{SriTrustScoreTestBrandID}}\",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\",\r\n    \"signature\": \"RShYJXst+wi8yPMAi/PSqV4JkJpTrXrl9yRYPUiagrSqBNMXEPndEQD6gnKQYq1syKW7B/s7XmRmnzWnB2QDCBHjtv/ZAg4o5lDmOIPDjVdIgHpZ8EMOvF/O/64D9JaLRViIrjSM/kPiAKbxWsoQtmKumfcly7hwL50iZNUovp3jnzoGtOTWLkbUTDk4xPH1OrAwVUeqkmYFgD9bkQZ/MgSB+p/0ahRskx6jjNlKlG1vujk1dWckgw35CwLJwThx/ZW52kpAp+3GwDaANic0vV3dJOhsqpW8+3G0tIiL4+8FBFAFb31jM6K7CpjuI1lwFZoa4+mQEw+/xLBMiDjPyQ==\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"66334635a2cf2a7da7b192ab\",\r\n    \"client\": {\r\n        \"bank_account\": \"\",\r\n        \"bank_code\": \"\",\r\n        \"email\": \"test3@gmail.com\",\r\n        \"phone\": \"+447755564318\",\r\n        \"full_name\": \"\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"personal_code\": \"\",\r\n        \"street_address\": \"asdfsa\",\r\n        \"country\": \"GB\",\r\n        \"city\": \"a\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"shipping_street_address\": \"\",\r\n        \"shipping_country\": \"\",\r\n        \"shipping_city\": \"\",\r\n        \"shipping_zip_code\": \"\",\r\n        \"cc\": [],\r\n        \"bcc\": [],\r\n        \"legal_name\": \"\",\r\n        \"brand_name\": \"\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\",\r\n        \"documentId\": \"\",\r\n        \"documentType\": \"\",\r\n        \"bankAccountNumber\": \"\",\r\n        \"bankAccount\": \"\",\r\n        \"bankCode\": \"\",\r\n        \"description\": \"\",\r\n        \"stateCode\": \"QLD\"\r\n    },\r\n    \"updated_on\": 1714636341,\r\n    \"type\": \"purchase\",\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"GET\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1714636341,\r\n    \"merchantRef\": \"66334635a2cf2a7da7b192ab\",\r\n    \"merchantName\": \"merchant002\",\r\n    \"feesDeducted\": 0.3,\r\n    \"purchaseIdShortCode\": “4000013\",\r\n    \"purchase\": {\r\n        \"currency\": \"JPY\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"quantity\": 1.0,\r\n                \"price\": 5000.0,\r\n                \"discount\": 0,\r\n                \"tax_percent\": \"0.00\"\r\n            }\r\n        ],\r\n        \"total\": 5000.0,\r\n        \"language\": \"en\",\r\n        \"notes\": \"\",\r\n        \"debt\": 0,\r\n        \"total_formatted\": 1.0,\r\n        \"request_client_details\": [],\r\n        \"timezone\": \"MIT\",\r\n        \"email_message\": \"\"\r\n    },\r\n    \"payment\": {\r\n        \"is_outgoing\": false,\r\n        \"payment_type\": \"PURCHASE\",\r\n        \"amount\": 5000.0,\r\n        \"currency\": \"JPY\",\r\n        \"net_amount\": 5000.0,\r\n        \"fee_amount\": 0.0,\r\n        \"pending_amount\": 0.0,\r\n        \"pending_unfreeze_on\": null,\r\n        \"description\": \"\",\r\n        \"paid_on\": 1714636341,\r\n        \"remote_paid_on\": 1714636341\r\n    },\r\n    \"issuer_details\": {\r\n        \"website\": \"\",\r\n        \"legal_street_address\": \"\",\r\n        \"legal_country\": \"\",\r\n        \"legal_city\": \"\",\r\n        \"legal_zip_code\": \"\",\r\n        \"bank_accounts\": [\r\n            {\r\n                \"bank_account\": \"\",\r\n                \"bank_code\": \"\"\r\n            }\r\n        ],\r\n        \"legal_name\": \"gdhnb\",\r\n        \"brand_name\": \"gdhnb\",\r\n        \"registration_number\": \"\",\r\n        \"tax_number\": \"\"\r\n    },\r\n    \"transaction_data\": {\r\n        \"payment_method\": \"\",\r\n        \"flow\": \"payform\",\r\n        \"extra\": {\r\n            \"amount\": 5000.0,\r\n            \"masked_pan\": \"BANKTRANSFER\"\r\n        },\r\n        \"country\": \"\",\r\n        \"attempts\": [\r\n            {\r\n                \"client_ip\": \"103.59.75.41\",\r\n                \"type\": \"execute\",\r\n                \"payment_method\": \"BANKTRANSFER\",\r\n                \"flow\": \"payform\",\r\n                \"successful\": true,\r\n                \"country\": \"BANKTRANSFER\",\r\n                \"processing_time\": 1714636341,\r\n                \"extra\": {\r\n                    \"amount\": 5000.0,\r\n                    \"masked_pan\": \"BANKTRANSFER\"\r\n                }\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"PAYMENT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1714636341\r\n        },\r\n        {\r\n            \"status\": \"pending_execute\",\r\n            \"timestamp\": 1714636341\r\n        },\r\n        {\r\n            \"status\": \"payment_in_process\",\r\n            \"timestamp\": 1714636341\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"76fad4ea-2ba2-4511-8989-3bed04e7d5bb\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS8937\",\r\n    \"issued\": \"2024-05-02\",\r\n    \"due\": 1714636341,\r\n    \"refund_upto\": 0,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"payInBankDetails\": {\r\n        \"accountName\": \"ｴｱｰｳｵﾚﾂｸｽｼﾞｬﾊﾟﾝｶﾌﾞｼｷｶｲｼｬ\",\r\n        \"accountNumber\": \"3194368\",\r\n        \"bankName\": \"MUFG BANK, LTD. 三菱UFJ銀行\",\r\n        \"swiftCode\": \"BOTKJPJT\",\r\n        \"branchName\": \"ワカタケ\",\r\n        \"accountType\": \"CHECKING\",\r\n        \"payment_routing_parameters\": {\r\n            \"BANK_CODE\": \"0005\",\r\n            \"BRANCH_CODE\": \"809\"\r\n        }\r\n    },\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 0.0,\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"cancel_redirect\": \"\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"103.59.75.41\",\r\n    \"checkout_url\": \"https://staging.paysecure.net/payments/66334635a2cf2a7da7b192ab/\"\r\n}"},{"id":"83bc22fc-a420-45ab-be9f-a71d3c268196","name":"Create Purchase","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"test@gmail.com\",\r\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\r\n        \"city\": \"London\",\r\n        \"full_name\": \"Test test\",\r\n        \"zip_code\": \"W1S 3BE\",\r\n        \"country\": \"GB\",\r\n        \"date_of_birth\": \"1970-07-10\",\r\n        \"stateCode\": \"QLD\",\r\n        \"phone\": \"+447755564318\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"USD\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test \",\r\n                \"price\": 10\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"brand_id\": \"{{SriTrustScoreTestBrandID}}\",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://test.com/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"0385cff7-be68-4b2f-a095-682c0c4978d9"},{"name":"Get Status","id":"46b18c70-c88e-44fe-b0d6-677317783fa4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"119a92a4-d940-48f5-be4b-543cf6795aa4","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"purchaseId\": \"65f95faa70fe897720c40a15\",\r\n    \"client\": {\r\n----\r\n       },\r\n    \"updated_on\": 1710841770,\r\n    \"type\": \"purchase\",\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"errorMsg\": \"\",\r\n    \"redirectType\": \"POST\",\r\n    \"force_recurring\": false,\r\n    \"created_on\": 1710841770,\r\n    \"merchantRef\": \"65f95faa70fe897720c40a15\",\r\n    \"merchantName\": \"test\",\r\n    \"purchase\": {\r\n----\r\n    },\r\n    \"issuer_details\": {\r\n-----\r\n    },\r\n    \"transaction_data\": {\r\n----\r\n    },\r\n    \"status\": \"CREATED\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1710841770\r\n        }\r\n    ],\r\n    \"is_test\": false,\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814\",\r\n    \"send_receipt\": false,\r\n    \"is_recurring_token\": false,\r\n    \"skip_capture\": false,\r\n    \"reference_generated\": \"PS2697\",\r\n    \"issued\": \"2024-03-19\",\r\n    \"due\": 1710841770,\r\n    \"refund_upto\": 0,\r\n    \"cc_descriptor\": \"\",\r\n    \"fraudScore\": \"NA\",\r\n    \"trustScore\": \"NA\",\r\n    \"refund_availability\": \"NONE\",\r\n    \"refundable_amount\": 0.0,\r\n    \"paymentMethod\" : \"BANKTRANSFER\",\r\n    \"brand_id\": \"90ed108b-6753-465d-8a21-e2cc604ff814 \",\r\n    \"success_redirect\": \"https://test.com/getResponse.jsp?success=true\",\r\n    \"failure_redirect\": \"https://test.com/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://test1.com\",\r\n    \"failure_callback\": \"https://test2.com\"\r\n    \"cancel_redirect\": \"\",\r\n    \"platform\": \"API\",\r\n    \"created_from_ip\": \"110.235.229.223\",\r\n    \"checkout_url\": \"https://app.paysecure.net/payments/65f95faa70fe897720c40a15/\"\r\n}\r\n"},{"id":"40e1c142-a111-40be-8cf1-2fa1137ef5ce","name":"Purchases","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"46b18c70-c88e-44fe-b0d6-677317783fa4"}],"id":"f611fa06-58bd-4b95-9e51-048afc607cc3","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/cfWw_RYZ9eZVEKzKjeRW4I_VwbBTyqH78LUrJG6ulp7FkE1pXVD6DZr9MnQXB9KH_oLFasJDb156naCsBc2bgotPaVY7LtGOJNifpTOb5uks3fjAKpgVhU4dsXQmQ7hFKNFIVhZEl2p8fCN1YufsRaA\" />\n\n<ol>\n<li><p>The merchant initiates the purchase via the create purchase API. If successful, they receive PayIn bank details along with a checkout URL in the response JSON</p>\n</li>\n<li><p>The merchant then has 2 options</p>\n<ol>\n<li><p>Use the PayIn bank details in the JSON to create a webpage within the merchant’s IT estate, and show to user the PayIn instruction</p>\n</li>\n<li><p>Or direct the end-user to our checkout URL, where the client sees bank details for payment.</p>\n</li>\n</ol>\n</li>\n<li><p>After a successful or failed payment by the end user, an appropriate webhook would be sent to the merchant. If option 2b was the method employed, the user would be redirected to the appropriate redirect URL.</p>\n</li>\n</ol>\n","_postman_id":"f611fa06-58bd-4b95-9e51-048afc607cc3"},{"name":"PayOut API","item":[{"name":"Create PayOut","id":"189e3df6-748d-40af-a68c-b1b57b30dc6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n      \"client\":\r\n        {\r\n    \"email\": \"customer141@email.uk\",\r\n         \"phone\": \"1234567890\",\r\n    \"country\" : \"SG\",\r\n    \"zip_code\" : \"123456\",\r\n    \"city\" : \"Singapore\",\r\n    \"street_address\": \"Random city address\",\r\n    \"full_name\": \"Test Person-uk\",\r\n    \"stateCode\": \"test\"\r\n        },\r\n        \"beneficiaryDetail\":{\r\n    \"bankName\": \"DBS Bank\",\r\n     \"bankAccountName\": \"test test\",\r\n    \"bankAccountCurrency\": \"SGD\",\r\n     \"bankAccountNumber\": \"12345640\",\r\n     \"bankCountryCode\" : \"SG\",\r\n     \"swiftCode\": \"DBSSSGSG\",\r\n     \"routing_param\" :\r\n     {\r\n      \"bankCode\": \"897678\",\r\n      \"bankBranchCode\" : \"888\"\r\n    }\r\n           },\r\n\"payoutMethod\" : \"Payout-BANKTRANSFER\",\r\n\"amount\" : 10,\r\n\"currency\" : \"USD\",\r\n\"purpose\" : \"payout to test\",\r\n\"success_callback\": \"https://success.com\",\r\n\"failure_callback\": \"https://failure.com\",\r\n\"signature\": \"iAiYKHaHSt+vH5GwQse3cuaZqW/NReuDJa0jzSM9YKIXjKVdbvOQMzOozwyEGZt85E+NJeLwE9Wn0BeKKYkHnMC3Aq75R9KZPM1gLtyc/pQSQi+x55KRexYS/d2Sw/2XNLZgkIUd47NxJY1niszcs29wrwC6EqJAngijMYkKWmU8w9naDLJzvTBoVhGMQhNBboRu5iIoaDMqiKNZgigkfLln6PEw4Q1CzVrxzdy89GTPuZHyEYsNrTSZSIzZM1LhOC+fyipUp/9R3HnOblRb2rDVWXLYi6X0rIrTe1G3Y79J9jGGOLA9UJGHSF9ln+GLmlOcZb47rhsXYNVYROBL8Q==\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is/payout/</p>\n<p>with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email or client.phone</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. Must be upper case. Example “SG” (Alpha2)</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankName</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankAccountName</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankAccountCurrency</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankAccountNumber</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.bankCountryCode</td>\n<td></td>\n</tr>\n<tr>\n<td>beneficiaryDetail.swiftCode</td>\n<td>Note:  <br />Generally speaking if the merchant currency account and beneficiary’s bank account are in different currencies then SWIFT code is needed.  <br />It also depends on the beneficiary currency. For example, it’s mandatory for SDG (even if the merchant’s currency account is SGD) but not for JPY.</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.routing_param</td>\n<td>See the table below</td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"digital-signature-optional-parameter-\">Digital Signature (Optional Parameter) :</h3>\n<p>To ensure authenticity and non-repudiation of the the pay out request, there is an option to digitally sign the pay out request by using the merchant's public key.</p>\n<p><strong>Public key generation :-</strong></p>\n<img src=\"https://content.pstmn.io/1e198415-45ef-49d9-9dbf-8270bb853dab/aW1hZ2UucG5n\" width=\"1570\" height=\"743\" />\n\n<p><strong>Signature generation :-</strong></p>\n<p>This digitial signature is generated by encrypting the following elements of the payout request:<br />Plain text for encryption is the combination of following.<br />Plaintext= amount+currency+beneficiaryDetail.bankAccountCurrency+beneficiaryDetail.bankAccountNumber+beneficiaryDetail.bankAccountName+ beneficiaryDetail.bankCountryCode</p>\n<p><strong>Example of encrypt plaintext with public key in java:-</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">private String encryptData(String plaintext, PublicKey publicKey) throws Exception {\n    Cipher cipher = Cipher.getInstance(\"RSA\");\n    cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n    byte[] encryptedbytes = cipher.doFinal(message.getBytes());\n    return new String(Base64.getEncoder * ().encode(encryptedbytes));\n}\n\n</code></pre>\n<h2 id=\"routing-parameters\"><strong>Routing Parameters</strong></h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Currency code</strong></th>\n<th><strong>Routing code 1</strong></th>\n<th><strong>Routing Code 2</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>SGD</td>\n<td>bankCode</td>\n<td>bankBranchCode</td>\n</tr>\n<tr>\n<td>USD</td>\n<td>ach</td>\n<td>fedwire</td>\n</tr>\n<tr>\n<td>AUD</td>\n<td>BSB</td>\n<td></td>\n</tr>\n<tr>\n<td>CAD</td>\n<td>transit_number</td>\n<td>institution_number</td>\n</tr>\n<tr>\n<td>GBP</td>\n<td>sort_code</td>\n<td></td>\n</tr>\n<tr>\n<td>HKD</td>\n<td>bankCode</td>\n<td>bankBranchCode</td>\n</tr>\n<tr>\n<td>JPY</td>\n<td>bankCode  <br />  <br />(Zengin Bank Code)</td>\n<td>bankBranchCode  <br />  <br />(Zengin Branch Code)</td>\n</tr>\n<tr>\n<td>NZD</td>\n<td>bankCode</td>\n<td>bankBranchCode</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[{"id":"ffcfc5cf-996a-4fdb-ae27-9f0f3c67acb9","name":"create payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n      \"client\":\r\n        {\r\n    \"email\": \"customer141@email.uk\",\r\n         \"phone\": \"1234567890\",\r\n    \"country\" : \"SG\",\r\n    \"zip_code\" : \"123456\",\r\n    \"city\" : \"Singapore\",\r\n    \"street_address\": \"Random city address\",\r\n    \"full_name\": \"Test Person-uk\",\r\n    \"stateCode\": \"test\"\r\n        },\r\n        \"beneficiaryDetail\":{\r\n    \"bankName\": \"DBS Bank\",\r\n     \"bankAccountName\": \"test test\",\r\n    \"bankAccountCurrency\": \"SGD\",\r\n     \"bankAccountNumber\": \"12345640\",\r\n     \"bankCountryCode\" : \"SG\",\r\n     \"swiftCode\": \"DBSSSGSG\",\r\n     \"routing_param\" :\r\n     {\r\n      \"bankCode\": \"897678\",\r\n      \"bankBranchCode\" : \"888\"\r\n    }\r\n           },\r\n\"payoutMethod\" : \"Payout-BANKTRANSFER\",\r\n\"amount\" : 10,\r\n\"currency\" : \"USD\",\r\n\"purpose\" : \"payout to test\",\r\n    \"success_callback\": \"https://success.com\",\r\n          \"failure_callback\": \"https://failure.com\",\r\n            \"signature\": \"iAiYKHaHSt+vH5GwQse3cuaZqW/NReuDJa0jzSM9YKIXjKVdbvOQMzOozwyEGZt85E+NJeLwE9Wn0BeKKYkHnMC3Aq75R9KZPM1gLtyc/pQSQi+x55KRexYS/d2Sw/2XNLZgkIUd47NxJY1niszcs29wrwC6EqJAngijMYkKWmU8w9naDLJzvTBoVhGMQhNBboRu5iIoaDMqiKNZgigkfLln6PEw4Q1CzVrxzdy89GTPuZHyEYsNrTSZSIzZM1LhOC+fyipUp/9R3HnOblRb2rDVWXLYi6X0rIrTe1G3Y79J9jGGOLA9UJGHSF9ln+GLmlOcZb47rhsXYNVYROBL8Q==\"\r\n   }","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"65ffadb4c1c83822903a9205\",\r\n    \"client\": {\r\n        \"email\": \"customer141@email.uk\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"street_address\": \"Random city address\",\r\n        \"country\": \"SG\",\r\n        \"city\": \"Singapore\",\r\n        \"zip_code\": \"123456\",\r\n        \"stateCode\": \"test\"\r\n    },\r\n    \"updated_on\": 1711254964,\r\n    \"payoutMethod\": \"Payout-BANKTRANSFER\",\r\n\t\"beneficiaryDetail\":{\r\n        \"bankName\": \"DBS Bank\",      \r\n        \"bankAccountName\": \"test test\",\r\n        \"bankAccountCurrency\": \"SGD\",\r\n        \"bankAccountNumber\": \"12345640\",\r\n        \"bankCountryCode\" : \"SG\",\r\n        \"swiftCode\": \"DBSSSGSG\",\r\n        \"routing_param\" :\r\n        {\r\n            \"bankCode\": \"897678\",\r\n            \"bankBranchCode\" : \"888\"\r\n           \r\n        }\r\n     },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 1000.0,\r\n    \"errorMsg\": \"Currency Account has insufficient balance.\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1711254972,\r\n    \"merchantRef\": \"65ffadb4c1c83822903a9205\",\r\n    \"status\": \"ERROR\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1711254964\r\n        },\r\n        {\r\n            \"status\": \"error\",\r\n            \"timestamp\": 1711254972\r\n        }\r\n    ],\r\n    \"currency\": \"USD\",\r\n\t\"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"dfbb9154-4e7e-49a2-97ff-ce5b6af6bc24","name":"create payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\"client\":\r\n    {\r\n        \"email\": \"customer141@email.uk\",\r\n  \t   \"phone\": \"1234567890\",\r\n       \"country\" : \"SG\",\r\n       \"zip_code\" : \"123456\",\r\n       \"city\" : \"Singapore\",\r\n       \"street_address\": \"Random city address\",\r\n       \"full_name\": \"Test Person-uk\",\r\n       \"stateCode\": \"test\"\r\n     },\r\n \t\t \"beneficiaryDetail\":{\r\n        \"bankName\": \"DBS Bank\",      \r\n        \"bankAccountName\": \"test test\",\r\n        \"bankAccountCurrency\": \"SGD\",\r\n        \"bankAccountNumber\": \"12345640\",\r\n        \"bankCountryCode\" : \"SG\",\r\n        \"swiftCode\": \"DBSSSGSG\",\r\n        \"routing_param\" :\r\n        {\r\n            \"bankCode\": \"897678\",\r\n            \"bankBranchCode\" : \"888\"\r\n           \r\n        }\r\n          \t},\r\n \r\n\"payoutMethod\" : \"Payout-BANKTRANSFER\",\r\n\"amount\" : 10,\r\n\"currency\" : \"USD\",\r\n\"purpose\" : \"payout to test\",\r\n\"success_callback\": \"https://success.com\",\r\n\"failure_callback\": \"https://failure.com\"\r\n \r\n\t}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.paysecure.net/api/v1/payout/","host":["https://api.paysecure.net/api/v1"],"path":["payout",""],"query":[{"key":"","value":null,"disabled":true},{"key":null,"value":"","disabled":true}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":" {\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}\r\n"}],"_postman_id":"189e3df6-748d-40af-a68c-b1b57b30dc6d"},{"name":"Get Status","id":"1fa9a71a-01ac-4483-b2e0-252d411f2eb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f9ce8348-d6cb-41f4-811f-217123b200d1","name":"Get Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"65ffadb4c1c83822903a9205\",\r\n    \"client\": {\r\n        \"email\": \"customer141@email.uk\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"street_address\": \"Random city address\",\r\n        \"country\": \"SG\",\r\n        \"city\": \"Singapore\",\r\n        \"zip_code\": \"123456\",\r\n        \"stateCode\": \"test\"\r\n    },\r\n    \"updated_on\": 1711254964,\r\n    \"payoutMethod\": \"Payout-BANKTRANSFER\",\r\n    \"beneficiaryDetail\":{\r\n    \"bankName\": \"DBS Bank\",      \r\n    \"bankAccountName\": \"test test\",\r\n    \"bankAccountCurrency\": \"SGD\",\r\n    \"bankAccountNumber\": \"12345640\",\r\n    \"bankCountryCode\" : \"SG\",\r\n    \"swiftCode\": \"DBSSSGSG\",\r\n    \"routing_param\" :\r\n    {\r\n        \"bankCode\": \"897678\",\r\n        \"bankBranchCode\" : \"888\"\r\n           \r\n    }\r\n     },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 1000.0,\r\n    \"errorMsg\": \"Currency Account has insufficient balance.\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1711254972,\r\n    \"merchantRef\": \"65ffadb4c1c83822903a9205\",\r\n    \"status\": \"ERROR\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1711254964\r\n        },\r\n        {\r\n            \"status\": \"error\",\r\n            \"timestamp\": 1711254972\r\n        }\r\n    ],\r\n    \"currency\": \"USD\",\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"fef5a41d-c52a-4fd5-b4de-e37ea47e0529","name":"Get Status-error","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}"}],"_postman_id":"1fa9a71a-01ac-4483-b2e0-252d411f2eb3"}],"id":"3b791926-3aad-4a17-be19-0606096df926","description":"<p><strong>API Flow</strong></p>\n<img src=\"https://lh7-us.googleusercontent.com/Uxy8jmp5RP-c360-oIMAZy2As8naqJdARgKsWU0x_BtszfJlwdRVM6-obffbtjTABfI9V0hxH4Ad-Ns96We42lIMdL434tTzLJ6aEQBt0dzX_ZXeM4RtG_kmEeem7WIsN520Zh5PS3xTFYNzOmks0ak\" />\n\n<p>At the time of onboarding, the merchant will be given the option of currency accounts. Typically, a merchant will have one currency account in one jurisdiction, but our platform allows for multiple currency accounts for merchants. Please contact your account manager if you need multicurrency accounts. Please note that there may be some restrictions on multicurrency accounts depending on the jurisdictions and commercials.</p>\n<p>Our system also caters to multiple business accounts within one merchant account for better financial risk management. If more than one business is onboarded for a merchant (each needing its own KYB), then our system would handle the complexity of balance distribution among the accounts in the backend and give simple easy-to-use APIs for merchants.</p>\n","_postman_id":"3b791926-3aad-4a17-be19-0606096df926"},{"name":"Get Balance API","item":[{"name":"Checking Balance","id":"d6c7086f-656f-434a-9d57-6ff7705c5e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"BANKTRANSFER\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance","description":"<h2 id=\"api-for-checking-balance-payout\"><strong>API for Checking Balance payout</strong></h2>\n<ol>\n<li><p>URL :- /getBalance/</p>\n</li>\n<li><p>RequestType: POST</p>\n</li>\n<li><p>Request Body</p>\n</li>\n</ol>\n<p>Note: Currency is not a mandatory parameter. If no parameter is specified then all respective currency balances would be provided, if any specific currency parameter is provided then only that currency balance would be provided.</p>\n","urlObject":{"path":["getBalance"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e07a8931-94f1-4cec-947f-cf3075ee1f09","name":"Checking Balance payout-success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"BANKTRANSFER\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"paymentMethod\": \"BANKTRANSFER\",\r\n    \"status\": \"success\",\r\n    \"data\": [\r\n        {\r\n            \"currency\": \"AUD\",\r\n            \"balance\": \"0.00\"\r\n        },\r\n        {\r\n            \"currency\": \"USD\",\r\n            \"balance\": \"46813.79\"\r\n        },\r\n        {\r\n            \"currency\": \"JPY\",\r\n            \"balance\": \"1012.00\"\r\n        }\r\n    ]\r\n}\r\n"},{"id":"b97a5fb3-784e-401e-817b-0a1940cf73df","name":"Checking Balance payout-error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{ \r\n   \"paymentMethod\" : \"BANKTRANSFER\"\r\n\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/getBalance"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"No currency account found\"\r\n}\r\n"}],"_postman_id":"d6c7086f-656f-434a-9d57-6ff7705c5e3d"}],"id":"f4e9f099-d7de-4c40-a96c-a67b3b39e46b","_postman_id":"f4e9f099-d7de-4c40-a96c-a67b3b39e46b","description":""}],"id":"b21d1130-177c-4a80-a359-78d382e0e787","_postman_id":"b21d1130-177c-4a80-a359-78d382e0e787","description":""},{"name":"💳 Card Payments","item":[{"name":"Concepts","item":[],"id":"fffc1aed-985e-4932-8c78-4efb1732e19b","description":"<h2 id=\"custom-payment-flow---server-to-server\">Custom Payment Flow - Server-to-Server</h2>\n<p>Paysecure offers Server-to-Server (\"S2S\") integration that enables processing payments on the server level, eliminating direct interaction between the client's browser or application and the API.</p>\n<p>This integration allows you to build a setup that restricts payers from directly accessing platform resources.</p>\n<p>To enable payment acceptance in your application or website using Server-to-Server (S2S) integration follow the following 3-step routine.</p>\n<p><strong>Step 1:</strong></p>\n<p>Create a purchase using <code>POST /purchase/</code> API to create a <code>Purchase</code> in the system. make sure to meet all the required criteria, which includes defining success_redirect and failure_redirect fields for the Purchase and setting them to valid URLs</p>\n<p><strong>Step 2</strong>:</p>\n<p>Send the payment method to the payment URL by making a POST request to <code>/p/{purchaseId}/?s2s=true</code> .</p>\n<p>The body of the reques to contain the card details:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"cardholder_name\": \"dk\",\n    \"card_number\": \"4444333322221111\",\n    \"expires\": \"10/23\",\n    \"cvc\": \"345\",\n    \"remember_card\": \"on\",\n    \"remote_ip\": \"157.38.242.7\",\n    \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\",\n    \"accept_header\": \"text/html\",\n    \"language\": \"en-US\",\n    \"java_enabled\": false,\n    \"javascript_enabled\": true,\n    \"color_depth\": 24,\n    \"utc_offset\": 0,\n    \"screen_width\": 1920,\n    \"screen_height\": 1080\n}\n\n</code></pre>\n<p>see <code>/p/{purchaseId}/?s2s=true</code> API for more details.</p>\n<p><strong>Step 3 (for merchants configured for 3D transactions):</strong></p>\n<p>Once the response is received, if the purchase is successful (indicated by a response status code of 202), you will be given the <code>\"status\": \"pending\"</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"pending\",\n    \"callback_url\": \"http://18.214.100.20/api/v1/payment/64bfc2a4f63e36669499e5cc/\",\n    \"method\": \"GET\"\n}\n\n</code></pre>\n<p>Otherwise you'll get an error as shown below (response status code could be 400,404,401,415,405) :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the <a href=\"https://\">Status Code</a> section for further details.</p>\n<p>If the response code is 202, upon receiving the response body, redirect the customer to the callback_url provided in the response.</p>\n<p>If the card requires 3D Secure verification, the user will be redirected to a verification or challenge screen by the card issuing bank. After successful user verification, the user will be redirected to the success URL provided in the <code>/purchase</code> API from Step 1.</p>\n<p>If, for any reason, the transaction is unsuccessful, the user will be redirected the failure URL provided in the /purchase API from Step 1.</p>\n","_postman_id":"fffc1aed-985e-4932-8c78-4efb1732e19b","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}}},{"name":"APIs","item":[{"name":"Purchase","id":"48571a78-30fb-4d7a-a80a-d757626168ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"example@paysecure.net\",\r\n        \"country\": \"IN\",\r\n        \"city\": \"123\",\r\n        \"stateCode\": \"ca\",\r\n        \"street_address\": \"test test\",\r\n        \"zip_code\": \"234567\",\r\n        \"phone\": \"9999999999\",\r\n        \"tax_number\": \"12345678901\"\r\n    },\r\n    \"purchase\": {\r\n        \"products\": [\r\n            {\r\n                \"name\": \"dk\",\r\n                \"price\": \"10\"\r\n            }\r\n        ]\r\n    },\r\n    \"status\": \"created\",\r\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e \",\r\n    \"merchantRef\": \"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\r\n    \"send_receipt\": \"\",\r\n    \"skip_capture\": \"\",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td></td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. Must be upper case. Example “SG” (Alpha2)</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>Client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />Please note, the currency has to be enbaled by the account manager for your account.</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in pending</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"essential-optional-parameters\">Essential Optional Parameters</h2>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<p>Upon successul create on a Purchase you'd get a <code>\"purchaseId\"</code> . Use this ID for the next step in Server to server call by calling <code>p/{purchaseId}/?s2s=true .</code></p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n<tr>\n<td>some Mandatory Parameter are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid Email Format</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Merchant Limit is not set</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>Brand not found!</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Only <code>“{curr_name}\"</code> currency is allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid_Parameter</td>\n<td>You'd usually get it when one or more mandatory parameters are not present in the request.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["purchases"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"996fbf68-19b7-44d0-a51f-920b29b048f7","name":"Purchase","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"example@paysecure.net\",\r\n        \"country\": \"IN\",\r\n        \"city\": \"123\",\r\n        \"stateCode\": \"ca\",\r\n        \"street_address\": \"test test\",\r\n        \"zip_code\": \"234567\",\r\n        \"phone\": \"9999999999\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"USD\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"product name\",\r\n                \"price\": \"10\"\r\n            }\r\n        ]\r\n    },\r\n    \"merchantRef\": \"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\r\n    \"status\": \"created\",\r\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e \",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://18.214.100.20/api/v1/purchases"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:22:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64b032c3c6dccf7d329d9e7e\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"dev@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1689268934,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1689268934,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 10,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 10,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CREATED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1689268934\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"is_recurring_token\": false,\n    \"reference_generated\": \"PS161\",\n    \"merchantRef\":\"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\n    \"issued\": \"2023-07-13\",\n    \"due\": 1689268934,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64b032c3c6dccf7d329d9e7e/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64b032c3c6dccf7d329d9e7e/\"\n}"}],"_postman_id":"48571a78-30fb-4d7a-a80a-d757626168ac"},{"name":"S2S","id":"a7c713a4-66c1-4001-a817-4af0a84f9e1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cardholder_name\": \"dk\",\r\n    \"card_number\": \"4111111111111111\",\r\n    \"expires\": \"10/23\",\r\n    \"cvc\": \"345\",\r\n    \"remember_card\": \"on\",\r\n    \"remote_ip\": \"157.38.242.7\",\r\n    \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\",\r\n    \"accept_header\": \"text/html\",\r\n    \"language\": \"en-US\",\r\n    \"java_enabled\": false,\r\n    \"javascript_enabled\": true,\r\n    \"color_depth\": 24,\r\n    \"utc_offset\": 0,\r\n    \"screen_width\": 1920,\r\n    \"screen_height\": 1080\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/p/64bff4fff63e36669499e9c8/?s2s=true","description":"<p>This API would be the 2nd in sequence to call if the call to <code>/purchases/</code> was successful in step 1. and you want to do the transaction via Server-to-Server mode.</p>\n<p>The request body would contain the details of the card that's to be transacted upon.</p>\n<h3 id=\"mandatory-parameters-in-request-body\"><strong>Mandatory parameters in request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>remote_ip</td>\n<td>IP address of the customer’s device used for transaction. Helps in fraud checks and risk scoring. Ex- 157.38.242.7</td>\n</tr>\n<tr>\n<td>user_agent</td>\n<td>Full browser and operating system details captured from HTTP header. EX- Chrome/5.0 (X11; Linux x86_64)</td>\n</tr>\n<tr>\n<td>accept_header</td>\n<td>Browser’s accepted content types (from HTTP header). Used for validating request origin and device info. EX- text/html</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"essential-parameters-in-request-body\"><strong>Essential parameters in request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cardholder_name</td>\n<td>Name of the cardholder</td>\n</tr>\n<tr>\n<td>card_number</td>\n<td>The card numbers Must be 10-20 characters.</td>\n</tr>\n<tr>\n<td>expires</td>\n<td>must be greater than the current month/year.</td>\n</tr>\n<tr>\n<td>cvc</td>\n<td>3 or 4 digit</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"other-optional-parameters-in-request-body\"><strong>Other optional parameters in request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>language</td>\n<td>Preferred language of the user’s browser . EX - en-US</td>\n</tr>\n<tr>\n<td>java_enabled</td>\n<td>Indicates if Java is enabled in the browser. Helps PSPs in device profiling. Ex- true/false</td>\n</tr>\n<tr>\n<td>javascript_enabled</td>\n<td>Indicates if JavaScript is enabled in the client browser. Used for 3DS or risk-based checks. Ex- true</td>\n</tr>\n<tr>\n<td>color_depth</td>\n<td>Bit depth of the display screen. Ex- 24</td>\n</tr>\n<tr>\n<td>utc_offset</td>\n<td>Difference in minutes between local time and UTC. Used for location and timezone checks. Ex- 330</td>\n</tr>\n<tr>\n<td>screen_width</td>\n<td>Width of the device screen in pixels. Used in device profiling. Ex- 1920</td>\n</tr>\n<tr>\n<td>screen_height</td>\n<td>Height of the device screen in pixels. Ex- 1080</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"successful-response\">Successful Response</h3>\n<p>If all the details are correct you'll get a 202 response with staus as Pending</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": \"pending\",\n    \"callback_url\": \"https://paysecure.net/payment/63bd0bf80fb42a076e8a4dd1/\",\n    \"method\": \"GET\"\n}\n\n</code></pre>\n<p>If the response code is 202, after receiving the response body, direct the customer to the callback_url provided in the response.</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Client Ip could not be matched with Merchant Ip</td>\n</tr>\n<tr>\n<td>Invalid Card Information</td>\n</tr>\n<tr>\n<td>Card is Blocked</td>\n</tr>\n<tr>\n<td>Different Type of key used to create purchase and payment</td>\n</tr>\n<tr>\n<td>You charges setting is incomplete .Plese Contact to adminstrartor.</td>\n</tr>\n<tr>\n<td>Allowed Attempt for this Transaction has been consumed</td>\n</tr>\n<tr>\n<td>Invalid Card Expiry(Valid Format:MM/YY) must be greator than current month/year</td>\n</tr>\n<tr>\n<td>Customer profile is Blocked</td>\n</tr>\n<tr>\n<td>Customer/Card not allowed for transaction</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["p","64bff4fff63e36669499e9c8",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"key":"s2s","value":"true"}],"variable":[]}},"response":[{"id":"c9cf55f3-80c1-49ba-8b14-aede6699860c","name":"S2S","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"cardholder_name\": \"dk\",\r\n  \"card_number\": \"4111111111111111\",\r\n  \"expires\": \"10/23\",\r\n  \"cvc\": \"345\",\r\n  \"remember_card\": \"on\",\r\n  \"remote_ip\": \"157.38.242.7\",\r\n  \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\",\r\n  \"accept_header\": \"text/html\",\r\n  \"language\": \"en-US\",\r\n  \"java_enabled\": false,\r\n    \"javascript_enabled\": true,\r\n   \"color_depth\": 24,\r\n    \"utc_offset\": 0,\r\n   \"screen_width\": 1920,\r\n    \"screen_height\": 1080\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"{{StagingBaseURL}}/p/64b034ecc6dccf7d329d9eb3/?s2s=true","host":["{{StagingBaseURL}}"],"path":["p","64b034ecc6dccf7d329d9eb3",""],"query":[{"key":"s2s","value":"true"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:31:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"pending\",\n    \"callback_url\": \"http://18.214.100.20/api/v1/payment/64b034ecc6dccf7d329d9eb3/\",\n    \"method\": \"GET\"\n}"}],"_postman_id":"a7c713a4-66c1-4001-a817-4af0a84f9e1c"},{"name":"Payment (To be initiated From client browser)","id":"bf8c8909-71b8-4bc2-938d-74a2752493c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Production}}/payment/64bff12bf63e36669499e97d/","description":"<p>This is the callback URL that is in the response object ofthe Server-to-Server Call</p>\n<p>When this URL is called from the end user's browser, the user would be redirected to the <code>success_redirect</code> or <code>failure_redirect</code> URL given by the merchant at the time of create purchase</p>\n<p>When this URL is called from the end user's browser, if card is 3DS enrolled, the user user will be redirect to a verification screen or challenge by the issuing bank and upon successful user verification, the user would be redictected to the success URL given in <code>/purchases API</code> .</p>\n<p>If for some reason the transactions is unsuccessful, the user will be redirect to failure URL given in <code>/purchases API</code> API .</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["payment","64bff12bf63e36669499e97d",""],"host":["{{Production}}"],"query":[],"variable":[]}},"response":[{"id":"ff644b97-7e40-46b6-a4cd-1db930180d86","name":"Payment-error","originalRequest":{"method":"GET","header":[],"url":"{{StagingBaseURL}}/payment/64bfd7c9f63e36669499e779/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 14:12:18 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only purchases that can be paid for can be initiated for payment.\",\n    \"code\": \"transaction_error\"\n}"}],"_postman_id":"bf8c8909-71b8-4bc2-938d-74a2752493c4"},{"name":"Purchases","id":"1db93e94-588d-4e2d-a632-6eea9c46ce1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64bff12bf63e36669499e97d/","description":"<p>This API tells you about all the details of a purchase, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>created</td>\n<td>When Purchase order is created.</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>chargeback</td>\n<td>Payment is chargeback state</td>\n</tr>\n<tr>\n<td>refund_in_process</td>\n<td>Refund is under Processing.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>overdue</td>\n<td>Purchase is Overdued.</td>\n</tr>\n<tr>\n<td>cancelled</td>\n<td>Purchase is cancelled.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n<tr>\n<td>refunded</td>\n<td>Payment is refunded</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["purchases","64bff12bf63e36669499e97d",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a0129aa6-54a0-411b-a3ca-aa18095cde4c","name":"Purchases-error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://18.214.100.20/api/v1/purchases/64bfd7c9f63e36669499e779/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 15:44:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bfd7c9f63e36669499e779\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690294251,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690294220,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"expiry_month\": \"10\",\n            \"amount\": 100,\n            \"card_issuer\": \"1-800-432-3117\",\n            \"masked_pan\": \"411111XXXXXX1111\",\n            \"card_brand\": \"VISA\",\n            \"card_issuer_country\": \"US\",\n            \"cardholder_name\": \"dk\",\n            \"expiry_year\": \"23\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"execute\",\n                \"payment_method\": \"VISA\",\n                \"flow\": \"payform\",\n                \"successful\": false,\n                \"country\": \"US\",\n                \"processing_time\": 1690294279,\n                \"extra\": {\n                    \"expiry_month\": \"10\",\n                    \"amount\": 100,\n                    \"card_issuer\": \"1-800-432-3117\",\n                    \"masked_pan\": \"411111XXXXXX1111\",\n                    \"card_brand\": \"VISA\",\n                    \"card_issuer_country\": \"US\",\n                    \"cardholder_name\": \"dk\",\n                    \"expiry_year\": \"23\"\n                },\n                \"error\": {\n                    \"message\": \"Transaction Failed\",\n                    \"code\": \"transaction_error\"\n                }\n            }\n        ]\n    },\n    \"status\": \"ERROR\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690294220\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690294251\n        },\n        {\n            \"status\": \"error\",\n            \"timestamp\": 1690294299\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1690294382\n        }\n    ],\n    \"viewedOn\": 1690299845,\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS188\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690294220,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bfd7c9f63e36669499e779/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bfd7c9f63e36669499e779/\"\n}"},{"id":"1c9a820a-cd64-44f3-afb2-6213c14d9153","name":"Purchases - success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://18.214.100.20/api/v1/purchases/64bfdb7df63e36669499e82f/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 15:45:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bfdb7df63e36669499e82f\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690296521,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690295168,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 9,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 9,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 9,\n        \"currency\": \"USD\",\n        \"net_amount\": 9,\n        \"fee_amount\": 10.2591,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1690295205,\n        \"remote_paid_on\": 1690295205\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"expiry_month\": \"10\",\n            \"amount\": 9,\n            \"card_issuer\": \"1-800-432-3117\",\n            \"masked_pan\": \"411111XXXXXX1111\",\n            \"card_brand\": \"VISA\",\n            \"card_issuer_country\": \"US\",\n            \"cardholder_name\": \"dk\",\n            \"expiry_year\": \"23\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"execute\",\n                \"payment_method\": \"VISA\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"US\",\n                \"processing_time\": 1690295205,\n                \"extra\": {\n                    \"expiry_month\": \"10\",\n                    \"amount\": 9,\n                    \"card_issuer\": \"1-800-432-3117\",\n                    \"masked_pan\": \"411111XXXXXX1111\",\n                    \"card_brand\": \"VISA\",\n                    \"card_issuer_country\": \"US\",\n                    \"cardholder_name\": \"dk\",\n                    \"expiry_year\": \"23\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690295168\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690295193\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1690295205\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1690296521\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1690299929\n        }\n    ],\n    \"viewedOn\": 1690299929,\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"merchantRef\":\"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS192\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690295168,\n    \"refund_upto\": 1705843623,\n    \"cc_descriptor\": \"test-cardeye\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 9,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bfdb7df63e36669499e82f/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bfdb7df63e36669499e82f/\"\n}"}],"_postman_id":"1db93e94-588d-4e2d-a632-6eea9c46ce1b"},{"name":"cancel","id":"9100dffc-f490-43b2-b585-5783f3151a70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64bff556f63e36669499e9d3/cancel","description":"<p>As the name implies this API is used to cancel purchases that have been posted</p>\n<ul>\n<li><p>either after creating a purchase or</p>\n</li>\n<li><p>after doing the server-to-server call, but <strong>before</strong> redirecting the user to the callbackURL.</p>\n</li>\n</ul>\n<p>Purchase ID is <strong>mandatory</strong> for this API.</p>\n<h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of cancelling a purchase that has <code>Paid</code> and <code>Error</code> Status.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["purchases","64bff556f63e36669499e9d3","cancel"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"22b6d9b4-276b-49b7-acc6-5b27891edcd8","name":"cancel-Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://18.214.100.20/api/v1/purchases/64b034ecc6dccf7d329d9eb3/cancel"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:45:30 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only purchases that can be paid for can be canceled.\",\n    \"code\": \"transaction_error\"\n}"},{"id":"3ad786cb-be64-407c-ba9e-8473931985d5","name":"cancel - Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://18.214.100.20/api/v1/purchases/64bff4fff63e36669499e9c8/cancel"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 16:15:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bff4fff63e36669499e9c8\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690301735,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690301698,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 9,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 9,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CANCELLED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690301698\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690301723\n        },\n        {\n            \"status\": \"cancelled\",\n            \"timestamp\": 1690301735\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS194\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690301698,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bff4fff63e36669499e9c8/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bff4fff63e36669499e9c8/\"\n}"}],"_postman_id":"9100dffc-f490-43b2-b585-5783f3151a70"},{"name":"Refund","id":"2dbf92d5-d4e7-45a2-9087-77380c5fa832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/657af976c3fceb7beb30eeb4/refund","description":"<p>This API is used to initate refund of the purchases that have status as <code>PAID</code> can be initiated for refund</p>\n<p>Once the refund has been initiated, the status of the purchase would become <code>REFUND_IN_PROCESS</code> and once the refund has been approved by the bank, the status woud become <code>REFUNDED</code></p>\n<p>Purchase ID is <strong>mandatory</strong> for this API.</p>\n<h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>successful</code> and <code>unsuccessful</code> in refund of purchases.</p>\n","urlObject":{"path":["purchases","657af976c3fceb7beb30eeb4","refund"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"de474adf-8842-418e-ad44-d234dc6e02ea","name":"Refund - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{StagingBaseURL}}/purchases/64b034ecc6dccf7d329d9eb3/refund"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:49:58 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only Purchases with `status == (paid)` can be refunded.\",\n    \"code\": \"transaction_error\"\n}"},{"id":"5a012aa4-737d-41dd-867f-10799db0b64a","name":"Refund - Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"{{StagingBaseURL}}/purchases/64bfdb7df63e36669499e82f/refund"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 16:33:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bfdb7df63e36669499e82f\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690302819,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690295168,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 9,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 9,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 9,\n        \"currency\": \"USD\",\n        \"net_amount\": 9,\n        \"fee_amount\": 10.2591,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1690295205,\n        \"remote_paid_on\": 1690295205\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"expiry_month\": \"10\",\n            \"amount\": 9,\n            \"card_issuer\": \"1-800-432-3117\",\n            \"masked_pan\": \"411111XXXXXX1111\",\n            \"card_brand\": \"VISA\",\n            \"card_issuer_country\": \"US\",\n            \"cardholder_name\": \"dk\",\n            \"expiry_year\": \"23\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"execute\",\n                \"payment_method\": \"VISA\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"US\",\n                \"processing_time\": 1690295205,\n                \"extra\": {\n                    \"expiry_month\": \"10\",\n                    \"amount\": 9,\n                    \"card_issuer\": \"1-800-432-3117\",\n                    \"masked_pan\": \"411111XXXXXX1111\",\n                    \"card_brand\": \"VISA\",\n                    \"card_issuer_country\": \"US\",\n                    \"cardholder_name\": \"dk\",\n                    \"expiry_year\": \"23\"\n                }\n            },\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"refund\",\n                \"successful\": true,\n                \"processing_time\": 1690302819,\n                \"extra\": {\n                    \"amount\": 9\n                }\n            }\n        ]\n    },\n    \"status\": \"REFUND_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690295168\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690295193\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1690295205\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1690296521\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1690299929\n        },\n        {\n            \"status\": \"refund_in_process\",\n            \"timestamp\": 1690302819\n        }\n    ],\n    \"viewedOn\": 1690299929,\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS192\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690295168,\n    \"refund_upto\": 1705843623,\n    \"cc_descriptor\": \"test-cardeye\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bfdb7df63e36669499e82f/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bfdb7df63e36669499e82f/\"\n}"}],"_postman_id":"2dbf92d5-d4e7-45a2-9087-77380c5fa832"},{"name":"Payment Methods","id":"91c8eadc-fa2e-4f05-9890-dd23ad505b51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/payment_methods","description":"<p>This API gives back the list of Payment methods available .</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["payment_methods"],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"brand_id","value":"aff0471b-e37d-4e76-9dee-d235063bf276"},{"disabled":true,"key":"currency","value":""},{"disabled":true,"key":"country","value":"india"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"fefe0185-273d-4da6-872a-8d21c4f92ef6","name":"Payment Methods","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.paysecure.net/api/v1/payment_methods","host":["https://api.paysecure.net/api/v1"],"path":["payment_methods"],"query":[{"key":"brand_id","value":"4067e336-b558-4f81-9c98-2ad56b017e3d","disabled":true},{"key":"","value":"","disabled":true}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:50:33 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"available_payment_methods\": [\n        \"s2s\",\n        \"cybersource_hosted_checkout\",\n        \"mastercard\",\n        \"visa\"\n    ],\n    \"by_country\": {\n        \"any\": [\n            \"s2s\",\n            \"cybersource_hosted_checkout\",\n            \"mastercard\",\n            \"visa\"\n        ]\n    },\n    \"country_names\": {\n        \"any\": \"Other\"\n    },\n    \"names\": {\n        \"cybersource_hosted_checkout\": \"Cybersource Hosted Checkout\",\n        \"s2s\": \"Server To Server\",\n        \"visa\": \"Visa\",\n        \"mastercard\": \"Mastercard\"\n    },\n    \"card_methods\": [\n        \"cybersource_hosted_checkout\",\n        \"mastercard\",\n        \"visa\"\n    ]\n}"}],"_postman_id":"91c8eadc-fa2e-4f05-9890-dd23ad505b51"},{"name":"checkWhiteList","id":"335b0a96-07c0-4448-b674-c488009395a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"dev@paysecure.net\",\r\n    \"card_num\": \"5178006985381351\"\r\n  //  \"signup_date\": \"16-05-2023\",  not requered\r\n  //  \"deposit_date\": \"16-05-2023\",\r\n   // \"number_of_deposits\": 6,\r\n   \r\n        \r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/checkWhiteList","description":"<h3 id=\"overview\">Overview</h3>\n<p>Paysecure supports the concept of whitelisted cards. The merchant can send PaySecure a list of cards that are to be whitelisted. Once whitelisted, only whitelisted cards are allowed to be transacted for that merchant.</p>\n<p>The merchant can check the individual card status with this API by giving the email and card numbers of the customers.</p>\n<h3 id=\"mandatory-parameters-in-body\">Mandatory Parameters (in body)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email</td>\n</tr>\n<tr>\n<td>card_num</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"other-parameters\">Other parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>signup_date</td>\n</tr>\n<tr>\n<td>deposit_date</td>\n</tr>\n<tr>\n<td>number_of_deposits</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples, you can observe both instances of verifying whether a card exists in a merchant's whitelist, one for an existing card and another for a non-existing card.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}},"urlObject":{"path":["checkWhiteList"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"94e2d7c4-8be3-4c39-917b-93080a9f59d8","name":"checkWhiteList - Doesn't exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"email\": \"dk6@dk.com\",\r\n  //  \"signup_date\": \"16-05-2023\",\r\n  //  \"deposit_date\": \"16-05-2023\",\r\n   // \"number_of_deposits\": 6,\r\n       \"card_num\": \"5555555555554444\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://18.214.100.20/api/v1/checkWhiteList"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"23"},{"key":"Date","value":"Thu, 13 Jul 2023 17:56:25 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"NOTEXIST\"\n}"},{"id":"95610deb-3a8b-401b-8413-83e711edbdfb","name":"checkWhiteList - Exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"dev@paysecure.net\",\r\n    \"card_num\": \"5178006985381351\"\r\n  //  \"signup_date\": \"16-05-2023\",  not requered\r\n  //  \"deposit_date\": \"16-05-2023\",\r\n   // \"number_of_deposits\": 6,\r\n   \r\n        \r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/checkWhiteList"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 25 Jul 2023 13:19:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"20"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 fe4c2207fc59dd7aa34d5b9c9e7bef06.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"LHR62-C4"},{"key":"X-Amz-Cf-Id","value":"jlhkO3uk9ZosIKb3n8d5UGa0s_yk0g6ZgyZwca4NrvzFfMpnXkSwnA=="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=19ICPHCEH52J%2B2gKwR6R65hkypRr9yFP63OeSZ7qaZZOzI7pQC0g67Hgv9iDno43u0razeIYgP0%2FJL8kYiAUCElFZeVnd94rYn%2BYqHXKtJDt5yItEDTYHOmHjNCc2Qbs7fyu5w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ec4b216b9a606f1-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"EXIST\"\n}"}],"_postman_id":"335b0a96-07c0-4448-b674-c488009395a0"},{"name":"Whitelist Upload","id":"b9c04f19-6885-48c3-8ff4-ceb630b8eec7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"csvFile","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/Important/upladingfile/merchantwhitlist.csv"],"value":null}]},"url":"https://api.paysecure.net/api/v1/whitelist/upload/","description":"<h3 id=\"overview\">Overview</h3>\n<p>The merchant can upload a list of whitelist cards and email ids through this API. All cards successfully uploaded will be considered whitelisted and allowed for that merchant.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\">Mandatory parameters in the request body:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>csvFile</td>\n<td>Upload a CSV file</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Please note:</strong></p>\n<ol>\n<li><p>CSV file should contain the following headers (both mandatory)</p>\n<ol>\n<li><p>card_number</p>\n</li>\n<li><p>email_id</p>\n</li>\n</ol>\n</li>\n<li><p>CSV file should not be empty</p>\n</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">public class FileUploader {\n    public static void uploadFile(String apiUrl, String filePath, String authorizationHeader) {\n        try {\n            File file = new File(filePath);\n            OkHttpClient client = new OkHttpClient();\n            RequestBody requestBody = new MultipartBody.Builder().setType(MultipartBody.FORM)\n                    .addFormDataPart(\"csvFile\", file.getName(), RequestBody.create(MediaType.parse(\"text/csv\"), file))\n                    .build();\n            Request request = new Request.Builder().url(apiUrl).post(requestBody)\n                    .addHeader(\"Authorization\", authorizationHeader).build();\n            Response response = client.newCall(request).execute();\n            if (response.code() == 202) {\n                System.out.println(\"File uploaded successfully!\");\n                System.out.println(\"Response: \" + response.body().string());\n            } else {\n                System.out.println(\"File upload failed.\");\n                System.out.println(\"Status: \" + response.code());\n                System.out.println(\"Error: \" + response.body().string());\n            }\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n    }\n    public static void main(String[] args) {\n        String apiUrl = \"https://{{base_url}}/api/v1/whitelist/upload\";\n        String filePath = \"whitelist.csv.file.path\";\n        String authorizationHeader = \"Bearer YOUR API KEY\";\n        uploadFile(apiUrl, filePath, authorizationHeader);\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","v1","whitelist","upload",""],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"4d943f43-c152-4442-b77f-4b1a3c210019","name":"Whitelist Upload success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=<calculated when request is sent>","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"csvFile","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/Important/upladingfile/merchantwhitlist.csv"],"value":null}]},"url":"https://api.paysecure.net/api/v1/whitelist/upload/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 Jun 2024 09:10:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=bIgUFhs3TU2505qZe4IpSLiaJtI2gsplNDvsVWdKl76AWQdcisezEHOW6t%2BxTCj%2Bxs%2B23gnSeMCWrqwG0CYQONFHXhXb9ZHNtIYMuHWzvjLhVEChIX%2BYpODoLqzs9OP4r5q%2F9ABSXBs%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"893930730b8b0c3f-MRS"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalRecords\": 3,\n    \"totalApproved\": 3,\n    \"status\": \"success\"\n}"},{"id":"14a08b58-7d8c-4d86-8a1b-7ebb447f0e86","name":"Whitelist Upload failure","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=<calculated when request is sent>","disabled":true}],"body":{"mode":"formdata","formdata":[{"key":"csvFile","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/C:/Users/HP/Desktop/Important/upladingfile/merchantwhitlist.csv"],"value":null}]},"url":"https://api.paysecure.net/api/v1/whitelist/upload/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 Jun 2024 09:11:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=9tel4sXa6ymyhRDTyNC%2B%2Bg2Msz1MivhgHbawlLF7JvTAgfonvRaas8MQeMtVVK95cziZLoZUKaThXJOAAeZW6iZ6fqlK5flpZjGxKwInEyKzZJr9JLDSQbNt5Um%2BK4zdbMZfkHV2seg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"893931f998280c3f-MRS"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authorization header missing\",\n    \"code\": \"authentication_failed\",\n    \"status\": \"fail\"\n}"}],"_postman_id":"b9c04f19-6885-48c3-8ff4-ceb630b8eec7"}],"id":"2f41be5f-e55e-4e37-8fa7-d762b88b573d","_postman_id":"2f41be5f-e55e-4e37-8fa7-d762b88b573d","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","name":"💳 Card Payments","type":"folder"}}}],"id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"e8a74862-a410-4357-bcf9-5b53a60615f9"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"69a2cb71-17fd-494c-a773-449c5d656c88"}}],"_postman_id":"9ddf6af3-e138-46a9-afcd-894f736f77f3","description":""},{"name":"🌐 Open Banking","item":[{"name":"Concepts","item":[],"id":"b512f884-2ad4-4c5a-abbf-d694ce44548b","description":"<p><strong>Step 1:</strong></p>\n<p>Create a purchase using <code>POST /purchase/</code> API to create a <code>Purchase</code> in the system. make sure to meet all the required criteria, which include defining success_redirect, pending_redirect and failure_redirect fields for the Purchase and setting them to valid URLs.</p>\n<p><strong>Step 2:</strong></p>\n<p>The customer is redirected to the checkout_url page, configured to point to their net banking system.</p>\n<p><strong>Step 3:</strong></p>\n<p>Once the payment is initiated from the net banking site, the user will be redirected to the appropriate redirect URL.</p>\n","_postman_id":"b512f884-2ad4-4c5a-abbf-d694ce44548b","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}}},{"name":"Secure EFT - South Africa 🇿🇦","item":[],"id":"c5bee11a-c809-412b-9fe9-d3be7a01e7a6","description":"<h3 id=\"overview\">Overview</h3>\n<p>EFT (Electronic Funds Transfer) is a secure and efficient method of processing online payments in South Africa. It allows customers to make instant payments directly from their bank accounts without using a credit card. EFT leverages the existing online banking infrastructure to facilitate quick and secure transactions, making it a popular choice for consumers and merchants.</p>\n<h3 id=\"key-features-of-eft\">Key Features of EFT</h3>\n<ul>\n<li><p><strong>Instant Payment Confirmation</strong>: Transactions are processed and confirmed immediately, allowing for real-time payment updates.</p>\n</li>\n<li><p><strong>Secure Transactions</strong>: Uses bank-level security measures to ensure the safety of customer data.</p>\n</li>\n<li><p><strong>Broad Bank Support</strong>: It supports many South African banks, ensuring broad accessibility.</p>\n</li>\n<li><p><strong>User-Friendly</strong>: The payment process is simple and intuitive, providing a seamless experience for users.</p>\n</li>\n</ul>\n<h3 id=\"payment-processing-steps-through-eft\">Payment Processing Steps Through EFT</h3>\n<p><strong>Step 1: Initiating the Payment</strong></p>\n<ol>\n<li><p><strong>Customer Selects 'NETBANKING' Payment Option</strong>: At the checkout page, the customer selects 'NETBANKING' as their preferred payment method.</p>\n</li>\n<li><p><strong>Merchant Redirects to EFT Gateway</strong>: The merchant's website or application redirects the customer to the EFT payment gateway.</p>\n</li>\n</ol>\n<p><strong>Step 2: Redirect to Bank Login</strong></p>\n<ol>\n<li><p><strong>Customer Selects Their Bank</strong>: The customer selects their bank from the list of supported banks on the EFT gateway.</p>\n</li>\n<li><p><strong>Customer is Redirected to Bank Login Page</strong>: Platform securely redirects customers to their bank’s online banking login page.</p>\n</li>\n</ol>\n<p><strong>Step 3: Logging into Online Banking</strong></p>\n<ol>\n<li><p><strong>Customer Logs In</strong> The customer logs into their online banking account using their credentials.</p>\n</li>\n<li><p><strong>Secure Session</strong>: The login session is safe, and the customer’s banking credentials are not shared with the EFT gateway or the merchant.</p>\n</li>\n</ol>\n<p><strong>Step 4: Confirming the Payment</strong></p>\n<ol>\n<li><p><strong>Payment Details</strong>: The customer reviews the pre-filled payment details, including the amount and beneficiary information.</p>\n</li>\n<li><p><strong>Authorise Payment</strong>: The customer authorises the payment using their bank’s authentication method (e.g., OTP, password).</p>\n</li>\n</ol>\n<p><strong>Step 5: Payment Processing and Confirmation</strong></p>\n<ol>\n<li><p><strong>Bank Processes Payment</strong>: The customer’s bank processes the payment and debits the amount from the customer’s account.</p>\n</li>\n<li><p><strong>Instant Confirmation to the EFT gateway</strong>: Once the payment is processed, the bank sends an instant confirmation to the EFT gateway.</p>\n</li>\n</ol>\n<p><strong>Step 6: Notification to Merchant</strong></p>\n<ol>\n<li><p><strong>EFT Gateway Confirms Payment to Merchant</strong>: EFT gateway immediately notifies the merchant of the successful payment.</p>\n</li>\n<li><p><strong>Order Completion</strong>: The merchant completes and confirms the order to the customer.</p>\n</li>\n</ol>\n<p><strong>Step 7: Customer Redirect</strong></p>\n<ol>\n<li><p><strong>Redirect to Merchant’s Site</strong>: After confirming the payment, the customer is redirected back to the merchant’s website.</p>\n</li>\n<li><p><strong>Payment Confirmation Page</strong>: The merchant’s website displays a payment confirmation page to the customer.</p>\n</li>\n</ol>\n","_postman_id":"c5bee11a-c809-412b-9fe9-d3be7a01e7a6","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}}},{"name":"OpenBanking - EUR 🇪🇺 & UK 🇬🇧","item":[],"id":"a2da2cf8-70bd-4394-90bc-9afa8118cf5d","description":"<p>Paysecure leverages its OpenBanking network across Europe and UK to make secure and fast payments, making top choice for customers in respective regions. It allows customers to pay in EUR or GBP via Paysecure Gateway, directly through their bank account.</p>\n<p>Paysecure Gateway is a web page that handles all the user interaction during a payment initiation process:</p>\n<ul>\n<li><p>user credentials input</p>\n</li>\n<li><p>interactive confirmation</p>\n</li>\n<li><p>progress reporting</p>\n</li>\n<li><p>error reporting</p>\n</li>\n</ul>\n<p>After your application has received an URL for executing a payment using Paysecure, you can redirect your end-user to it. There, they will see a screen that lets them pick a provider to execute a payment.</p>\n<p>Your user will also be asked to input credentials and, if needed, any of the interactive credentials. After the process is done, the user will be redirected back to your application URL</p>\n<h3 id=\"payin-user-flow\"><strong>PayIn User Flow</strong></h3>\n<p><strong>Step 1: Initiating the Payment</strong></p>\n<ul>\n<li><strong>Customer Selects 'NETBANKING' Payment Option</strong>: At the checkout page, the customer selects 'NETBANKING' as their preferred payment method.</li>\n</ul>\n<p><strong>Step 2: Redirect to Bank Login</strong></p>\n<ul>\n<li><p><strong>Customer Selects Their Bank</strong>: The customer selects the provider/bank from the list of supported providers/banks on the Paysecure Gateway.</p>\n</li>\n<li><p><strong>Customer is Redirected to Bank Login Page</strong>: Platform securely redirects customers to their bank’s online banking login page.</p>\n</li>\n</ul>\n<p><strong>Step 3: Logging into Online Banking</strong></p>\n<ul>\n<li><p><strong>Customer Logs In</strong> The customer logs into their online banking account using their credentials.</p>\n</li>\n<li><p><strong>Secure Session</strong>: The login session is safe, and the customer’s banking credentials are not shared with any third party or any merchant.</p>\n</li>\n</ul>\n<p><strong>Step 4: Confirming the Payment</strong></p>\n<ul>\n<li><p><strong>Payment Details</strong>: The customer reviews the pre-filled payment details, including the amount and beneficiary information.</p>\n</li>\n<li><p><strong>Authorise Payment</strong>: The customer authorises the payment using their bank’s authentication method (e.g., OTP, password).</p>\n</li>\n</ul>\n<p><strong>Step 5: Payment Processing and Confirmation</strong></p>\n<ul>\n<li><p><strong>Bank Processes Payment</strong>: The customer’s bank processes the payment and debits the amount from the customer’s account.</p>\n</li>\n<li><p><strong>Instant Confirmation to the Paysecure gateway</strong>: Once the payment is processed, payment confirmation is received through a webhook url.</p>\n</li>\n</ul>\n<p><strong>Step 6: Notification to Merchant</strong></p>\n<ul>\n<li><p><strong>Paysecure Confirms Payment to Merchant</strong>: Paysecure gateway immediately notifies the merchant of the successful payment.</p>\n</li>\n<li><p><strong>Order Completion</strong>: The merchant completes and confirms the order to the customer.</p>\n</li>\n</ul>\n<p><strong>Step 7: Customer Redirect</strong></p>\n<ul>\n<li><p><strong>Redirect to Merchant’s Site</strong>: After confirming the payment, the customer is redirected back to the merchant’s website.</p>\n</li>\n<li><p><strong>Payment Confirmation Page</strong>: The merchant’s website displays a payment confirmation page to the customer.</p>\n</li>\n</ul>\n","_postman_id":"a2da2cf8-70bd-4394-90bc-9afa8118cf5d","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}}},{"name":"APIs","item":[{"name":"Purchase","id":"87e5fc15-8f86-4015-b4e5-7458814e729d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"example@paysecure.net\",\r\n        \"country\":\"IN\",\r\n        \"city\":\"123\",\r\n        \"stateCode\":\"ca\",\r\n        \"street_address\":\"test test\",\r\n        \"zip_code\":\"234567\",\r\n        \"phone\":\"9999999999\"\r\n        \r\n    },\r\n    \"purchase\": {\r\n         \"currency\" : \"EUR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"dk\",\r\n                \"price\": \"10\"\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"NETBANKING\",\r\n    \"brand_id\": \"{{Your.brandID}}\",\r\n    \"merchantRef\": \"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\r\n    \"send_receipt\": \"\" ,\r\n    \"skip_capture\": \"\" ,\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n   \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td></td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. Must be upper case. Example “SG” (Alpha2)</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>Client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.  <br />Please note, the currency has to be enbaled by the account manager for your account.</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />EUR 5 , should be sent as 5.00  <br />  <br />example 2:  <br />USD 10 and 37 cents , should be sent as 10.37</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>pending_redirect</td>\n<td>URL to send the user if the transactions is in pending</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"essential-optional-parameters\">Essential Optional Parameters</h2>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<p>Upon successul create on a Purchase you'd get a <code>\"purchaseId\"</code> .</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<p>Errors</p>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n<tr>\n<td>some Mandatory Parameter are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid Email Format</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Merchant Limit is not set</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>Brand not found!</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Only <code>“{curr_name}\"</code> currency is allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid_Parameter</td>\n<td>You'd usually get it when one or more mandatory parameters are not present in the request.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["purchases"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"05f235ca-ae71-4de7-8d71-3d79d4a5d9b0","name":"Open Banking EU & UK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"alpha7.bravo@bravapay.com\",\r\n        \"country\": \"GB\",\r\n        \"city\": \"London\",\r\n        \"stateCode\": \"LND\",\r\n        \"street_address\": \"10 New Burlington StreetApt. 214\",\r\n        \"zip_code\": \"SW1A0AA\",\r\n        \"full_name\": \"shiba sharma\",\r\n        \"date_of_birth\": \"2004-04-31\",\r\n        \"phone\": \"+447755564318\",\r\n        \"gender\": \"male\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"GBP\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"e-commerce\",\r\n                \"price\": \"10\"\r\n            },\r\n            {\r\n                \"name\": \"retail\",\r\n                \"price\": \"11\"\r\n            }\r\n        ],\r\n        \"total\": 21\r\n    },\r\n    \"paymentMethod\": \"NETBANKING\",\r\n    \"brand_id\": \"{{Your.brandID}}\",\r\n    \"merchantRef\": \"<your_merchantId>\",\r\n    \"send_receipt\": \"\" ,\r\n    \"skip_capture\": \"\" ,\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:22:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"68c3a4a031ee334ef2c02b2a\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"alpha7.bravo@bravapay.com\",\n        \"date_of_birth\": \"2004-04-31\",\n        \"street_address\": \"10 New Burlington StreetApt. 214\",\n        \"country\": \"GB\",\n        \"city\": \"London\",\n        \"zip_code\": \"SW1A0AA\",\n        \"full_name\": \"shiba sharma\",\n        \"phone\": \"+447755564318\",\n        \"gender\": \"male\",\n        \"stateCode\": \"LND\"\n    },\n    \"updated_on\": 1757652134,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"NETBANKING\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"errorCode\": \"NA\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1757652128,\n    \"merchantRef\": \"68c3a4a031ee334ef2c02b2a\",\n    \"merchantName\": \"merchantName\",\n    \"purchase\": {\n        \"currency\": \"GBP\",\n        \"products\": [\n            {\n                \"name\": \"e-commerce\",\n                \"quantity\": 1.0,\n                \"price\": 10.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            },\n            {\n                \"name\": \"retail\",\n                \"quantity\": 1.0,\n                \"price\": 11.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 21.0,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1.0,\n        \"taxAmount\": 0.0,\n        \"taxPercent\": 0.0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 21.0,\n        \"currency\": \"INR\",\n        \"net_amount\": 21.0,\n        \"fee_amount\": 0.0,\n        \"pending_amount\": 0.0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1757652129,\n        \"remote_paid_on\": 1757652129\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"Testing\",\n        \"brand_name\": \"Testing\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 100.0,\n            \"masked_pan\": \"NETBANKING\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"183.83.55.235, 162.158.91.128, 18.68.47.183\",\n                \"type\": \"execute\",\n                \"payment_method\": \"NETBANKING\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"NETBANKING\",\n                \"processing_time\": 1757652129,\n                \"extra\": {\n                    \"amount\": 100.0,\n                    \"masked_pan\": \"NETBANKING\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1757652128\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1757652129\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1757652134\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"59c5ed48-caf9-464a-ba54-26e1e02bc1bc\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS93\",\n    \"issued\": \"2025-09-12\",\n    \"due\": 1757652128,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"0\",\n    \"trustScore\": \"0\",\n    \"paidOn\": 0,\n    \"taxAmount\": 0.0,\n    \"surcharge\": 0.0,\n    \"surchargeType\": \"\",\n    \"sessionId\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0.0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"183.83.55.235, 162.158.91.128, 18.68.47.183\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/63cddfa1a4948aba8e8ee9f319e3428f/\",\n    \"payoutProcess\": false\n}"},{"id":"7a039a16-ec58-436f-a2aa-b896887391dd","name":"Open Banking SA","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"alpha7.bravo@bravapay.com\",\r\n        \"country\": \"GB\",\r\n        \"city\": \"London\",\r\n        \"stateCode\": \"LND\",\r\n        \"street_address\": \"10 New Burlington StreetApt. 214\",\r\n        \"zip_code\": \"SW1A0AA\",\r\n        \"full_name\": \"shiba sharma\",\r\n        \"date_of_birth\": \"2004-04-31\",\r\n        \"phone\": \"+447755564318\",\r\n        \"gender\": \"male\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"ZAR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"e-commerce\",\r\n                \"price\": \"10\"\r\n            },\r\n            {\r\n                \"name\": \"retail\",\r\n                \"price\": \"11\"\r\n            }\r\n        ],\r\n        \"total\": 21\r\n    },\r\n    \"paymentMethod\": \"NETBANKING\",\r\n    \"brand_id\": \"{{Your.brandID}}\",\r\n    \"merchantRef\": \"<your_merchantId>\",\r\n    \"send_receipt\": \"\" ,\r\n    \"skip_capture\": \"\" ,\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"68c3a4a031ee334ef2c02b2a\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"alpha7.bravo@bravapay.com\",\n        \"date_of_birth\": \"2004-04-31\",\n        \"street_address\": \"10 New Burlington StreetApt. 214\",\n        \"country\": \"GB\",\n        \"city\": \"London\",\n        \"zip_code\": \"SW1A0AA\",\n        \"full_name\": \"shiba sharma\",\n        \"phone\": \"+447755564318\",\n        \"gender\": \"male\",\n        \"stateCode\": \"LND\"\n    },\n    \"updated_on\": 1757652134,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"NETBANKING\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"errorCode\": \"NA\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1757652128,\n    \"merchantRef\": \"68c3a4a031ee334ef2c02b2a\",\n    \"merchantName\": \"merchantName\",\n    \"purchase\": {\n        \"currency\": \"ZAR\",\n        \"products\": [\n            {\n                \"name\": \"e-commerce\",\n                \"quantity\": 1.0,\n                \"price\": 10.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            },\n            {\n                \"name\": \"retail\",\n                \"quantity\": 1.0,\n                \"price\": 11.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 21.0,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1.0,\n        \"taxAmount\": 0.0,\n        \"taxPercent\": 0.0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 21.0,\n        \"currency\": \"INR\",\n        \"net_amount\": 21.0,\n        \"fee_amount\": 0.0,\n        \"pending_amount\": 0.0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1757652129,\n        \"remote_paid_on\": 1757652129\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"Testing\",\n        \"brand_name\": \"Testing\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 100.0,\n            \"masked_pan\": \"NETBANKING\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"183.83.55.235, 162.158.91.128, 18.68.47.183\",\n                \"type\": \"execute\",\n                \"payment_method\": \"NETBANKING\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"NETBANKING\",\n                \"processing_time\": 1757652129,\n                \"extra\": {\n                    \"amount\": 100.0,\n                    \"masked_pan\": \"NETBANKING\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1757652128\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1757652129\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1757652134\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"59c5ed48-caf9-464a-ba54-26e1e02bc1bc\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS93\",\n    \"issued\": \"2025-09-12\",\n    \"due\": 1757652128,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"0\",\n    \"trustScore\": \"0\",\n    \"paidOn\": 0,\n    \"taxAmount\": 0.0,\n    \"surcharge\": 0.0,\n    \"surchargeType\": \"\",\n    \"sessionId\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0.0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"183.83.55.235, 162.158.91.128, 18.68.47.183\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/63cddfa1a4948aba8e8ee9f319e3428f/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"87e5fc15-8f86-4015-b4e5-7458814e729d"},{"name":"Get Status","id":"6b336c51-3582-4ba5-9da9-466d7e1dcf9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64bff12bf63e36669499e97d/","description":"<p>This API tells you about all the details of a purchase, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>created</td>\n<td>When Purchase order is created.</td>\n</tr>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>chargeback</td>\n<td>Payment is chargeback state</td>\n</tr>\n<tr>\n<td>refund_in_process</td>\n<td>Refund is under Processing.</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>overdue</td>\n<td>Purchase is Overdued.</td>\n</tr>\n<tr>\n<td>cancelled</td>\n<td>Purchase is cancelled.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n<tr>\n<td>refunded</td>\n<td>Payment is refunded</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}},"urlObject":{"path":["purchases","64bff12bf63e36669499e97d",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f0481a44-d598-4158-a0b1-508efee8218c","name":"Purchases-error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64bfd7c9f63e36669499e779/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 15:44:06 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bfd7c9f63e36669499e779\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690294251,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690294220,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 100,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 100,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"expiry_month\": \"10\",\n            \"amount\": 100,\n            \"card_issuer\": \"1-800-432-3117\",\n            \"masked_pan\": \"411111XXXXXX1111\",\n            \"card_brand\": \"VISA\",\n            \"card_issuer_country\": \"US\",\n            \"cardholder_name\": \"dk\",\n            \"expiry_year\": \"23\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"execute\",\n                \"payment_method\": \"VISA\",\n                \"flow\": \"payform\",\n                \"successful\": false,\n                \"country\": \"US\",\n                \"processing_time\": 1690294279,\n                \"extra\": {\n                    \"expiry_month\": \"10\",\n                    \"amount\": 100,\n                    \"card_issuer\": \"1-800-432-3117\",\n                    \"masked_pan\": \"411111XXXXXX1111\",\n                    \"card_brand\": \"VISA\",\n                    \"card_issuer_country\": \"US\",\n                    \"cardholder_name\": \"dk\",\n                    \"expiry_year\": \"23\"\n                },\n                \"error\": {\n                    \"message\": \"Transaction Failed\",\n                    \"code\": \"transaction_error\"\n                }\n            }\n        ]\n    },\n    \"status\": \"ERROR\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690294220\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690294251\n        },\n        {\n            \"status\": \"error\",\n            \"timestamp\": 1690294299\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1690294382\n        }\n    ],\n    \"viewedOn\": 1690299845,\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS188\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690294220,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bfd7c9f63e36669499e779/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bfd7c9f63e36669499e779/\"\n}"},{"id":"e178ac08-e80d-4ce8-b780-981f86e0c8af","name":"Purchases - success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64bfdb7df63e36669499e82f/"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 25 Jul 2023 15:45:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"64bfdb7df63e36669499e82f\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"example@paysecure.net\",\n        \"phone\": \"\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"test test\",\n        \"country\": \"IN\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"ca\"\n    },\n    \"updated_on\": 1690296521,\n    \"type\": \"purchase\",\n    \"force_recurring\": false,\n    \"created_on\": 1690295168,\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"dk\",\n                \"quantity\": 1,\n                \"price\": 9,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 9,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"request_client_details\": [],\n        \"timezone\": \"America/Edmonton\",\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 9,\n        \"currency\": \"USD\",\n        \"net_amount\": 9,\n        \"fee_amount\": 10.2591,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1690295205,\n        \"remote_paid_on\": 1690295205\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"shoes\",\n        \"brand_name\": \"shoes\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"expiry_month\": \"10\",\n            \"amount\": 9,\n            \"card_issuer\": \"1-800-432-3117\",\n            \"masked_pan\": \"411111XXXXXX1111\",\n            \"card_brand\": \"VISA\",\n            \"card_issuer_country\": \"US\",\n            \"cardholder_name\": \"dk\",\n            \"expiry_year\": \"23\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"149.86.53.48\",\n                \"type\": \"execute\",\n                \"payment_method\": \"VISA\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"US\",\n                \"processing_time\": 1690295205,\n                \"extra\": {\n                    \"expiry_month\": \"10\",\n                    \"amount\": 9,\n                    \"card_issuer\": \"1-800-432-3117\",\n                    \"masked_pan\": \"411111XXXXXX1111\",\n                    \"card_brand\": \"VISA\",\n                    \"card_issuer_country\": \"US\",\n                    \"cardholder_name\": \"dk\",\n                    \"expiry_year\": \"23\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAID\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1690295168\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1690295193\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1690295205\n        },\n        {\n            \"status\": \"paid\",\n            \"timestamp\": 1690296521\n        },\n        {\n            \"status\": \"viewed\",\n            \"timestamp\": 1690299929\n        }\n    ],\n    \"viewedOn\": 1690299929,\n    \"is_test\": false,\n    \"brand_id\": \"bd69e8a5-adcf-40de-9e43-2b87cb129a5e\",\n    \"merchantRef\":\"d9db7ec0-f94c-4a9d-8883-54c19c222d81\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS192\",\n    \"issued\": \"2023-07-25\",\n    \"due\": 1690295168,\n    \"refund_upto\": 1705843623,\n    \"cc_descriptor\": \"test-cardeye\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 9,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"149.86.53.48\",\n    \"checkout_url\": \"http://18.214.100.20/payments/64bfdb7df63e36669499e82f/\",\n    \"direct_post_url\": \"http://18.214.100.20/api/v1/p/64bfdb7df63e36669499e82f/\"\n}"}],"_postman_id":"6b336c51-3582-4ba5-9da9-466d7e1dcf9a"},{"name":"cancel","id":"3189d586-9c25-4ed8-9e8c-98ae1c39d11c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/6894862fc8e02c74640f56aa/cancel","description":"<p>As the name implies this API is used to cancel purchases that have been posted</p>\n<ul>\n<li>either after creating a purchase or</li>\n<li>after doing the server-to-server call, but <strong>before</strong> redirecting the user to the callbackURL.</li>\n</ul>\n<p>Purchase ID is <strong>mandatory</strong> for this API.</p>\n<h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of cancelling a purchase that has <code>Paid</code> and <code>Error</code> Status.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}},"urlObject":{"path":["purchases","6894862fc8e02c74640f56aa","cancel"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"460d1301-78b0-4639-a440-56edc4e288c8","name":"cancel-Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/64b034ecc6dccf7d329d9eb3/cancel"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 13 Jul 2023 17:45:30 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only purchases that can be paid for can be canceled.\",\n    \"code\": \"transaction_error\"\n}"},{"id":"c68c86a3-36f3-403a-adc5-45a865a353b6","name":"cancel-Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/6894862fc8e02c74640f56aa/cancel"},"status":"Accepted","code":202,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 07 Aug 2025 10:56:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"X-Frame-Options","value":"ALLOW-FROM *"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Server","value":"cloudflare"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5e79d089f5701b7938b599fdf4db1b52.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD55-P8"},{"key":"X-Amz-Cf-Id","value":"t6t_9qgn6f9mqZwbmRiIqjjXIwG2SMZ78N6Yc52tcQmePk7jnt_YYw=="},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=bRfr5gSdd8omovsBOBrv9kGYuGWc7Nz33xcKfpMlKCqQ4yeHuVRihGqSqEPCPYwcpjzBJslsXE83yGRY6HXtjkq2Cz%2FNrKi4KuFd6N4Nlg%3D%3D\"}]}"},{"key":"CF-RAY","value":"96b63ed03abfd678-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"6894862fc8e02c74640f56aa\",\n    \"client\": {\n        \"customerId\": \"NA\",\n        \"email\": \"gaurav@gmail.com\",\n        \"phone\": \"9999999999\",\n        \"full_name\": \"Test test\",\n        \"street_address\": \"test test\",\n        \"country\": \"US\",\n        \"city\": \"123\",\n        \"zip_code\": \"234567\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"tax_number\": \"39933551809\",\n        \"stateCode\": \"NYC\"\n    },\n    \"updated_on\": 1754564165,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"MASTER,VISA,PIX,THIRDPARTY-UPI,CRYPTO-BRIDGE,NEOSURF,PAYID,INTERAC-EXPRESS,THIRDPARTY-NETBANKING,VIRTUAL-ACCOUNT\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"GET\",\n    \"force_recurring\": false,\n    \"created_on\": 1754564143,\n    \"extraParam\": {\n        \"clientFee\": 0.1\n    },\n    \"merchantRef\": \"6894862fc8e02c74640f56aa\",\n    \"merchantName\": \"test\",\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"product name\",\n                \"quantity\": 1,\n                \"price\": 5.86,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 5.86,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"taxAmount\": 0,\n        \"taxPercent\": 0,\n        \"request_client_details\": [],\n        \"timezone\": \"Asia/Hong_Kong\",\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"iUnicharge\",\n        \"brand_name\": \"iUnicharge\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CANCELLED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1754564143\n        },\n        {\n            \"status\": \"cancelled\",\n            \"timestamp\": 1754564165\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"cec67fe3-a01d-4d0d-b100-9fafb200fe15\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS1892\",\n    \"issued\": \"2025-08-07\",\n    \"due\": 1754564143,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"paidOn\": 0,\n    \"taxAmount\": 0,\n    \"surcharge\": 0,\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0,\n    \"success_redirect\": \"https://your.success.redirect.com\",\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://your.success.callback.com\",\n    \"failure_callback\": \"https://your.failure.callback.com\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"110.235.229.44, 104.23.216.90, 18.68.12.114\",\n    \"checkout_url\": \"https://api.choicepay.ca/payments/6894862fc8e02c74640f56aa/\",\n    \"direct_post_url\": \"https://api.choicepay.ca/api/v1/p/6894862fc8e02c74640f56aa/\",\n    \"payoutProcess\": false\n}"}],"_postman_id":"3189d586-9c25-4ed8-9e8c-98ae1c39d11c"},{"name":"Payment Methods","id":"501d83c2-bcab-43d8-b3e7-4cbc3551edf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/payment_methods?brand_id=aff0471b-e37d-4e76-9dee-d235063bf276","description":"<p>This API gives back the list of Payment methods available for a brand.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}},"urlObject":{"path":["payment_methods"],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"currency","value":"inr"},{"disabled":true,"key":"country","value":"india"},{"key":"brand_id","value":"aff0471b-e37d-4e76-9dee-d235063bf276"}],"variable":[]}},"response":[{"id":"59dc8755-ee9c-4686-aad2-c6abfc751b5e","name":"Payment Methods - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":{"raw":"https://api.paysecure.net/api/v1/payment_methods?brand_id=aff0471b-e37d-4e76-9dee-d235063bf276","host":["https://api.paysecure.net/api/v1"],"path":["payment_methods"],"query":[{"key":"currency","value":"inr","disabled":true},{"key":"country","value":"india","disabled":true},{"key":"brand_id","value":"aff0471b-e37d-4e76-9dee-d235063bf276"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Thu, 07 Aug 2025 10:48:58 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"X-Frame-Options","value":"ALLOW-FROM *"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Server","value":"cloudflare"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Cache","value":"Error from cloudfront"},{"key":"Via","value":"1.1 1e5d213252e38a8aa2e2a927fd3c3754.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAD55-P8"},{"key":"X-Amz-Cf-Id","value":"Uv3p02pbXBomVNE_FH3o2ezRXrqvTAr9etg7HAKsVUuUi_8Gvf-ecg=="},{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=%2BlRerjanFZR0Fh4fFP1DM51iCxavbwesIYz%2FiBfbqbOF5YopeuJBxoMy5kdhHS3%2B%2FyNAacKQzKUv%2FzyXT4gfSV78ugg1iMBiIlmatHtRFg%3D%3D\"}]}"},{"key":"CF-RAY","value":"96b63463da73093a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"_all_\": [\n        {\n            \"message\": \"Authorization header missing\",\n            \"code\": \"authentication_failed\"\n        }\n    ]\n}"},{"id":"c2198c10-26ed-4c54-bd37-6330dab8f9fa","name":"Payment Method- Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":{"raw":"https://api.paysecure.net/api/v1/payment_methods?brand_id=555c458b-e737-4905-adb2-2451d37cbb","host":["https://api.paysecure.net/api/v1"],"path":["payment_methods"],"query":[{"key":"currency","value":"inr","disabled":true},{"key":"country","value":"india","disabled":true},{"key":"brand_id","value":"555c458b-e737-4905-adb2-2451d37cbb"}]}},"status":"Accepted","code":202,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Tue, 09 Sep 2025 08:04:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Server","value":"cloudflare"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=31536000 ; includeSubDomains"},{"key":"X-Frame-Options","value":"ALLOW-FROM *"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"Report-To","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=PoGnHzy1YxgyVIthM1PXA54R6F7GXZydfD3kEWXJ%2BfS8vqK1BSV2kQ7%2FcLQCX%2FyIPxxfOymqmqTum2vAWfB9UeDg9tjww39Rt9OJVyQrrwNtZZaWMA%3D%3D\"}]}"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"97c52ccb09290668-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"available_payment_methods\": [\n        \"MASTER\",\n        \"visa\",\n        \"jcb\",\n        \"amex\",\n        \"CRYPTO-BRIDGE\",\n        \"FawryPay\",\n        \"INTERAC-E-TRANSFER\",\n        \"INTERAC-REQUEST-MONEY\",\n        \"MOBILEMONEY\",\n        \"NEOSURF\",\n        \"PAYID\",\n        \"PIX\",\n        \"SPEI\",\n        \"THIRDPARTY-UPI\",\n        \"discover\",\n        \"BANKTRANSFER\",\n        \"VIRTUAL-IBAN\",\n        \"UPI-COLLECT\",\n        \"UPI-QR\",\n        \"VIRTUAL-ACCOUNT\",\n        \"DINERS\",\n        \"NETBANKING\"\n    ],\n    \"by_country\": {\n        \"any\": [\n            \"MASTER\",\n            \"VISA\",\n            \"JCB\",\n            \"AMEX\",\n            \"CRYPTO-BRIDGE\",\n            \"FawryPay\",\n            \"INTERAC-E-TRANSFER\",\n            \"INTERAC-REQUEST-MONEY\",\n            \"MOBILEMONEY\",\n            \"NEOSURF\",\n            \"PAYID\",\n            \"PIX\",\n            \"SPEI\",\n            \"THIRDPARTY-UPI\",\n            \"DISCOVER\",\n            \"BANKTRANSFER\",\n            \"VIRTUAL-IBAN\",\n            \"UPI-COLLECT\",\n            \"UPI-QR\",\n            \"VIRTUAL-ACCOUNT\",\n            \"DINERS\",\n            \"NETBANKING\"\n        ]\n    },\n    \"country_names\": {\n        \"any\": \"Other\"\n    },\n    \"names\": {\n        \"NETBANKING\": \"NETBANKING\",\n        \"AMEX\": \"AMEX\",\n        \"MASTER\": \"Mastercard\",\n        \"CRYPTO-BRIDGE\": \"CRYPTO-BRIDGE\",\n        \"PAYID\": \"PAYID\",\n        \"SPEI\": \"SPEI\",\n        \"DISCOVER\": \"DISCOVER\",\n        \"JCB\": \"JCB\",\n        \"VISA\": \"Visa\",\n        \"NEOSURF\": \"NEOSURF\",\n        \"INTERAC-E-TRANSFER\": \"INTERAC-E-TRANSFER\",\n        \"THIRDPARTY-UPI\": \"THIRDPARTY-UPI\",\n        \"VIRTUAL-IBAN\": \"VIRTUAL-IBAN\",\n        \"BANKTRANSFER\": \"BANKTRANSFER\",\n        \"DINERS\": \"DINERS\",\n        \"INTERAC-REQUEST-MONEY\": \"INTERAC-REQUEST-MONEY\",\n        \"UPI-COLLECT\": \"UPI-COLLECT\",\n        \"UPI-QR\": \"UPI-QR\",\n        \"MOBILEMONEY\": \"MOBILEMONEY\",\n        \"FawryPay\": \"FawryPay\",\n        \"VIRTUAL-ACCOUNT\": \"VIRTUAL-ACCOUNT\",\n        \"PIX\": \"PIX\"\n    },\n    \"card_methods\": [\n        \"MASTER\",\n        \"VISA\",\n        \"JCB\",\n        \"AMEX\",\n        \"DISCOVER\"\n    ]\n}"}],"_postman_id":"501d83c2-bcab-43d8-b3e7-4cbc3551edf5"}],"id":"16320954-1f95-4587-b7b5-86a15e3d5f85","_postman_id":"16320954-1f95-4587-b7b5-86a15e3d5f85","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","name":"🌐 Open Banking","type":"folder"}}}],"id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf","description":"<h3 id=\"overview\"><strong>Overview</strong></h3>\n<p><strong>Open Banking</strong> refers to the integration with local bank transfer systems in specific countries, enabling users to make payments directly from their bank accounts through a secure and trusted interface. This is particularly useful for regions where direct bank transfers are a preferred payment method over cards or other APMs.</p>\n<p>Paysecure leverages Open Banking to facilitate transactions for different regions, enabling businesses to access localized payment options without the complexity of managing individual bank integrations. Each third-party service is tailored to the specific financial infrastructure of the country or region, ensuring compliance, security, and ease of use.</p>\n<h3 id=\"key-benefits-of-open-banking\"><strong>Key Benefits of Open Banking</strong>:</h3>\n<ul>\n<li><p><strong>Localized Payment Options</strong>: Supports region-specific payment methods, giving customers familiar and trusted ways to pay.</p>\n</li>\n<li><p><strong>Secure Transactions</strong>: Payments are processed directly through the customer’s bank, enhancing trust and security.</p>\n</li>\n<li><p><strong>Real-Time Verification</strong>: Enables real-time confirmation of payments, reducing risks and improving cash flow.</p>\n</li>\n<li><p><strong>Compliance</strong>: Adheres to local and international regulatory standards like PSD2 for Europe, ensuring that payments are secure and compliant.</p>\n</li>\n</ul>\n<p>This setup allows Paysecure to offer a diverse range of bank transfer options to its global clientele, catering to the specific needs of different regions while maintaining a consistent and secure payment experience.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"e8a74862-a410-4357-bcf9-5b53a60615f9"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"69a2cb71-17fd-494c-a773-449c5d656c88"}}],"_postman_id":"d6b7f281-5d52-4c2f-87c1-e39cd8e5b1cf"},{"name":"🪙 On Ramp","item":[],"id":"2d849bc8-ec62-4fd0-bc09-cda68073b10e","description":"<h2 id=\"overview\">Overview</h2>\n<p>Paysecure provides a user-friendly, direct integration with Quickbit wallet where users can purchase and manage their crypto funds easily. Integrating this interface into your payment process is a straightforward process, requiring just a few simple steps.</p>\n<p>We continuously work on improving the integration flow, and as we roll out updates, both customers and merchants can look forward to an enhanced and improved payment experience.</p>\n<h2 id=\"integration-flow\">Integration Flow</h2>\n<p><strong>Step 1</strong></p>\n<p>The first call to the PaySecure API is POST /purchases initiated by the merchant's backend when they receive a request from the user to make a QuickBit purchase.</p>\n<p>It's essential to ensure that the request body includes:</p>\n<ul>\n<li><p>success_redirect - URL where the user will be redirected from Quickbit after completing the purchase</p>\n</li>\n<li><p>failure_redirect - URL where the user will be redirected from Quickbit if the purchase fails</p>\n</li>\n<li><p>paymentMethod - Payment method requested. It must specify QBPAYFTOPUP.</p>\n</li>\n</ul>\n<blockquote>\n<p>It is important to note that paymentMethod is not a mandatory parameter. If it is not provided, the redirect URL will point to Paysecure Cashier. It must be provided for direct payment with Quickbit. </p>\n</blockquote>\n<p>Here's a sample body of the request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"client\": {\n        \"email\": \"john.doe@paysecure.net\",\n        \"country\":\"GB\",\n        \"city\":\"London\",\n        \"stateCode\":\"Marleybone\",\n        \"street_address\":\"221B Baker Street\",\n        \"zip_code\":\"NW1 6XE\",\n        \"phone\":\"9999999999\"\n    },\n    \"purchase\": {\n        \"products\": [\n            {\n                \"name\": \"QBit Payment\",\n                \"price\": \"10\"\n            }\n        ]\n    },\n    \"status\": \"created\",\n    \"brand_id\": \"brand_id_from_the_portal\",\n    \"paymentMethod\":\"QBPAYFTOPUP\",\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\"\n}```\nIf the request is successful the response will include a parameter called CheckOutURL. That is the QBit payment URL that should be loaded to the customer to proceed with the payment. Here is an example of what a successful response looks like:\n```{\n    \"purchaseId\": \"657a10b3c0daf365fa98cdf9\",\n    \"client\": {\n        \"bank_account\": \"\",\n        \"bank_code\": \"\",\n        \"email\": \"john.doe@paysecure.net\",\n        \"phone\": \"9999999999\",\n        \"full_name\": \"\",\n        \"date_of_birth\": \"\",\n        \"personal_code\": \"\",\n        \"street_address\": \"221B Baker Street\",\n        \"country\": \"GB\",\n        \"city\": \"London\",\n        \"zip_code\": \"NW1 6XE\",\n        \"shipping_street_address\": \"\",\n        \"shipping_country\": \"\",\n        \"shipping_city\": \"\",\n        \"shipping_zip_code\": \"\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"legal_name\": \"\",\n        \"brand_name\": \"\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\",\n        \"stateCode\": \"Marleybone\"\n    },\n    \"updated_on\": 1702498483,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"QBPAYFTOPUP\",\n    \"amountUnit\": \"MINOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1702498483,\n    \"merchantRef\": \"657a10b3c0daf365fa98cdf9\",\n    \"merchantName\": \"merchant002\",\n    \"purchase\": {\n        \"currency\": \"USD\",\n        \"products\": [\n            {\n                \"name\": \"QBit Payment\",\n                \"quantity\": 1.0,\n                \"price\": 1000.0,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 10.0,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1.0,\n        \"request_client_details\": [],\n        \"email_message\": \"\"\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {\n                \"bank_account\": \"\",\n                \"bank_code\": \"\"\n            }\n        ],\n        \"legal_name\": \"brand1\",\n        \"brand_name\": \"brand1\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {},\n        \"country\": \"\",\n        \"attempts\": []\n    },\n    \"status\": \"CREATED\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1702498483\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"brand_id_from_the_portal\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS185\",\n    \"issued\": \"2023-12-13\",\n    \"due\": 1702498483,\n    \"refund_upto\": 0,\n    \"cc_descriptor\": \"\",\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 0.0,\n    \"success_redirect\": \"https://google.com\",\n    \"failure_redirect\": \"https://yahoo.com\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"135.129.121.137\",\n    \"checkout_url\": \"https://staging.paysecure.net/payments/657a10b3casd23123122/\",\n    \"merchantIp\": \"10.10.10.10\"\n}\n\n</code></pre>\n<h2 id=\"step-2\">Step 2</h2>\n<p>Once the customer is redirected to the <code>CheckOutURL</code> page they will see will depend on the user's country. For the users in Sweden, the page will look like this:</p>\n<img src=\"https://content.pstmn.io/9e0fe1c4-e8c6-49fd-8bc1-fb048e5f2278/aW1hZ2UucG5n\" width=\"792\" height=\"558\" />\n\n<p>For user's in other countries, the page will look following:</p>\n<img src=\"https://content.pstmn.io/20e4e789-4df1-4dd2-917f-7281db5dc09c/aW1hZ2UucG5n\" width=\"599\" height=\"602\" />\n\n<p>On this page, new users will have to verify their identity and existing users will be prompted to log in.</p>\n<h2 id=\"step-3\">Step 3</h2>\n<p>In the Quickbit app, the user will be requested to provide their payment details:</p>\n<img src=\"https://content.pstmn.io/bc760861-a7af-4cca-a6a4-9c8e6a80db28/aW1hZ2UucG5n\" width=\"1341\" height=\"666\" />\n\n<p>Once the payment goes through, the user has to confirm sending the transaction to complete the process:</p>\n<img src=\"https://content.pstmn.io/ddc57da0-d77d-4819-a059-0eb1def02593/aW1hZ2UucG5n\" width=\"1340\" height=\"662\" />\n\n<h2 id=\"step-4\">Step 4</h2>\n<p>Depending on the outcome of the payment at Quickbit, the customer will be directed to the:</p>\n<ol>\n<li><p>If the payment is successful - the URL specified in <code>success_redirect</code> that was provided in the initial <code>POST /purchases</code> request</p>\n</li>\n<li><p>If the payment is unsuccessful - the URL specified in <code>failure_redirect</code> that was provided in the initial <code>POST /purchases</code> request</p>\n</li>\n</ol>\n","_postman_id":"2d849bc8-ec62-4fd0-bc09-cda68073b10e"},{"name":"3rd Party Cashiers","item":[{"name":"ThirdParty UPI","item":[{"name":"Concepts","item":[],"id":"09b67d25-8892-4147-a573-29cdb4e6d7e8","description":"<h2 id=\"concepts\">Concepts</h2>\n<ul>\n<li><p><strong>APM Integration:</strong> Merchants integrate with set of Paysecure APIs to manage both incoming (pay-ins) and outgoing (payouts) funds.</p>\n</li>\n<li><p><strong>Asynchronous Communication:</strong> Both payin and payout flows use callback URLs and webhooks to confirm transaction statuses, ensuring the merchant system stays updated.</p>\n</li>\n<li><p><strong>Secure Redirection:</strong> Customers are securely redirected from the merchant site to the 3rd-party's cashier page for payments and back to the merchant site upon completion.</p>\n</li>\n<li><p><strong>UPI Payment Options:</strong> The integration supports UPI-based payments, presenting customers with choices, like UPI Dynamic QR and UPI intevent via VPA, during the checkout process.</p>\n</li>\n<li><p><strong>Beneficiary Details:</strong> For payouts, essential beneficiary details, including the Virtual Payment Address (VPA), must be provided to correctly route funds.</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"key-steps-in-the-integration-process\">Key Steps in the Integration Process</h2>\n<h3 id=\"payin-flow\">PayIn Flow</h3>\n<ol>\n<li><p><strong>Customer Selection:</strong><br /> The customer selects UPI as the payment method on the merchant’s website.</p>\n</li>\n<li><p><strong>API Call to Create Purchase:</strong><br /> The merchant system calls the Paysecure <code>createPurchase</code> API to initiate the transaction.</p>\n</li>\n<li><p><strong>Redirection to Third-Party Cashier Page:</strong><br /> The customer is redirected to 3rd-party's cashier page using the provided checkout URL.</p>\n</li>\n<li><p><strong>Payment Options Display:</strong><br /> On the cashier page, the customer is presented with multiple UPI payment options, such as:</p>\n<ul>\n<li><p>UPI Dynamic QR</p>\n</li>\n<li><p>UPI Intent (via VPA)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Transaction Execution:</strong><br /> The customer completes the payment using their UPI app.</p>\n</li>\n<li><p><strong>Callback &amp; Confirmation:</strong><br /> Upon a successful payment, success callback is sent to the merchant’s designated URL. The customer is then redirected back to the merchant’s checkout page, where they see confirmation of a successful payment and an updated balance.</p>\n</li>\n</ol>\n<h3 id=\"payout-flow\">Payout Flow</h3>\n<ol>\n<li><p><strong>Payout Request Initiation:</strong><br /> The customer initiates a payout request directly on the merchant’s website.</p>\n</li>\n<li><p><strong>Beneficiary Details Entry:</strong><br /> The customer enters the Virtual Payment Address (VPA) where they wish to receive the payout.</p>\n</li>\n<li><p><strong>API Call to Process Payout:</strong><br /> The merchant calls the payout API to process the request.</p>\n<ul>\n<li><p><strong>Input:</strong> Payout amount, beneficiary details (including VPA), and other required parameters.</p>\n</li>\n<li><p><strong>Callback:</strong> A callback URL is set up to receive asynchronous updates.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Payout Execution:</strong><br /> Payout is processed to the customer’s specified VPA.</p>\n</li>\n<li><p><strong>Webhook Notification:</strong><br /> A success webhook is triggered upon the successful completion of the payout.</p>\n</li>\n<li><p><strong>Balance Update:</strong><br /> Both the customer’s and merchant’s account balances are updated to reflect the transaction.</p>\n</li>\n</ol>\n","_postman_id":"09b67d25-8892-4147-a573-29cdb4e6d7e8"},{"name":"Payin","item":[{"name":"Create Purchase","id":"99e3a7ec-cfe9-4944-aefc-337c25d404f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"ziangani@outlook.com\",\r\n        \"street_address\": \"Mansarovar, Jaipur\",\r\n        \"city\": \"Jaipur\",\r\n        \"full_name\": \"Adarsh Saini\",\r\n        \"zip_code\": \"101100\",\r\n        \"country\": \"IN\",\r\n        \"date_of_birth\": \"1977-05-10\",\r\n        \"stateCode\": \"NA\",\r\n        \"phone\": \"0964926646\"\r\n    },\r\n    \"purchase\": {\r\n        \"currency\": \"INR\",\r\n        \"products\": [\r\n            {\r\n                \"name\": \"test\",\r\n                \"price\": 1\r\n            }\r\n        ]\r\n    },\r\n    \"paymentMethod\": \"THIRDPARTY-UPI\",\r\n    \"brand_id\": \"{brand_id}\",\r\n    \"success_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\r\n    \"pending_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=pending\",\r\n    \"failure_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=false\",\r\n    \"success_callback\": \"https://staging.paysecure.net\",\r\n    \"failure_callback\": \"https://staging.paysecure.net\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/","description":"<p>To Initiate a payment, the very first call to make is <code>/purchases</code> with the required data in the request body.</p>\n<p>To generate a Purchase, you are required to provide the <code>Brand ID</code> (in the request body) and <code>API key</code> (in the header) Both can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a purchase request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.city</td>\n<td></td>\n</tr>\n<tr>\n<td>client.country</td>\n<td>ISO-3166 Country Code. It must be upper case.  <br />This should be \"IN\" for India</td>\n</tr>\n<tr>\n<td>client.stateCode</td>\n<td>Example “AL”, “XZ”.. Must be in upper case.</td>\n</tr>\n<tr>\n<td>client.street_address</td>\n<td></td>\n</tr>\n<tr>\n<td>client.zip_code</td>\n<td></td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.currency</td>\n<td>ISO 4217 code for currency you want to send the transaction in.</td>\n</tr>\n<tr>\n<td>purchase.products.name</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price</td>\n<td>Price in decimal format.  <br />example 1:  <br />INR 5 , should be sent as 10.00</td>\n</tr>\n<tr>\n<td>brand_id</td>\n<td>Obtain from Dashboard section of your merchant account login.</td>\n</tr>\n<tr>\n<td>success_redirect</td>\n<td>URL to send the user if the transactions is successful</td>\n</tr>\n<tr>\n<td>failure_redirect</td>\n<td>URL to send the user if the transactions is UNSUCCESSFUL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"optional-parameters\">Optional Parameters</h2>\n<h3 id=\"expireinmin\">expireInMin</h3>\n<p>This parameter, when passed in the PayIn request, sets the time window within which a customer should make the Interac payment through their bank's app. If a customer doesn't complete the payment within the configured time window, the status of the payment will be marked as 'EXPIRED' in Paysecure.</p>\n<p>However, in certain cases, a payment made outside of this window could still be successful i.e. customer's account may be debited which would result in inconsistencies among Paysecure's, merchant's and customer's status of the transaction. To avoid such cases it is advised to set the expiry time limit appropriately and advise the customers to make payment within this window. However, if there is an inconsistency between the status at Paysecure and at customer's Bank, the merchant and Paysecure will reconcile the amounts during the settlement.</p>\n<h3 id=\"merchantref\">merchantRef</h3>\n<p>The <code>merchantRef</code> parameter, although not mandatory, is strongly advised for merchants to specify. Its inclusion offers two significant advantages for the merchant:</p>\n<ol>\n<li><p><strong>Prevention of Duplicate Requests:</strong> When a <code>merchantRef</code> is utilized, it acts as a unique identifier. This means that if a second purchase request is made using the same <code>merchantRef</code> (reference number), the system will recognize it and prevent duplicate transactions from occurring. This prevents unintended or duplicate purchases.</p>\n</li>\n<li><p><strong>Facilitation of Transaction Retrieval:</strong> In situations where the response from the initial purchase request times out or the 'purchaseId' isn't received, having the <code>merchantRef</code> allows the merchant to retrieve detailed transaction information. This ensures they can track and access the specific purchase details related to that reference, even if the immediate response was not received.</p>\n</li>\n</ol>\n<p>However, if the merchant does not specify the 'merchantRef' parameter, the platform will automatically assign and use an internal 'purchaseId' as a reference for that transaction.</p>\n<h3 id=\"paymentmethod\">paymentMethod</h3>\n<p>The <code>paymentMethod</code> parameter identifies which payment solution merchant wants to use to perform a transaction. If parameter is provided, than Paysecure will perform direct payment with the selected payment method instead of loading Paysecure URL.</p>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Messages</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Invalid format of Date_of_Birth[allowed format: yyyy-mm-dd]</td>\n<td></td>\n</tr>\n<tr>\n<td>Enter Valid Email</td>\n<td></td>\n</tr>\n<tr>\n<td>Please submit Valid Alpha2 Country Code Ex:(AF,IN) in \\\"country\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass Valid State Code</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid street address in \\\"street_address\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid city name in \\\"city\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>Please pass valid postal Code name in \\\"zip_code\\\" parameter</td>\n<td></td>\n</tr>\n<tr>\n<td>You are not Allowed for Live Transaction</td>\n<td></td>\n</tr>\n<tr>\n<td>Minimum amount is not set for this merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect/failure_redirect/brand_id is missing</td>\n<td></td>\n</tr>\n<tr>\n<td>brand_id cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>success_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>failure_redirect cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>Invalid failure_redirect: minimum 10 characters</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products.price cannot be null</td>\n<td></td>\n</tr>\n<tr>\n<td>purchase.products[0].name/purchase.products[0].price are missing</td>\n<td></td>\n</tr>\n<tr>\n<td>Your charges setting is incomplete .Plese Contact to Administrator.</td>\n<td></td>\n</tr>\n<tr>\n<td>Currency \"{curr_name}\" is Not Allowed</td>\n<td></td>\n</tr>\n<tr>\n<td>Transaction amount must be equal or greater to minimum trans amount</td>\n<td></td>\n</tr>\n<tr>\n<td>Allowed Limit for this card for particular time period has been consumed</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> For certain use cases, in addition to long format purchase Id, Paysecure also provides a 7 digit unique code for each purchase starting with digit 4, eg 4000001</p>\n<p><em>“purchaseIdShortCode”: “4000013\"</em></p>\n","urlObject":{"path":["purchases",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"99e3a7ec-cfe9-4944-aefc-337c25d404f6"},{"name":"Get Status","id":"02013d25-668b-40e1-ac09-f3c4fbc8f5cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/","description":"<p>This API tells you about all the details of a purchase (PayIn), including its history</p>\n<p><strong>Note:</strong> With respect to bank transfers, the purchase request is synonymous with the PayIn request.</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the <code>PurchaseID</code> in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payment_in_process</td>\n<td>Payment is under Processing</td>\n</tr>\n<tr>\n<td>expired</td>\n<td>Purchase has Expired.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-examples\">Response Examples</h3>\n<p>In the response examples you can see instances of both <code>Paid</code> and <code>Error</code> Status purchases.</p>\n<h3 id=\"error-details\">Error Details</h3>\n<p>If there are any issues on the Purchase you can get more details from the <code>transaction_data.attempts.error</code> attribute of the response object</p>\n<h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<p>Please see the Status Code section for further details.</p>\n","urlObject":{"path":["purchases","{purchaseId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"eddd8aeb-c6be-465e-98cc-2b3c90dc4fa0","name":"Purchases-success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"66c4667bb993c970367c288a\",\n    \"client\": {\n        \"email\": \"deepakdeepaksinghal@gmail.com\",\n        \"date_of_birth\": \"1970-07-10\",\n        \"street_address\": \"10 New Burlington Street Apt. 214\",\n        \"country\": \"IN\",\n        \"city\": \"London\",\n        \"zip_code\": \"W1S 3BE\",\n        \"cc\": [],\n        \"bcc\": [],\n        \"stateCode\": \"QLD\"\n    },\n    \"updated_on\": 1724147324,\n    \"type\": \"purchase\",\n    \"paymentMethod\": \"UPI\",\n    \"amountUnit\": \"MAJOR\",\n    \"errorMsg\": \"\",\n    \"redirectType\": \"POST\",\n    \"force_recurring\": false,\n    \"created_on\": 1724147324,\n    \"merchantRef\": \"66c4667bb993c970367c288a\",\n    \"merchantName\": \"merchant002\",\n    \"purchase\": {\n        \"currency\": \"INR\",\n        \"products\": [\n            {\n                \"name\": \"test\",\n                \"quantity\": 1,\n                \"price\": 10,\n                \"discount\": 0,\n                \"tax_percent\": \"0.00\"\n            }\n        ],\n        \"total\": 10,\n        \"language\": \"en\",\n        \"notes\": \"\",\n        \"debt\": 0,\n        \"total_formatted\": 1,\n        \"expireInMin\": \"35\",\n        \"request_client_details\": [],\n        \"timezone\": \"MIT\",\n        \"email_message\": \"\"\n    },\n    \"payment\": {\n        \"is_outgoing\": false,\n        \"payment_type\": \"PURCHASE\",\n        \"amount\": 10,\n        \"currency\": \"INR\",\n        \"net_amount\": 10,\n        \"fee_amount\": 0,\n        \"pending_amount\": 0,\n        \"pending_unfreeze_on\": null,\n        \"description\": \"\",\n        \"paid_on\": 1724147324,\n        \"remote_paid_on\": 1724147324\n    },\n    \"issuer_details\": {\n        \"website\": \"\",\n        \"legal_street_address\": \"\",\n        \"legal_country\": \"\",\n        \"legal_city\": \"\",\n        \"legal_zip_code\": \"\",\n        \"bank_accounts\": [\n            {}\n        ],\n        \"legal_name\": \"test6\",\n        \"brand_name\": \"test6\",\n        \"registration_number\": \"\",\n        \"tax_number\": \"\"\n    },\n    \"transaction_data\": {\n        \"payment_method\": \"\",\n        \"flow\": \"payform\",\n        \"extra\": {\n            \"amount\": 10,\n            \"masked_pan\": \"UPI\"\n        },\n        \"country\": \"\",\n        \"attempts\": [\n            {\n                \"client_ip\": \"103.59.75.113\",\n                \"type\": \"execute\",\n                \"payment_method\": \"UPI\",\n                \"flow\": \"payform\",\n                \"successful\": true,\n                \"country\": \"UPI\",\n                \"processing_time\": 1724147324,\n                \"extra\": {\n                    \"amount\": 10,\n                    \"masked_pan\": \"UPI\"\n                }\n            }\n        ]\n    },\n    \"status\": \"PAYMENT_IN_PROCESS\",\n    \"status_history\": [\n        {\n            \"status\": \"created\",\n            \"timestamp\": 1724147324\n        },\n        {\n            \"status\": \"pending_execute\",\n            \"timestamp\": 1724147324\n        },\n        {\n            \"status\": \"payment_in_process\",\n            \"timestamp\": 1724147324\n        }\n    ],\n    \"is_test\": false,\n    \"brand_id\": \"c4003b2c-22d4-4dc1-ad0c-c6b54f8c9636\",\n    \"send_receipt\": false,\n    \"is_recurring_token\": false,\n    \"skip_capture\": false,\n    \"reference_generated\": \"PS10907\",\n    \"issued\": \"2024-08-20\",\n    \"due\": 1724147324,\n    \"refund_upto\": 1725871728,\n    \"cc_descriptor\": \"test1\",\n    \"fraudScore\": \"NA\",\n    \"trustScore\": \"NA\",\n    \"payInDetails\": {\n        \"qrCode\": \"iVBORw0KGgoAAAANSUhEUgAAAb0AAAG9AQAAAACpVZXpAAAH7UlEQVR4nO1cQY7qSgw0yiJLjpCbJBdDIhIXg5vkCCyzQPi7qtwkM2/zNcsYpIfeQFcvTNtdLtsx/9trtS/wC/wCv8A/AZ9mdnpevb9bt6zj+TWso3Uen17i33nGkgverotN/orP7FoHeHV/AG1nfnoZ+kfYrcdKv8ei/gEMvljxRkQZ4MVi5Ww2nm9LbBF/xnLYd7YVVu3dZ262hPUvA3+CUsCnDesJ39/PHhidtlg5cRFek9+WtSgwPO595ldGI4dTAohX/8ZpG2Hp8MdiQPnjEL7XIWJdEae6BfvgC0SxCGCx2Q2fvf5x5GMDGckRov7X2+8r4NhAvW6O82QrHBBeuGBHHjSHK7rDtDxtv8jD0YERv8PPwAHcRjogbv43/BF/wuZwytgHO9r4serxgbIg7vvzPNALY1GHzXDrwYJji2JgTsvOkY8PxGnDDYeVsPHcYjWoUtx6jF04cjPsa8PmjxWAroMWUbtbdPPHPuGZsOqdX8SfOJXGu26zagVgLILHraTWvOUDjRuuU4jq4a2xj8y9hLd6HaArFcMtD997gVoHJYCRwa8H2HzgWVxBDkoBxR5lraVHxIpgdWXEcjJKHrmw+S2Z071F8gLA+JSGCkwEbISoOFnJHiNtvSAhgc0RpyKmw/BeBqgUFUcJGIPWAZnjY1VXis+bUMdw93McHph0kXedfA/pBfMx5CKLlJCJ9n3+FEkOD1QSiuUyrSWaQfyuc0eS3UElm+m8ZYDNqrCbkQMgMMGWEcCQhdEB6a1Jsps/VgCGybASWTtOFu1Lz8SlD/lsgheepBXFupaUFQEiC4MXzozaRjYQrnhRAksioORDbx8doAAQkfwM3qzrP4MVI3lwRqeEOEgTgc37eyVg5zxFZNAuboR0HlkY5VZdbszbELtk6SpAk/DV44yBB2H5zFSWgR3KPAkSKIHZT3nt6EA4INgPmKJRim/1L1MljKI8zS0NbSwElG5qrX6DwsQkDQh5Kr91prI3V4jfqHUBYKfKH9jPQPbDCpchTkmop/xzgiYi9dULASm2863TQeuxGYuDYVUzmtFOm3tuxaDjA+Fi0AehAZFB0zOpfxikD4Uo7YOw9SFIBYAqkN4UyRnY4ZnNFWnfVlpX7WeTEI8PBGWepDvLZCDPopBZOQVVgj+CCNwaaaoBxP8p/zDloN5jZI/sQABGeYe7ctftyBUAPpmmozqBpAyZ/ArxmXmqfJTqIZVWbLGJJBWAtCXqN8rCqIN1rqh9N0qIs84dGzU2raMAkPEbJjMWt85atJg1fZXZhm7CURyqDvCpWpejnUci4QrxmWSSVQwqRGwT47qdEFQBOPCWpxeCPBulsl55KiyIOM96hiLWw+sAndSQB+1KqQxnjEBmIC+xb2NNjFnJp95RASjimEViKtAiTWoEM1bf1YHK2vKOPR4fiJuLyrIZuk0hNOP6Z9McsxJk8gsJEm44sYEqQHaghvF4fQk9ch+9MXR3aOdRJA9KsJVKDw9k1FbDE1WyiOkUghiwSQlQycmyz5mCRyWgZxAyFU2dJJvxm59RsgerlmS/XXMFgOzfYU3H1OFuSlaRnq288JyuyL5dhLJPB0IBIBa9mbCrOYxaqkqlqPwhlcU1B89Ud/wnklcABjdCmi4dEcoyo1Nrt2yVsDGrGGpqrgNUqY8siQblQXMeOcZv6Ijr1LpYdjWd4wM9h2yYcanE02gRxY3WmSHSxBKP1wFK4NFVz0i0jZUwO2Viz3PHA7nrfD4+8MlRLCRl4NITs42WxPdZxKGQdpXSah/aWQDo5IcJVB2ZhBrHi0UcmjY7eH/8HAWAraaTxMfSAU1ah9E9L8pAVD6tBGQnt/h1bMFGg3fLMdjUwvaMNfMOzCJtR+7wQPWucKBmZjjnV61DjJtxXkJpiO1qOhWAOV/TYhKcUpM2F91rxqGJVrHYdXcXAPIA5dDsIPXwnUZWOxRpgrMjEzORW8GrAnDO4tbE8QnORrCfBeeOMvSk3h/LLR6FgNtIIyui1OglaTAhYXNYamicufGdIx8eqFz9ZTkMYWy8dA1vqRp4Ir/2WcLINlBQAPgkIWQQz0c8OFvlkl8zA5lzGAeHz9+FgO6ii+y9QCRSowHdTtH9xOZTjWBn6asKUK2VvtBaUuFH+R62oAZkObLfKzM71wHCqhyVaFPpIs/emndV+mLfBmtivv85Dg9kAwajE+K3kg8lpq3YA0dlY48GAM+FgDklq7wDoVtUaVT/e/YdJDdiUcPrAHmeFJhemkBKMunZ/y6nZDeYGMKmzB8eCBshHW1T6VhuqdabzmI+P2Tpm1OWAWoei88uSBV+o9G7eimfN4O0f9e/enyg9PgL5Xk9tqDP9OKmKilbCNU0dxL6Wgr4aOlo/yGOagQ7yeZqwYRnXndlxArAnNHfRvbzXlML5ktJmWdij2rgsxAQVlVJMF2xaUCcGuUH6n9SpX3f9XR8IF7qQIiTlUWcznXf5/CRZfflqIGuaxkgDEVqaOyX4+VmnNvic2SyTCi5VRWfdgVUAF5dUVtj6KrpwL545dMX7TNg/LMaeHygnr7YxNM2JcEvVOLJrISKolk9oPpxW7ep+JJodLJqnkpN9Vs1IFxsarqzpLKHsrUXGaW1+vrFfj3w8+BA+iOHA1omrxbCJ9F67IP2oUK04+QFgC2Sq8U7x5CGTyVsaL3LLjIp9ywC/NPrC/wCv8Av8C/A/wCpreUSrYyOqQAAAABJRU5ErkJggg==\",\n        \"gpayUri\": \"gpay://upi/pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\n        \"phonepeUri\": \"phonepe://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\n        \"paytmUri\": \"paytmmp://pay?ver=01&mode=15&am=5.00&mam=1.00&cu=INR&pa=npstpay@timecosmos&pn=NPST%20PAY&mc=6012&tr=NPST040120220010&tn=QR%20SIT%20testing&mid=NPSTPAY001&msid=NPSTPAY001-001&mtid=NPSTPAY001-001&category=02&url=http://google.com\",\n        \"generatedLink\": \"https://staging.decf.in/pay/514o5z3m9z\"\n    },\n    \"refund_availability\": \"NONE\",\n    \"refundable_amount\": 10,\n    \"success_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=true\",\n    \"failure_redirect\": \"https://staging.paysecure.net/getResponse.jsp?success=false\",\n    \"cancel_redirect\": \"\",\n    \"success_callback\": \"https://staging.paysecure.net\",\n    \"failure_callback\": \"https://staging.paysecure.net\",\n    \"platform\": \"API\",\n    \"created_from_ip\": \"103.59.75.113\",\n    \"checkout_url\": \"https://staging.paysecure.net/payments/66c4667bb993c970367c288a/\",\n    \"payoutProcess\": false\n}"},{"id":"afcb1378-58ad-4c90-8dff-e641d34183ab","name":"Purchases","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"url":"https://api.paysecure.net/api/v1/purchases/{purchaseId}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Error Message\",\n    \"code\": \"error_code\"\n}"}],"_postman_id":"02013d25-668b-40e1-ac09-f3c4fbc8f5cc"}],"id":"c413dfec-c70a-4180-a31f-93b5a1b9e7c7","description":"<h3 id=\"payin-api-flow\">PayIn API Flow</h3>\n<ol>\n<li><p><strong>Initiation:</strong></p>\n<ol>\n<li><p>Merchant system calls paysecure <code>Purchases</code> API.</p>\n</li>\n<li><p><strong>Response:</strong> Returns a checkout URL and initiates a callback URL.</p>\n</li>\n</ol>\n</li>\n<li><p><strong>Redirection:</strong></p>\n<ol>\n<li>Customer is redirected to the cashier page.</li>\n</ol>\n</li>\n<li><p><strong>Payment Method Selection:</strong></p>\n<ol>\n<li>The cashier page displays options such as UPI Dynamic QR and UPI ID.</li>\n</ol>\n</li>\n<li><p><strong>Transaction Processing:</strong></p>\n<ol>\n<li>Customer completes the payment using a UPI app.</li>\n</ol>\n</li>\n<li><p><strong>Success Callback:</strong></p>\n<ol>\n<li>On successful payment, a scuccess wehook is triggered</li>\n</ol>\n</li>\n<li><p><strong>Finalization:</strong></p>\n<ol>\n<li>Customer is redirected back to the merchant site where the transaction status is displayed and the balance is updated.</li>\n</ol>\n</li>\n</ol>\n","_postman_id":"c413dfec-c70a-4180-a31f-93b5a1b9e7c7"},{"name":"Payout","item":[{"name":"Create PayOut","id":"46023168-b018-433b-a253-b602d5f3207b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer Token"}],"body":{"mode":"raw","raw":"{\r\n    \"client\": {\r\n        \"email\": \"yogesh@gmail.com\",\r\n        \"country\": \"CA\",\r\n        \"phone\": \"766225230591\",\r\n        \"full_name\": \"Test Person-uk\"\r\n    },\r\n    \"beneficiaryDetail\": {\r\n        \"upi\": \"alpha@bravo\"\r\n    },\r\n    \"purpose\": \"test payout\",\r\n    \"currency\": \"INR\",\r\n    \"payoutMethod\": \"PAYOUT-THIRDPARTY-UPI\",\r\n    \"amount\": 10,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/payout/","description":"<p>To Initiate a payment, the very first call to make is <code>/payout/</code> with the required data in the request body.</p>\n<p>To generate a Payout, you are required to provide the <code>API key</code> (in the header) can be located in the Dashboard section of your merchant account login.</p>\n<p>The request body structure is shown on the request body of the example request shown here.</p>\n<p>The following (see table below) are the mandatory parameters that are required to create a Payout request.</p>\n<h3 id=\"mandatory-parameters-in-the-request-body\"><strong>Mandatory parameters in the request body:</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client.email</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.phone</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.full_name</td>\n<td>An Identifier for a user</td>\n</tr>\n<tr>\n<td>client.country</td>\n<td></td>\n</tr>\n<tr>\n<td>payoutMethod</td>\n<td>PAYOUT-THIRDPARTY-UPI</td>\n</tr>\n<tr>\n<td>beneficiaryDetail.upi</td>\n<td>VPA (UPI ID)</td>\n</tr>\n<tr>\n<td>Currency</td>\n<td>Note this is currency account for which you have balance</td>\n</tr>\n<tr>\n<td>Amount</td>\n<td>Amount in Currency</td>\n</tr>\n<tr>\n<td>Purpose</td>\n<td>Purpose of the payment</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["payout",""],"host":["https://api.paysecure.net/api/v1"],"query":[{"disabled":true,"key":"","value":null},{"disabled":true,"key":null,"value":""}],"variable":[]}},"response":[],"_postman_id":"46023168-b018-433b-a253-b602d5f3207b"},{"name":"Get Status","id":"85fc96ca-9457-481b-ba6d-0b197c6ddc79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/","description":"<p>This API tells you about all the details of a Payout, including its history</p>\n<h3 id=\"mandatory\">Mandatory</h3>\n<p>you need to pass the payoutId in the API URL</p>\n<h3 id=\"possible-value-of-status\">Possible Value of Status</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>paid</td>\n<td>Transaction Successful</td>\n</tr>\n<tr>\n<td>payout_in_process</td>\n<td>payout is under Processing.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Transaction has Failed.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The webhook will only be triggered for paid transactions or errors.</p>\n<p>Paid: \"success_callback\": \"<a href=\"https://success.com\">https://success.com</a>\",</p>\n<p>Error: \"failure_callback\": “<a href=\"https://failure.com%E2%80%9D\">https://failure.com”</a></p>\n","urlObject":{"path":["getpayout","{payoutId}",""],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"78aba544-b85e-41b2-950f-72fa01240c02","name":"Get success Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"payoutId\": \"66838ae86d41e41c10a8656d\",\r\n    \"client\": {\r\n        \"email\": \"Yogesh@gmail.com\",\r\n        \"phone\": \"766533230591\",\r\n        \"full_name\": \"Test Person-uk\",\r\n        \"country\": \"CA\"\r\n    },\r\n    \"updated_on\": 1719896808,\r\n    \"payoutMethod\": \"PAYOUT-UPI\",\r\n    \"beneficiaryDetail\": {\r\n        \"upi\": \"charles.babbage@okhdfc\",\r\n        \"transferType\": \"UPI\"\r\n    },\r\n    \"amountUnit\": \"MAJOR\",\r\n    \"amount\": 10.0,\r\n    \"errorMsg\": \"\",\r\n    \"purpose\": \"test payout\",\r\n    \"created_on\": 1719896808,\r\n    \"merchantRef\": \"66838ae86d41e41c10a8656d\",\r\n    \"merchantName\": \"newMerchant777\",\r\n    \"status\": \"PAYOUT_IN_PROCESS\",\r\n    \"status_history\": [\r\n        {\r\n            \"status\": \"created\",\r\n            \"timestamp\": 1719896808\r\n        },\r\n        {\r\n            \"status\": \"payout_in_process\",\r\n            \"timestamp\": 1719896810\r\n        },\r\n        {\r\n            \"status\": \"viewed\",\r\n            \"timestamp\": 1719900796\r\n        }\r\n    ],\r\n    \"viewedOn\": 1719900796,\r\n    \"currency\": \"INR\",\r\n    \"paymentOn\": 0,\r\n    \"success_callback\": \"https://success.com\",\r\n    \"failure_callback\": \"https://failure.com\"\r\n}\r\n"},{"id":"88651014-3c4c-4444-8466-094d5ae245ef","name":"Get Error Status","originalRequest":{"method":"GET","header":[],"url":"https://api.paysecure.net/api/v1/getpayout/{payoutId}/"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Error Message\",\r\n    \"code\": \"error_code\"\r\n}"}],"_postman_id":"85fc96ca-9457-481b-ba6d-0b197c6ddc79"}],"id":"50d39c91-642d-4cac-81e4-a1372399eeed","description":"<h3 id=\"payout-api-flow\">Payout API Flow</h3>\n<ol>\n<li><p><strong>Customer Action:</strong></p>\n<ul>\n<li>Customer initiates a payout request on the merchant site and inputs their VPA.</li>\n</ul>\n</li>\n<li><p><strong>Initiation:</strong></p>\n<ul>\n<li><p>Merchant system calls its payout API.</p>\n</li>\n<li><p><strong>Input Data:</strong> Includes payout amount, beneficiary details (with VPA), and callback URL.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Processing:</strong></p>\n<ul>\n<li>The payout request is processed.</li>\n</ul>\n</li>\n<li><p><strong>Webhook Notification:</strong></p>\n<ul>\n<li>Upon successful payout, merchant receives a success webhook.</li>\n</ul>\n</li>\n<li><p><strong>Finalization:</strong></p>\n<ul>\n<li>Merchant system updates both customer and merchant balances accordingly.</li>\n</ul>\n</li>\n</ol>\n","_postman_id":"50d39c91-642d-4cac-81e4-a1372399eeed"}],"id":"9c81f465-e855-4513-9a53-4a6c294a1559","description":"<p>This is a versatile payment solution that supports both pay-ins (customer payments) and payouts (customer withdrawals) primarily using UPI-based transactions. This integration enables merchants to provide seamless payment experiences on their platforms, offering multiple UPI payment options such as UPI Dynamic QR and UPI Intent (via VPA) payments. The integration leverages asynchronous callbacks and webhooks to ensure real-time transaction status updates and balance synchronization.</p>\n","_postman_id":"9c81f465-e855-4513-9a53-4a6c294a1559"}],"id":"d472ff4b-ea42-4c40-b12e-acfc5764c702","_postman_id":"d472ff4b-ea42-4c40-b12e-acfc5764c702","description":""}],"id":"311752c9-c406-41e3-a5a7-4dae13aa69f6","_postman_id":"311752c9-c406-41e3-a5a7-4dae13aa69f6","description":""},{"name":"Trust Score","item":[{"name":"TrustScore Detailed","id":"2cf673ad-478b-4829-8c21-d631d68f70fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"111.11.11.11\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"https://www.asos.com/\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/trustScore","description":"<h3 id=\"overview\">Overview</h3>\n<p>Paysecure TrustScore's proprietary API combines email, phone number, IP and URL so that you can request and receive a user trust score from our enriched data, rules, and scoring in a single API call.</p>\n<p>Our take on Trust is different from the usual approach to fraud. This API tells you how much you can trust this user. It’s based on 100+ data points to which we have access. We use complex algorithms based on data sanity and customer behaviour in our partner network.</p>\n<p>Also, the additional optional parameter would be used to boost the accuracy of our response. So the more data we get the better we can ascertain the users' trust. So please endeavour to send as much information about the user as possible.</p>\n<h3 id=\"trust-score--usage\"><strong>Trust Score &amp; Usage</strong></h3>\n<p>TrustScore offers two distinct endpoints: <code>General</code> and <code>Detailed</code>.</p>\n<p>The General endpoint provides basic information by indicating whether a transaction is permitted or not. It gives a simple 'yes' or 'no' response regarding whether the transaction can proceed.</p>\n<p>On the other hand, the Detailed endpoint offers a more comprehensive evaluation. It furnishes an in-depth analysis of the transaction's authenticity, providing a detailed assessment beyond a simple allowance or denial, offering nuanced insights and information about the transaction's legitimacy.</p>\n<h3 id=\"detailed-trustscore\">Detailed TrustScore</h3>\n<p>Trust scores range from 0 to 5. A trust score of 0 indicates that we have limited information about the user, and it corresponds to the lowest level of trust. In addition to the TrustScore, we offer eight other flags to help assess the user's overall profile and determine appropriate actions to take. We suggest flagging or blocking users, transactions, or clicks as high risk based on a combination of the following factors: email deliverability, proxy usage, VPN usage, Tor usage, and recent abusive behavior.</p>\n<p>Every company has a unique target audience, so you might achieve better results by only flagging or blocking entities with low trust scores and recent instances of abuse. Keep in mind that mobile IP addresses are frequently misused and recycled by mobile carriers. Therefore, for mobile lookups, we advise giving more weight to the trust score, VPN usage, and Tor usage, as opposed to proxy usage.</p>\n<h3 id=\"permission\"><strong>Permission</strong></h3>\n<p>Access to this API has to be given to you by the admin. So please contact your sales representative at PaySecure to get access to this API, if you get a 401 error of \"You are not allowed to call this API service\".</p>\n<h3 id=\"mandatory-parameters-in-body\">Mandatory Parameters (in body)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ip</td>\n<td>IP of the user. Both IP4 and IP6 are valid</td>\n</tr>\n<tr>\n<td>email</td>\n<td>The email id of the user you want to trust score on</td>\n</tr>\n<tr>\n<td>url</td>\n<td>The URL on which the user is trying to purchase or consume a product, service or data.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"other-optional-paramters\">Other optional paramters:</h3>\n<p>The optional parameters are self-explanatory and appropriate values can be given in string format.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>last_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_bonuses</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>average_real_bet</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>average_bonus_bet</td>\n<td>String</td>\n</tr>\n<tr>\n<td>bonus_to_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_withdrawals</td>\n<td>String</td>\n</tr>\n<tr>\n<td>is_phone_confirmed</td>\n<td>String</td>\n</tr>\n<tr>\n<td>money_in_money_out</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_bonuses_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_deposits_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>withdrawals_to_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_withdrawals_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>withdrawal_ewallet_email</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>session</td>\n<td>String</td>\n</tr>\n<tr>\n<td>payment_mode</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_fullname</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_bin</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_hash</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_last</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_expire</td>\n<td>String</td>\n</tr>\n<tr>\n<td>avs_result</td>\n<td>String</td>\n</tr>\n<tr>\n<td>cvv_result</td>\n<td>String</td>\n</tr>\n<tr>\n<td>sca_method</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_bank_account</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_bank_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_balance</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_verification_level</td>\n<td>String</td>\n</tr>\n<tr>\n<td>status_3d</td>\n<td>String</td>\n</tr>\n<tr>\n<td>regulation</td>\n<td>String</td>\n</tr>\n<tr>\n<td>payment_provider</td>\n<td>String</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_type</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>merchant_id</td>\n<td>String</td>\n</tr>\n<tr>\n<td>details_url</td>\n<td>String</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>person_type</td>\n<td>String</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>String</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>In the response examples, you can observe both instances of a successful TrustScore response and an unsuccessful one.</p>\n<p>Please note that there are a lot of parameters to determine the trust level and give you some additional details on the email and IP of the user.</p>\n<p>in a successful trust score call the following data would be provided:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Response Item</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Possible Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>trustScore</td>\n<td>The trust score attributed to the user by our algorithms</td>\n<td>Integer 0 to 5</td>\n</tr>\n<tr>\n<td>deliverable</td>\n<td>Whether the email is deliverable, usually false means it wouldn't be a trustable user.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>proxy</td>\n<td>Is this IP address suspected to be a proxy? (SOCKS, Elite, Anonymous, VPN, Tor, etc.)</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>vpn</td>\n<td>Is this IP suspected of being a VPN connection? This can include data center ranges which can become active VPNs at any time. The \"proxy\" status will always be true when this value is true.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>tor</td>\n<td>Is this IP suspected of being a TOR connection? This can include previously active TOR nodes and exits which can become active TOR exits at any time. The \"proxy\" status will always be true when this value is true.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>active_vpn</td>\n<td>Identifies active VPN connections used by popular VPN services and private VPN servers.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>active_tor</td>\n<td>Identifies active TOR exits on the TOR network.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>recent_abuse</td>\n<td>This value indicates whether the IP address has been associated with any recently verified abuse on our network, such as a confirmed chargeback, compromised device, or fake app install.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n<tr>\n<td>bot_status</td>\n<td>Shows whether bots or non-human traffic recently used this IP address to engage in automated fraud. This provides strong evidence that the IP address is suspicious.</td>\n<td><strong>Boolean</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"errors\">Errors</h3>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<p>the possible error codes one can get on calling this APIs are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400, 404, 401, 415, 405</td>\n</tr>\n</tbody>\n</table>\n</div><p>for example:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Error Messages</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Incorrect secret_key</td>\n</tr>\n<tr>\n<td>401</td>\n<td>You are not Allowed to call this API service</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["trustScore"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"29aed91e-4b38-4296-8c46-af68beb7e382","name":"TrustScoreExists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"2001:8004:cc2:fadb:9958:4523:6c42:e3f2\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"http://test.com\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{StagingBaseURL}}/trustScore"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 29 Oct 2023 09:21:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=r2%2FuLwSilxdD1lpiI1VqpgF0Tu9etiNhupySeBHl0zcU8XV1z8kwR%2FJ00ti4xpMdrTXW%2BkqZkLGrkkaUnMWFsaYlg%2FfA9UC4wIKwmc9LHUwna491EmnC3b3vlabzhUJ11CMpnVmicUE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"81da590e8d4345a0-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"trustScore\": 0,\n    \"deliverable\": \"false\",\n    \"proxy\": \"false\",\n    \"vpn\": \"false\",\n    \"tor\": \"false\",\n    \"active_vpn\": \"false\",\n    \"active_tor\": \"false\",\n    \"recent_abuse\": \"false\",\n    \"bot_status\": \"false\"\n}"},{"id":"06c3e4d3-fa9f-4f66-b506-f01fe6481272","name":"TrustScoreError","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"2001:8004:cc2:fadb:9958:4523:6c42:e3f2\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"http://test.com\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{StagingBaseURL}}/trustScore"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 29 Oct 2023 09:28:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=herXY1o%2BFZa%2F3qNFjvh4ANgP%2FD0DdAVVFm0vUZDAst2rFkieItm%2Fu0VN24DYrdp7MHMHFKWLvrsBYVIxjDPDaLgJjeGBvlTP2iZoB5EnG1hPPHUVXRNP%2FGMmOTh%2Fp7gsyj0vihW1kMk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"81da6398ab144913-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incorrect secret_key\",\n    \"code\": \"authentication_failed\"\n}"}],"_postman_id":"2cf673ad-478b-4829-8c21-d631d68f70fd"},{"name":"checkTransactionAllowed","id":"70af9b19-5d76-4a1f-8397-dcc605f4ccb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"111.11.11.11\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"https://www.asos.com/\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/checkTransAllowed","description":"<h3 id=\"general-trustscore\">General TrustScore</h3>\n<p>Request for the checkTransactionAllowed endpoint is identical to the TrustScore API. Only thing different is the response. Instead of detailed score, this endpoint only returns <code>transactionAllowed</code> parameter that can have either <code>YES</code> or <code>NO</code> value.</p>\n<h3 id=\"permission\"><strong>Permission</strong></h3>\n<p>Access to this API has to be given to you by the admin. So please contact your sales representative at Paysecure to get access to this API, if you get a 401 error of \"You are not allowed to call this API service\".</p>\n<h3 id=\"mandatory-parameters-in-body\">Mandatory Parameters (in body)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ip</td>\n<td>IP of the user. Both IP4 and IP6 are valid</td>\n</tr>\n<tr>\n<td>email</td>\n<td>The email id of the user you want to trust score on</td>\n</tr>\n<tr>\n<td>url</td>\n<td>The URL on which the user is trying to purchase or consume a product, service or data.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"other-optional-paramters\">Other optional paramters:</h3>\n<p>The optional parameters are self-explanatory and appropriate values can be given in string format.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameters</strong></th>\n<th><strong>Values</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>last_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_bonuses</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_bets</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_wins</td>\n<td>String</td>\n</tr>\n<tr>\n<td>average_real_bet</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>average_bonus_bet</td>\n<td>String</td>\n</tr>\n<tr>\n<td>bonus_to_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_withdrawals</td>\n<td>String</td>\n</tr>\n<tr>\n<td>is_phone_confirmed</td>\n<td>String</td>\n</tr>\n<tr>\n<td>money_in_money_out</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_bonuses_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_real_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_deposits_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_bets_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_bonus_wins_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_date</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_freespins_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>withdrawals_to_deposits</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_free_bonus_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>total_withdrawals_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>withdrawal_ewallet_email</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_status</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>last_deposit_bonus_wagering</td>\n<td>String</td>\n</tr>\n<tr>\n<td>session</td>\n<td>String</td>\n</tr>\n<tr>\n<td>payment_mode</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_fullname</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_bin</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_hash</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_last</td>\n<td>String</td>\n</tr>\n<tr>\n<td>card_expire</td>\n<td>String</td>\n</tr>\n<tr>\n<td>avs_result</td>\n<td>String</td>\n</tr>\n<tr>\n<td>cvv_result</td>\n<td>String</td>\n</tr>\n<tr>\n<td>sca_method</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_bank_account</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_bank_name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_balance</td>\n<td>String</td>\n</tr>\n<tr>\n<td>user_verification_level</td>\n<td>String</td>\n</tr>\n<tr>\n<td>status_3d</td>\n<td>String</td>\n</tr>\n<tr>\n<td>regulation</td>\n<td>String</td>\n</tr>\n<tr>\n<td>payment_provider</td>\n<td>String</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_type</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_amount</td>\n<td>String</td>\n</tr>\n<tr>\n<td>transaction_currency</td>\n<td>String</td>\n</tr>\n<tr>\n<td>merchant_id</td>\n<td>String</td>\n</tr>\n<tr>\n<td>details_url</td>\n<td>String</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n</tr>\n<tr>\n<td>person_type</td>\n<td>String</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>String</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>Response contains a single parameter: <code>transactionAllowed</code> which can either be <code>YES</code> or <code>NO</code> .</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"transactionAllowed\" : \"YES\"\n}\n\n</code></pre>\n<p>If there are any errors then it'll be in the format of :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"descriptive error message\",\n    \"code\": \"error_code\"\n}\n\n</code></pre>\n<h3 id=\"possible-error-messages\">Possible Error Messages</h3>\n<p>the possible error codes one can get on calling this APIs are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400, 404, 401, 415, 405</td>\n</tr>\n</tbody>\n</table>\n</div><p>for example:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Error Messages</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401</td>\n<td>Incorrect secret_key</td>\n</tr>\n<tr>\n<td>401</td>\n<td>You are not Allowed to call this API service</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["checkTransAllowed"],"host":["https://api.paysecure.net/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6c6da9c3-8258-4240-aa11-a9dde6966fdc","name":"TrustScoreExists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"2001:8004:cc2:fadb:9958:4523:6c42:e3f2\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"http://test.com\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{StagingBaseURL}}/checkTransAllowed"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 29 Oct 2023 09:21:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=r2%2FuLwSilxdD1lpiI1VqpgF0Tu9etiNhupySeBHl0zcU8XV1z8kwR%2FJ00ti4xpMdrTXW%2BkqZkLGrkkaUnMWFsaYlg%2FfA9UC4wIKwmc9LHUwna491EmnC3b3vlabzhUJ11CMpnVmicUE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"81da590e8d4345a0-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"transactionAllowed\": \"YES\"\n}"},{"id":"ccd0a2af-a5fb-4d02-9fef-78c57e818ce9","name":"TrustScoreError","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"requiredinput\": {\r\n        \"ip\": \"2001:8004:cc2:fadb:9958:4523:6c42:e3f2\",\r\n        \"email\": \"test@gmail.com\",\r\n        \"url\": \"http://test.com\"\r\n    },\r\n    \"optionalInput\": {\r\n        \"last_bets\": null,\r\n        \"last_wins\": \"\",\r\n        \"total_bonuses\": \"\",\r\n        \"last_real_bets\": \"\",\r\n        \"last_real_wins\": \"\",\r\n        \"total_deposits\": \"\",\r\n        \"last_bonus_bets\": \"\",\r\n        \"last_bonus_wins\": \"\",\r\n        \"average_real_bet\": \"\",\r\n        \"last_bets_amount\": \"\",\r\n        \"last_wins_amount\": \"\",\r\n        \"average_bonus_bet\": \"\",\r\n        \"bonus_to_deposits\": \"\",\r\n        \"last_deposit_date\": \"\",\r\n        \"total_withdrawals\": \"\",\r\n        \"is_phone_confirmed\": \"\",\r\n        \"money_in_money_out\": \"\",\r\n        \"last_deposit_amount\": \"\",\r\n        \"last_freespins_date\": \"\",\r\n        \"last_freespins_name\": \"\",\r\n        \"last_free_bonus_date\": \"\",\r\n        \"last_free_bonus_name\": \"\",\r\n        \"total_bonuses_amount\": \"\",\r\n        \"last_freespins_amount\": \"\",\r\n        \"last_freespins_status\": \"\",\r\n        \"last_real_bets_amount\": \"\",\r\n        \"last_real_wins_amount\": \"\",\r\n        \"total_deposits_amount\": \"\",\r\n        \"last_bonus_bets_amount\": \"\",\r\n        \"last_bonus_wins_amount\": \"\",\r\n        \"last_free_bonus_amount\": \"\",\r\n        \"last_free_bonus_status\": \"\",\r\n        \"last_deposit_bonus_date\": \"\",\r\n        \"last_deposit_bonus_name\": \"\",\r\n        \"last_freespins_currency\": \"\",\r\n        \"last_freespins_wagering\": \"\",\r\n        \"withdrawals_to_deposits\": \"\",\r\n        \"last_free_bonus_currency\": \"\",\r\n        \"last_free_bonus_wagering\": \"\",\r\n        \"total_withdrawals_amount\": \"\",\r\n        \"withdrawal_ewallet_email\": \"\",\r\n        \"last_deposit_bonus_amount\": \"\",\r\n        \"last_deposit_bonus_status\": \"\",\r\n        \"last_deposit_bonus_currency\": \"\",\r\n        \"last_deposit_bonus_wagering\": \"\",\r\n        \"session\": \"\",\r\n        \"payment_mode\": \"\",\r\n        \"card_fullname\": \"\",\r\n        \"card_bin\": \"\",\r\n        \"card_hash\": \"\",\r\n        \"card_last\": \"\",\r\n        \"card_expire\": \"\",\r\n        \"avs_result\": \"\",\r\n        \"cvv_result\": \"\",\r\n        \"sca_method\": \"\",\r\n        \"user_bank_account\": \"\",\r\n        \"user_bank_name\": \"\",\r\n        \"user_balance\": \"\",\r\n        \"user_verification_level\": \"\",\r\n        \"status_3d\": \"\",\r\n        \"regulation\": \"\",\r\n        \"payment_provider\": \"\",\r\n        \"phone_number\": \"\",\r\n        \"transaction_type\": \"\",\r\n        \"transaction_amount\": \"\",\r\n        \"transaction_currency\": \"\",\r\n        \"merchant_id\": \"\",\r\n        \"details_url\": \"\",\r\n        \"name\": \"\",\r\n        \"person_type\": \"\",\r\n        \"gender\": \"\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{StagingBaseURL}}/checkTransAllowed"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 29 Oct 2023 09:28:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=herXY1o%2BFZa%2F3qNFjvh4ANgP%2FD0DdAVVFm0vUZDAst2rFkieItm%2Fu0VN24DYrdp7MHMHFKWLvrsBYVIxjDPDaLgJjeGBvlTP2iZoB5EnG1hPPHUVXRNP%2FGMmOTh%2Fp7gsyj0vihW1kMk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"81da6398ab144913-LHR"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Incorrect secret_key\",\n    \"code\": \"authentication_failed\"\n}"}],"_postman_id":"70af9b19-5d76-4a1f-8397-dcc605f4ccb9"}],"id":"6bd659e2-2e4c-470f-94c2-4c67d6e2ea89","_postman_id":"6bd659e2-2e4c-470f-94c2-4c67d6e2ea89","description":""},{"name":"Cashier APIs","item":[{"name":"Customer","id":"be050c68-c4f6-4e79-a337-4bd449f8116b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@paysecure.net\",\r\n    \"dateOfBirth\": \"1994-06-03\",\r\n    \"phoneNo\": \"+91 797639082\",\r\n    \"city\": \"Jaipur\",\r\n    \"stateCode\": \"RJ\",\r\n    \"zipCode\": \"302018\",\r\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\r\n    \"country\": \"IN\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@paysecure.net\",\r\n    \"CustRegDate\": \"2023-12-27\", //non-mandatory - customer registration date on merchant site\r\n    \"SuccessTxn\": \"32\", //non-mandatory - total successful customer orders on merchant site\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/customer","description":"<p><strong>OVERIEW</strong></p>\n<p>The <strong>createCustomer API</strong> allows merchants to create a customer profile on PaySecure when a user visits their website, facilitating a seamless payment experience by pre-filling the customer's details, on the PaySecure Cashier. The API takes in customer information and returns a unique customerID that can be passed in purchase payload, eliminating the need for customers to manually enter their details during transactions.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>merchantCustomerId</td>\n<td>String</td>\n<td>unique customer ID provided by merchant. This can be email, mobile or an alphanumeric string</td>\n<td><a href=\"https://mailto:rahultestcustomer@paysecure.net\">rahultestcustomer@paysecure.net</a></td>\n</tr>\n<tr>\n<td>fullName</td>\n<td>String</td>\n<td>Full name of the customer.</td>\n<td>Rahul Agarwal</td>\n</tr>\n<tr>\n<td>emailId</td>\n<td>String</td>\n<td>Email address of the customer.</td>\n<td><a href=\"https://mailto:test@paysecure.net\">test@paysecure.net</a></td>\n</tr>\n<tr>\n<td>dateOfBirth</td>\n<td>String</td>\n<td>Customer's date of birth in YYYY-MM-DD format.</td>\n<td>1995-38-27</td>\n</tr>\n<tr>\n<td>phoneNo</td>\n<td>String</td>\n<td>Customer's phone number. Preferred with the country code</td>\n<td>+91 797639082</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>City of the customer.</td>\n<td>Jaipur</td>\n</tr>\n<tr>\n<td>stateCode</td>\n<td>String</td>\n<td>State code of the customer.</td>\n<td>RJ</td>\n</tr>\n<tr>\n<td>zipCode</td>\n<td>String</td>\n<td>Postal code of the customer's location.</td>\n<td>302018</td>\n</tr>\n<tr>\n<td>address</td>\n<td>String</td>\n<td>Full address of the customer.</td>\n<td>House Number 53, Vaishali Nagar, Jaipur</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>Country code (ISO 3166-1 alpha-2).</td>\n<td>IN</td>\n</tr>\n<tr>\n<td>custRegDate</td>\n<td>Sting</td>\n<td>Customer registration date on merchant site in YYYY-MM-DD format.</td>\n<td>2023-12-27</td>\n</tr>\n<tr>\n<td>successTxn</td>\n<td>String</td>\n<td>Number of successful transactions customer has carried on merchant site.</td>\n<td>32</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"user-flow\"><strong>User Flow</strong></h3>\n<ol>\n<li><p><strong>Customer visits merchant's website</strong>: The customer selects the product or service and proceeds to checkout page.</p>\n</li>\n<li><p><strong>Merchant calls the</strong> <strong><code>createCustomer</code></strong> <strong>API</strong>: The merchant sends a <code>POST</code> request to the Paysecure API with the customer's details.</p>\n</li>\n<li><p><strong>Customer ID generation</strong>: Paysecure processes the request and generates a unique <code>customerId</code> which is returned in the response.</p>\n</li>\n<li><p><strong>Payment Process</strong>: The merchant uses the <code>customerId</code> for subsequent session creation, ensuring the customer doesn’t need to re-enter their details for future payments.</p>\n</li>\n</ol>\n<hr />\n<h3 id=\"benefits\"><strong>Benefits</strong></h3>\n<ul>\n<li><p><strong>Seamless user experience</strong>: The customer does not have to enter their details manually for every purchase.</p>\n</li>\n<li><p><strong>Faster Checkout</strong>: The merchant can use the <code>customerId</code> for faster payment processing.</p>\n</li>\n<li><p><strong>Data Security</strong>: Customer details are stored securely and can be reused across transactions, reducing the chances of errors.</p>\n</li>\n</ul>\n<h3 id=\"implementing-createcustomer-on-merchant-site\">Implementing createCustomer on merchant site:</h3>\n<p>The <code>createCustomer</code> can be implemented on merchant site in one of two ways, depending on merchant’s integration flow:</p>\n<p><strong>At Checkout:</strong></p>\n<p>When a customer initiates the checkout process, your system should invoke the <code>createCustomer</code> API, before actually starting the session.</p>\n<ul>\n<li><p><strong>Call</strong> <strong><code>createCustomer</code></strong>: This API call generates a unique customer ID.</p>\n</li>\n<li><p><strong>Use of Customer ID:</strong> Pass the returned customer ID in Session API, when creating a payment session.</p>\n</li>\n</ul>\n<p><strong>Upon Customer Login:</strong></p>\n<p>Alternatively, merchants may choose to call <code>createCustomer</code> at the time of customer login on their site.</p>\n<ul>\n<li><p><strong>Persistent Customer Profiles:</strong> This approach can help build or maintain a persistent customer profile, ensuring the customer ID is available for any subsequent payment sessions without needing to call <code>createCustomer</code> again.</p>\n</li>\n<li><p><strong>Integration Flexibility:</strong> This is useful for merchants who want to initialize customer data early in the customer journey rather than during checkout.</p>\n</li>\n</ul>\n<p>The method you choose depends on your business requirements and how your system is architected. Regardless of when you call it, the resulting customer ID must be passed to the <code>createSession</code> API to initiate a payment session.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"39385696-c1f8-4c25-9138-83ebab949b90","id":"39385696-c1f8-4c25-9138-83ebab949b90","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","customer"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"12c54dec-3229-4bd6-93cb-82aa57eef674","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"If this parameter is passed in the header, a unique customer will be created under that particular Brand Name. else, the customer will be created under the main merchant (irrespective of the brands)","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@paysecure.net\",\r\n    \"dateOfBirth\": \"1994-06-03\",\r\n    \"phoneNo\": \"+91 797639082\",\r\n    \"city\": \"Jaipur\",\r\n    \"stateCode\": \"RJ\",\r\n    \"zipCode\": \"302018\",\r\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\r\n    \"country\": \"IN\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@paysecure.net\",\r\n    \"CustRegDate\": \"2023-12-27\", //non-mandatory - customer registration date on merchant site\r\n    \"SuccessTxn\": \"32\", //non-mandatory - total successful customer orders on merchant site\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/customer"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@paysecure.net\",\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@paysecure.net\",\r\n    \"dateOfBirth\": \"1994-06-03\",\r\n    \"phoneNo\": \"+91 797639082\",\r\n    \"brandID\": \"1d666074-39be-4b90-aec9-e9de78fbdcb9\",\r\n    \"city\": \"Jaipur\",\r\n    \"zipCode\": \"302018\",\r\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\r\n    \"country\": \"IN\",\r\n    \"stateCode\": \"RJ\",\r\n    \"custRegDate\": \"2023-12-27\",\r\n    \"successTrans\": 0,\r\n    \"createdOn\": 1763376070,\r\n    \"lastUpdated\": 0,\r\n    \"lastActivity\": 1763376070,\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}"},{"id":"a1a035e9-ce0d-48bb-81b7-49891e24ae4e","name":"Failure","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"If this parameter is passed in the header, a unique customer will be created under that particular Brand Name. else, the customer will be created under the main merchant (irrespective of the brands)","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@paysecure.net\",\r\n    \"dateOfBirth\": \"1994-06-03\",\r\n    \"phoneNo\": \"+91 797639082\",\r\n    \"city\": \"Jaipur\",\r\n    \"stateCode\": \"RJ\",\r\n    \"zipCode\": \"302018\",\r\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\r\n    \"country\": \"IN\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@paysecure.net\",\r\n    \"CustRegDate\": \"2023-12-27\", //non-mandatory - customer registration date on merchant site\r\n    \"SuccessTxn\": \"32\", //non-mandatory - total successful customer orders on merchant site\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid Email Format\",\r\n    \"code\": \"invalid_email\"\r\n}"},{"id":"66d30d24-5638-4eb0-bd9b-8d2248c13a63","name":"Existing Customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"If this parameter is passed in the header, a unique customer will be created under that particular Brand Name. else, the customer will be created under the main merchant (irrespective of the brands)","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@paysecure.net\",\r\n    \"dateOfBirth\": \"1994-06-03\",\r\n    \"phoneNo\": \"+91 797639082\",\r\n    \"city\": \"Jaipur\",\r\n    \"stateCode\": \"RJ\",\r\n    \"zipCode\": \"302018\",\r\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\r\n    \"country\": \"IN\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@paysecure.net\",\r\n    \"CustRegDate\": \"2023-12-27\", //non-mandatory - customer registration date on merchant site\r\n    \"SuccessTxn\": \"32\", //non-mandatory - total successful customer orders on merchant site\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Customer already exists with this information\",\r\n    \"code\": \"customer_already_exists\"\r\n}"}],"_postman_id":"be050c68-c4f6-4e79-a337-4bd449f8116b"},{"name":"Customer","id":"5e2280ab-a513-4bf2-a151-602aeeb06668","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantCustomerId\": \"rahultestcustomer1@paysecure.net\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.paysecure.net/api/v1/customer","description":"<p>This endpoint makes an HTTP GET request to retrieve customer information from the Paysecure API.</p>\n<h3 id=\"request\">Request</h3>\n<p>The request does not include any query parameters, but it uses a raw request body with the following parameter \"merchantCustomerId\", which will be the customer id on the merchant's side.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request can be documented as a JSON schema.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"39385696-c1f8-4c25-9138-83ebab949b90","id":"39385696-c1f8-4c25-9138-83ebab949b90","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","customer"],"host":["app","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"9d9813d9-2869-4877-9941-13972373e2d0","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantCustomerId\": \"rahultestcustomer1@paysecure.net\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.paysecure.net/api/v1/customer"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\n    \"merchantCustomerId\": \"rahultestcustomer1@paysecure.net\",\n    \"fullName\": \"Rahul Agarwal\",\n    \"emailId\": \"rahul+26@paysecure.net\",\n    \"dateOfBirth\": \"1994-06-03\",\n    \"phoneNo\": \"+91 797639082\",\n    \"brandID\": \"1d666074-39be-4b90-aec9-e9de78fbdcb9\",\n    \"city\": \"Jaipur\",\n    \"zipCode\": \"302018\",\n    \"address\": \"House Number 53, Vaishali Nagar, Jaipur\",\n    \"country\": \"IN\",\n    \"stateCode\": \"RJ\",\n    \"custRegDate\": \"2023-12-27\",\n    \"successTrans\": 0,\n    \"createdOn\": 1763376070,\n    \"lastUpdated\": 0,\n    \"lastActivity\": 1763376070,\n    \"extraParam\": {\n        \"param1\": \"value1\",\n        \"param2\": \"value2\",\n        \"param3\": \"value3\",\n        \"param4\": \"value4\"\n    }\n}"},{"id":"dacd3bf2-a94c-4c2f-aefe-6de06faa698d","name":"Invalid Customer","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantCustomerId\": \"rahultestcustomer1@paysecure.net\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.paysecure.net/api/v1/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer with this information does not exist\",\n    \"code\": \"customer_does_not_exist\"\n}"}],"_postman_id":"5e2280ab-a513-4bf2-a151-602aeeb06668"},{"name":"Customer","event":[{"listen":"test","script":{"id":"272f785d-43b9-49f8-8029-580e45c98165","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Customer ID</th>","        <th>First Name</th>","        <th>Last Name</th>","        <th>Email</th>","        <th>Phone</th>","    </tr>","    ","    <tr>","        <td>{{response.customerId}}</td>","        <td>{{response.firstName}}</td>","        <td>{{response.lastName}}</td>","        <td>{{response.email}}</td>","        <td>{{response.phone}}</td>","    </tr>","</table>","`;","","function constructVisualizerPayload() {","    return {response: pm.response.json()}","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"f3da594a-96db-4ae7-8d2d-ae9624170fdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Gouri Shankar3\",\n    \"emailId\": \"gouri@paysecure.com\",\n    \"dateOfBirth\": \"1990-11-27\",\n    \"phoneNo\": \"+91 9413666514\",\n    \"city\": \"Dausa\",\n    \"stateCode\": \"Raj\",\n    \"zipCode\": \"202021\",\n    \"address\": \"Somnath Nagar\",\n    \"country\": \"IN\",\n    \"CustRegDate\": \"2023-12-28\",\n    \"SuccessTxn\": \"33\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/{PaysecureCustomerId}/patchCustomer","description":"<p>Whenever a customer or the merchant updates customer details on the merchant site, a PATCH request must be made to synchronize these changes with Paysecure.</p>\n<p>This API endpoint allows you to update the customer details using an HTTP PATCH request. The request should be sent to <a href=\"https://api.paysecure.net/api/v1/%7BcustomerId%7D/patchCustomer\">https://api.paysecure.net/api/v1/{customerId}/patchCustomer</a>.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request body should be in raw format and include the following parameters:</p>\n<ul>\n<li><p><code>fullName</code> (string): The full name of the customer.</p>\n</li>\n<li><p><code>emailId</code> (string): The email address of the customer.</p>\n</li>\n<li><p><code>dateOfBirth</code> (string): The date of birth of the customer.</p>\n</li>\n<li><p><code>phoneNo</code> (string): The phone number of the customer.</p>\n</li>\n<li><p><code>city</code> (string): The city of the customer.</p>\n</li>\n<li><p><code>stateCode</code> (string): The state code of the customer.</p>\n</li>\n<li><p><code>zipCode</code> (string): The zip code of the customer.</p>\n</li>\n<li><p><code>address</code> (string): The address of the customer.</p>\n</li>\n<li><p><code>country</code> (string): The country of the customer.</p>\n</li>\n<li><p><code>createdOn</code> (string): Time when the customer was created.</p>\n</li>\n<li><p><code>custRegDate</code> (string): Customer registration date (Non-Mandatory).</p>\n</li>\n<li><p><code>successTxn</code> (string): Success transaction details (Non-Mandatory).</p>\n</li>\n<li><p><code>lastActivity</code> (string): Time of the last activity.</p>\n</li>\n<li><p><code>lastUpdated</code> (string): Time when the last patch was called.</p>\n</li>\n<li><p><code>extraParam</code> (object): Additional parameters including <code>param1</code>, <code>param2</code>, <code>param3</code>, <code>param4</code> with their respective values.</p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will contain the updated customer details or a success message upon successful update.</p>\n","urlObject":{"protocol":"https","path":["api","v1","{PaysecureCustomerId}","patchCustomer"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"184c81b5-e8e4-4419-b2b0-e493acd691bc","name":"Success","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Authorisation","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Gouri Shankar3\",\n    \"emailId\": \"gouri@paysecure.com\",\n    \"dateOfBirth\": \"1990-11-27\",\n    \"phoneNo\": \"+91 9413666514\",\n    \"city\": \"Dausa\",\n    \"stateCode\": \"Raj\",\n    \"zipCode\": \"202021\",\n    \"address\": \"Somnath Nagar\",\n    \"country\": \"IN\",\n    \"CustRegDate\": \"2023-12-28\",\n    \"SuccessTxn\": \"33\",\n    \"extraParam\": {\n        \"param1\": \"value1\",\n        \"param2\": \"value2\",\n        \"param3\": \"value3\",\n        \"param4\": \"value4\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/{PaysecureCustomerId}/patchCustomer"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\n    \"merchantCustomerId\": \"rahultestcustomer1@paysecure.net\",\n    \"fullName\": \"Gouri Shankar3\",\n    \"emailId\": \"gouri@paysecure.com\",\n    \"dateOfBirth\": \"1990-11-27\",\n    \"phoneNo\": \"+91 9413666514\",\n    \"brandID\": \"brandID\",\n    \"city\": \"Dausa\",\n    \"zipCode\": \"202021\",\n    \"address\": \"Somnath Nagar\",\n    \"country\": \"IN\",\n    \"stateCode\": \"Raj\",\n    \"custRegDate\": \"2023-12-28\",\n    \"successTrans\": 0,\n    \"createdOn\": 1763376070,\n    \"lastUpdated\": 1763377024,\n    \"lastActivity\": 1763377024,\n    \"extraParam\": {\n        \"param1\": \"value1\",\n        \"param2\": \"value2\",\n        \"param3\": \"value3\",\n        \"param4\": \"value4\"\n    }\n}"}],"_postman_id":"f3da594a-96db-4ae7-8d2d-ae9624170fdb"},{"name":"Purchase Session","id":"ea6df254-ce23-43bd-a5bf-73bb504db037","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"30f7ce6e-3b7e-46a2-9b50-484fc55be689","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\r\n    \"merchantRef\": \"rahultestcustomer1@paysecure.net\", // optional\r\n    \"currency\": \"EUR\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"10\"\r\n        },\r\n        {\r\n            \"name\": \"Product2\",\r\n            \"price\": \"12\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"22\", // optional, but if present have precedence over sum of prices mentioned above.\r\n    \"paymentMethod\": \"VISA\", //optional\r\n    \"success_redirect\": \"https://merchant-success-page.com/\",\r\n    \"failure_redirect\": \"https://merchant-failure-page.com/\",\r\n    \"pending_redirect\": \"https://merchant-pending-page.com/\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"showCryptoConversion\": \"yes\",\r\n        \"cryptoCurrencies\": \"[\\\"BTC\\\",\\\"ETH\\\",\\\"USDT\\\",\\\"XRP\\\",\\\"LTC\\\",\\\"DOGE\\\",\\\"ETC\\\",\\\"BNB\\\",\\\"USDC\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"BCH\\\",\\\"DASH\\\",\\\"BTG\\\",\\\"ZEC\\\",\\\"DGB\\\",\\\"EOS\\\",\\\"XLM\\\",\\\"TRX\\\",\\\"QTUM\\\",\\\"POL\\\",\\\"SHIB\\\",\\\"LINK\\\",\\\"DAI\\\",\\\"TON\\\",\\\"AVAX\\\",\\\"FDUSD\\\",\\\"ARB\\\",\\\"OP\\\"]\",\r\n            \"param3\": \"value3\",\r\n            \"param4\": \"value4\"\r\n        }\r\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession","description":"<p><strong>OVERIEW</strong></p>\n<p>The <code>createSession</code> API is designed to initiate a payment session for a customer after their profile has been created via the <strong>createCustomer</strong> API. The session is automatically generated at the backend on the merchant’s checkout URL. This session allows the customer to continue with their transaction without having to manually interact with the session URL, and ensures the session remains active until the payment is completed or the session expires.</p>\n<p>This API improves the user experience by reducing transaction failures and enhancing the overall payment process, thus reducing transaction churn rates.</p>\n<h3 id=\"mandatory-parameters\">Mandatory Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>The unique ID of the customer (generated from createCustomer).</td>\n<td>6731a609b6bb5a43ad66c4a6</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"show-crypto-conversion\">Show Crypto Conversion</h4>\n<p>Additionally, there are some default extra parameters that you can pass for allowing Crypto Conversion on Paysecure's cashier itself.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>extraParam.showCryptoConversion</td>\n<td>String</td>\n<td>This optional parameter allows customer to see crypto value equivelant to the Fiat amount the customer is planning to pay.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>extraParam.cryptoCurrencies</td>\n<td>String</td>\n<td>Pass here the allowed crypto tokens on the cashier, where customer can see the the conversion value</td>\n<td>[\\\"BTC\\\",\\\"ETH\\\",\\\"USDT\\\",\\\"XRP\\\",\\\"LTC\\\",\\\"DOGE\\\",\\\"ETC\\\",\\\"BNB\\\",\\\"USDC\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"BCH\\\",\\\"DASH\\\",\\\"BTG\\\",\\\"ZEC\\\",\\\"DGB\\\",\\\"EOS\\\",\\\"XLM\\\",\\\"TRX\\\",\\\"QTUM\\\",\\\"POL\\\",\\\"SHIB\\\",\\\"LINK\\\",\\\"DAI\\\",\\\"TON\\\",\\\"AVAX\\\",\\\"FDUSD\\\",\\\"ARB\\\",\\\"OP\\\"]</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"usage-flow\"><strong>Usage Flow</strong></h3>\n<ol>\n<li><p><strong>Customer completes the</strong> <strong><code>createCustomer</code></strong> <strong>API</strong>: Once the customer is created via the <code>createCustomer</code> API, the merchant proceeds to call the <code>createSession</code> API to generate a session.</p>\n</li>\n<li><p><strong>Merchant sends</strong> <strong><code>createSession</code></strong> <strong>request</strong>: The merchant sends a <code>POST</code> request to the <code>createSession</code> API with the customer’s <code>customerId</code> and the merchant’s <code>brandId</code>.</p>\n</li>\n<li><p><strong>Session created automatically on the checkout URL</strong>: PaySecure creates the session and associates it with the merchant’s checkout page. This session remains active on the backend, allowing the customer to continue the payment process without interruption.</p>\n</li>\n<li><p><strong>Customer proceeds to checkout</strong>: The customer is redirected to the checkout page as part of the merchant's payment flow, where the session is automatically validated. The session remains active for a set period, allowing the customer to complete the payment without needing to manually interact with the session URL.</p>\n</li>\n<li><p><strong>Session Expiry</strong>: The session expires after the set expiration time (<code>expiryOn</code>), ensuring the payment process is completed within the defined window. Default is 15 mins from the creation time.</p>\n</li>\n</ol>\n<hr />\n<h3 id=\"benefits\"><strong>Benefits</strong></h3>\n<ul>\n<li><p><strong>Seamless Checkout</strong>: The session URL is automatically generated and active at the backend, ensuring a smoother and uninterrupted customer experience.</p>\n</li>\n<li><p><strong>Reduced Transaction Failures</strong>: By ensuring the session remains active during the payment process, the chances of transaction failures due to session timeouts are minimized.</p>\n</li>\n<li><p><strong>Improved User Experience</strong>: The customer does not need to click on a session URL or navigate away from the page, leading to faster and more secure payment processing.</p>\n</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"39385696-c1f8-4c25-9138-83ebab949b90","id":"39385696-c1f8-4c25-9138-83ebab949b90","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","createSession"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"d7d93987-9b58-4a37-af08-e00d7a97eb3f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"it is mandatory to pass the BrandId in header for each createSession request. ","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\r\n    \"merchantRef\": \"rahultestcustomer1@paysecure.net\", // optional\r\n    \"currency\": \"EUR\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"10\"\r\n        },\r\n        {\r\n            \"name\": \"Product2\",\r\n            \"price\": \"12\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"22\", // optional, but if present have precedence over sum of prices mentioned above.\r\n    \"paymentMethod\": \"VISA\", //optional\r\n    \"success_redirect\": \"https://merchant-success-page.com/\",\r\n    \"failure_redirect\": \"https://merchant-failure-page.com/\",\r\n    \"pending_redirect\": \"https://merchant-pending-page.com/\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"sessionUrl\": \"https://api.paysecure.net/payment-session/691b02b48c73dd76eedaa379/\",\r\n    \"brandId\": \"brand_id_value\",\r\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\r\n    \"sessionId\": \"691b02b48c73dd76eedaa379\",\r\n    \"expiryOn\": 1763378744,\r\n    \"createdOn\": 1763377844\r\n}"},{"id":"fb5a008e-b58c-44d1-a249-e8ca6a879bb1","name":"Session with CryptoConversion","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"it is mandatory to pass the BrandId in header for each createSession request. ","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\r\n    \"merchantRef\": \"rahultestcustomer1@paysecure.net\", // optional\r\n    \"currency\": \"EUR\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"10\"\r\n        },\r\n        {\r\n            \"name\": \"Product2\",\r\n            \"price\": \"12\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"22\", // optional, but if present have precedence over sum of prices mentioned above.\r\n    \"paymentMethod\": \"VISA\", //optional\r\n    \"success_redirect\": \"https://merchant-success-page.com/\",\r\n    \"failure_redirect\": \"https://merchant-failure-page.com/\",\r\n    \"pending_redirect\": \"https://merchant-pending-page.com/\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"showCryptoConversion\": \"yes\",\r\n        \"cryptoCurrencies\": \"[\\\"BTC\\\",\\\"ETH\\\",\\\"USDT\\\",\\\"XRP\\\",\\\"LTC\\\",\\\"DOGE\\\",\\\"ETC\\\",\\\"BNB\\\",\\\"USDC\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"BCH\\\",\\\"DASH\\\",\\\"BTG\\\",\\\"ZEC\\\",\\\"DGB\\\",\\\"EOS\\\",\\\"XLM\\\",\\\"TRX\\\",\\\"QTUM\\\",\\\"POL\\\",\\\"SHIB\\\",\\\"LINK\\\",\\\"DAI\\\",\\\"TON\\\",\\\"AVAX\\\",\\\"FDUSD\\\",\\\"ARB\\\",\\\"OP\\\"]\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sessionUrl\": \"https://api.paysecure.net/payment-session/691b02b48c73dd76eedaa379/\",\n    \"brandId\": \"brand_id_value\",\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\n    \"sessionId\": \"691b02b48c73dd76eedaa379\",\n    \"expiryOn\": 1763378744,\n    \"createdOn\": 1763377844\n}"},{"id":"7b3a6d7e-5e11-4ff4-8e89-4d62fa7d007a","name":"Invalid Session","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"BrandId","value":"brand_id_value","description":"it is mandatory to pass the BrandId in header for each createSession request. ","type":"text"},{"key":"Authorization","value":"Bearer Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\r\n    \"merchantRef\": \"rahultestcustomer1@paysecure.net\", // optional\r\n    \"currency\": \"EUR\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"10\"\r\n        },\r\n        {\r\n            \"name\": \"Product2\",\r\n            \"price\": \"12\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"22\", // optional, but if present have precedence over sum of prices mentioned above.\r\n    \"paymentMethod\": \"VISA\", //optional\r\n    \"success_redirect\": \"https://merchant-success-page.com/\",\r\n    \"failure_redirect\": \"https://merchant-failure-page.com/\",\r\n    \"pending_redirect\": \"https://merchant-pending-page.com/\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param3\": \"value3\",\r\n        \"param4\": \"value4\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Customer does not exist with this Customer Id\",\r\n    \"code\": \"Customer Id is invalid\"\r\n}"}],"_postman_id":"ea6df254-ce23-43bd-a5bf-73bb504db037"},{"name":"Payout Session","id":"ce4f0a35-d3d8-4faa-afd8-0a65a83611dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"*/*","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\r\n    \"currency\": \"USD\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"2\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"2\",\r\n    \"tax_amount\": \"\", // optional\r\n    \"tax_percent\": \"\", // optional\r\n    \"type\": \"payout\",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"showCryptoConversion\": \"yes\",\r\n        \"cryptoCurrencies\": \"[\\\"BTC\\\",\\\"ETH\\\",\\\"USDT\\\",\\\"XRP\\\",\\\"LTC\\\",\\\"DOGE\\\",\\\"ETC\\\",\\\"BNB\\\",\\\"USDC\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"BCH\\\",\\\"DASH\\\",\\\"BTG\\\",\\\"ZEC\\\",\\\"DGB\\\",\\\"EOS\\\",\\\"XLM\\\",\\\"TRX\\\",\\\"QTUM\\\",\\\"POL\\\",\\\"SHIB\\\",\\\"LINK\\\",\\\"DAI\\\",\\\"TON\\\",\\\"AVAX\\\",\\\"FDUSD\\\",\\\"ARB\\\",\\\"OP\\\"]\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession","description":"<p>This API is used to initiate a payout session for a customer. By passing the <code>customerId</code> (generated via the <code>createCustomer</code> API) and specifying <code>\"type\": \"payout\"</code>, a payout session is started.<br />A <code>sessionURL</code> is returned in the response, which can be used to redirect the customer to the payout cashier. The customer can then select the payment method, pass required parameters, and the payout will be processed.</p>\n<h4 id=\"parameters\">Parameters:</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>customerId</strong></td>\n<td>string</td>\n<td>The unique ID of the customer for whom the payout session is created. This ID is generated by the <code>createCustomer</code> API.</td>\n</tr>\n<tr>\n<td><strong>currency</strong></td>\n<td>string</td>\n<td>The currency of the payout session (e.g., USD).</td>\n</tr>\n<tr>\n<td><strong>products</strong></td>\n<td>array</td>\n<td>A list of products associated with the payout (e.g., name and price).</td>\n</tr>\n<tr>\n<td><strong>totalAmount</strong></td>\n<td>string</td>\n<td>The total payout amount (optional. calculated dynamically if value is not passed).</td>\n</tr>\n<tr>\n<td><strong>tax_amount</strong></td>\n<td>string</td>\n<td>The tax amount to be applied (optional).</td>\n</tr>\n<tr>\n<td><strong>tax_percent</strong></td>\n<td>string</td>\n<td>The tax percentage to be applied (optional).</td>\n</tr>\n<tr>\n<td><strong>type</strong></td>\n<td>string</td>\n<td>Should be set to \"payout\" to initiate a payout session.</td>\n</tr>\n<tr>\n<td><strong>success_redirect</strong></td>\n<td>string</td>\n<td>The URL where the customer will be redirected after a successful payout.</td>\n</tr>\n<tr>\n<td><strong>pending_redirect</strong></td>\n<td>string</td>\n<td>The URL where the customer will be redirected after a pending payout.</td>\n</tr>\n<tr>\n<td><strong>failure_redirect</strong></td>\n<td>string</td>\n<td>The URL where the customer will be redirected after a failed payout attempt.</td>\n</tr>\n<tr>\n<td><strong>success_callback</strong></td>\n<td>string</td>\n<td>The callback URL for successful payout.</td>\n</tr>\n<tr>\n<td><strong>failure_callback</strong></td>\n<td>string</td>\n<td>The callback URL for failed payout.</td>\n</tr>\n<tr>\n<td><strong>extraParam</strong></td>\n<td>object</td>\n<td>Contains additional parameters for the payout session.</td>\n</tr>\n<tr>\n<td><strong>extraParam.showCryptoConversion</strong></td>\n<td>string</td>\n<td>Set to \"yes\" to display cryptocurrency conversion.</td>\n</tr>\n<tr>\n<td><strong>extraParam.cryptoCurrencies</strong></td>\n<td>string</td>\n<td>A list of accepted cryptocurrencies (e.g., BTC, ETH, USDT).</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"request-headers\">Request Headers:</h4>\n<ul>\n<li><p><strong>BrandId</strong>: Your unique brand ID (required).</p>\n</li>\n<li><p><strong>Content-Type</strong>: application/json (required).</p>\n</li>\n</ul>\n<h4 id=\"response\">Response:</h4>\n<p>The API will return a JSON object containing the <code>sessionURL</code> that can be used to redirect the customer to the payout cashier.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"sessionUrl\": \"https://api.paysecure.net/payoutSession/68341ad35f895955355d5452/\",\n    \"brandId\": \"brand_id_value\",\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\n    \"sessionId\": \"68341ad35f895955355d5452\",\n    \"expiryOn\": 1748246103,\n    \"createdOn\": 1748245203\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"39385696-c1f8-4c25-9138-83ebab949b90","id":"39385696-c1f8-4c25-9138-83ebab949b90","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","createSession"],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[{"id":"197712db-5072-44a2-a8d0-12fbb9423274","name":"payoutSession","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\r\n    \"currency\": \"USD\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"2\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"2\",\r\n    \"tax_amount\": \"\", // optional\r\n    \"tax_percent\": \"\", // optional\r\n    \"type\": \"payout\",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"param1\": \"value1\",\r\n        \"param2\": \"value2\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sessionUrl\": \"https://staging.paysecure.net/payoutSession/68341e385f895955355d5671/\",\n    \"brandId\": \"{yourBrandID}\",\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\n    \"sessionId\": \"68341e385f895955355d5671\",\n    \"expiryOn\": 1748246972,\n    \"createdOn\": 1748246072\n}"},{"id":"72286257-90f1-4268-9e6f-182e0636501d","name":"payoutSession with Crypto Conversion","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Token","type":"text"},{"key":"BrandId","value":"brand_id_value","type":"text"},{"key":"Accept","value":"*/*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\r\n    \"currency\": \"USD\",\r\n    \"products\": [\r\n        {\r\n            \"name\": \"Product1\",\r\n            \"price\": \"2\"\r\n        }\r\n    ],\r\n    \"totalAmount\": \"2\",\r\n    \"tax_amount\": \"\",\r\n    \"tax_percent\": \"\",\r\n    \"type\": \"payout\",\r\n    \"success_redirect\": \"https://your.success.redirect.com\",\r\n    \"pending_redirect\": \"https://your.pending.redirect.com\",\r\n    \"failure_redirect\": \"https://your.failure.redirect.com\",\r\n    \"success_callback\": \"https://your.success.callback.com\",\r\n    \"failure_callback\": \"https://your.failure.callback.com\",\r\n    \"extraParam\": {\r\n        \"showCryptoConversion\": \"yes\",\r\n        \"cryptoCurrencies\": \"[\\\"BTC\\\",\\\"ETH\\\",\\\"USDT\\\",\\\"XRP\\\",\\\"LTC\\\",\\\"DOGE\\\",\\\"ETC\\\",\\\"BNB\\\",\\\"USDC\\\",\\\"SOL\\\",\\\"ADA\\\",\\\"BCH\\\",\\\"DASH\\\",\\\"BTG\\\",\\\"ZEC\\\",\\\"DGB\\\",\\\"EOS\\\",\\\"XLM\\\",\\\"TRX\\\",\\\"QTUM\\\",\\\"POL\\\",\\\"SHIB\\\",\\\"LINK\\\",\\\"DAI\\\",\\\"TON\\\",\\\"AVAX\\\",\\\"FDUSD\\\",\\\"ARB\\\",\\\"OP\\\"]\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/createSession"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sessionUrl\": \"https://staging.paysecure.net/payoutSession/68341e385f895955355d5671/\",\n    \"brandId\": \"{yourBrandID}\",\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\n    \"sessionId\": \"68341e385f895955355d5671\",\n    \"expiryOn\": 1748246972,\n    \"createdOn\": 1748246072\n}"}],"_postman_id":"ce4f0a35-d3d8-4faa-afd8-0a65a83611dd"},{"name":"Check Status","id":"25948f09-5487-44f9-9e96-6797baca0f2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{API Key}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API Key}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.paysecure.net/api/v1/purchases/{Session ID}/","description":"<p>This endpoint retrieves the details of a session identified by the provided session ID.</p>\n<blockquote>\n<p>Note that this API only respond once the SessionURL, received in the reposne for session API, is clicked.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","v1","purchases","{Session ID}",""],"host":["api","paysecure","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"25948f09-5487-44f9-9e96-6797baca0f2b"}],"id":"39385696-c1f8-4c25-9138-83ebab949b90","description":"<p>Paysecure Cashier is a unified payment management solution that connects with leading PSP and acquirers, offering merchants one convenient access point to simplify transaction processing and enhance efficiency.</p>\n<p>To start the cashier system, a <strong>payment session</strong> is initiated—a secure, temporary environment generated by our payment gateway. This session encapsulates all transaction details and state information before the cashier loads, overseeing the complete lifecycle of a payment attempt—from initial setup to final completion—ensuring every necessary detail is managed safely and consistently.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"d418f8e5-428a-4ab3-9e85-19843b35c14a","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"d030bfe6-8611-4e65-9e84-089e4613094c","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"_postman_id":"39385696-c1f8-4c25-9138-83ebab949b90"},{"name":"User Defined Fields (UDF)","item":[],"id":"d0fdda4d-2c44-4877-b817-60c69805c257","description":"<p>User Defined Fields (also referred to as Merchant Defined Parameters) allow you to attach custom identifiers to transactions. These identifiers can help you map transactions to your internal systems and configure advanced routing rules.</p>\n<p>Once created, you can pass the parameter in the purchases or session API using the <code>extraParam</code> object in the payload, to receive the same in the API response and the following webhooks.</p>\n<h3 id=\"adding-a-user-defined-field\">Adding a User Defined Field</h3>\n<ol>\n<li><p>Click <strong>Add Parameters</strong>.</p>\n</li>\n<li><p>Enter the <strong>Parameter Name</strong>.</p>\n</li>\n<li><p>Choose the <strong>Value Type</strong> (Numeric, String, or Boolean).</p>\n</li>\n<li><p>Click <strong>Add</strong> to save.</p>\n</li>\n</ol>\n<p>Here is how you can define UDFs in Paysecure's app.</p>\n<img src=\"https://content.pstmn.io/af86f713-7ddc-410b-81e0-0de7c10cb7ce/U2NyZWVuc2hvdCAyMDI1LTA4LTI2IGF0IDQuNDMuNTXigK9QTS5wbmc=\" />\n\n<h3 id=\"using-udf-in-api-requests\">Using UDF in API Requests</h3>\n<p>Once created, you can pass the parameter in the <code>purchases</code> or <code>session</code> API using the <code>extraParam</code> object in the payload, to receive the same in the API response and the following webhooks.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">\"extraParam\": {\n    \"userDefinedParameter\": \"value\"\n}\n\n</code></pre>\n<h3 id=\"best-practices\">Best Practices</h3>\n<ul>\n<li><p>Use <strong>consistent naming conventions</strong> for parameters to avoid confusion across integrations.</p>\n</li>\n<li><p>Keep the number of UDFs minimal — only add fields that provide clear value (e.g., customer segment, order type, risk score).</p>\n</li>\n<li><p>Leverage UDFs in <strong>rule-based routing</strong> to optimize processing flows (e.g., route high-value transactions to a specific MID).</p>\n</li>\n<li><p>Document your UDFs internally so operations and support teams can easily reference them.</p>\n</li>\n</ul>\n","_postman_id":"d0fdda4d-2c44-4877-b817-60c69805c257"}],"event":[{"listen":"prerequest","script":{"id":"03b37bdd-4750-4820-b059-4379ad64772f","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"895136c1-845d-4047-9eee-1ad37e74a2d5","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"BaseURL","value":"https://api.paysecure.net/api/v1"},{"key":"StagingAPIKey","value":""}]}