{"info":{"_postman_id":"c81b165e-134d-4025-ab4c-363174098178","name":"Neogated API Documentation","description":"<html><head></head><body><h1 id=\"overview\">Overview</h1>\n<hr>\n<p>Neogated 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 Neogated but if you have any questions, please do not hesitate to reach out to us by on email us at <a href=\"https://\">info@neogated.com</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-pay-neo.com/api/v1</a></td>\n</tr>\n<tr>\n<td>Sandbox</td>\n<td><a href=\"https://\">https://api-pay-neo.com/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/7507152b-594a-4d62-9481-5007e23add82/VW50aXRsZWQgZGVzaWduICgyMykucG5n\">\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/34436cfc-1bad-4f4e-9f29-1bd2bb67fe2e/VW50aXRsZWQgZGVzaWduICgyNCkucG5n\">\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":"c81b165e-134d-4025-ab4c-363174098178","publishedId":"2sBXihqsmP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"54791A"},"publishDate":"2026-03-19T07:30:57.000Z"},"item":[{"name":"⚙️ Integration Steps","item":[],"id":"4fb17ead-a130-4ffa-aaa8-b853ddf06525","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<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>card_type</strong></th>\n<th><strong>Card Numbers</strong></th>\n<th>auth_type</th>\n<th>Behaviour</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Master</td>\n<td>5141922635866282</td>\n<td>3D Secure</td>\n<td>Authentication Successful</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5169811636324572</td>\n<td>3D Secure</td>\n<td>Authentication Failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5143312606271514</td>\n<td>2D Secure</td>\n<td>Insufficient funds</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5199805409482512</td>\n<td>2D Secure</td>\n<td>Pending execution</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5146669487735546</td>\n<td>2D Secure</td>\n<td>Incorrect card expiry</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5151735930865446</td>\n<td>3D Secure</td>\n<td>Incorrect cvv</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5185151885032695</td>\n<td>3D Secure</td>\n<td>Processor timeout</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5149446104369687</td>\n<td>2D Secure</td>\n<td>Refund failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5127160683722580</td>\n<td>3D Secure</td>\n<td>Transaction expired</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5159971600530380</td>\n<td>3D Secure</td>\n<td>Risk check failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5198134892284199</td>\n<td>2D Secure</td>\n<td>Issuer decline</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5116213113429327</td>\n<td>2D Secure</td>\n<td>Authentication successful</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5112857124909935</td>\n<td>2D Secure</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5156216152193051</td>\n<td>3D Secure</td>\n<td>Insufficient funds</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5170361568993009</td>\n<td>3D Secure</td>\n<td>Pending execution</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5559161923541480</td>\n<td>3D Secure</td>\n<td>Incorrect card expiry</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5110339832985475</td>\n<td>2D Secure</td>\n<td>Incorrect cvv</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5136528486494418</td>\n<td>2D Secure</td>\n<td>Processor timeout</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5162164630471008</td>\n<td>3D Secure</td>\n<td>Refund failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5140378358642890</td>\n<td>2D Secure</td>\n<td>Transaction expired</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5192488343990234</td>\n<td>2D Secure</td>\n<td>Risk check failed</td>\n</tr>\n<tr>\n<td>Master</td>\n<td>5115438560834809</td>\n<td>3D Secure</td>\n<td>Issuer decline</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4079722589318630</td>\n<td>2D Secure</td>\n<td>Authentication successful</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4878397953290146</td>\n<td>3D Secure</td>\n<td>Authentication successful</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4125485445527190</td>\n<td>2D Secure</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4984823599573265</td>\n<td>3D Secure</td>\n<td>Insufficient funds</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4710793097358785</td>\n<td>2D Secure</td>\n<td>Pending execution</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4500682811540204</td>\n<td>3D Secure</td>\n<td>Incorrect card expiry</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4935648707390280</td>\n<td>2D Secure</td>\n<td>Incorrect cvv</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4241214813524459</td>\n<td>3D Secure</td>\n<td>Refund failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4342346318195134</td>\n<td>3D Secure</td>\n<td>Risk check failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4618889598319798</td>\n<td>3D Secure</td>\n<td>Issuer decline</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4195258724913240</td>\n<td>3D Secure</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4662922293431520</td>\n<td>2D Secure</td>\n<td>Insufficient funds</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4994455060632359</td>\n<td>3D Secure</td>\n<td>Pending execution</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4460652052832634</td>\n<td>2D Secure</td>\n<td>Incorrect card expiry</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4383025225665997</td>\n<td>3D Secure</td>\n<td>Incorrect cvv</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4568730114361775</td>\n<td>2D Secure</td>\n<td>Processor timeout</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4163340122068617</td>\n<td>3D Secure</td>\n<td>Processor timeout</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4405935956954713</td>\n<td>2D Secure</td>\n<td>Refund failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4945208335596614</td>\n<td>2D Secure</td>\n<td>Transaction expired</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4566329901944380</td>\n<td>3D Secure</td>\n<td>Transaction expired</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4588381711517694</td>\n<td>2D Secure</td>\n<td>Risk check failed</td>\n</tr>\n<tr>\n<td>VISA</td>\n<td>4401279985739470</td>\n<td>2D Secure</td>\n<td>Issuer decline</td>\n</tr>\n</tbody>\n</table>\n</div><p>**<br />Note:** 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":"4fb17ead-a130-4ffa-aaa8-b853ddf06525","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{APIKey}}"}]},"isInherited":true,"source":{"_postman_id":"c81b165e-134d-4025-ab4c-363174098178","id":"c81b165e-134d-4025-ab4c-363174098178","name":"Neogated API Documentation","type":"collection"}}},{"name":"🔌 Webhooks","item":[],"id":"068af630-f722-45ef-bf9a-6a841495149e","description":"<p>To receive information about various transaction status and events, you will need to set up an endpoint which accepts payloads sent by Neogated. Your endpoint will receive <strong>POST</strong> requests with <strong>content-type: application/json</strong>.</p>\n<h2 id=\"configuring-the-webhook-endpoint\">Configuring the webhook endpoint</h2>\n<p>The webhook endpoint can be set up on <code>Partner Dashboard -&gt; Webhooks -&gt; New Webhook</code>. Make sure you save the endpoint by clicking \"Create\".</p>\n<blockquote>\n<p>Neogated 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 Neogated get status API to verify the status of a purchase. </p>\n</blockquote>\n<img src=\"https://content.pstmn.io/3e0d4249-2c14-4c5a-846f-ba02a639850c/VW50aXRsZWQgZGVzaWduICgyNSkucG5n\" />\n\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. Neogated 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-pay-neo.com/api/v1/purchases/{purchaseId}/</code></p>\n</li>\n</ol>\n<h2 id=\"available-event-for-subscription\">Available Event for subscription</h2>\n<h3 id=\"payin--refund-events\">Payin &amp; Refund Events</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><h3 id=\"payout-events\">Payout Events</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Event type (Condition applied in code)</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>Payout Created</strong></td>\n<td><code>created</code></td>\n<td>When the payout request is created</td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>Payout in Process</strong></td>\n<td><code>payout_in_process</code></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><strong>Payout Pending for Review</strong></td>\n<td><code>pending_review</code></td>\n<td>When the payout request needs manual review from the merchant</td>\n<td>No</td>\n</tr>\n<tr>\n<td><strong>Payout failure</strong></td>\n<td><code>error</code></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><strong>payout – success</strong></td>\n<td><code>paid</code></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><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><strong>For Payins:</strong> 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":"068af630-f722-45ef-bf9a-6a841495149e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{APIKey}}"}]},"isInherited":true,"source":{"_postman_id":"c81b165e-134d-4025-ab4c-363174098178","id":"c81b165e-134d-4025-ab4c-363174098178","name":"Neogated API Documentation","type":"collection"}}},{"name":"🖥️ Status Code","item":[{"name":"Transaction Status and Their Meaning","item":[],"id":"d890d276-91a8-456c-853d-0d386cc80670","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":{"type":"text/javascript","exec":[""],"id":"26d69e1f-42a7-480c-83ec-8f24d1ac4845"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"d257995d-7539-4a9b-a6af-d570c8444c5b"}}],"_postman_id":"d890d276-91a8-456c-853d-0d386cc80670"}],"id":"5875def4-9008-4fcd-b599-1e62f1ace6ce","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 Neogated 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":{"type":"text/javascript","exec":[""],"id":"d780fb05-1d16-4010-98dd-57313ad198e6"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"0a323356-98fd-4738-98f9-b7e6f6aa6a3b"}}],"_postman_id":"5875def4-9008-4fcd-b599-1e62f1ace6ce"},{"name":"Payment Methods","item":[{"name":"💳 Card Payments","item":[{"name":"Concepts","item":[],"id":"d5e579de-8aa6-4979-a5d8-8a4b7e63a872","description":"<h2 id=\"custom-payment-flow---server-to-server\">Custom Payment Flow - Server-to-Server</h2>\n<p>Neogated 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\": \"https://api-pay-neo.com/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":"d5e579de-8aa6-4979-a5d8-8a4b7e63a872","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}}},{"name":"APIs","item":[{"name":"Purchase","id":"5b7b0887-2a1b-4d75-bbe4-36186c21d8a2","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@neogated.com\",\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-pay-neo.com/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 Neogated will perform direct payment with the selected payment method instead of loading Neogated 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":{"protocol":"https","path":["api","v1","purchases"],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"56e2db02-f3c0-46f7-98da-daf4588df836","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@neogated.com\",\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://https://api-pay-neo.com/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@neogated.com\",\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\": \"https://api-pay-neo.com/payments/64b032c3c6dccf7d329d9e7e/\",\n    \"direct_post_url\": \"https://api-pay-neo.com/api/v1/p/64b032c3c6dccf7d329d9e7e/\"\n}"}],"_postman_id":"5b7b0887-2a1b-4d75-bbe4-36186c21d8a2"},{"name":"S2S","id":"136b8232-9290-465a-b774-edfd2bc54ada","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-pay-neo.com/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://neogated.com/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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","p","64bff4fff63e36669499e9c8",""],"host":["api-pay-neo","com"],"query":[{"key":"s2s","value":"true"}],"variable":[]}},"response":[{"id":"0af925b0-7251-4a73-91c0-d3493a904c8f","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":"https://api-pay-neo.com/api/v1/p/64b034ecc6dccf7d329d9eb3/?s2s=true","protocol":"https","host":["api-pay-neo","com"],"path":["api","v1","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\": \"https://api-pay-neo.com/api/v1/payment/64b034ecc6dccf7d329d9eb3/\",\n    \"method\": \"GET\"\n}"}],"_postman_id":"136b8232-9290-465a-b774-edfd2bc54ada"},{"name":"Payment (To be initiated From client browser)","id":"8569a88f-1df5-4cf9-8192-841c1a9e4d56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api-pay-neo.com/api/v1/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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","payment","64bff12bf63e36669499e97d",""],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"82a00822-4fa3-40c1-87f3-ad7de623d8c7","name":"Payment-error","originalRequest":{"method":"GET","header":[],"url":"https://api-pay-neo.com/api/v1/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":"8569a88f-1df5-4cf9-8192-841c1a9e4d56"},{"name":"Purchases","id":"8bda184f-fb61-4011-a479-48660ee7c085","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api-pay-neo.com/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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","purchases","64bff12bf63e36669499e97d",""],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"77a82563-4063-4acc-b6f4-ca45a1871681","name":"Purchases-error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://https://api-pay-neo.com/api/v1/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@neogated.com\",\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\": \"https://api-pay-neo.com/payments/64bfd7c9f63e36669499e779/\",\n    \"direct_post_url\": \"https://api-pay-neo.com/api/v1/p/64bfd7c9f63e36669499e779/\"\n}"},{"id":"ca4e5115-6a82-4280-85ee-2f15dda80f2c","name":"Purchases - success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://https://api-pay-neo.com/api/v1/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@neogated.com\",\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\": \"https://api-pay-neo.com/payments/64bfdb7df63e36669499e82f/\",\n    \"direct_post_url\": \"https://api-pay-neo.com/api/v1/p/64bfdb7df63e36669499e82f/\"\n}"}],"_postman_id":"8bda184f-fb61-4011-a479-48660ee7c085"},{"name":"cancel","id":"20fc22d4-7d88-461e-9a28-2c750cfe61dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api-pay-neo.com/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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","purchases","64bff556f63e36669499e9d3","cancel"],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"d1037339-51ee-4527-b2ec-d3a3a0f30189","name":"cancel-Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://https://api-pay-neo.com/api/v1/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":"f5cdefd1-8913-4b45-88d3-64181c85e597","name":"cancel - Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://https://api-pay-neo.com/api/v1/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@neogated.com\",\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\": \"https://api-pay-neo.com/payments/64bff4fff63e36669499e9c8/\",\n    \"direct_post_url\": \"https://api-pay-neo.com/api/v1/p/64bff4fff63e36669499e9c8/\"\n}"}],"_postman_id":"20fc22d4-7d88-461e-9a28-2c750cfe61dc"},{"name":"Refund","id":"3212b09c-7b08-4f7a-8fec-0c2a3b4f4629","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-pay-neo.com/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":{"protocol":"https","path":["api","v1","purchases","657af976c3fceb7beb30eeb4","refund"],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"17017b7a-4d61-4b60-bdb0-e393b11b6d3f","name":"Refund - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api-pay-neo.com/api/v1/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":"5f562d1e-34e4-4031-a464-4b441e4a1b2f","name":"Refund - Success","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api-pay-neo.com/api/v1/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@neogated.com\",\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\": \"https://api-pay-neo.com/payments/64bfdb7df63e36669499e82f/\",\n    \"direct_post_url\": \"https://api-pay-neo.com/api/v1/p/64bfdb7df63e36669499e82f/\"\n}"}],"_postman_id":"3212b09c-7b08-4f7a-8fec-0c2a3b4f4629"},{"name":"Payment Methods","id":"422fd22c-99a5-4115-8a81-ec60a5ff0779","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api-pay-neo.com/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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","payment_methods"],"host":["api-pay-neo","com"],"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":"f17eebba-f25e-4e2a-8b2c-6fecc64b7f26","name":"Payment Methods","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api-pay-neo.com/api/v1/payment_methods","protocol":"https","host":["api-pay-neo","com"],"path":["api","v1","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":"422fd22c-99a5-4115-8a81-ec60a5ff0779"},{"name":"checkWhiteList","id":"24573039-7cac-41ac-8015-0105d54d4091","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"dev@neogated.com\",\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-pay-neo.com/api/v1/checkWhiteList","description":"<h3 id=\"overview\">Overview</h3>\n<p>Neogated supports the concept of whitelisted cards. The merchant can send Neogated 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":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","checkWhiteList"],"host":["api-pay-neo","com"],"query":[],"variable":[]}},"response":[{"id":"654a4781-4709-482f-a848-9d5dcbfe3f7b","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://https://api-pay-neo.com/api/v1/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":"4e1b4b5a-cf57-4463-92d9-dac32ad3def6","name":"checkWhiteList - Exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"dev@neogated.com\",\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://https://api-pay-neo.com/api/v1/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":"24573039-7cac-41ac-8015-0105d54d4091"},{"name":"Whitelist Upload","id":"d69a9426-d1ea-45ff-8719-917553c62462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"csvFile","type":"file","value":null}]},"url":"https://https://api-pay-neo.com/api/v1/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","port":"","path":["","api-pay-neo.com","api","v1","api","v1","whitelist","upload",""],"host":["https"],"query":[],"variable":[]}},"response":[{"id":"a70e8fe2-f9d8-4e7b-bc3f-d76a892ef318","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","src":[]}]},"url":"https://https://api-pay-neo.com/api/v1/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":"1334101e-0b51-4918-9de8-968589d9eb36","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","src":[]}]},"url":"https://https://api-pay-neo.com/api/v1/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":"d69a9426-d1ea-45ff-8719-917553c62462"}],"id":"3a9fcb31-6c1b-4a11-8c90-d1eada3bb471","_postman_id":"3a9fcb31-6c1b-4a11-8c90-d1eada3bb471","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","name":"💳 Card Payments","type":"folder"}}}],"id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"18215e66-ff59-453f-967d-a7a77f7e41f4"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"981c2835-ba1a-4683-9dc4-6db99296c8ff"}}],"_postman_id":"0a0e190f-e543-4e35-85da-c3cc9314af0d","description":""}],"id":"217af2f0-32d0-4e78-8278-614fffd74f9f","_postman_id":"217af2f0-32d0-4e78-8278-614fffd74f9f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{APIKey}}"}]},"isInherited":true,"source":{"_postman_id":"c81b165e-134d-4025-ab4c-363174098178","id":"c81b165e-134d-4025-ab4c-363174098178","name":"Neogated API Documentation","type":"collection"}}},{"name":"Cashier APIs","item":[{"name":"Customer","id":"022e5e4a-fe72-46da-bd4c-bff4a363026b","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@neogated.com\",\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@neogated.com\",\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.neogated.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 Neogated when a user visits their website, facilitating a seamless payment experience by pre-filling the customer's details, on the Neogated 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@neogated.com\">rahultestcustomer@neogated.com</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@neogated.com\">test@neogated.com</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 Neogated API with the customer's details.</p>\n</li>\n<li><p><strong>Customer ID generation</strong>: Neogated 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":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","customer"],"host":["api","neogated","net"],"query":[],"variable":[]}},"response":[{"id":"1d87bc05-2ab2-450d-b9fc-2d31df69c429","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@neogated.com\",\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@neogated.com\",\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.neogated.net/api/v1/customer"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\r\n    \"merchantCustomerId\": \"rahultestcustomer@neogated.com\",\r\n    \"fullName\": \"Rahul Agarwal\",\r\n    \"emailId\": \"rahul+26@neogated.com\",\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":"8b61de67-00c1-499d-8d46-2bd48038f83e","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@neogated.com\",\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@neogated.com\",\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.neogated.net/api/v1/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid Email Format\",\r\n    \"code\": \"invalid_email\"\r\n}"},{"id":"476337a6-4e3e-4b55-a4a9-880f53d728b1","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@neogated.com\",\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@neogated.com\",\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.neogated.net/api/v1/customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Customer already exists with this information\",\r\n    \"code\": \"customer_already_exists\"\r\n}"}],"_postman_id":"022e5e4a-fe72-46da-bd4c-bff4a363026b"},{"name":"Customer","id":"ddb44fcc-de67-4d09-ad63-42e325ae4a7e","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@neogated.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.neogated.net/api/v1/customer","description":"<p>This endpoint makes an HTTP GET request to retrieve customer information from the Neogated 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":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","customer"],"host":["app","neogated","net"],"query":[],"variable":[]}},"response":[{"id":"bd4ed176-5575-4b41-bfad-5080cf3c1d48","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"}],"url":"https://app.neogated.net/api/v1/customer"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\n    \"merchantCustomerId\": \"rahultestcustomer1@neogated.com\",\n    \"fullName\": \"Rahul Agarwal\",\n    \"emailId\": \"rahul+26@neogated.com\",\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":"b7ffaeed-5675-4004-8849-1357c3c32d2d","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"}],"url":"https://app.neogated.net/api/v1/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Customer with this information does not exist\",\n    \"code\": \"customer_does_not_exist\"\n}"}],"_postman_id":"ddb44fcc-de67-4d09-ad63-42e325ae4a7e"},{"name":"Customer","event":[{"listen":"test","script":{"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":"6a1d5b91-8eb9-4820-b22b-e503897617b1"}}],"id":"d5822521-6a90-4356-970d-89c8514260f9","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@neogated.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.neogated.net/api/v1/{NeogatedCustomerId}/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 Neogated.</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-pay-neo.com/api/v1/%7BcustomerId%7D/patchCustomer\">https://api-pay-neo.com/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","{NeogatedCustomerId}","patchCustomer"],"host":["api","neogated","net"],"query":[],"variable":[]}},"response":[{"id":"485bae32-4805-4d8b-a1f0-b4fc8e006b02","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@neogated.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.neogated.net/api/v1/{NeogatedCustomerId}/patchCustomer"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": \"691afbc6fd96d34a8113a34d\",\n    \"merchantCustomerId\": \"rahultestcustomer1@neogated.com\",\n    \"fullName\": \"Gouri Shankar3\",\n    \"emailId\": \"gouri@neogated.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":"d5822521-6a90-4356-970d-89c8514260f9"},{"name":"Purchase Session","id":"544a2412-84fa-430e-9a29-1914fa90189b","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@neogated.com\", // 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.neogated.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 Neogated'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>: Neogated 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":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","createSession"],"host":["api","neogated","net"],"query":[],"variable":[]}},"response":[{"id":"b1beaa21-73ce-4fed-af76-d94cef179a2c","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@neogated.com\", // 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.neogated.net/api/v1/createSession"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"sessionUrl\": \"https://api-pay-neo.com/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":"a0398ce8-34a9-41fc-95fd-abc96a0ad1f8","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@neogated.com\", // 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.neogated.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-pay-neo.com/payment-session/691b02b48c73dd76eedaa379/\",\n    \"brandId\": \"brand_id_value\",\n    \"customerId\": \"68fed1855ebbe829416b08c6\",\n    \"sessionId\": \"691b02b48c73dd76eedaa379\",\n    \"expiryOn\": 1763378744,\n    \"createdOn\": 1763377844\n}"},{"id":"e0fea927-c232-480c-96fa-992870a2563c","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@neogated.com\", // 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.neogated.net/api/v1/createSession"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"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":"544a2412-84fa-430e-9a29-1914fa90189b"},{"name":"Payout Session","id":"8acf1ae4-3d28-435f-84eb-9b2af91d7588","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.neogated.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-pay-neo.com/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":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","createSession"],"host":["api","neogated","net"],"query":[],"variable":[]}},"response":[{"id":"2c8a323d-4be2-484e-8a1a-2765a78fe7c9","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.neogated.net/api/v1/createSession"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sessionUrl\": \"https://your.redirect.com/payoutSession/68341e385f895955355d5671/\",\n    \"brandId\": \"{yourBrandID}\",\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\n    \"sessionId\": \"68341e385f895955355d5671\",\n    \"expiryOn\": 1748246972,\n    \"createdOn\": 1748246072\n}"},{"id":"a40392b8-a181-4c75-9843-7e47c0bc3389","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.neogated.net/api/v1/createSession"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sessionUrl\": \"https://your.redirect.com/payoutSession/68341e385f895955355d5671/\",\n    \"brandId\": \"{yourBrandID}\",\n    \"customerId\": \"67c9983fba18400ab6cceb8f\",\n    \"sessionId\": \"68341e385f895955355d5671\",\n    \"expiryOn\": 1748246972,\n    \"createdOn\": 1748246072\n}"}],"_postman_id":"8acf1ae4-3d28-435f-84eb-9b2af91d7588"},{"name":"Check Status","id":"c3d71875-8d8b-4fbc-aa82-99bc537fcd24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{API Key}}"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.neogated.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","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","name":"Cashier APIs","type":"folder"}},"urlObject":{"protocol":"https","path":["api","v1","purchases","{Session ID}",""],"host":["api","neogated","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3d71875-8d8b-4fbc-aa82-99bc537fcd24"}],"id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4","description":"<p>Neogated 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":{"type":"text/javascript","packages":{},"requests":{},"exec":[""],"id":"c2be7aac-c3c0-4986-9a82-3c66ef08a73b"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"requests":{},"exec":[""],"id":"fbd94b30-7256-4c37-8d23-951baff3ea4b"}}],"_postman_id":"c8d524cd-388a-4316-9f41-d8e430d3e4a4"},{"name":"User Defined Fields (UDF)","item":[],"id":"b0dbd4e3-55ca-451a-94e5-03d87e6b1b64","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 Neogated's app.</p>\n<img src=\"https://content.pstmn.io/ffd53be4-5d9b-4d09-aa34-ffbdc87d9d50/VW50aXRsZWQgZGVzaWduICg0MikucG5n\" />\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<p><br /><br /><br /><br /><br /></p>\n<h3 id=\"orchestration-powered-by-paysecure\">Orchestration powered by Paysecure</h3>\n<img src=\"https://dashboard.paysecure.net/assets/Logo-BGiXeLxq.svg\" />","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"requests":{},"exec":[""],"id":"ac55baed-ecfc-4780-aaea-dcec83c11af8"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"requests":{},"exec":[""],"id":"189f4705-38cc-4089-aba7-59faa0cfa38b"}}],"_postman_id":"b0dbd4e3-55ca-451a-94e5-03d87e6b1b64"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{APIKey}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"ae44171c-d932-49ba-b03a-1747ff336a9e"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b24dd2c4-24bd-46f2-89b8-a0274b1e0204"}}],"variable":[{"key":"BaseURL","value":"https://api-pay-neo.com/api/v1","type":"string"},{"key":"StagingAPIKey","value":"","type":"string"}]}