# Glomo developer documentation > Cross-border payments APIs, organised by product. Each product section carries both the explanation of its objects and the job-shaped integration guides that set them up. The full text of every page indexed by https://docs.glomo.one/llms.txt, in the same sections. Each page starts with its Source URL. The API reference is not inlined: fetch https://docs.glomo.one/openapi.yaml for every endpoint in one document. --- Source: https://docs.glomo.one/get-started Section: Get started # Get started with Glomo Glomo is a cross-border payments platform. Each product section holds two kinds of page. Pages titled as a noun, such as *Subscriptions*, explain what an object is. Pages titled as a job, such as *Set up recurring subscriptions*, are integration guides that give the APIs in the order you call them. A guide sits one level under the object it sets up. --- ## Build with your coding agent Glomo runs an MCP server that gives your AI coding agent the Glomo docs and API as tools, and lets it run calls against your sandbox account. If you write the integration yourself, skip to [What are you building?](https://docs.glomo.one/get-started#what-are-you-building). 1. **Get an MCP credential**: in the [Glomo dashboard](https://app.glomopay.com/api-keys-and-webhooks/api-keys), in test mode, generate one under **API keys**, or mint it over the API with your test secret key. It works only on sandbox, expires after 30 days and is shown only once, so store it the way you store your secret key. Every Glomo account can get one except white-label partner accounts and the merchants they host. The setup guide's configs read it from the `GLOMO_MCP_CREDENTIAL` environment variable, so set it in the shell you start your coding tool from: ```bash export GLOMO_MCP_CREDENTIAL="" ``` 2. **Connect your coding tool**: in Claude Code, install the Glomo plugin. It adds the MCP server and five Glomo skills, and reads the credential from `GLOMO_MCP_CREDENTIAL` each time Claude Code starts. ```text /plugin marketplace add glomopay/glomo-ai-plugins /plugin install glomo@glomo ``` For Cursor, VS Code, OpenAI Codex CLI and Lovable, follow [Set up your client](https://docs.glomo.one/platform/mcp-server#set-up-your-client). Your agent can search the docs and the API reference without a credential; it needs one to make sandbox calls. 3. **Paste the prompt for your flow**: each section under [What are you building?](https://docs.glomo.one/get-started#what-are-you-building) starts with a prompt. Paste it into your agent from your app's repository. The full setup, including rotating and revoking the credential, is in [Connect an AI agent with MCP](https://docs.glomo.one/platform/mcp-server). --- ## What are you building? Pick the section that matches your integration. Each one gives a prompt for your coding agent, lists the calls in order and links the full guide. - A step that starts with an `operationId` is an API call. Look it up in the [API reference](https://docs.glomo.one/api-reference/openapi) or in [/openapi.json](https://docs.glomo.one/openapi.json). - **Not an API call** marks a step in your frontend or your server, or a webhook you wait for. Shared calls: `createCustomer` and `createOrder` are the same calls in every collection flow, LRS included. `createBeneficiaryV2` and `createPayout` are the same calls for payouts and for LRS withdrawals. Create each customer once and reuse the returned ID. Purpose codes come from closed lists, one for [payins](https://docs.glomo.one/payin/purpose-codes) and one for [payouts](https://docs.glomo.one/payout/purpose-codes). Pick from the list; never guess a code. ## One-time collection For merchants collecting a single payment against an order or a payment link. Use the Payment API variant only if you are PCI-DSS certified and your account has server-to-server payments enabled. Prompt for your coding agent: ```text Integrate Glomo one-time collection into this app. If it isn't clear which variant I need, ask me: SDK checkout, the Payment API (server-to-server) or a payment link. Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. Create each customer once and reuse its ID. For SDK checkout and the Payment API, verify the payment signature on my server against each of my active secret keys, and confirm the final status with getPaymentById or the payment webhook, never from the browser alone. For a payment link, pick the purpose code from the payin purpose code list and take the status from getPayinById or the payment_link webhook. Verify the X-Glomopay-Signature header on every webhook. Don't hand back code you haven't run against sandbox. ``` ### SDK checkout 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createOrder` `POST /orders` — call it from your server with your secret key. Send a `request_id`; a reused one is rejected. 3. **Not an API call:** open Glomo checkout with the Unified SDK, passing the order ID and your public key. 4. **Not an API call:** on your server, verify the signature on the checkout response. Check it against each of your active secret keys; any one matching is valid. 5. `getPaymentById` `GET /payment/{id}` — confirm the final status, or take it from the `payment` webhook. Never mark an order paid from the browser alone. Full guide: [Checkout](https://docs.glomo.one/payin/checkout) ### Payment API (server-to-server) 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createOrder` `POST /orders` — send a `request_id`; a reused one is rejected. 3. `createPayment` `POST /payment` — send `order_id`, `method: card`, the card and an HTTPS `callback_url`. A `request_id` is optional; a reused one is rejected. 4. **Not an API call:** send the customer to the URL in `next_steps` to authenticate the card (3DS). 5. **Not an API call:** on your `callback_url`, verify the `signature` query parameter. Check it against each of your active secret keys; any one matching is valid. 6. `getPaymentById` `GET /payment/{id}` — confirm the final status, or take it from the `payment` webhook. Full guide: [Accept card payments server-to-server](https://docs.glomo.one/payin/server-to-server-payments) ### Payment link (no frontend) 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createPayin` `POST /payin` — `purpose_code` is required unless your account has a default one. There is no `request_id`, so check whether a timed-out create went through before you retry. 3. **Not an API call:** the customer opens the glomo-hosted link and pays. 4. `getPayinById` `GET /payin/{id}` — the link is `paid` when complete. The `payment_link` webhook reports the same change. Full guide: [Payment Link](https://docs.glomo.one/payin/payment-link) ## Subscriptions For merchants charging a customer's card on a fixed schedule (`month` or `year`) or whenever they present a charge (`as_presented`). The Payment API variant has the same PCI-DSS and account requirement as in one-time collection. Prompt for your coding agent: ```text Integrate Glomo subscriptions into this app. If it isn't clear which variant I need, ask me: SDK checkout or the Payment API (server-to-server). Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. Set interval_type to month, year or as_presented, and follow the as_presented rules for max_amount and for charging each later payment. Verify the payment signature on my server against each of my active secret keys, confirm the first payment with getPaymentById or the payment webhook, and handle the subscription webhooks. Verify the X-Glomopay-Signature header on every webhook. Don't hand back code you haven't run against sandbox. ``` ### SDK checkout 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createSubscription` `POST /subscriptions` — set `interval_type`. For `as_presented`, send `max_amount`, leave out `interval_count`, `billing_cycles` and `start_date`, and don't set `starts_with_first_payment` to `false`. 3. **Not an API call:** open Glomo checkout with the Unified SDK, passing the subscription ID and your public key, to take the first payment. 4. **Not an API call:** on your server, verify the signature on the checkout response. Check it against each of your active secret keys; any one matching is valid. 5. `getPaymentById` `GET /payment/{id}` — confirm the first payment, or take it from the `payment` webhook. 6. `createPayment` `POST /payment` — `as_presented` only: charge each later payment with `subscription_id`, `sequence: subsequent`, `amount` (up to `max_amount`), `currency` and a new `request_id`. Glomo charges `month` and `year` subscriptions on schedule. Full guide: [Set up recurring subscriptions](https://docs.glomo.one/payin/subscriptions/set-up) ### Payment API (server-to-server) 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createSubscription` `POST /subscriptions` — set `interval_type`, as in the SDK checkout variant. 3. `createPayment` `POST /payment` — the first payment: send `subscription_id` (not `order_id`), `method: card`, the card and an HTTPS `callback_url`. 4. **Not an API call:** send the customer to the URL in `next_steps` to authenticate the card (3DS). 5. **Not an API call:** on your `callback_url`, verify the `signature` query parameter. Check it against each of your active secret keys; any one matching is valid. 6. `createPayment` `POST /payment` — `as_presented` only: charge each later payment with `subscription_id`, `sequence: subsequent`, `amount` (up to `max_amount`), `currency` and a new `request_id`. Full guide: [Accept card payments server-to-server](https://docs.glomo.one/payin/server-to-server-payments) ## LRS remittance For Indian brokers and platforms that remit funds abroad for resident Indian investors under the Liberalised Remittance Scheme, and withdraw them back to the investor. Prompt for your coding agent: ```text Integrate Glomo LRS remittance and the LRS withdrawal back to the investor into this app. Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. For a remittance, register the investor's bank account with createLrsCustomerBankAccount, and create the order from an unexpired createLrsQuote quote, with amount and currency matching the quote. A purpose_code on the order, if sent, must be S0001 or S0002. Verify the checkout signature on my server, and treat the money as landed only on the payment webhook with event_type funds_available, not success. For a withdrawal, pay an active beneficiary with category payout and the investor's INR account, upload the investor's consent letter with createDocument, then create the payout with purpose code P0001, payment_rail neft and a unique request_id. Verify the X-Glomopay-Signature header on every webhook. Don't hand back code you haven't run against sandbox. ``` ### Remittance 1. `getLrsBanks` `GET /lrs/banks` — optional: list the investor banks the remittance flow supports. 2. `createCustomer` `POST /customer` — create the investor once. LRS customers have stricter rules; see the guide. 3. `createLrsCustomerBankAccount` `POST /customer/{id}/bank_account` — register the investor's bank account and store its ID. 4. `createBeneficiaryV2` `POST /v2/beneficiaries` — optional: only when the overseas beneficiary differs per investor or per transaction. Use `category: lrs`. 5. `createLrsQuote` `POST /lrs/quotes` — quote the remittance for the investor's bank. A quote expires after 30 minutes. 6. `createOrder` `POST /orders` — send the `lrs` object with the quote ID, `remittance_information`, and the bank account and beneficiary IDs. `amount` and `currency` (`USD`) must match the quote, and the bank account's bank must match the quote's. A `purpose_code`, if sent, must be `S0001` or `S0002`. Send a `request_id`. 7. **Not an API call:** open Glomo checkout with the Unified SDK, passing the order ID and your public key. 8. **Not an API call:** optional, if checkout events are enabled for your account: listen for `checkout.stage_changed` and `checkout.closed` with `.on()` on the Unified SDK to see where investors drop off. They are best effort and never the payment status. The payment's `progress` object carries the last stage server-side. See [Checkout events](https://docs.glomo.one/platform/sdk/checkout-events). 9. **Not an API call:** on your server, verify the signature on the checkout response. Check it against each of your active secret keys; any one matching is valid. 10. **Not an API call:** wait for the `payment` webhook with `event_type` `funds_available`. That, not `success`, tells you the funds have landed. Full guide: [Collect LRS remittances from India](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up) ### Withdrawal 1. `createBeneficiaryV2` `POST /v2/beneficiaries` — use `category: payout`, an INR account and the IFSC in `local_routing_number`. The beneficiary must be `active` before you pay it. 2. `createDocument` `POST /document` — upload the investor's withdrawal consent letter. 3. `createLrsQuote` `POST /lrs/quotes` — optional: with `resource: payout`, an estimate of the INR the investor receives. You cannot attach it to the payout. 4. `createPayout` `POST /payouts` — send `source_currency` `USD`, `destination_currency` `INR`, `source_amount` in USD cents (required), `payment_rail: neft` (if you omit `payment_rail`, Glomo uses SWIFT), purpose code `P0001`, the document ID in `documents`, and a unique `request_id`. A reused `request_id` returns 409. 5. `getPayoutById` `GET /payouts/{id}` — read the status, or take it from the `payout` webhook. Full guide: [Withdraw an LRS remittance back to the investor](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide) ## Fund distribution (Nivo for Distributors) For distributors who bring investors to a fund's schemes. The investor completes the fund's own journey, and the purchase is made with your ARN. Nivo for Distributors is enabled per business, and Glomo sets up your relationship with each fund. The relationship holds your ARN for that fund and the schemes the fund lets you sell. Only regular-plan schemes can be distributed. Read [Distributor](https://docs.glomo.one/capital-markets/distributor) for what the relationship fixes. ### Payment session (one investor) 1. `createPaymentSession` `POST /payment-sessions` — call it from your server. Send the scheme code in `data.scheme.scheme_code`. Optionally prefill `email`, `data.scheme.amount` and `data.scheme.currency` (both or neither, in `USD` cents), and `data.kyc`. `email` is required if you send `pan`, `phone` or `dob`. Do not send `customer_id`; it returns 422. `distributor_arn` is ignored; Glomo uses the ARN from your relationship. 2. **Not an API call:** keep the returned `token` on your server. Do not log it or send it anywhere except the investor's checkout. 3. **Not an API call:** open the session with the Unified SDK, passing `id` as `paymentSessionId` and `token` as `paymentSessionToken`. The investor completes the fund's journey. Your ARN is shown on the checkout and cannot be changed. Full guide: [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up) ### Distributor link (many investors) 1. `createDistributorLink` `POST /distributor-links` — call it from your server with `scheme_code`. `amount` (in `USD` cents, within the scheme's limits) is an optional prefill the investor can change. `distributor_arn` is optional; if sent, it must be your ARN for that fund. Distributor links are enabled separately; without them the call returns 400 `Feature not enabled`. 2. **Not an API call:** share the returned `url` with investors. It does not expire, and anyone with it can open it. 3. **Not an API call:** each investor who opens the link gets a new payment session, prefilled with the scheme, your ARN and the amount, and completes the fund's journey. Full guide: [One Click Distributor Link](https://docs.glomo.one/capital-markets/distributor/share-a-link) ## Payouts For merchants sending money from their Glomo balance to a beneficiary's bank account. Prompt for your coding agent: ```text Integrate Glomo payouts into this app. Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. Create the beneficiary with category payout and the bank details its rail needs, and pay it only once it is active: with beneficiary review on, it starts pending, and in sandbox the mock-review call approves it. Pick the purpose code from the payout purpose code list; never guess one. Without a quote, set payment_rail, because an omitted rail means SWIFT. Derive request_id from my own payout record, and retry a timed-out create with the same request_id, never a new one. Read status in the create response, because a 201 can already be failed, and handle the payout webhook idempotently. Verify the X-Glomopay-Signature header on every webhook. Don't hand back code you haven't run against sandbox. ``` ### Calls, in order 1. `createBeneficiaryV2` `POST /v2/beneficiaries` — use `category: payout`, with the bank details that the [rail](https://docs.glomo.one/payout/rails) you will use needs. Only INR, AED, EUR, GBP and AUD have local rails: for any other destination currency, USD included, the rail is SWIFT, so the beneficiary needs `swift_code`. 2. `getBeneficiaryByIdV2` `GET /v2/beneficiaries/{id}` — the beneficiary must be `active`. A new beneficiary is `active` straight away unless Glomo has enabled beneficiary review on your account. With review enabled it starts `pending`; in sandbox, approve it with `PATCH /v2/beneficiaries/{id}/mock-review` `{"review_action": "approve"}`. A payout to a `pending` or `rejected` beneficiary is refused. The `beneficiary` webhook reports the change. 3. `createDocument` `POST /document` — only if the purpose code needs documents. Pass the IDs in the payout's `documents`. 4. `createQuote` `POST /quotes` — optional: `resource: payout` fixes the rate and fee. With a `quote_id`, don't send amounts, currencies or `payment_rail` on the payout. A quote expires and can be used once. 5. `createPayout` `POST /payouts` — without a quote, set `payment_rail`: if you omit it, Glomo uses SWIFT, and a beneficiary without SWIFT details gets a 400. With a `quote_id`, sending `payment_rail` is a 400. Send a payout purpose code. Send a deterministic `request_id`: a reused one returns 409, so retry with the same one and never with a new one. 6. `getPayoutById` `GET /payouts/{id}` — read the status. The create call returns 201 even when the payout has already failed. The `payout` webhook reports each change. Full guide: [Send payouts with the API](https://docs.glomo.one/payout/set-up) ## Bank transfer collection For merchants receiving collections in local currency for their orders by bank transfer. Bank transfer must be enabled on your account. For other bank-transfer flows, such as a static virtual account, confirm the flow with Glomo before you build; they have no documented call sequence yet. Prompt for your coding agent: ```text Integrate Glomo bank transfer collection for orders, through SDK checkout, into this app. Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. Treat payment.bank_transfer_submitted only as the customer saying they sent the transfer. Bank transfer checkout events are not signed, so take the final status from the payment webhook or from the order's status, never from the browser. Verify the X-Glomopay-Signature header on every webhook. Handle a payment that is action_required with PAYIN_NOT_FOUND or PAYIN_AMOUNT_MISMATCH using getEligiblePayins and connectPayin. In sandbox, send the transfer with createMockPayment. Don't hand back code you haven't run against sandbox. ``` ### Calls, in order 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createOrder` `POST /orders` — send a `request_id`. `payment_methods` limits what checkout offers; leave it out to offer every method enabled on your account. 3. **Not an API call:** open Glomo checkout with the Unified SDK, passing the order ID and your public key. The customer picks bank transfer and sees the account details and the payment reference to use. 4. **Not an API call:** handle the checkout's `payment.bank_transfer_submitted` event, or the redirect to your `callbackUrl`. It only means the customer says they sent the transfer. 5. **Not an API call:** take the final status from the `payment` webhook. 6. `getEligiblePayins` `GET /payment/{id}/eligible-payins` — only when the payment is `action_required` with `PAYIN_NOT_FOUND` or `PAYIN_AMOUNT_MISMATCH`: list the payins it can connect to. 7. `connectPayin` `POST /payment/{id}/connect-payin` — connect the payment to one of them. [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required) covers the case where none is eligible. Full guide: [Checkout](https://docs.glomo.one/payin/checkout) ## Bank account verification (TPV) For merchants who must accept funds only from the payer's registered bank account, such as brokers and fund platforms. Glomo enables TPV per account. TPV is the only value-added service documented here; for any other, confirm the flow with Glomo. Prompt for your coding agent: ```text Add Glomo bank account verification (TPV) to this app's collection flow. Use the Glomo MCP server: search the docs and API reference before writing code, plan the calls in order, and run each one against sandbox. Glomo enables TPV per account. Register the account the payer will pay from with createCustomerBankAccount before creating the order; a customer has one active account, and registering a new one replaces it. Collect the payment as in one-time collection, verifying the payment signature on my server. Handle a payment left action_required because it came from another account, using the mismatch reasons in the TPV guide. Verify the X-Glomopay-Signature header on every webhook. Don't hand back code you haven't run against sandbox. ``` ### Calls, in order 1. `createCustomer` `POST /customer` — create the payer once and store the `cust_` ID. 2. `createCustomerBankAccount` `POST /customer/{id}/bank-accounts` — register the account the payer will pay from (`account_number` plus `bic_primary` or `bic_secondary`). A customer has one active account; a new one replaces it. 3. `createOrder` `POST /orders` — create the order as usual; it needs no TPV field. 4. **Not an API call:** collect the payment as in [One-time collection](https://docs.glomo.one/get-started#one-time-collection). 5. **Not an API call:** a bank payment from any other account leaves the payment `action_required`. [Third Party Verification (TPV)](https://docs.glomo.one/verification/third-party-verification) lists the mismatch reasons and what to do next. Full guide: [Verify a payer's bank account (TPV)](https://docs.glomo.one/verification/third-party-verification/set-up) ## The rest of the documentation - **[Glomo overview](https://docs.glomo.one/get-started/glomo-overview)** — the platform glossary. What an LRS order, purpose code, virtual account or RFI actually *is*. - **[Payin](https://docs.glomo.one/payin)** — collecting money: customers, orders, checkout, payment links, payment methods, refunds, disputes, subscriptions, LRS. - **[Payout](https://docs.glomo.one/payout)** — sending money: the payout life cycle, rails, beneficiaries, purpose codes. - **[Nivo (Capital markets)](https://docs.glomo.one/capital-markets)** — mutual fund investments: payment sessions for funds and distributors, distributor links, overseas investing and LRS SIP. - **[Multi-currency accounts](https://docs.glomo.one/multi-currency-account)** — holding money: balances, conversion, add and withdraw, and the settlement holiday calendar. - **[Verification](https://docs.glomo.one/verification/kyc)** — KYC, bank account validation and TPV. - **[Request for Information (RFI)](https://docs.glomo.one/request-for-information)** — responding to a compliance request, per object. - **[Reports](https://docs.glomo.one/reports)** — the reports you download or schedule from the dashboard for reconciliation, compliance and treasury. - **[Identity and Access Management](https://docs.glomo.one/access-management)** — one login across your MIDs, the Admin/Member/Sales Partner roles, and inviting your team. - **[API reference](https://docs.glomo.one/api-reference/openapi)** — every endpoint, generated from OpenAPI. The OpenAPI description itself is published as one self-contained file at [/openapi.yaml](https://docs.glomo.one/openapi.yaml) ([JSON](https://docs.glomo.one/openapi.json)) — point your SDK generator, HTTP client or coding agent at it directly. - **[Developer resources](https://docs.glomo.one/platform)** — authentication, errors, pagination, rate limits, webhooks, versioning, supported countries, quotes and the client SDKs. --- ## Get your API keys Every request to the Glomo API carries an API key. You get your keys from the Glomo dashboard. 1. **Log in**: sign in to the [Glomo dashboard](https://app.glomopay.com). 2. **Open API Keys**: go to the [API Keys](https://app.glomopay.com/api-keys-and-webhooks/api-keys) page to see your **Test** and **Live** keys. [Image: API Keys Section] 3. **Choose your environment**: - **Test**: use test keys to simulate transactions without real money. - **Live**: switch to live keys when you are ready to process real payments. 4. **Integrate**: see [Authentication](https://docs.glomo.one/platform/authentication) for how to send the key on every request, then follow the section for your integration above. --- Source: https://docs.glomo.one/get-started/glomo-overview Section: Get started # Introduction Glomo is an innovative payment service solution aiming to simplify the process of collecting, managing, and sending money across the globe. Glomo enables clients to collect payments into their multi-currency account, manage currencies, and send payments to their desired beneficiaries in the currency of their choice, ensuring compliance, transparency, and efficiency. This document serves as a guide to help you understand Glomo capabilities and integrate Glomo into your system and start accepting payments with ease. [Image: Payment Flow Diagram] --- # Glossary - **Merchant**: Merchant refers to businesses with a Glomo account. Upon onboarding to Glomo, every business will be assigned a unique merchant ID. Merchants are only onboarded and enabled for live transactions only after Glomo’s due diligence is complete. - **Payin**: Payin in Glomo terminology means money to be collected from consumers against purchases of goods & services from you or your underlying customers. In general, Glomo will enable its merchants to collect payments from multiple sources into their Glomo account. All such collections across merchant’s Glomo accounts are considered as Payin. - **Payout**: Payouts refers to sending money to your beneficiaries(vendors/suppliers/employees/others) from your Glomo account. Glomo acts as remitter of funds for both domestic and cross border money transfers. - **Customer**: Customer refers to the end user you are collecting money from. This collection can be done through bank transfer or any other payment method supported by Glomo. - **Beneficiary**: A beneficiary is the recipient of funds (vendor, supplier or any other entity) that you choose to send money to from your Glomo account. --- # Getting Started > **Note:** Glomo is available to a limited number of users at this time. If you wish to get onboarded and start using our platform, please contact us at [support@glomopay.com](mailto:support@glomopay.com). --- Source: https://docs.glomo.one/payin Section: Payin # Accepting a Payment Glomo's payment collection capability, allows you to accept payments globally with ease. We offer pre-built solutions like Checkout and Payment Links, both optimized for conversion and security. With built-in PCI DSS compliance, fraud prevention, compliance management and multi-currency support, Glomo simplifies the process of collecting payments online for businesses of all sizes. --- # Payment Methods - Bank transfers - Card Payments ### Bank Transfers Bank transfers provide a safe way for customers to send money over bank rails. When accepting bank transfers with Glomo, you provide customers with a virtual bank account number that they can transfer money to from their own online bank interface or in-person bank branch. Glomo uses this virtual account number to automate reconciliation. ### Card Payments Glomo enables businesses to securely accept card payments, supporting major networks like Visa, Mastercard, and AMEX. Payments are protected with industry-standard security protocols such as 3D Secure to minimize fraud. Transactions are processed in real-time, delivering immediate confirmation of payment status --- Source: https://docs.glomo.one/payin/account-funding Section: Payin # Add funds with a card ## Introduction Glomo Global Add Funds enables banks and financial institutions to offer their customers instant account funding from an overseas Visa debit card, directly within their own application. Instead of initiating an international wire and waiting days for funds to arrive, the customer completes a card payment in a single session and their account is credited immediately. The offering includes SDKs and APIs that let partner institutions integrate the funding journey into their existing add-funds flow. Glomo handles card acceptance, foreign exchange, screening and compliance, and settlement - the partner retains full ownership of the customer relationship and the user experience. ## How it works The customer initiates an add-funds request in the partner's application and enters the amount they wish to add. Glomo returns a quote showing the exchange rate and total cost in the customer's own currency. On confirmation, the partner creates a Glomo customer - passing across the KYC records it already holds for that customer - registers the account the funds will land in, and then creates an order. The Glomo SDK opens within the partner's application to capture the card and authenticate the payment. Once the payment is confirmed, Glomo credits the customer's account at the partner from its escrow account. Because the partner shares KYC under regulated-entity reliance, the customer completes no verification step of their own. From the customer's perspective, adding funds from a card is a single, uninterrupted flow. [Image: Account funding overview] ## Prerequisites - Glomo partner account with API keys, with account funding enabled. - Customer details including name, date of birth, nationality, overseas address, pincode, last KYC date, and consent to the KYC share. PAN where you hold one. - HTTPS - secure server endpoint for webhooks. ## Workflow for partners The sequence diagram below represents the interactions between the customer, the partner bank, the Glomo SDK, and the Glomo API. [Image: Workflow for partners] The flow has four parties: - **Customer** - the account holder adding funds, using their own overseas Visa debit card. - **Partner bank** - hosts the journey in its own application, calls Glomo's server-side APIs, and credits the funds to the customer's account. - **Glomo** - quotes the rate, creates the payment account, processes the card payment, runs risk and compliance checks, and settles funds to the partner. - **Visa** - provides the exchange rate and processes the card payment. The partner's server calls Glomo to fetch a quote, create the customer, register the beneficiary and create the order. The order is then handed to the Glomo SDK on the client side, which takes over for card capture and payment authentication. Once the payment is authorised and Glomo's risk checks clear, the partner receives a payment success response and returns the customer to its own screens with the appropriate confirmation. Two points on sequencing. The customer, the beneficiary and the order must all exist before the SDK is invoked, and the order carries the quote - so the rate the customer approves is the rate the payment is authorised at, with no re-pricing in between. And the partner's server never handles card data at any point: the card is captured by the Glomo SDK and passes directly to Glomo's vault, keeping the partner outside PCI scope. All amounts are integers in minor units. AED and USD carry two decimal places, so `50000` is USD 500.00. Every call goes to `https://api.glomopay.com/api` and carries your key. The base URL is the same in test and live: which environment a call lands in is decided by the key it carries, so testing the flow is a matter of using your test keys, not a different host. See [Authentication](https://docs.glomo.one/platform/authentication) for where to find both sets of keys. --- # Integration steps Below are the steps to integrate the Glomo SDK and enable card-funded top-ups for your customers. ## Create a quote **`createQuote`** · `POST /v1/quotes` · [API reference](https://docs.glomo.one/api-reference/openapi/quote/createquote) Create a quote from your server by passing the amount to be added and the customer's card currency. Use this API to display the exchange rate, fees, and the total amount that will be debited from the customer's card before they proceed. Quote in the amount the customer's account is credited, as `destination_amount`. The card debit comes back as `source_amount`. `resource_type` is required on a card quote, and a card quote takes no `payment_method.subtype`. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/quotes ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/quotes \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "resource": "payin", "resource_type": "account_funding", "source_currency": "AED", "destination_currency": "USD", "destination_amount": 100000, "payment_method": { "type": "card" } }' ``` ### Response ```curl { "quotes": [ { "id": "quote_6ab599eeKV4e8", "resource": "payin", "resource_type": "account_funding", "expires_at": "2026-09-24T22:15:18Z", "payment_method": { "type": "card" }, "source_currency": "AED", "destination_currency": "USD", "fx_rate": 0.272258, "effective_fx_rate": 0.2700972222222222, "source_amount": 373542, "destination_amount": 100000, "fees": { "txn_fee": { "currency": "USD", "amount": 900 }, "fx_fee": { "currency": "USD", "amount": 800 } } } ] } ``` > Read `quotes[0]`. An account funding quote returns one element. > > `fx_rate` is the mid-market rate. `effective_fx_rate` includes the FX fee but not the transaction fee, so it is not the all-in cost, and it can be `null`. Fees are priced in the destination currency. ## Create a customer **`createCustomer`** · `POST /v1/customer` · [API reference](https://docs.glomo.one/api-reference/openapi/customer/createcustomer) Create a customer entity in Glomo's system, passing the customer's details and the KYC records you hold for them. To be called when the customer adds funds for the first time. Customer ID has to be stored in your system and reused. | Field | Required | Notes | | --- | --- | --- | | `country`, `nationality` | Yes | [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3). `IN` is rejected, `IND` is accepted. | | `dob` | Yes | Mandatory for account funding. Cannot be in the future. | | `pincode` | Yes | Validated against the country. | | `kyc` | No | Takes exactly `pan_number` and `last_kyc_date`. `last_kyc_date` may be today, never the future. | ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/customer ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/customer \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "name": "Aarav Nair", "customer_type": "individual", "email": "aarav.nair@example.com", "phone": "+919812345678", "address": "12 Marina Walk", "city": "Kochi", "state": "Kerala", "country": "IND", "pincode": "682001", "dob": "1988-04-17", "nationality": "IND", "kyc": { "pan_number": "BFQPG7654R", "last_kyc_date": "2026-09-25" } }' ``` ### Response ```curl { "id": "cust_6ab599fdEvVur", "name": "Aarav Nair", "customer_type": "individual", "email": "aarav.nair@example.com", "phone": "+919812345678", "address": "12 Marina Walk", "city": "Kochi", "state": "Kerala", "country": "IND", "pincode": "682001", "status": "active", "dob": "1988-04-17", "nationality": "IND", "tax_identification_number": null, "created_at": "2026-09-24T21:45:33.539Z", "updated_at": "2026-09-24T21:45:33.581Z" } ``` ## Create a beneficiary **`createBeneficiaryV2`** · `POST /v2/beneficiaries` · [API reference](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2) Register the account the funds land in. For account funding this is the customer's own account - funds always move from a customer's own card to their own account - and the category is `payout`. Store the `bene_` id and reuse it for the customer's return journey. ### API Endpoint ```curl POST https://api.glomopay.com/api/v2/beneficiaries ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v2/beneficiaries \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "category": "payout", "beneficiary": { "name": "Aarav Nair", "type": "individual", "email": "aarav.nair@example.com", "nickname": "My account", "address": { "address_line1": "12 Marina Walk", "city": "Kochi", "state": "Kerala", "country_code": "IND", "postal_code": "682001" } }, "bank_account": { "account_number": "000111222333", "name": "Aarav Nair", "swift_code": "IDFBINBBXXX", "currency": "USD", "address": { "address_line1": "GIFT City, Block 9", "city": "Gandhinagar", "state": "Gujarat", "country_code": "IND" } } }' ``` ### Response ```curl { "id": "bene_6ab599fdgflRf", "name": "Aarav Nair", "category": "payout", "email": "aarav.nair@example.com", "phone": null, "nickname": "My account", "status": "active", "created_at": "2026-09-24T21:45:33Z", "updated_at": "2026-09-24T21:45:33Z", "notes": null, "type": "individual", "address": { "address_line1": "12 Marina Walk", "address_line2": null, "city": "Kochi", "state": "Kerala", "country_code": "IND", "postal_code": "682001" }, "bank_account": { "account_number": "000111222333", "name": "Aarav Nair", "swift_code": "IDFBINBBXXX", "local_routing_number": null, "currency": "USD", "category": null, "address": { "address_line1": "GIFT City, Block 9", "address_line2": null, "city": "Gandhinagar", "state": "Gujarat", "country_code": "IND" } } } ``` ## Create an order on the server **`createOrder`** · `POST /v1/orders` · [API reference](https://docs.glomo.one/api-reference/openapi/orders/createorder) Initiate the payment by creating an order from your server using your API key, the customer ID, the beneficiary ID and the quote ID from step 1. The `id` returned in the response should be passed to the SDK. This ensures the payment is securely linked to the correct order and prevents tampering. Send no `amount` and no `currency`: the order reads both from the quote, along with its expiry. `request_id` is the idempotency key - replaying it returns the original order instead of creating a second one. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/orders ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/orders \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_6ab599fdEvVur", "quote_id": "quote_6ab599eeKV4e8", "beneficiary_id": "bene_6ab599fdgflRf", "request_id": "bank-ref-0001", "notes": { "channel": "mobile_app" } }' ``` ### Response ```curl { "id": "order_6ab59a06f9xuk", "customer_id": "cust_6ab599fdEvVur", "document_id": null, "status": "active", "currency": "USD", "amount": 100000, "purpose_code": null, "invoice_amount": null, "invoice_description": null, "invoice_number": null, "notes": { "channel": "mobile_app" }, "expires_at": "2026-09-24T22:15:18Z", "created_at": "2026-09-24T21:45:42Z", "updated_at": "2026-09-24T21:45:43Z", "reference_number": null } ``` Orders are declined where the transaction would exceed the applicable transaction limits, or where the quote or beneficiary does not hold up. A declined order answers `422` with a machine-readable `code` beside the message: | Code | Meaning | | --- | --- | | `quote_not_found` | No quote with that id. | | `quote_not_owned` | The quote belongs to another business. | | `quote_expired` | The quote lapsed. Create a new one. | | `quote_resource_type_missing` | The quote did not declare `account_funding`. | | `beneficiary_missing` | No beneficiary named, or it does not resolve. | | `order_amount_above_cap` | Above the configured cap for that currency. | | `order_cap_unavailable` | No cap is configured for that currency. Not the same as the amount being too large. | | `payment_method_unavailable` | Your account has no active card payment method. | `order_cap_unavailable` and `payment_method_unavailable` share the same customer-safe message, so branch on `code`, never on `message`. The cap applies to the destination currency - the amount credited, not the amount charged to the card. ## Integration Guide 1. Integrate an "Add funds" button into your client-side interface. 2. Add the code snippet below to your website or app to launch Glomo's SDK. 3. When the customer taps the button, the checkout opens using the `order_id` created in step 4. 4. Handle payment initiation success and failure events using the provided handler functions. 5. On successful debit, you'll receive either a payment object (on successful authorisation by the customer) or an error object (on failure). 6. Send this information back to your server to redirect the user or to trigger a retry if the payment failed. An account funding order uses the Unified SDK's Order Checkout journey. See the [Glomo Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk) for the web integration, and [Web Checkout in a Mobile App (WebView)](https://docs.glomo.one/platform/sdk/experimental) to open checkout inside a native app, which navigates to the hosted entry URL as a top-level document: ``` https://api.glomopay.com/api/public/v1/checkout/redirect?resource_id=order_6ab59a06f9xuk&public_key={PUBLIC_KEY} ``` Navigate to it; do not `fetch()` it. Do not pass `mode` - the checkout derives the environment from your public key's prefix, so the same URL serves test and live. ### Add the payment button on your website ```html ``` ### Add the payment button on your React Native app ```tsx import React, { useRef } from 'react'; import { View, Button } from 'react-native'; import { GlomoCheckout, type GlomoCheckoutRef, type GlomoCheckoutPayload, type SdkError } from '@glomopay/react-native-sdk'; export default function AddFundsScreen() { const checkoutRef = useRef(null); const handleAddFunds = async () => { const started = await checkoutRef.current?.start(); if (!started) { // Could not start. onSdkError carries the reason. } }; return ( ``` ```js // glomo-checkout.js import { GlomoCheckoutApi } from 'https://unified-sdk.glomopay.com/index.js'; const checkout = new GlomoCheckoutApi({ orderId: 'order_679a16457aP6K', // Pass the order_id received from the server in step 1 publicKey: 'live_687b0151Bid24PAI', // Pass the public key received from the dashboard callbackUrl: 'https://yourwebsite.com/payment-result', // Optional: URL to redirect after payment completion }); document.getElementById('buy-button').addEventListener('click', () => { checkout.open(); }); checkout.on('payment.success', function (response) { // Handle payment success }); checkout.on('payment.failure', function (response) { // Handle payment failure }); // Bank transfer only: emitted when the user submits their payment details. // Does NOT mean the payment is successful — await a webhook for confirmation. checkout.on('payment.bank_transfer_submitted', function (response) { // response.orderId - the order ID }); // Detect an abandoned checkout. The checkout opens as an overlay on your page and // emits checkout.closed when the user closes it, including after the success or // failure screen. The payment events fire before it, so track whether one arrived. // With callbackUrl set, the success and failure handlers don't run, but the page is // redirected on those outcomes instead, so checkout.closed only fires if the user // left before finishing. let paymentCompleted = false; checkout.on('payment.success', function (response) { paymentCompleted = true; // Handle payment success }); checkout.on('payment.failure', function (response) { paymentCompleted = true; // Handle payment failure }); checkout.on('payment.bank_transfer_submitted', function (response) { paymentCompleted = true; // Details submitted, not abandoned. Await a webhook for the result. }); checkout.on('checkout.closed', function () { if (!paymentCompleted) { // User closed the checkout without completing payment. // Use this to restore your UI, log abandonment, or prompt the user to retry. console.log('Checkout closed without payment'); } paymentCompleted = false; // Reset for the next checkout attempt }); ``` **React (TS)** ```jsx import { FC, useState } from "react"; interface PurchaseButtonProps { orderId: string; publicKey: string; } const PurchaseButton: FC = ({ orderId, publicKey }) => { const buttonRef = useRef(null); const loadCheckout = async () => { try { const { GlomoCheckoutApi } = await import('https://unified-sdk.glomopay.com/index.js'); // With callback URL option - user will be redirected after payment const checkout = new GlomoCheckoutApi({ orderId, publicKey, callbackUrl: 'https://yourwebsite.com/payment-result', // Optional }); // Set up the click handler on the button if (buttonRef.current) { buttonRef.current.addEventListener('click', checkout.open.bind(checkout)); } // Listen for payment success checkout.on('payment.success', function () { // Handle payment success (e.g., update state or notify the user) }); // Listen for payment failure checkout.on('payment.failure', function (response: unknown) { console.error('Payment failed:', response); // Handle payment failure (e.g., show an error message) }); // Bank transfer only: emitted when the user submits their payment details. // Does NOT mean the payment is successful — await a webhook for confirmation. checkout.on('payment.bank_transfer_submitted', function (response: unknown) { // Handle bank transfer submission (e.g., show a pending state to the user) }); } catch (error) { console.error('Error loading the checkout SDK:', error); } }; useEffect(() => { loadCheckout(); }, []); return ( ) } ``` ### About the Callback URL When you provide a `callbackUrl`, the user will be automatically redirected to that URL after payment completion with the following parameters: **For successful payments:** ``` https://yourwebsite.com/payment-result?orderId=order_679a16457aP6K&paymentId=payt_679a16457aP6K&status=success&signature=701eab675aca32c14cd1e5e041842d11ee9d04e91a3aaa73c629664a336b2952 ``` **For failed payments:** ``` https://yourwebsite.com/payment-result?orderId=order_679a16457aP6K&paymentId=payt_679a16457aP6K&status=failed&errorCode=INVALID_CARD&errorMessage=Payment+failed+due+to+the+card+being+invalid%3B+please+use+a+different+card. ``` A failed redirect carries no `signature`, so don't trust its `status` on its own. Look the payment up on your server. This allows server-side handling of payment results in addition to the client-side event handlers.
3. Verify checkout response and signature in server * The `payment.success` handler receives an object with `orderId`, `paymentId`, `status` and `signature`. The keys are camelCase. * The `signature` lets you check that the payment object came from Glomo. Send `paymentId`, `status` and `signature` to your server and verify the signature there. Never verify in the browser. * To verify, sign `orderId|paymentId|status`, using `paymentId` and `status` from the event and the order ID you created in step 1, not the `orderId` from the browser. * The signature is the hex HMAC-SHA256 of that string. Compute it with each of your active secret keys, and accept the response if any one of them matches the `signature` you received. Your active secret keys are every secret key on your account that has not expired. Use a constant-time comparison. * The signature may be made with any one of your active secret keys, and it can differ between payments. Don't assume it is your newest key. If you hold more than one active key, checking only one of them can reject a genuine payment. * When you revoke a key, or it expires, remove it from your list. A stale key left in the list opens no security hole, but keep the list matching the keys in your dashboard. * The `payment.failure` event carries no signature. Don't treat it as final. Confirm the payment status on your server (see step 4). --- #### Cards For card payments, `payment.success` and `payment.failure` events are triggered synchronously once the payment is processed. **Success Response** ```json { "status": "success", "orderId": "order_679a16457aP6K", "paymentId": "payt_679a16457aP6K", "signature": "701eab675aca32c14cd1e5e041842d11ee9d04e91a3aaa73c629664a336b2952" } ``` **Failure Response** `error.code` is the payment's error code, and `error.message` is the message shown to the customer. When Glomo has no specific reason, `error.code` is `"Failed"` and `error.message` is a generic message. There is no `signature`. ```json { "orderId": "order_679a16457aP6K", "paymentId": "payt_679a16457aP6K", "status": "failed", "error": { "code": "INVALID_CARD", "message": "Payment failed due to the card being invalid; please use a different card." } } ``` --- #### Bank Transfer Bank transfer payments follow an asynchronous flow. The customer sends the transfer from their own bank, and Glomo matches it to the order later, often after the checkout is closed. Checkout events for bank transfers are **not signed**, so you cannot verify them with the signature recipe below. Confirm the payment on your server with a verified [webhook](https://docs.glomo.one/platform/webhooks), or call [Retrieve an order](https://docs.glomo.one/api-reference/openapi/orders/getorderbyid) and check for `status: paid`. For the full flow, see [Set up bank transfers](https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up). **Bank Transfer Submitted (Intermediate)** Emitted when the customer submits the details of the account they paid from. It means the customer says they sent the transfer, not that the money arrived. Use it to show a "pending" state. It carries no signature. ```json { "status": "bank_transfer_submitted", "orderId": "order_679a16457aP6K", "senderAccountNumber": "7890", "senderName": "John Doe", "payerRelationship": "" } ``` **Success Response** Emitted only if the order becomes paid while the customer is still on the confirmation screen. For a bank transfer, `paymentId` and `signature` are empty, so this event cannot be verified. Do not mark the order paid from it. ```json { "status": "success", "orderId": "order_679a16457aP6K", "paymentId": "", "signature": "" } ``` There is no bank-transfer failure event. A transfer that doesn't arrive, or can't be matched, shows up in webhooks, not in checkout. See [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required). --- ***Sample Code to verify signature*** Each sample loads your active secret keys from a comma-separated `GLOMO_SECRET_KEYS` setting in your config, and returns true if the signature matches any one of them. It trims each key, drops empty entries, and stops with an error if no key is left. An empty key must never count as a match: anyone can compute the signature for an empty key, so it would let a forged response through.
PHP ```php ```
Ruby ```ruby require 'openssl' def load_secret_keys(value) keys = value.to_s.split(',').map(&:strip).reject(&:empty?) raise 'GLOMO_SECRET_KEYS is not set' if keys.empty? keys end def verify_signature(order_id, payment_id, status, signature, secret_keys) data = "#{order_id}|#{payment_id}|#{status}" secret_keys.any? do |secret| next false if secret.to_s.empty? # an empty key never matches OpenSSL.secure_compare(OpenSSL::HMAC.hexdigest("SHA256", secret, data), signature.to_s) end end # Example Usage order_id = "order_679a16457aP6K" # the order ID you created in step 1 payment_id = "payt_679a16457aP6K" status = "success" signature = "e91071c1f6226faac21db65e18f45f3c93e8468ff2d67528f4be3e4412ab0cb7" # the signature you received secret_keys = load_secret_keys(ENV['GLOMO_SECRET_KEYS']) # every active secret key, e.g. "your_secret_key_1,your_secret_key_2" puts verify_signature(order_id, payment_id, status, signature, secret_keys) ```
Go ```go package main import ( "crypto/hmac" "crypto/sha256" "encoding/hex" "errors" "fmt" "os" "strings" ) func loadSecretKeys(value string) ([]string, error) { var keys []string for _, key := range strings.Split(value, ",") { key = strings.TrimSpace(key) if key != "" { keys = append(keys, key) } } if len(keys) == 0 { return nil, errors.New("GLOMO_SECRET_KEYS is not set") } return keys, nil } func verifySignature(orderID, paymentID, status, signature string, secretKeys []string) bool { data := orderID + "|" + paymentID + "|" + status for _, secret := range secretKeys { if secret == "" { continue // an empty key never matches } h := hmac.New(sha256.New, []byte(secret)) h.Write([]byte(data)) expected := hex.EncodeToString(h.Sum(nil)) if hmac.Equal([]byte(expected), []byte(signature)) { return true } } return false } func main() { orderID := "order_679a16457aP6K" // the order ID you created in step 1 paymentID := "payt_679a16457aP6K" status := "success" signature := "e91071c1f6226faac21db65e18f45f3c93e8468ff2d67528f4be3e4412ab0cb7" // the signature you received secretKeys, err := loadSecretKeys(os.Getenv("GLOMO_SECRET_KEYS")) // every active secret key, e.g. "your_secret_key_1,your_secret_key_2" if err != nil { panic(err) } fmt.Println(verifySignature(orderID, paymentID, status, signature, secretKeys)) } ```
Javascript(Node.js) ```javascript const crypto = require('crypto'); function loadSecretKeys(value) { const keys = (value || '').split(',').map((k) => k.trim()).filter(Boolean); if (keys.length === 0) throw new Error('GLOMO_SECRET_KEYS is not set'); return keys; } function verifySignature(orderId, paymentId, status, signature, secretKeys) { const data = `${orderId}|${paymentId}|${status}`; const received = Buffer.from(signature || ''); return secretKeys.some((secret) => { if (!secret) return false; // an empty key never matches const expected = Buffer.from(crypto.createHmac('sha256', secret).update(data).digest('hex')); return expected.length === received.length && crypto.timingSafeEqual(expected, received); }); } // Example Usage const orderId = "order_679a16457aP6K"; // the order ID you created in step 1 const paymentId = "payt_679a16457aP6K"; const status = "success"; const signature = "e91071c1f6226faac21db65e18f45f3c93e8468ff2d67528f4be3e4412ab0cb7"; // the signature you received const secretKeys = loadSecretKeys(process.env.GLOMO_SECRET_KEYS); // every active secret key, e.g. "your_secret_key_1,your_secret_key_2" console.log(verifySignature(orderId, paymentId, status, signature, secretKeys)); ```
Python ```python import hmac import hashlib import os def load_secret_keys(value): keys = [key.strip() for key in (value or "").split(",") if key.strip()] if not keys: raise RuntimeError("GLOMO_SECRET_KEYS is not set") return keys def verify_signature(order_id, payment_id, status, signature, secret_keys): data = f"{order_id}|{payment_id}|{status}".encode() received = (signature or "").encode() return any( hmac.compare_digest(hmac.new(secret.encode(), data, hashlib.sha256).hexdigest().encode(), received) for secret in secret_keys if secret # an empty key never matches ) # Example Usage order_id = "order_679a16457aP6K" # the order ID you created in step 1 payment_id = "payt_679a16457aP6K" status = "success" signature = "e91071c1f6226faac21db65e18f45f3c93e8468ff2d67528f4be3e4412ab0cb7" # the signature you received secret_keys = load_secret_keys(os.environ.get("GLOMO_SECRET_KEYS")) # every active secret key, e.g. "your_secret_key_1,your_secret_key_2" print(verify_signature(order_id, payment_id, status, signature, secret_keys)) ```
4. Verify Payment status Payment's status can be tracked via following ways * You can track the payments linked to your order_id via dashboard * You can also track the payment status via polling [Payment APIs](https://docs.glomo.one/api-reference/openapi/payment/getpaymentbyid) * You can also track the payment status via [Webhooks](https://docs.glomo.one/platform/webhooks) which will notify you about the payment status.
--- ## Troubleshooting Common Issues ### Checkout Popup Blocked in Production Environment **Symptom:** The checkout works perfectly in your local development environment, but when deployed to UAT or production, the payment page fails to open in a new tab/popup after clicking the "Pay Now" button. **Cause:** This issue is typically caused by the `Cross-Origin-Opener-Policy` (COOP) security header on your website. If your website sends `Cross-Origin-Opener-Policy: same-origin`, it will block popups to external domains, including the Glomo payment gateway. #### How to Detect This Issue 1. Open your browser's Developer Tools (F12 or Right-click → Inspect) 2. Go to the **Network** tab 3. Reload your page and click on the main document (usually the first entry) 4. Look at the **Response Headers** section 5. Check if you see: `Cross-Origin-Opener-Policy: same-origin` If you see this header with the `same-origin` value, this is what's blocking the checkout popup. #### Solution Update your server's COOP header configuration from: ``` Cross-Origin-Opener-Policy: same-origin ``` to: ``` Cross-Origin-Opener-Policy: same-origin-allow-popups ``` **How to implement this depends on your setup:**
Apache (.htaccess) ```apache Header set Cross-Origin-Opener-Policy "same-origin-allow-popups" ```
Nginx ```nginx add_header Cross-Origin-Opener-Policy "same-origin-allow-popups"; ```
Node.js/Express ```javascript app.use((req, res, next) => { res.setHeader('Cross-Origin-Opener-Policy', 'same-origin-allow-popups'); next(); }); ```
Next.js (next.config.js) ```javascript module.exports = { async headers() { return [ { source: '/(.*)', headers: [ { key: 'Cross-Origin-Opener-Policy', value: 'same-origin-allow-popups', }, ], }, ]; }, }; ```
#### Verifying the Fix After deploying the header change: 1. **Clear your browser cache** (or use incognito/private mode) 2. Reload your website 3. Open Developer Tools → Network tab 4. Verify the header now shows: `Cross-Origin-Opener-Policy: same-origin-allow-popups` 5. Test the checkout flow again **Note:** The `same-origin-allow-popups` value maintains security for your website while allowing the checkout to open properly in a new window. --- ### CORS Error on Checkout Load (Preferences API Failure) **Symptom:** After successfully opening the checkout, you see a CORS (Cross-Origin Resource Sharing) error in the browser console when the checkout tries to load. The error typically mentions the preferences API call failing with a message like: ``` Access to fetch at 'https://...' from origin '...' has been blocked by CORS policy ``` **Cause:** This issue is often caused by browser extensions that intercept or modify network requests. Common culprits include ad blockers, privacy extensions, VPN extensions, and other security-focused browser add-ons. #### How to Detect This Issue 1. Open your browser's Developer Tools (F12) 2. Go to the **Console** tab 3. Load the checkout and look for CORS-related errors 4. The error will typically mention "blocked by CORS policy" or "No 'Access-Control-Allow-Origin' header" #### Solution **Step 1: Test in Incognito/Private Mode** The quickest way to verify if a browser extension is causing the issue: 1. Open an incognito/private browsing window (most extensions are disabled by default) 2. Test the checkout integration again 3. If the checkout works in incognito mode, a browser extension is the culprit **Step 2: Identify and Disable Interfering Extensions** If the checkout works in incognito mode: 1. Go to your browser's extensions page: - **Chrome/Edge:** `chrome://extensions` or `edge://extensions` - **Firefox:** `about:addons` - **Safari:** Preferences → Extensions 2. Disable extensions one by one, especially: - Ad blockers (AdBlock, uBlock Origin, etc.) - Privacy extensions (Privacy Badger, Ghostery, etc.) - VPN or proxy extensions - Security extensions - Request interceptors or modifiers 3. Test the checkout after disabling each extension 4. Once you identify the problematic extension, keep it disabled for your domain or whitelist your website #### For Developers: Communicating with Users If your customers report this issue, provide them with these troubleshooting steps: 1. Try testing in incognito/private browsing mode 2. If it works there, ask them to temporarily disable browser extensions 3. Common extensions that cause issues: ad blockers, VPN extensions, privacy tools **Note:** This is not an issue with Glomo's checkout or your integration - it's a side effect of browser extensions modifying network behavior. The checkout will work correctly once interfering extensions are identified and configured properly. --- ### Content Blocked by Content Security Policy (CSP) **Symptom:** When attempting to load the Glomo Checkout, you see a message stating "This content is blocked. Contact the site owner to fix the issue." The checkout iframe or SDK scripts fail to load. **Cause:** Your website has Content Security Policy (CSP) headers configured that are blocking the Glomo Checkout SDK from loading its scripts, iframe, and making API calls. CSP is a security feature that restricts which external resources can be loaded on your page. #### How to Detect This Issue 1. Open your browser's Developer Tools (F12 or Right-click → Inspect) 2. Go to the **Console** tab 3. Look for errors mentioning "Content Security Policy" or "CSP", such as: ``` Refused to load the script 'https://unified-sdk.glomopay.com/...' because it violates the following Content Security Policy directive... ``` ``` Refused to frame 'https://unified-sdk.glomopay.com/' because it violates the following Content Security Policy directive... ``` 4. You can also check the **Network** tab → click on your page's main document → **Response Headers** → look for `Content-Security-Policy` header #### Solution Update your CSP configuration to allow the Glomo Checkout SDK domains. You need to add the following domains to your CSP directives: | Domain | Purpose | | --- | --- | | `https://unified-sdk.glomopay.com` | SDK scripts, iframe, and source maps | | `https://*.glomopay.com` | Checkout modal and API calls | Add these domains to the following CSP directives: - **`script-src`**: Allows loading the SDK JavaScript - **`frame-src`**: Allows embedding the checkout iframe - **`connect-src`**: Allows API calls to Glomo services The examples below do **not** include `'unsafe-inline'` in `script-src`. The SDK is loaded as an external ES module, so the origin above is sufficient on its own — and keeping `'unsafe-inline'` in `script-src` is commonly raised as a finding in security reviews, because it permits any inline script on your page to execute. This means your own integration code must not sit in an inline ` ``` - **Keep it inline and authorise it with a nonce**, if your server already generates one per request. The same random value goes in the header and on the tag: ```html ``` The nonce must be regenerated on every response. A hash (`'sha256-...'`) also works, but breaks the moment you edit the snippet, so it is harder to keep correct. **How to implement this depends on your setup:**
Apache (.htaccess) ```apache Header set Content-Security-Policy "default-src 'self'; script-src 'self' https://unified-sdk.glomopay.com; frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; style-src 'self';" ```
Nginx ```nginx add_header Content-Security-Policy "default-src 'self'; script-src 'self' https://unified-sdk.glomopay.com; frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; style-src 'self';"; ```
Node.js/Express ```javascript app.use((req, res, next) => { res.setHeader( 'Content-Security-Policy', "default-src 'self'; " + "script-src 'self' https://unified-sdk.glomopay.com; " + "frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " + "connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " + "style-src 'self';", ); next(); }); ```
Next.js (next.config.js) ```javascript module.exports = { async headers() { return [ { source: '/(.*)', headers: [ { key: 'Content-Security-Policy', value: "default-src 'self'; script-src 'self' https://unified-sdk.glomopay.com; frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; style-src 'self';", }, ], }, ]; }, }; ```
ASP.NET Core (C#) Add this middleware in `Program.cs` (or `Startup.cs`): ```csharp app.Use(async (context, next) => { context.Response.Headers.Append("Content-Security-Policy", "default-src 'self'; " + "script-src 'self' https://unified-sdk.glomopay.com; " + "frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " + "connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " + "style-src 'self';"); await next(); }); ``` For IIS, you can add these headers in `web.config`: ```xml ```
Django (Python) Using `django-csp` middleware: ```python # settings.py CSP_DEFAULT_SRC = ("'self'",) CSP_SCRIPT_SRC = ("'self'", "https://unified-sdk.glomopay.com") CSP_FRAME_SRC = ("'self'", "https://unified-sdk.glomopay.com", "https://*.glomopay.com") CSP_CONNECT_SRC = ("'self'", "https://unified-sdk.glomopay.com", "https://*.glomopay.com") CSP_STYLE_SRC = ("'self'",) ``` Or using custom middleware: ```python class CSPMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) response['Content-Security-Policy'] = ( "default-src 'self'; " "script-src 'self' https://unified-sdk.glomopay.com; " "frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " "connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; " "style-src 'self';" ) return response ```
Ruby on Rails Using `secure_headers` gem: ```ruby # config/initializers/secure_headers.rb SecureHeaders::Configuration.default do |config| config.csp = { default_src: %w('self'), script_src: %w('self' https://unified-sdk.glomopay.com), frame_src: %w('self' https://unified-sdk.glomopay.com https://*.glomopay.com), connect_src: %w('self' https://unified-sdk.glomopay.com https://*.glomopay.com), style_src: %w('self') } end ``` Or using custom middleware: ```ruby # config/application.rb config.middleware.insert_before 0, Rack::Headers do |headers| headers['Content-Security-Policy'] = "default-src 'self'; script-src 'self' https://unified-sdk.glomopay.com; frame-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; connect-src 'self' https://unified-sdk.glomopay.com https://*.glomopay.com; style-src 'self';" end ```
#### Verifying the Fix After deploying the CSP changes: 1. **Clear your browser cache** (or use incognito/private mode) 2. Reload your website 3. Open Developer Tools → Console tab 4. Verify there are no CSP-related errors 5. Check Network tab → Response Headers to confirm your CSP now includes the Glomo domains 6. Test the checkout flow again **Note:** If you have an existing CSP policy, you only need to add the Glomo domains to your existing directives rather than replacing your entire policy. Make sure to merge these domains with your current configuration. ### Camera, Microphone or Location Blocked by Permissions Policy **Symptom:** During the identity verification (KYC) steps of a payment session, the browser never asks the customer for camera, microphone or location access, and the verification step can't use them. **Cause:** Your website sends a `Permissions-Policy` header that doesn't allow the Glomo checkout frame to use these features. The Unified SDK runs on your page and opens Glomo's checkout in an iframe. A browser lets an iframe use the camera, microphone or location only when your page's `Permissions-Policy` allows that iframe's origin. Any frame the checkout opens inside it is blocked too. If your page doesn't send a `Permissions-Policy` header, you don't need to do anything: the SDK already grants these features to the checkout frame. #### How to Detect This Issue 1. Open your browser's Developer Tools (F12 or Right-click → Inspect) 2. Go to the **Console** tab 3. Look for errors such as: ``` [Violation] Permissions policy violation: camera is not allowed in this document. ``` ``` [Violation] Permissions policy violation: geolocation is not allowed in this document. ``` 4. You can also check the **Network** tab → click on your page's main document → **Response Headers** → look for a `Permissions-Policy` header #### Solution Allow the Glomo frame for `camera`, `microphone` and `geolocation` in your `Permissions-Policy` header: | Integration | Origin to allow | | --- | --- | | Payment session (Unified SDK) | `https://payment-session-handler.glomopay.com` | | Standard and LRS checkout (orders) | None, these flows don't use these features | Only the frame that opens on your page needs to be listed. You don't need to add `https://unified-sdk.glomopay.com`: the SDK script runs as part of your page, so it isn't a separate frame. Frames that Glomo opens inside its own checkout get their access from Glomo. ``` Permissions-Policy: camera=(self "https://payment-session-handler.glomopay.com"), microphone=(self "https://payment-session-handler.glomopay.com"), geolocation=(self "https://payment-session-handler.glomopay.com") ``` A feature set to an empty list, such as `microphone=()`, is blocked for every frame, including Glomo's. Keep the rest of your policy as it is and add the Glomo origin only to these three features. **How to implement this depends on your setup:**
Apache (.htaccess) ```apache Header set Permissions-Policy "camera=(self \"https://payment-session-handler.glomopay.com\"), microphone=(self \"https://payment-session-handler.glomopay.com\"), geolocation=(self \"https://payment-session-handler.glomopay.com\")" ```
Nginx ```nginx add_header Permissions-Policy 'camera=(self "https://payment-session-handler.glomopay.com"), microphone=(self "https://payment-session-handler.glomopay.com"), geolocation=(self "https://payment-session-handler.glomopay.com")'; ```
Express.js (Node.js) ```javascript app.use((req, res, next) => { res.setHeader( 'Permissions-Policy', 'camera=(self "https://payment-session-handler.glomopay.com"), ' + 'microphone=(self "https://payment-session-handler.glomopay.com"), ' + 'geolocation=(self "https://payment-session-handler.glomopay.com")', ); next(); }); ```
#### Verifying the Fix 1. Deploy the header change and reload your page in a new incognito/private window 2. Check Network tab → Response Headers to confirm `Permissions-Policy` lists `https://payment-session-handler.glomopay.com` for `camera`, `microphone` and `geolocation` 3. Send only one `Permissions-Policy` header. If your server or CDN adds a second one, the browser may apply a different value than you expect. 4. Start a payment session, reach the verification step, and confirm the browser asks for camera and location access 5. Open Developer Tools → Console tab and verify there are no permissions policy violations --- Source: https://docs.glomo.one/payin/custom-fields Section: Payin # Custom Fields Custom fields allow you to capture and track business-specific reference data - such as a policy number, application ID, or customer reference - alongside every payment, subscription, or order on Glomo. Once configured, these fields appear during creation flows on the dashboard and in your reports, making it easy to reconcile transactions against your internal records. ## How it works Custom fields are configured by your account manager on the Glomo admin side. Once enabled for your account, they appear as additional input fields during: - Payment Link creation - Subscription creation - Order creation via API Values you enter are stored against the transaction and appear as columns in your Payment Report and Subscription Report downloads. ## Creating a payment link, subscription, or order with custom fields When custom fields are enabled on your account, you will see them as labeled input fields in the creation form. Fill in the relevant value - for example, entering the policy number against a subscription for a life insurance customer - and proceed as normal. The value is saved automatically with the transaction. ## Passing custom fields via API If you are creating payment links, subscriptions, or orders via the API, custom field values can be passed in the `notes` object. The key should match the field name configured on your account. ```json { "notes": { "policy_number": "POL-00123456", "application_id": "APP-987654" } } ``` Values passed via `notes` map automatically to the corresponding custom fields and appear in your reports the same way as values entered through the dashboard. ## Viewing custom fields in reports Custom field values appear as additional columns in the following reports: - **Payment Report** - one column per configured custom field, populated for each transaction where a value was provided. - **Subscription Report** - same as above, scoped to subscription transactions. Rows where no value was provided for a custom field will show an empty cell for that column. ## Retrieving custom field values via API When you fetch a payment using `GET /v1/payment/:id`, custom field values are returned under the `notes` key. ```json { "id": "payt_E602dMzgjpDC", "status": "success", "notes": { "policy_number": "POL-00123456" } } ``` Only fields configured on your account are included. If no custom fields are configured, `notes` will be an empty object. ## Things to keep in mind - Custom fields are configured at the account level by Glomo - they cannot be added or modified self-serve from the merchant dashboard. - Values passed via API in `notes` must match the exact field name configured on your account - unrecognised keys will not appear in reports. - Custom fields apply to new transactions from the point of configuration - they are not backfilled on historical transactions. --- Source: https://docs.glomo.one/payin/customer Section: Payin # Customer A customer is an individual or a business entity from whom you wish to collect payments. On Glomo, whether you are using checkout or a payment link, the customer information is essential. You can create a customer by submitting basic details such as name, contact, and address. After creation, the customer details can be utilised across all of Glomo’s features. --- ## Customer Creation Below are the steps that are to create a new customer :- 1. **Login** to your Glomo dashboard 2. Navigate to the **Customer Tab** under Payin 3. Click on the **Create New Customer** button 4. **Enter the customer details**, such as name, email and address 5. **Review the information** and click on ‘create new customer’ button --- Source: https://docs.glomo.one/payin/disputes Section: Payin # Disputes A dispute occurs when a cardholder questions a transaction with their issuing bank and requests a reversal of the payment. When a dispute is raised, Glomo notifies you and debits the disputed amount along with a dispute fee from your Glomo balance. You have a defined window to respond with evidence before the deadline passes. Glomo uses a single Disputes & RFIs section in your dashboard that shows all disputes raised against your transactions, regardless of payment method. [Image: Disputes dashboard] ## Dispute States Below are the different states a dispute can have: | State | Description | | --- | --- | | Action Required | A dispute has been raised and you have been notified. The response window is open and evidence can be submitted. | | Under Review | You have submitted evidence for the dispute. Glomo is reviewing your submission along with the issuing bank. | | Won | The dispute has been resolved in your favour. The disputed amount has been reversed to your Glomo balance. | | Lost | The dispute has been resolved in the cardholder's or partner's favour. The disputed amount is retained. | | Accepted | You have explicitly accepted the dispute without contesting it. | | Expired | The response window elapsed without a submission. The dispute is treated as lost and the disputed amount is retained. | --- ## Dispute Reason Codes Every dispute is assigned a reason code that explains why it was raised. The table below lists all supported reason codes and what they mean. | Reason Code | Description | | --- | --- | | DISPUTE_FRAUD_NOT_AUTHORISED | The cardholder claims they did not authorise this transaction. To contest, provide 3DS authentication confirmation, signed receipt, or any evidence confirming the cardholder initiated the payment. | | DISPUTE_ITEM_NOT_RECEIVED | The cardholder claims they did not receive the goods or services paid for. To contest, provide proof of delivery, fulfilment confirmation, or evidence that the service was rendered. | | DISPUTE_NOT_AS_DESCRIBED | The cardholder claims what they received was significantly different from what was described at purchase. To contest, provide the original product or service description, terms agreed by the customer, and evidence of what was delivered. | | DISPUTE_CREDIT_NOT_PROCESSED | The cardholder claims a refund owed to them was not processed. To contest, provide evidence that the refund was issued or that no refund was owed under your refund policy. | | DISPUTE_DUPLICATE_CHARGE | The cardholder claims they were charged more than once for the same transaction. To contest, provide evidence that each charge corresponds to a distinct transaction or separate service delivery. | | DISPUTE_CANCELLED_RECURRING | The cardholder claims they cancelled a recurring agreement but were charged after cancellation. To contest, provide evidence that the subscription was active at the time of charge and that no valid cancellation was received. | | DISPUTE_INCORRECT_AMOUNT | The cardholder was charged a different amount from what they agreed to pay. To contest, provide the original authorised amount and evidence that the amount charged matches what was agreed. | | DISPUTE_RETRIEVAL_REQUEST | The issuing bank has requested documentation for this transaction before deciding whether to raise a formal dispute. This is not yet a dispute. Provide a copy of the transaction receipt and any supporting documentation promptly. | | DISPUTE_GENERAL | A dispute has been raised against this transaction. Provide any evidence that demonstrates the transaction was valid, authorised, and fulfilled as agreed. | --- ## Financial Impact When a dispute is created, Glomo immediately debits two amounts from your Glomo balance: - **Disputed amount** — the value of the transaction being disputed. - **Dispute fee** — a flat fee charged per dispute, regardless of outcome. Fees are charged for representation and are non-refundable regardless of the outcome. ### Usage Notes - Dispute fees are non-refundable regardless of whether you win or lose the dispute. - If you win, the disputed amount is reversed and credited back to your Glomo balance. The dispute fee is not returned. - If you lose, accept, or the dispute expires, both the disputed amount and dispute fee are retained. - **Insufficient balance** — if your balance is insufficient to cover the full debit at the time the dispute is created, Glomo will block whatever funds are available and record the shortfall. The dispute will still be created and you will still be able to respond. --- ## Viewing Data in the Settlement Report Dispute debits and reversals also appear in your existing Settlement Breakup Report so you can reconcile them alongside your regular settlement activity. | Entry Type | source_type | fee_type | Amount | | --- | --- | --- | --- | | Dispute debit | dispute | dispute_fee | Disputed amount + dispute fee | | Dispute reversal | dispute | dispute_reversal | Disputed amount only (credit) | - Dispute debit entries appear on the date the dispute was created. - Reversal entries appear on the date the outcome is recorded. - You can filter the Settlement Breakup Report by `source_type = dispute` to view only dispute-related entries. --- Source: https://docs.glomo.one/payin/fee-models Section: Payin # Fee Models Glomo offers two flexible pricing models to suit your business needs. You can either absorb the payment fees yourself or pass them on to your customers. ## Merchant fee bearer (Default): In this model, the merchant absorbs Glomo’s transaction fees. The merchant's account is credited with the net amount after fees are deducted from the payment.

Example: If a customer pays $100 and the fee is 2%, Glomo deducts $2, and the merchant receives $98. ## Customer fee bearer: In this model, the customer pays Glomo’s fee as a convenience charge added on top of the payment amount. The merchant receives the full payment amount as specified.

Example: If the merchant sets the payment amount at $100 and the fee is 2%, Glomo charges the customer $102 and the merchant receives the full $100. ## Comparison | Line Items | Merchant fee bearer | Customer fee bearer | |---|---|---| | Payment Amount | 100 USD | 100 USD | | Glomo's transaction fee of 2% | 2 USD | 2 USD | | Amount collected from customer | 100 USD | 102 USD | | Amount credited to merchant balance | 98 USD | 100 USD | ## How the Customer Fee Bearer Model Works at Checkout 1. The customer selects an item on your website/Payment Link and **clicks the pay** button. 2. The checkout pop-up page is displayed. The customer **enters the payment method details** to complete the payment. 3. The **Fees Breakup page containing the Convenience Fee** appears, and the customer clicks Continue and pay. 4. The customer is **redirected to the bank page** with the total amount, including the Convenience Fee.

[Image: info icon]
To activate the Customer Fee Bearer model on your account, please reach out to us at support@glomopay.com .
--- Source: https://docs.glomo.one/payin/order Section: Payin # Order Orders play a vital role in processing payments through checkout. When a customer clicks the pay button on your website, you generate an order ID containing the transaction amount and currency from your backend server, which you then pass to Glomo checkout from your frontend. This order ID secures the payment, preventing any tampering with the order amount. As a result, order integration is essential for utilizing Glomo checkout. To proceed with the Glomo checkout integration on your site, ensure that your server is integrated with the Orders API first. --- ## Order States Below are the states an Order ID can have :- | State | Description | | --- | --- | | Created | An order created will stay in this state until a payment is attempted on it. | | Attempted | Order remains in this state until a successful payment is done. | | Success | After a payment is authorised, the order moves to a paid state. This is a terminal state and no subsequent payment attempts will be allowed. | | Expired | Order has expired without a payment attempt being made or a successful payment being created. | --- ## Order - Payment Status Mapping The following table shows the mapping between an order and a payment across all possible states :- | State | Payment | Description | | --- | --- | --- | | Created | - | An order has been created but payment is yet to be tried. | | Attempted | [In progress, Failed] | Payment has been attempted but is not yet successful. | | Success | [Success, Refunded] | Payment was successful, which may be refunded later. | | Expired | Created, Failed | Order has expired without a successful payment or no payment attempt was made. | --- Source: https://docs.glomo.one/payin/payment Section: Payin # Payment After your Glomo account is activated, you can begin accepting live payments. Each payment attempt made by a customer is recorded as a payment entity, representing their effort to complete the transaction. --- ## Payment States Below are the states a payment can have :- | State | Description | | --- | --- | | In Progress | This is the initial state after payment creation, indicating that the payment has been initiated but not yet completed. | | Success | The payment has been successfully completed by the customer. | | Action required | Additional information is needed to process the payment. | | Failed | The payment could not be processed successfully. | --- ## Payment Life Cycle An overview of the payment lifecycle process :- [Image: Payment Life Cycle] --- ## Error Codes Certain failures return an error code, a concise identifier accompanied by a short message. These codes make it simple to detect and handle issues, such as payment declines, within your integration. Refer to this Glomo error code reference for code meanings and suggested remediation steps. | Error Code | Description | | --- | --- | | PAYMENT_DECLINED | The payment attempt was declined. This could be due to issuer rejection, risk controls, account restrictions or technical issue at bank end. Ask the customer to contact their bank or try a different method. | | INVALID_CARD_NUMBER | The card number entered is invalid. This may be due to an incorrect number, unsupported card format, or a failed checksum validation. | | CARD_EXPIRED | The card has expired and can no longer be used for transactions. The customer must provide a valid, non-expired card. | | INVALID_CARD | The card is not valid for processing. This may occur due to restrictions such as card being blocked, canceled, not enabled for e-commerce, or not supported by the payment processor. | | INVALID_CARD_CVV | The security code (CVV) provided is incorrect or invalid. The customer should verify and re-enter the correct code from their card. | | INVALID_CARD_EXPIRY_DATE | The card expiration date provided is invalid or not formatted correctly. Ensure both the month and year are entered accurately. | | CARD_NOT_SUPPORTED | The card is not supported for the transaction. This may be due to an unsupported card type, currency combination, or issuer restriction. | | CARD_LIMIT_EXCEEDED | The transaction amount exceeds the card's permitted spending limit. The customer should contact their bank or use an alternate payment method. | | INVALID_PHONE_NUMBER | The phone number provided is missing, malformed, or fails validation checks. Ensure the number is entered in the correct international format. | | INVALID_EMAIL | The email address entered is invalid or improperly formatted. A valid email is required for the transaction or verification process. | | INVALID_OTP | The One-Time Password (OTP) entered is incorrect or expired. The customer should retry or request a new OTP. | | INVALID_PIN | The PIN entered is incorrect or not accepted by the card issuer. This may occur for debit or prepaid card transactions requiring PIN verification. | | OTP_LIMIT_EXCEEDED | Too many incorrect OTP attempts have been made. The customer must wait before attempting again or use an alternate method. | | DECLINED_DUE_TO_RISK | The transaction was flagged and declined by the system's fraud or risk engine. This may be due to suspicious behavior, geolocation, velocity checks, or internal rules. | | DECLINED_BY_ISSUING_BANK | The card issuer declined the transaction. Common reasons include insufficient funds, invalid card status, or restrictions imposed by the bank. | | INSUFFICIENT_BALANCE | The account linked does not have enough funds to complete the transaction. | | 3DS_AUTHENTICATION_FAILED | The 3D Secure authentication failed. The customer should verify their identity with their bank or try again. | | CARD_DISABLED_FOR_ONLINE_PAYMENT | The card is disabled for online payments. The customer should contact their bank to enable online transactions or use a different payment method. | | LOGIN_FAILED | Authentication failed. The customer's credentials may be incorrect or expired. Ask them to re-enter or reset their login details. | | REMITTANCE_NOT_COMPLIANT | The transaction was blocked by compliance validation at banks end. Please verify that customer details and purpose of remittance are valid and retry or ask the customer to contact their bank. | | LRS_LIMIT_EXCEEDED | The transaction amount exceeds the permissible limit for remittance. The customer should reduce the amount or contact their bank. | | PAN_MISMATCH | The PAN does not match the bank's records for this account. If this is a joint account, the PAN should match the account holder details maintained by the bank. Ask the customer to verify the PAN and retry. | | CURRENT_ACCOUNT_NOT_SUPPORTED | Customer's account is a current account. LRS remittance only supports resident savings accounts. Ask the customer to use a savings account, or to retry with a different account they hold with the same bank. | | NRI_ACCOUNT_NOT_SUPPORTED | Customer holds an NRI account (NRE / NRO). The Liberalised Remittance Scheme (LRS) is a regulation for Indian residents, NRIs cannot remit funds under this product. | | ACCOUNT_NOT_FOUND | No active or valid account was found for this customer. Ask them to verify account details or use a different account. | | ACCOUNT_NOT_ELIGIBLE | The account is not eligible for remittance under the LRS purpose code (e.g. NRE, NRO, or minor account). Ask the customer to use a valid resident account. | | INVALID_REMITTANCE_AMOUNT | The entered amount is invalid or exceeds permitted limits. Please verify and re-enter the correct amount. | | ACCOUNT_INACTIVE | No active or valid account was found for this customer. Ask them to verify account details or use a different account. | | INCOMPLETE_KYC | The customer's bank KYC is incomplete or due for re-KYC. Ask the customer to complete the required KYC formalities before retrying. | | ACCOUNT_VINTAGE_FAILED | The customer's account is less than 12 months old and not eligible for remittance. Please use an alternate account. | | INVALID_PAN | The PAN (Permanent Account Number) provided is invalid or improperly formatted. Please verify the PAN details and try again. | | INVALID_ACCOUNT_NUMBER | The account number provided is invalid or does not exist. Please verify the account details and try again. | | INVALID_CUSTOMER_NAME | The customer name provided is invalid or improperly formatted. Please verify the name details and try again. | | FAILED_TO_SEND_OTP | We were unable to send the OTP to your mobile number. The Customer should and try again with correct details | | FAILED_TO_OPEN_DOWNSTREAM_2FA_REDIRECT_URL | We encountered issue at downstream to redirect user to 2FA, The user should try again | | TWO_FA_FAILED | Two-factor authentication failed. Please verify your credentials and try again. If the problem continues, contact support. | | ORDER_CREATION_FAILED_AT_DOWNSTREAM | We encountered an issue while processing your transaction. Please try again in a few moments or contact support if the problem persists. | | USER_DETAILS_MISMATCH_AT_BANK_END | The details provided do not match your bank records. Customer should provide correct details and try again | | PAYMENT_NOT_COMPLETED_BY_USER | Payment session timed out while waiting for bank verification or customer action. Please ask the customer to retry the transaction or use an alternate payment method. | | OTP_TIMEOUT | The OTP session has timed out. The customer should request a new OTP and try again. | | ACCOUNT_LOCKED | The transaction failed because the customer's online banking account is locked by their bank. This can typically be confirmed when the customer attempts to log in to their bank's web or mobile application. The customer must unlock their account before retrying. | | LOGGED_IN_ELSEWHERE | The bank rejected the payment because the customer was simultaneously logged into their account on another device. This restriction prevents concurrent logins during transaction authentication. | | FUNCTIONALITY_RESTRICTED | The bank has applied restrictions on the customer's account, which prevent certain types of transactions. These restrictions can usually be resolved by the customer through the bank's online portal. | | BENEFICIARY_NOT_FOUND | The designated recipient for the payment is no longer registered as a beneficiary on the customer's account. The customer must re-add or verify the beneficiary with their bank before payment initiation | | INACTIVE_PAYMENT_SOURCE | The customer's bank account is connected but marked as inactive for payment processing. This requires reactivation or intervention by customer support before transactions can proceed. | | BENEFICIARY_DAILY_LIMIT_EXCEEDED | The customer has exceeded the daily limit on adding new beneficiaries as set by their bank. Transactions to new beneficiaries cannot be initiated until the limit resets (usually after 24 hours). | | EXCEEDS_DAILY_LIMIT | The transaction amount exceeds the bank's daily limit for online transfers from the customer's account. No further transfers can be processed until the next day. | | ACCOUNT_SETTINGS_LIMIT_EXCEEDED | The bank blocked the transaction due to account-level settings that restrict payments of this type or amount. The customer must modify their account settings to enable such transactions. | | ONLINE_TRANSFERS_DISABLED | The customer's account is not enabled for online transfers. The bank requires the customer to explicitly activate this functionality before such payments can be processed. | | BANK_FLAGGED_DUPLICATE_TRANSACTION | The bank identified the transaction as a duplicate: multiple payments of the same amount to the same recipient within a 5-minute window. The customer must either wait or change the transaction details. | | UNSUPPORTED_ACCOUNT_TYPE | The account selected by the customer does not support payment initiation (e.g., fixed deposit, loan, or restricted savings accounts). The customer must use a supported account type for payments. | | PAYMENT_NOT_FOUND | Payment not found | | PAYIN_NOT_FOUND | Glomo could not match the incoming bank transfer to an order or a payment link. The money arrived, but it is not connected to a payin. To resolve it, match the payment to an open order or payment link. See [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required). | | PAYIN_AMOUNT_MISMATCH | Glomo matched the incoming bank transfer to a payin, but the amount that arrived is different from the amount that the payin expects. To resolve it, match the payment to an order or payment link for the amount that arrived. See [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required). | | DOCUMENT_UPLOAD_FAILED | Payment failed because the required document could not be uploaded. Please ask the customer to retry the upload and payment | | CARD_NOT_SUPPORTED_ON_3DS | The card's issuer/BIN does not support 3-D Secure authentication required by this merchant flow. Customer should use another card or contact their bank to enable 3DS. | | CLOSED_CARD_OR_ACCOUNT | The card or account has been closed and is no longer valid. The customer must provide an alternative active card. | | PAYMENT_RESTRICTED_ON_CARD | The payment was restricted by the issuer for this card, typically observed with subscription or recurring payments. The customer may need to contact their bank or provide another card. | | PAYMENT_CANCELLED_BY_USER | The payment was cancelled by the user before completion. | | THREE_DS_AUTHENTICATION_FAILED | The 3D Secure authentication failed. The customer should verify their identity with their bank or try again. | --- Source: https://docs.glomo.one/payin/payment-link Section: Payin # Payment Link Glomo enables you to create and share payment links with your customers using the dashboard or APIs to collect payments. You can add details such as the amount, set an expiry date, and upload compliance documents to generate the payment link. Once created, the link can be shared with customers through your preferred communication channels; email sharing is provided by default. The payment link is hosted by Glomo and is only accessible after 1FA authentication to the customer. The link will be accessible to the customer until it expires and you will be notified once the customer completes the payment. --- ## Payment Link States A payment link can have the following states: | State | Description | | --- | --- | | Active | The payment link has been created but the end customer has not paid. | | Paid | End customer has fully paid the payment link. | | Expired | The payment link was not paid by the customer and the link has expired. | | Cancelled | The link has been cancelled by the merchant. | --- ## Payment Link Creation Below are the steps that are required to create a payment link :- 1. **Login** to your Glomo dashboard 2. Click on the **Request Payment** button 3. **Enter the customer details** you want to collect money from 4. Enter the **amount** and other **payment information** 5. **Review the information** and click on submit to generate the link. --- Source: https://docs.glomo.one/payin/payment-methods Section: Payin # Payment Methods This page describes the payment methods available during the Checkout flow and how to surface them to customers. ## Overview Payment Methods are the instruments a customer can use to complete a checkout (cards, UPI, wallets, netbanking, bank transfers, etc.). The platform returns available methods based on merchant configuration, currency, country, and payer context. ## Supported methods - [Pay via Bank](https://docs.glomo.one/payin/payment-methods/pay-via-bank) - [Cards](https://docs.glomo.one/payin/payment-methods/cards) - [Bank Transfers](https://docs.glomo.one/payin/payment-methods/bank-transfer) --- Source: https://docs.glomo.one/payin/purpose-codes Section: Payin # Purpose Codes Purpose codes are essential for compliance and are mandatory when sending money across borders. They help categorise the nature of your transactions, ensuring transparency and adherence to regulatory requirements. If you're unsure about selecting the right purpose code for your business needs, our team is here to assist you. Feel free to reach out to us at support@glomopay.com. --- ## Purpose for payins The **Required Documents** column lists the supporting documents you should collect for each purpose code to satisfy compliance and RBI reporting. Refer to the column for the document(s) a given code requires; codes marked `—` have no mandatory document. Documents are attached via the `documents` field on the relevant API request. | Purpose Group Name | Purpose Code | Description | Required Documents | | --- | --- | --- | --- | | Capital Account | P0017 | Receipts on account of Sale of non-produced non-financial assets (Sale of intangible assets like patents, copyrights, trademarks etc., land acquired by government, use of natural resources) - Government | Invoice | | Capital Account | P0019 | Receipts on account of Sale of non-produced non-financial assets (Sale of intangible assets like patents, copyrights, trademarks etc., use of natural resources)-Non-Government | Invoice | | Capital Account | P0028 | Capital transfer receipts (Guarantee payments, Investment Grant given by the government/international organisation, exceptionally large Non-life insurance claims including claims arising out of natural calamity) - Government | Invoice | | Capital Account | P0029 | Capital transfer receipts (Guarantee payments, Investment Grant given by the Non-government, exceptionally large Non-life insurance claims including claims arising out of natural calamity) - Non-Government | Invoice | | Capital Account | P0099 | Other capital receipts not included elsewhere | Invoice | | Foreign Direct Investment | P0003 | Repatriation of Indian Direct investment abroad (by branches & wholly owned subsidiaries and associates) in equity shares | Invoice | | Foreign Direct Investment | P0004 | Repatriation Indian Direct investment abroad (by branches & wholly owned subsidiaries and associates) in debt instruments | Invoice | | Foreign Direct Investment | P0005 | Repatriation of Indian investment abroad in real estate | Invoice | | Foreign Direct Investment | P0006 | Foreign Direct Investment made by overseas Investors in India in equity shares | Invoice | | Foreign Direct Investment | P0007 | Foreign Direct Investment made by overseas Investors in India in debt instruments | Invoice | | Foreign Direct Investment | P0008 | Foreign Direct Investment made by overseas Investors in India in real estate | Invoice | | Foreign Portfolio Investment | P0001 | Repatriation of Indian Portfolio investment abroad in equity capital (shares) | Customer declaration | | Foreign Portfolio Investment | P0002 | Repatriation of Indian Portfolio investment abroad in debt instruments | Invoice | | Foreign Portfolio Investment | P0009 | Foreign Portfolio Investment made by overseas Investors in India in equity shares/units of AIF, MF (mutual funds) etc. | Invoice | | Foreign Portfolio Investment | P0010 | Foreign Portfolio Investment made by overseas Investors in India in debt Instruments | Invoice | | Loans | P0011 | Repayment of loans (short & long term) extended to Non-Residents/ Realization of discounted export bills for exports between two non-residents | Invoice | | Loans | P0012 | Long & medium term loans, with original maturity of above one year, from Non-Residents to India | Invoice | | Loans | P0013 | Short term loans with original maturity upto one year from Non-Residents to India (Short-term Trade Credit) | Invoice | | Banking Capital | P0014 | Receipts o/a Non-Resident deposits (FDs, savings account) | Invoice | | Banking Capital | P0015 | Loans & overdrafts taken by IBUs on their own account. (Any amount of loan credited to the NOSTRO account which may not be swapped into Rupees should also be reported) overnight borrowing, placement of deposit with IBUs | Invoice | | Banking Capital | P0016 | Purchase of a foreign currency against another currency | Invoice | | Banking Capital | P0020 | Receipts on account of margin payments, premium payment and settlement amount etc. under Financial derivative transactions | Invoice | | Financial Derivatives and Others | P0021 | Receipts on account of sale of share under Employee stock option | Invoice | | Financial Derivatives and Others | P0022 | Receipts on account of other investment in ADRs/GDRs | Invoice | | External Assistance | P0024 | External Assistance received by India e.g. Multilateral and bilateral loans received by Govt. of India under agreements with other govt. / international institutions | Invoice | | External Assistance | P0025 | Repayments received on account of External Assistance extended by India | Invoice | | Merchandise exports between resident and non-resident | P0101 | Value of export bills negotiated / purchased/discounted etc. (covered under GR/PP/SOFTEX/EC copy of shipping bills etc.) - Other than Nepal and Bhutan | Invoice | | Merchandise exports between resident and non-resident | P0102 | Realisation of export bills (in respect of goods) sent on collection (full invoice value) - Other than Nepal and Bhutan | Invoice | | Merchandise exports between resident and non-resident | P0103 | Advance receipts against export contracts, which will be covered later by GR/PP/SOFTEX/SDF - other than Nepal and Bhutan | Invoice | | Merchandise exports between resident and non-resident | P0104 | Receipts against export of goods not covered by the GR /PP /SOFTEX /EC copy of shipping bill etc. (under Intermediary/transit trade, i.e., third country export passing through India | Invoice | | Merchandise exports between resident and non-resident | P0105 | Export bills (in respect of goods) sent on collection - other than Nepal and Bhutan | Invoice | | Merchandise exports between resident and non-resident | P0107 | Realisation of NPD export bills (full value of bill to be reported) - other than Nepal and Bhutan | Invoice | | Merchandise exports between resident and non-resident | P0108 | Goods sold under merchanting / Receipt against export leg of merchanting trade | Invoice | | Transport | P0201 | Receipts of surplus freight/passenger fare by Indian shipping companies operating abroad | Invoice | | Transport | P0202 | Receipts on account of operating expenses of Foreign shipping companies operating in India | Invoice | | Transport | P0205 | Receipts on account of operational leasing (with crew) - Shipping companies | Invoice | | Transport | P0207 | Receipts of surplus freight/passenger fare by Indian Airlines companies operating abroad | Invoice | | Transport | P0208 | Receipt on account of operating expenses of Foreign Airlines companies operating in India | Invoice | | Transport | P0211 | Receipt on account of operational leasing (with crew) - Airlines Companies | Invoice | | Transport | P0214 | Receipts on account of other transportation services (stevedoring, demurrage, port handling charges etc.)(Shipping Companies) | Invoice | | Transport | P0215 | Receipts on account of other transportation services (stevedoring, demurrage, port handling charges etc.)(Airlines Companies) | Invoice | | Transport | P0216 | Receipts of freight fare -Shipping companies operating abroad | Invoice | | Transport | P0217 | Receipts of passenger fare by Indian Shipping companies operating abroad | Invoice | | Transport | P0218 | Other receipts by Shipping companies | Invoice | | Transport | P0219 | Receipts of freight fare by Indian Airlines companies operating abroad | Invoice | | Transport | P0220 | Receipts of passenger fare -Airlines | Invoice | | Transport | P0221 | Other receipts by Airlines companies | Invoice | | Transport | P0222 | Receipts on account of freights under other modes of transport (Internal Waterways, Roadways, Railways, Pipeline transports and Others) | Invoice | | Transport | P0223 | Receipts on account of passenger fare under other modes of transport | Invoice | | Transport | P0224 | Postal & Courier services by Air | Invoice | | Travel | P0225 | Postal & Courier services by Sea | Invoice | | Travel | P0226 | Postal & Courier services by others | Invoice | | Travel | P0301 | Purchases towards travel (Includes purchases of foreign TCs, currency notes etc over the counter) | Invoice | | Travel | P0302 | Business travel | Invoice | | Travel | P0304 | Travel for medical treatment including TCs purchased by hospitals | Invoice | | Travel | P0305 | Travel for education including TCs purchased by educational institutions | Invoice | | Travel | P0306 | Other travel receipts | Invoice | | Travel | P0308 | Foreign Currencies/TCs surrendered by returning Indian tourists | Invoice | | Construction Services | P0501 | Receipts on account of services relating to cost of construction of projects in India | Invoice | | Construction Services | P0502 | Receipts on account of construction works carried out abroad by Indian Companies | Invoice | | Insurance and Pension Services | P0601 | Life Insurance premium except term insurance | Invoice | | Insurance and Pension Services | P0602 | Freight insurance - relating to import & export of goods | Invoice | | Insurance and Pension Services | P0603 | Other general insurance premium including reinsurance premium and term life insurance premium | Invoice | | Insurance and Pension Services | P0605 | Auxiliary services including commission on insurance | Invoice | | Insurance and Pension Services | P0607 | Insurance claim Settlement of non-life insurance and life insurance | Invoice | | Insurance and Pension Services | P0608 | Life insurance claim settlements received by residents in India | Invoice | | Insurance and Pension Services | P0609 | Standardised guarantee services | Invoice | | Insurance and Pension Services | P0610 | Premium for pension funds | Invoice | | Insurance and Pension Services | P0611 | Periodic pension entitlements from Indian Pension Fund Companies | Invoice | | Insurance and Pension Services | P0612 | Invoking of standardised guarantees | Invoice | | Financial Services | P0701 | Financial intermediation except investment banking - Bank charges, collection charges, LC charges | Invoice | | Financial Services | P0702 | Investment banking - brokerage, underwriting commission | Invoice | | Financial Services | P0703 | Auxiliary services - charges on operation & regulatory fees, custodial services, depository services | Invoice | | Telecom, Computer & Information Services | P0801 | Hardware consultancy/implementation | Invoice | | Telecom, Computer & Information Services | P0802 | Software consultancy/implementation | Invoice | | Telecom, Computer & Information Services | P0803 | Data base, data processing charges | Invoice | | Telecom, Computer & Information Services | P0804 | Repair and maintenance of computer and software | Invoice | | Telecom, Computer & Information Services | P0805 | News agency services | Invoice | | Telecom, Computer & Information Services | P0806 | Other information services- Subscription to newspapers, periodicals | Invoice | | Telecom, Computer & Information Services | P0807 | Off-site Software Exports | Invoice | | Telecom, Computer & Information Services | P0808 | Telecommunication services including electronic mail services and voice mail services | Invoice | | Telecom, Computer & Information Services | P0809 | Satellite services including space shuttle and rockets | Invoice | | Charges for intellectual property | P0901 | Franchises services | Invoice | | Charges for intellectual property | P0902 | Receipts for use through licensing arrangements of produced originals or prototypes | Invoice | | Other Business Services | P1002 | Trade related services - commission on exports/imports | Invoice | | Other Business Services | P1003 | Operational leasing services (other than financial leasing)without operating crew, including charter hire- Airlines companies | — | | Other Business Services | P1004 | Legal services | — | | Other Business Services | P1005 | Accounting, auditing, book keeping services | — | | Other Business Services | P1006 | Business and management consultancy and public relations services | — | | Other Business Services | P1007 | Advertising, trade fair service | — | | Other Business Services | P1008 | Research & Development services | — | | Other Business Services | P1009 | Architectural services | — | | Other Business Services | P1010 | Agricultural services like protection against insects & disease, increasing of harvest yields, forestry services. | — | | Other Business Services | P1011 | Inward remittance for maintenance of offices in India | — | | Other Business Services | P1013 | Environmental Services | — | | Other Business Services | P1014 | Engineering Services | — | | Other Business Services | P1015 | Tax consulting services | — | | Other Business Services | P1016 | Market research and public opinion polling service | — | | Other Business Services | P1017 | Publishing and printing services | — | | Other Business Services | P1018 | Mining services like on–site processing services analysis of ores etc. | — | | Other Business Services | P1019 | Commission agent services | — | | Other Business Services | P1020 | Wholesale and retailing trade services. | — | | Other Business Services | P1021 | Operational leasing services (other than financial leasing) without operating crew, including charter hire- Shipping companies | — | | Other Business Services | P1022 | Other Technical Services including scientific/space services. | — | | Other Business Services | P1099 | Other services not included elsewhere | — | | Personal, Cultural & Recreational services | P1101 | Audio-visual and related services like Motion picture and video tape production, distribution and projection services. | — | | Personal, Cultural & Recreational services | P1103 | Radio and television production, distribution and transmission services | — | | Personal, Cultural & Recreational services | P1104 | Entertainment services | — | | Personal, Cultural & Recreational services | P1105 | Museums, library and archival services | — | | Personal, Cultural & Recreational services | P1106 | Recreation and sporting activity services | — | | Personal, Cultural & Recreational services | P1107 | Educational services (e.g. fees received for correspondence courses offered to non-resident by Indian institutions) | — | | Personal, Cultural & Recreational services | P1108 | Health Service (Receipts on account of services provided by Indian hospitals, doctors, nurses, paramedical and similar services etc. rendered remotely or onsite) | — | | Govt not included elsewhere (G..n.i.e) | P1201 | Maintenance of foreign embassies in India | Invoice | | Govt not included elsewhere (G..n.i.e) | P1203 | Maintenance of international institutions such as offices of IMF mission, World Bank, UNICEF etc. in India | Invoice | | Secondary Income | P1301 | Inward remittance from Indian non-residents towards family maintenance and savings | Invoice | | Secondary Income | P1302 | Personal gifts and donations | Invoice | | Secondary Income | P1303 | Donations to religious and charitable institutions in India | Invoice | | Secondary Income | P1304 | Grants and donations to governments and charitable institutions established by the governments | Invoice | | Secondary Income | P1306 | Receipts / Refund of taxes | Invoice | | Secondary Income | P1307 | Receipts on account of migrant transfers including Personal Effects | Invoice | | Primary Income | P1401 | Compensation of employees | Invoice | | Primary Income | P1403 | Inward remittance towards interest on loans extended to non-residents (ST/MT/LT loans) | Invoice | | Primary Income | P1405 | Inward remittance towards interest receipts of IBUs on their own account (on investments) | Invoice | | Primary Income | P1408 | Inward remittance of profit by branches of Indian FDI Enterprises (including bank branches) operating abroad | Invoice | | Primary Income | P1409 | Inward remittance of dividends (on equity and investment fund shares) by Indian FDI Enterprises, other than branches, operating Abroad | Invoice | | Primary Income | P1410 | Inward remittance on account of interest payment by Indian FDI enterprises operating abroad to their Parent company in India | Invoice | | Primary Income | P1411 | Inward remittance of interest income on account of Portfolio Investment made abroad by India | Invoice | | Primary Income | P1412 | Inward remittance of dividends on account of Portfolio Investment made abroad by India on equity and investment fund shares | Invoice | | Primary Income | P1499 | Other income receipts | Invoice | | Others | P1501 | Refunds/rebate on account of imports | Invoice | | Others | P1502 | Reversal of wrong entries, refunds of amount remitted for non-imports | Invoice | | Others | P1503 | Remittances (receipts) by residents under international bidding process | Invoice | | Others | P1505 | Deemed Exports (exports between SEZ, EPZs and Domestic Tariff Areas) | Invoice | | Maintenance and repair services n.i.e | P1601 | Receipts on account of maintenance and repair services rendered for Vessels, Ships, Boats, Warships, etc. | Invoice | | Maintenance and repair services n.i.e | P1602 | Receipts of maintenance and repair services rendered for aircrafts, Space shuttles, Rockets, military aircrafts, etc. | Invoice | | Manufacturing services | P1701 | Receipts on account of processing of goods | Invoice | --- Source: https://docs.glomo.one/payin/refund Section: Payin # Refund A refund is the return of money to a customer who is not satisfied with a product or service they have purchased. Refunds use your available Glomo balance and can only be sent back to the customer via the original payment method used in the payment. You can’t send a refund to a different destination, such as another card or bank account. Glomo offers two types of refunds to provide merchants with operational flexibility: - Full Refund: The return of the entire captured amount of a transaction. - Partial Refund: The return of a specific portion of a successful card payment while retaining a remainder for non-refundable costs like cancellation fees or administrative charges. [Image: refund modal] ## Refund States Below are the different states a refund ID can have :- | State | Description | | --- | --- | | In progress | This is the initial state after refund creation, indicating that the refund has been initiated but not yet completed. | | Action Required | Additional information is needed to process the refund. | | Success | Refund has been successfully processed. | | Failed | Refund could not be processed. | --- ## Refund initiation Below are the steps that are required to initiate refund :- 1. **Login** to your Glomo dashboard 2. Navigate to **Refunds** under Payments 3. **Find the payment** you want to refund 4. **Select** full refund or enter a specific amount for a partial refund 5. **Choose the reason** for the refund and upload the refund document 6. **Review the information** and click on the confirm button ### Usage Notes - **Multiple Partial Refunds:** You can initiate multiple partial refunds on a single transaction until the total refundable balance reaches zero. - **Balance Validation:** The system enforces strict protection to ensure you cannot initiate a refund for an amount greater than the remaining refundable balance. - **Independent Tracking:** Every refund, whether full or partial, is assigned its own unique reference identifier and is processed independently. --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs Section: Payin # Resident India Remittance under LRS Under Glomo’s Bharat Connect offering, brokers and investment platforms serving Indian resident individuals can now access a purpose-built payment solution for seamless global investing. Glomo enables effortless collection and outward remittance of funds for investments in global securities, ensuring full compliance with the Liberalised Remittance Scheme (LRS) regulations established by the Reserve Bank of India. The offering includes robust SDKs and APIs, allowing brokers to easily integrate Glomo's solution into their platforms and securely collect funds from investors.
[Image: LRS flow]
[Image: LRS checkout preview] ## Prerequisites Before integrating, ensure you have the following: - Glomo Merchant Account: Active account with API keys. - Customer Details: Name, address, bank details, and PAN. - HTTPS: A secure server endpoint for receiving webhooks. --- # Collection of bank account information As a merchant, you have the option to either collect the required bank account information to initiate an LRS payment yourself or allow Glomo to collect and securely store the information on your behalf. You can control this by passing or omitting the bank account ID in the order API. ## SDK behaviour when invoked with an order with a bank account In this case, Glomo will prefill and display the bank account information to the customer, obtaining consent from the user on the applicable terms and conditions. The bank details are not editable for the user and are displayed to obtain confirmation and consent for the outward remittance. The screen from the SDK is shown below for reference.  [Image: Order with bank account] ## SDK behaviour when invoked with an order without a bank account In this case, Glomo will collect the required bank account information from the customer to complete the outward remittance. The screens from the SDK are shown below for reference.   [Image: Order without bank account] ## SDK behaviour when invoked in a returning journey If the customer is a returning user who has already added a payment account in the past, Glomo will display that bank account as the preferred option for completing the payment. The customer can use the previously used bank account or use a new bank account to initiate the payment.  [Image: SDK behaviour for returning user ] --- ## Order entity The various statuses of the order entity and their description are as given below.  | State | Description | | --- | --- | | Active | An order created will stay in this state until a successful payment is made or it expires. | | Success | After a payment is authorised, the order moves to a paid state. This is a terminal state and no subsequent payment attempts will be allowed. | | Expired | The order has expired without a successful payment being created. --- ## Payment entity The various statuses of the payment entity and their description are as given below.  | State | Description | | --- | --- | | Created | Indicates that the customer has started the payment journey. | | In Progress | Payment request has been sent to the downstream system, and a response is awaited. | | Success | The payment has been successfully processed by the bank. Funds may not be added to balance at this stage.   | | Action Required | Additional information is needed to process the payment. | | Failed | The payment could not be processed successfully. --- Source: https://docs.glomo.one/payin/server-to-server-payments Section: Payin # Accept card payments server-to-server ## Overview Server-to-Server (S2S) integration allows you to collect card details on your platform and process payments through Glomo's infrastructure. This integration is designed for PCI DSS certified merchants who want to maintain control over the payment experience while leveraging Glomo's cross-border payment processing capabilities. ## Prerequisites - **PCI DSS Certification**: You must be PCI DSS certified to collect and transmit card details - **Glomo Account**: Active merchant account - **API Keys**: Secret keys for both sandbox (test) and production (live) environments ## Environment Configuration ### API Endpoint All API requests use the same base URL for both environments: ``` https://api.glomopay.com ``` ### Authentication The secret key in your Authorization header determines the environment: - **Sandbox Key** → Creates orders and payments in test mode - **Production Key** → Creates orders and payments in live mode ``` Authorization: Bearer YOUR_SECRET_KEY ``` ### Getting Your API Keys 1. Navigate to: https://app.glomopay.com/api-keys-and-webhooks/api-keys 2. Use the toggle to switch between Test Mode and Live Mode 3. Reveal / Regenerate the API key For more information on Secret Keys, please refer to [Authentication](https://docs.glomo.one/platform/authentication) --- ## Integration Flow ### Step 1: Before accepting payment, you need to create an order or a subscription in Glomo's system. ### One Time Payment - Orders To learn what an order is, refer to [Orders](https://docs.glomo.one/payin/order). For the full API reference, refer to [Create Order API](https://docs.glomo.one/api-reference/openapi/orders/createorder). ### Subscriptions With `as_presented` subscriptions, subsequent payments are merchant-initiated — no customer action is required. Card details are automatically carried over from the initial payment, so the `card`, `callback_url`, and `method` fields can be omitted. To learn what a subscription is, refer to: [Subscriptions](https://docs.glomo.one/payin/subscriptions). For the full API reference, refer to: [Create a Subscription API](https://docs.glomo.one/api-reference/openapi/subscription/createsubscription). --- ### Step 2: Initiate Payment Once you have the order_id/subscription_id generated from Step 1, submit card details to initiate payment. **Request Body:** ```bash curl -i -X POST \ https://api.glomopay.com/api/v1/payment \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "order_id": "order_68c00b7btsthf", "subscription_id": "sub_5JU9yv0lGSUP", "method": "card", "sequence": "initial", "card": { "holder_name": "John Doe", "number": "4111111111111111", "expiry_month": "09", "expiry_year": "30", "cvv": "123" }, "callback_url": "https://server.yoursite.com/payment/callback", "notes": { "internal_ref": "ref_12345" } }' ``` **Request Body Parameters:** | Parameter | Type | Required | Description | | --- | --- | --- | --- | | order_id | string | Yes* | Order ID. Either `order_id` or `subscription_id` must be provided, but not both. | | subscription_id | string | Yes* | Subscription ID. Either `order_id` or `subscription_id` must be provided, but not both. | | method | string | Yes (initial) | Payment method. Must be `card`. Not required for subsequent payments (defaults to `card`). | | sequence | string | No | Payment sequence: `initial` (default) or `subsequent`. Use `subsequent` for merchant-initiated payments on `as_presented` subscriptions. | | card | object | Yes (initial) | Card details (holder_name, number, expiry_month, expiry_year, cvv). Required for initial payments. Not required for subsequent payments — the card from the last successful payment is reused. | | callback_url | string | Yes (initial) | HTTPS URL for redirect after payment. Required for initial payments. Not required for subsequent payments as there is no customer redirect involved. | | request_id | string | Yes (subsequent) | Idempotency key. Required for subsequent payments. | | amount | integer | Yes (subsequent) | Payment amount in minor units. Required for subsequent subscription payments. Cannot exceed the subscription's `max_amount`. | | currency | string | Yes (subsequent) | Currency code. Must match the subscription's currency for subsequent payments. | | notes | object | No | Additional key-value metadata. | **Response:** ```json { "payment_id": "payt_691eeb9aV79Uk", "status": "pending", "next_steps": [ { "action": "redirect", "payload": { "url": "https://secure.glomopay.com?paymentId=payt_123&authToken=ey...&redirectUrl=encoded_url" } }, { "action": "poll", "payload": { "url": "https://api.glomopay.com/api/v1/payment/payt_691eeb9aV79Uk", "interval_in_ms": 5000 } } ] } ``` --- ### Step 3: Handle Redirect The response contains a redirect URL where the user needs to complete authentication (3DS, OTP, etc.). | Method | Use Case | Implementation | | --- | --- | --- | | New Tab | Web | `window.open(redirectUrl, '_blank')` | | Same Tab | Web | `window.location.href = redirectUrl` | | WebView | Mobile apps | Open URL in native WebView component | --- ### Step 4: Handle Callback After payment processing, Glomo redirects the user back to your `callback_url` with query parameters. **Callback URL Format:** ``` https://server.yoursite.com/payment/callback?order_id=order_XXX&payment_id=payt_XXX&status=success&signature=abc123 ``` **Query Parameters:** | Parameter | Description | Values | | --- | --- | --- | | order_id | The order identifier | order_XXX | | payment_id | The payment identifier | payt_XXX | | status | Payment outcome | success, failed | | signature | HMAC signature for verification | SHA-256 hash | | error | Something went wrong in the payment journey | message | --- ### Step 5: Verify Signature Always verify the signature on your server to ensure the callback is authentic. The callback URL should point to your server, where you can perform this verification. The necessary information for verification will be sent in the query parameters. The response of this API call should ideally be a redirect to your frontend. The signature is the hex HMAC-SHA256 of `order_id|payment_id|status`. Compute it with each of your active secret keys, and accept the callback if any one of them matches. Your active secret keys are every secret key on your account that has not expired. Use a constant-time comparison. The signature may be made with any one of your active secret keys, and it can differ between payments. Don't assume it is your newest key. If you hold more than one active key, checking only one of them can reject a genuine payment. When you revoke a key, or it expires, remove it from your list. A stale key left in the list opens no security hole, but keep the list matching the keys in your dashboard. Each sample loads your active secret keys from a comma-separated `GLOMO_SECRET_KEYS` environment variable. It trims each key, drops empty entries, and stops with an error if no key is left. An empty key must never count as a match: anyone can compute the signature for an empty key, so it would let a forged callback through. **Sample Code:**
JavaScript ```javascript const express = require('express'); const crypto = require('crypto'); const router = express.Router(); // Every active Glomo secret key, comma-separated (store in environment variables) const GLOMO_SECRET_KEYS = (process.env.GLOMO_SECRET_KEYS || '') .split(',') .map((k) => k.trim()) .filter(Boolean); if (GLOMO_SECRET_KEYS.length === 0) throw new Error('GLOMO_SECRET_KEYS is not set'); /** * Check the signature against each active secret key */ function verifySignature(orderId, paymentId, status, signature, secretKeys) { const data = `${orderId}|${paymentId}|${status}`; const received = Buffer.from(signature || ''); return secretKeys.some((secret) => { if (!secret) return false; // an empty key never matches const expected = Buffer.from(crypto.createHmac('sha256', secret).update(data).digest('hex')); return expected.length === received.length && crypto.timingSafeEqual(expected, received); }); } /** * Glomo Payment Callback Handler */ router.get('/payment/callback', (req, res) => { // Extract query parameters const { order_id, payment_id, status, signature } = req.query; // Verify signature if (!verifySignature(order_id, payment_id, status, signature, GLOMO_SECRET_KEYS)) { console.error('Signature verification failed'); return res.redirect(`/payment/error?message=Invalid signature`); } // Signature is valid - proceed based on payment status console.log('Payment verified successfully'); // Redirect based on payment status if (status === 'success') { return res.redirect(`/payment/success?order_id=${order_id}&payment_id=${payment_id}`); } else if (status === 'failed') { return res.redirect(`/payment/failed?order_id=${order_id}`); } else { return res.redirect(`/payment/error?order_id=${order_id}`); } }); module.exports = router; ```
PHP ```php
Ruby ```ruby require 'openssl' # Check the signature against each active secret key def verify_signature(order_id, payment_id, status, signature, secret_keys) data = "#{order_id}|#{payment_id}|#{status}" secret_keys.any? do |secret| next false if secret.to_s.empty? # an empty key never matches OpenSSL.secure_compare(OpenSSL::HMAC.hexdigest('SHA256', secret, data), signature.to_s) end end # Every active Glomo secret key, comma-separated, from your config GLOMO_SECRET_KEYS = ENV.fetch('GLOMO_SECRET_KEYS', '').split(',').map(&:strip).reject(&:empty?) raise 'GLOMO_SECRET_KEYS is not set' if GLOMO_SECRET_KEYS.empty? # Verify signature unless verify_signature(order_id, payment_id, status, signature, GLOMO_SECRET_KEYS) # Signature verification failed end ```
Go ```go import ( "crypto/hmac" "crypto/sha256" "encoding/hex" "errors" "fmt" "log" "os" "strings" ) // loadSecretKeys reads every active Glomo secret key from a comma-separated value func loadSecretKeys(value string) ([]string, error) { var keys []string for _, key := range strings.Split(value, ",") { key = strings.TrimSpace(key) if key != "" { keys = append(keys, key) } } if len(keys) == 0 { return nil, errors.New("GLOMO_SECRET_KEYS is not set") } return keys, nil } // verifySignature checks the signature against each active secret key func verifySignature(orderID, paymentID, status, signature string, secretKeys []string) bool { data := fmt.Sprintf("%s|%s|%s", orderID, paymentID, status) for _, secret := range secretKeys { if secret == "" { continue // an empty key never matches } h := hmac.New(sha256.New, []byte(secret)) h.Write([]byte(data)) expected := hex.EncodeToString(h.Sum(nil)) if hmac.Equal([]byte(expected), []byte(signature)) { return true } } return false } // Every active Glomo secret key, comma-separated, from your config glomoSecretKeys, err := loadSecretKeys(os.Getenv("GLOMO_SECRET_KEYS")) if err != nil { log.Fatal(err) } // Verify signature if !verifySignature(orderID, paymentID, status, signature, glomoSecretKeys) { // Signature verification failed } ```
Java ```java import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.ArrayList; import java.util.List; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; // Every active Glomo secret key, comma-separated, from your config private static final List GLOMO_SECRET_KEYS = loadSecretKeys(System.getenv("GLOMO_SECRET_KEYS")); public static List loadSecretKeys(String value) { List keys = new ArrayList<>(); if (value != null) { for (String key : value.split(",")) { if (!key.trim().isEmpty()) keys.add(key.trim()); } } if (keys.isEmpty()) throw new IllegalStateException("GLOMO_SECRET_KEYS is not set"); return keys; } // Call as verifySignature(orderId, paymentId, status, signature, GLOMO_SECRET_KEYS) public static boolean verifySignature(String orderId, String paymentId, String status, String signature, List secretKeys) { if (signature == null) return false; try { byte[] data = (orderId + "|" + paymentId + "|" + status).getBytes(StandardCharsets.UTF_8); byte[] received = signature.getBytes(StandardCharsets.UTF_8); for (String secret : secretKeys) { if (secret == null || secret.isEmpty()) continue; // an empty key never matches Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256")); StringBuilder hex = new StringBuilder(); for (byte b : mac.doFinal(data)) hex.append(String.format("%02x", b)); if (MessageDigest.isEqual(hex.toString().getBytes(StandardCharsets.UTF_8), received)) { return true; } } return false; } catch (Exception e) { return false; } } ```
--- ### Step 6: Handle Webhooks Webhooks deliver server-to-server notifications about payment events directly to your backend. For complete webhook implementation details: [Webhooks Documentation](https://docs.glomo.one/platform/webhooks) --- ## Testing ### Test Cards Use these cards in sandbox mode to simulate different scenarios: [Test Card Details](https://docs.glomo.one/payin/payment-methods/cards#test-card-details) --- For technical support, contact your integration manager or reach out via the merchant dashboard. --- Source: https://docs.glomo.one/payin/subscriptions Section: Payin # Subscriptions Glomo Subscriptions enable merchants to automate recurring billing, providing a seamless experience for both businesses and customers. Businesses can create and manage subscriptions directly from the Glomo dashboard. Once a subscription is made, Glomo handles customer billing, payment notices, status tracking, and updates to subscription state. ## Key Features: - **Automated Billing:** Once a subscription is set up, Glomo automatically handles recurring charges, reducing manual intervention and ensuring timely payments. - **Seamless Pre-Authorization:** Customers can pre-authorize their subscription, confirming their payment method in advance so the first scheduled charge happens smoothly. - **Flexible Billing Models:** Support for various billing frequencies and amounts, accommodating diverse business needs. - **Customer-Friendly Checkout:** A streamlined checkout process that allows customers to easily subscribe and manage their payment methods. - **Comprehensive Subscription Management:** Tools to pause, resume, or cancel subscriptions, providing full control over the subscription lifecycle. - **Real-Time Notifications:** Instant alerts on payment activities and subscription status changes, keeping you informed at every step. > **Note:** To activate the Subscriptions on your account, please reach out to us at [support@glomopay.com](mailto:support@glomopay.com). --- Source: https://docs.glomo.one/payin/checkout/declaration-collection Section: Payin # Overview Glomo supports **declaration collection** during card payment checkout for merchants to help meet **regulatory and compliance requirements**. This feature enables merchants to capture additional **customer attestations** (e.g., payer relationship or NRE/NRO confirmation) at the time of payment, ensuring that funds are collected from **legitimate and permissible sources** in accordance with industry or regulator expectations. For example, insurance companies can use this feature to verify whether the person making the payment is the **policyholder** or a **permitted relative**.
[Image: Customer Declaration Checkout] ## Experience for the Customer on the UI During checkout, after entering card details, the customer will need to enter cardholder's relationship to the customer's name. If applicable (for India-issued cards), the customer may also be asked to confirm that their card is linked to an NRE/NRO account.
The customer is prompted to select their relationship to the policyholder(e.g., Self, Spouse, Parent, Child, Grandparent). Then, acknowledge the consent by checking the declaration checkbox before continuing with the payment.
The payment can only proceed after the customer has completed and consented to the declaration. If the customer declines to consent or skips the declaration, the payment will not be processed. ### Viewing Data as a Merchant One the dahsboard, Merchants can view the collected declaration data in the transaction details section of the Glomo Merchant Dashboard. For each transaction, the following fields will be displayed(if applicable): - Payer Relationship – The relationship selected by the customer. - NRE/NRO Declaration – The customer’s consent is collected that payments are originating from an NRE/NRO Indian account.
These fields will are available in both of the following locations: - Payment Details View - The individual payment details page. - Payment Reports - Included in batch export reports. ### Viewing Data in the APIs The declaration data is also available programmatically through the **Payments API**. When the feature is enabled for a merchant, the **Payment** Object includes two new fields: | **Field** | **Type** | **Description** | | ---|---|---| |`payer_relationship` | string | Relationship declared by the customer (e.g., "myself", "spouse", "parent", “grandparent”, “child”).| |`nre_nro_declaration` | boolean | Indicates whether the customer confirmed that the card is linked to an NRE account. | These fields appear in: - Payment status API - Payment webhooks - Reporting API responses - Payment Reports This allows merchants to store or process declaration data within their internal compliance systems. > **Note:** For merchants in the Insurance category, this feature is enabled by default. > > To enable declaration collection for other industries or use cases, please reach out to us at [support@glomopay.com](mailto:support@glomopay.com). --- Source: https://docs.glomo.one/payin/payment-link/payment-link-management Section: Payin # Overview Glomo’s Payment Link management capability allows you to track, control, and accelerate your global collection efforts. Through a centralized tracker, you can monitor the lifecycle of every link, from creation to settlement. With built-in tools for manual intervention such as real-time reminders and instant deactivation, Glomo ensures you have total oversight of your outstanding receivables. [Image: Payment Link Details] ## Payment Reminders Glomo enables merchants to proactively manage unpaid links by sending manual reminders directly to customers. Within the Payment Link Tracker, you can view the exact timestamp of the last communication sent. By clicking Send Reminder Now, the system triggers a secure notification to the customer, reducing the time to settlement without requiring you to leave the dashboard. [Image: Payment Reminder] ## Link Deactivation Glomo provides the ability to invalidate payment links instantly. If a transaction is no longer required or an error was made during creation, clicking Deactivate Link renders the URL invalid immediately. This ensures that no unauthorized or stale payments can be processed against your merchant account. [Image: Payment Link Deactivation] ## Editing Link Expiry To maintain control over payment windows, you can modify the expiration date of an active link at any time. 1. **Navigate to Link Details**: Locate the "Expires On" section within the specific Payment Link view. 2. **Modify Date:** Click the edit icon to open the calendar selector. 3. **Set New Deadline:** Select a new date to instantly update the link validity period.
[Image: Payment Link Deactivation] [Image: Payment Link Deactivation]
## Scheduling Automated Reminders Beyond manual pings, Glomo allows you to automate follow-ups to ensure consistent communication with your customers. 1. **Access Scheduler**: Click the edit icon next to "Schedule Reminder". 2. **Select Frequency**: Choose the automated cadence that best fits the transaction urgency: - Once every day - Once every other day - Once a week - Once every other week' 3. **Disable/Enable:** You can toggle these automated notifications to "Disable" at any point if the customer requires a pause in communication.
[Image: Payment Link Deactivation] [Image: Payment Link Deactivation]
--- Source: https://docs.glomo.one/payin/payment-methods/bank-transfer Section: Payin # Bank Transfers Glomo supports Bank Transfers as a payment method for businesses to collect funds directly from customers via domestic and international bank rails. Each merchant is assigned a unique virtual bank account number that remains static across transactions. Customers initiate a transfer from their own banking app or at their bank branch, sending funds directly into this virtual account. Glomo automatically maps incoming transfers to the correct merchant order — no manual reconciliation required. --- ### Customer Journey 1. **Initiate Payment** At checkout, the customer selects Bank Transfer as the payment method.

[Image: Initiate payment] 2. **Receive Virtual Account Details** A unique virtual bank account number (and bank details) are displayed to the customer. These details can also be shared via email or payment link for convenience. 3. **Make the Transfer** The customer completes the transfer through their own online banking portal or by visiting their bank branch. Funds are sent from the customer's bank account to the virtual account assigned by Glomo. 4. **Reconciliation** Glomo uses the virtual account number and a unique per-order reference to match the incoming transfer to the correct order or payment link. The merchant is notified instantly once the payment is reconciled. 5. **Payment Confirmation** The customer receives a confirmation once the transfer is detected. Merchants can view the payment status in real time on the Glomo dashboard or via APIs. --- ### Virtual Account Details Each merchant on Glomo is assigned a static virtual bank account number. When a payment is initiated, a unique reference is generated for that order. The customer must include this reference in the transfer remarks — this is how Glomo maps the incoming funds to the correct order. --- ### Transaction Limits Glomo does not impose transaction amount caps on bank transfers. However: - Individual customer banks may have their own daily or per-transaction transfer limits. - Customers should check with their bank if a transfer fails due to limit breaches. - This method is recommended for high-value transactions where card limits may apply. --- ### Benefits - **Secure and trusted**: Customers use their own banking app or branch — no card details are shared with the merchant. - **High-value transactions**: Ideal for large payments with no card network restrictions or issuer limits. - **Broad customer reach**: Accessible to customers who do not hold cards or prefer direct bank transfers. - **Asynchronous-friendly**: Merchants are notified the moment funds are reconciled, with no dependency on the customer remaining on-page. --- ### FAQs 1. **What is a virtual account number?** A virtual account number is a static bank account number assigned to a merchant on Glomo. All incoming transfers to this account are automatically mapped to the correct order using the unique reference the customer includes in their transfer remarks.

2. **What happens if the customer sends the wrong amount?** Glomo does not match the transfer to the order automatically. The payment goes to `action_required`. You can fix it from the dashboard or over the API: create an order for the amount received, then connect it to the payment. See [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required).

3. **What happens if the customer forgets to include the reference?** Glomo can still match the transfer automatically from the sender's account and name, including the details the customer confirms at checkout, as long as the amount and currency match. If the transfer arrives before the customer confirms those details, Glomo tries the match again when they do. If no match is found, the payment goes to `action_required` and you can connect it yourself. See [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required). Ask customers to include the reference in the remarks field anyway, because it is the most reliable way to match.

4. **How are refunds handled?** Refunds are initiated directly to the customer's bank account via a new bank transfer. Refunds typically take 1–3 business days to appear. Initiate refunds via the Glomo dashboard or the [Refunds API](https://docs.glomo.one/payin/refund).

5. **Can Bank Transfer be used for subscriptions or recurring payments?** No. Bank Transfers require a manual action by the customer for each payment and are not supported for automatic recurring charges. For recurring collections, consider [Cards](https://docs.glomo.one/payin/payment-methods/cards) with subscription support.

6. **How do I enable Bank Transfer on my account?** Bank Transfer is available on supported merchant accounts. To activate or configure it for your integration, reach out to us at support@glomopay.com. --- Source: https://docs.glomo.one/payin/payment-methods/cards Section: Payin # Cards Glomo enables businesses to securely accept card payments, supporting major networks like Visa, Mastercard, and AMEX. Payments are protected with industry-standard security protocols such as 3D Secure to minimize fraud. Transactions are processed in real-time, delivering immediate confirmation of payment status ### Customer Journey 1. **Enter Card Details** - The customer enters their card number, expiry date, CVV, and billing details on the checkout screen.

[Image: Enter card details] 2. **Authentication (3DS/OTP)** - The customer is redirected to their bank’s authentication page. - Depending on the bank and regulations, they may be asked to complete an OTP or other 3D Secure verification

[Image: Authentication] 3. **Authorization** - Once authenticated, the issuing bank verifies the payment details and shares the authorization result with the card network. - Glomo receives the authorization response via its partners.

[Image: Authorization] 4. **Payment Confirmation** - The customer sees a confirmation screen showing whether the payment succeeded or failed, along with the option to retry the payment. - The merchant is notified instantly of the payment status through the dashboard and APIs.

[Image: Payment confirmation] ### Benefits - **Familiar payment method**: Widely used by customers for both domestic and international transactions. - **Instant authorization**: Customers and merchants receive immediate confirmation of payment status. - **Built-in protections**: Support for 3D Secure and network risk checks. - **Merchant tools**: Real-time transaction reporting, refund initiation, and settlement tracking through the Glomo dashboard. ### Test card details > **Note:** Indian cards are not supported for Subscription payments. | Card Number | Gateway | Country | OTP | Expiry Month | Expiry Year | CVV | Payment Result | | --- | --- | --- | --- | --- | --- | --- | --- | | 3466 2411 1111 1111 | American Express | IN | Yes | any | any | any | Success | | 3469 1222 2222 2222 | American Express | IN | Yes | any | any | any | Success | | 3490 8811 1111 1112 | American Express | IN | Yes | any | any | any | Failure | | 3790 8022 2222 2223 | American Express | IN | Yes | any | any | any | Failure | | 3740 0111 1111 1114 | American Express | US | No | any | any | any | Success | | 3740 0311 1111 1112 | American Express | US | No | any | any | any | Failure | | 3740 0222 2222 2229 | American Express | US | Yes | any | any | any | Success | | 3740 0422 2222 2227 | American Express | US | Yes | any | any | any | Failure | | 4916 5311 1111 1111 | Mastercard | IN | Yes | any | any | any | Success | | 4376 7022 2222 2222 | Mastercard | IN | Yes | any | any | any | Success | | 4532 2711 1111 1112 | Mastercard | IN | Yes | any | any | any | Failure | | 4556 8222 2222 2223 | Mastercard | IN | Yes | any | any | any | Failure | | 5100 0111 1111 1113 | Mastercard | US | No | any | any | any | Success | | 5100 0311 1111 1111 | Mastercard | US | No | any | any | any | Failure | | 5100 0222 2222 2228 | Mastercard | US | Yes | any | any | any | Success | | 5100 0422 2222 2226 | Mastercard | US | Yes | any | any | any | Failure | | 4532 4911 1111 1111 | Visa | IN | Yes | any | any | any | Success | | 4532 4422 2222 2222 | Visa | IN | Yes | any | any | any | Success | | 4556 8911 1111 1112 | Visa | IN | Yes | any | any | any | Failure | | 4111 1111 1111 1111 | Visa | IN | Yes | any | any | any | Success | | 4597 2711 1111 1116 | Visa | US | No | any | any | any | Success | | 4597 2911 1111 1114 | Visa | US | No | any | any | any | Failure | | 4597 2822 2222 2221 | Visa | US | Yes | any | any | any | Success | | 4597 2622 2222 2223 | Visa | US | Yes | any | any | any | Failure | | 4597 3011 1111 1111 | Visa | US | No | any | any | any | Failure | | 4597 3122 2222 2226 | Visa | US | No | any | any | any | Failure | The last two cards fail with a specific decline reason so you can test your handling of individual error codes: | Card Number | Decline reason | Error code | | --- | --- | --- | | 4597 3011 1111 1111 | Declines at authorization with insufficient balance. | `INSUFFICIENT_BALANCE` | | 4597 3122 2222 2226 | 3D Secure not enabled for the card; declines before authentication. | `CARD_NOT_SUPPORTED_ON_3DS` | ### Unsupported countries Cards issued in the countries below are not accepted. Payments from these cards will be declined. The list may change over time. | Country code | Country | | --- | --- | | DZA | Algeria | | AGO | Angola | | BOL | Bolivia | | VGB | British Virgin Islands | | BGR | Bulgaria | | CMR | Cameroon | | CIV | Côte d'Ivoire | | COD | DR Congo | | HTI | Haiti | | IRN | Iran | | KEN | Kenya | | LAO | Laos | | LBN | Lebanon | | MCO | Monaco | | MMR | Myanmar | | NAM | Namibia | | NPL | Nepal | | PRK | North Korea | | SSD | South Sudan | | SYR | Syria | | VEN | Venezuela | | VNM | Vietnam | | YEM | Yemen | ### FAQs 1. **What card networks are supported?** Glomo supports major card networks such as Visa, Mastercard and Amex.

2. **How secure are card payments?** All card transactions go through 3D Secure (3DS/OTP) where mandated, ensuring an extra layer of protection. Glomo is PCI DSS compliant and adopts industry leading practices in storing data.

3. **How long does it take for refunds to reflect?** Refunds initiated by Glomo usually take 4–7 business days to reflect on the customer’s card statement, depending on the issuing bank.

4. **Why was a payment marked as failed even though the customer was charged?** If Glomo does not receive the authorization response in time, the payment may be marked as failed. In such cases, once reconciliation confirms the success, Glomo automatically refunds the payment.

5. **Can customers retry a failed card payment?** Yes. Customers can retry the payment by re-entering their card details or using an alternative card. If the failure was due to bank-side issues (e.g., insufficient funds), retrying after resolving the issue should succeed.

6. **Are there transaction amount limits?** Yes. Glomo currently enforces a maximum transaction limit of USD 16,000 (or the equivalent in other currencies) for card payments. In addition, individual banks and card networks may impose their own daily or per-transaction limits. If a transaction exceeds these limits, the payment may be declined by the bank or card issuer, even if it is within Glomo’s limits. --- Source: https://docs.glomo.one/payin/payment-methods/pay-via-bank Section: Payin # Pay via Bank > **Note:** **PayViaBank (UAE) is being discontinued on July 3, 2026.** Due to changes affecting our upstream service provider, PayViaBank will no longer be available as a payment method for UAE transactions after this date. Payments and refunds initiated on or before July 3, 2026 will be processed normally, and refunds remain supported afterwards. See the FAQ below for details.

Glomo supports **Pay via Bank** as a payment option for businesses to collect funds directly from customers’ bank accounts. This feature provides a secure and seamless alternative to card payments, particularly useful for high-value transactions. When customers choose Pay via Bank on their checkout, they connect their bank account securely, authenticate the transaction using their bank’s verification methods, and authorize the payment directly from on the checkout. ### Customer Journey 1. **Initiate Payment** The customer selects Pay via Bank on the checkout screen.

[Image: Select Pay via Bank] 2. **Select Bank** The customer is presented with a list of supported banks and chooses their bank.

[Image: Select Bank] 3. **Secure Bank Login & 2FA completion to connect the account** The customer is redirected to their bank’s secure login page. They authenticate using their standard online banking credentials (username/password, biometrics, etc.). Depending on the bank, the customer may be required to complete an additional verification step (e.g., OTP, mobile approval).

[Image: 2FA] 4. **Wait for cooldown (If applicable)** Banks in certain geographies such as the UAE may enforce a cooldown period before the payment can be initiated. The customer is informed of the cooldown period removal via email

[Image: Cooldown] 5. **Complete payment** After the account is verified and (if applicable) the cooldown period has passed, the customer completes the payment on checkout by completing the authorisation.

[Image: Complete Payment] The customer is shown a confirmation screen, and the merchant is notified instantly of the payment status. ### Benefits - **Seamless experience**: Customers can pay directly from their bank without manual transfers. - **High-value transactions support**: Suitable for larger payments that may have card limits. - **Security & compliance**: Authentication handled directly by the bank with strong security protocols. - **End-to-end tracking**: Merchants can track the customer journey and payment status in real time via the Glomo dashboard. To activate the Pay via bank on your account, please reach out to us at support@glomopay.com. ### FAQs 1. **Do customers need to enter their bank account number or routing/SWIFT code?** No. Customers connect their bank account by logging in with their existing online banking credentials. Account details are fetched securely from the bank, there’s no need for manual entry.

2. **What authentication steps are required?** Customers authenticate using their normal online banking login (username, password, biometrics, etc.). Depending on the bank, they may also need to complete a second factor, such as an OTP or mobile approval.

3. **Why is there sometimes a waiting (cooldown) period before the first payment?** Certain banks, especially in regions like the UAE, enforce a short cooling-off period (up to 24 hours) after an account is first connected. This is a bank security requirement. Customers will be notified via email when their account is ready to use.

4. **How long do payments take to process?** Once the customer’s account is connected and (if applicable) the cooldown period has passed, payments are processed instantly. Merchants are notified in real-time of the status.

5. **How are refunds handled?** Refunds are initiated directly back to the customer’s bank account by initiating a new bank transfer to the customer’s account. Refunds typically take 1-3 business days to appear, depending on the customer’s bank.

6. **What happens if a payment fails?** If authentication fails, the customer cancels midway, or the bank rejects the transaction, the payment is marked as failed. Both the customer and merchant see the status instantly.

7. **Are there any limits on payment amount for Pay via Bank payments?** Glomo does not enforce any specific limit on the amount that can be paid using Pay via Bank. However, the customer’s bank may impose transaction-level limits. When Glomo is aware of these limits: The bank will not be displayed as an available payment method during checkout if the payment amount exceeds the known limit. When Glomo is not aware of the limits: The payment may be attempted, but it could be declined by the bank if the amount exceeds their threshold. ### Discontinuing PayViaBank in the UAE - FAQs 1. **What is changing?** PayViaBank will be discontinued for the UAE market on July 3, 2026. It will no longer be available as a payment method for UAE transactions after this date.

2. **Why is this happening?** The change is driven by regulatory requirements applicable to our upstream service provider's operating environment. It is not a commercial decision and is outside our control.

3. **Until when can my customers pay using PayViaBank?** PayViaBank (UAE) remains fully available through July 3, 2026. No new payments can be initiated after that.

4. **What happens to payments in progress at the cutoff?** Payments initiated on or before July 3, 2026 will be processed and settled normally. We recommend avoiding large or time-sensitive PayViaBank payments very close to the cutoff.

5. **Can I still issue refunds on PayViaBank transactions after July 3?** Yes. Refunds on PayViaBank (UAE) transactions remain supported after July 3, 2026.

6. **Are other payment methods or markets affected?** No. This applies only to PayViaBank in the UAE. Cards, bank transfers, and all other payment methods and markets on your Glomo account continue without interruption.

7. **What changes do I need to make?** If you have PayViaBank enabled for UAE: - Remove or disable PayViaBank from your UAE checkout/payment flows by July 3, 2026 - Remove PayViaBank-specific API calls from your integration - Update customer-facing notifications and messaging to reflect the discontinuation and the continued availability of refunds

8. **What happens if I don't remove it from my checkout?** After July 3, PayViaBank API requests will fail and your customers will see payment errors. Glomo will also disable PayViaBank on our side on July 3 as a safeguard, but we strongly recommend updating your checkout to avoid a confusing customer experience.

10. **Is there a replacement for PayViaBank in the UAE?** While there is no direct replacement for PayViaBank at this time, your customers can continue paying through the other methods already available on your Glomo account - including cards and bank transfers. We will continue to explore potential alternatives from time to time.

11. **Does this affect my settlements?** No. Settlements for all completed transactions, including PayViaBank payments processed before the cutoff, follow your standard settlement schedule.

12. **Will I still see PayViaBank transaction history and reports?** Yes. Historical PayViaBank (UAE) transaction data remains available in your dashboard and reporting APIs.

13. **Who can I contact?** Your account manager or support@glomopay.com. --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events Section: Payin # LRS client-side events > **Note:** **15 LRS step events are deprecated.** They keep firing unchanged. The sunset date is to be announced: no earlier than 6 months after `checkout.stage_changed` is generally available, and not before merchants who use them have migrated. Move to `checkout.stage_changed` and `checkout.closed`. See Deprecated events below. The LRS checkout sends events to the listeners you register with `.on()` on the [Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk). This page covers what LRS sends. For the full contract of `checkout.stage_changed` and `checkout.closed`, including every field, value, delivery guarantee and versioning rule, see [Checkout events](https://docs.glomo.one/platform/sdk/checkout-events). ## Events LRS sends | Event | Status | Sent when | | --- | --- | --- | | `checkout.stage_changed` | Supported. Enabled per merchant. | The customer reaches a new stage or step. See [LRS stages and steps](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#lrs-stages-and-steps). | | `checkout.closed` | Supported. The payload is `{}` until checkout events are enabled. | Checkout closes. See [checkout.closed](https://docs.glomo.one/platform/sdk/checkout-events#checkoutclosed). | | `payment.success` | Supported. | The bank authorised the remittance. See [Outcome events](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#outcome-events). | | `payment.failure` | Supported. | The payment attempt failed. See [Outcome events](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#outcome-events). | | 15 step events, such as `consent.screen_shown` and `bank.bank_selected` | **Deprecated** | See [Deprecated events](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#deprecated-events). | Checkout events are enabled per merchant and are off by default. Contact your Glomo account manager to turn them on. The same switch adds [`progress`](https://docs.glomo.one/platform/webhooks/payment#payment-progress) to LRS payment webhooks and the payment API. LRS sends `checkout.stage_changed` only for orders opened with `orderId`. Payment sessions do not send it. The Flutter, React Native, Android and iOS SDKs do not expose `checkout.stage_changed` or the v1 `checkout.closed` payload yet. ## LRS stages and steps What LRS puts in the [checkout event fields](https://docs.glomo.one/platform/sdk/checkout-events#fields): | Field | LRS value | | --- | --- | | `flow` | `payment` | | `method` | `lrs` | | `resource` | `{ "type": "order", "id": "" }` | | `provider` | The bank: `HDFC`, `IDFC`, `ICICI`, `AXIS` or `KOTAK`. New banks can be added. | | `journeyType` | `redirect` when the customer approves on the bank's page. `native` when the bank's authentication runs inside checkout, for example OTP. | | `step` on `opened` | `consent` (consent screen), `bank_list` (choosing a bank), or absent when checkout opens on a later screen, for example with a bank already chosen. | | `step` on `customer_auth` | `otp`, `document_upload`, `txn_summary`, `agreements`, depending on the bank. | ### Example journeys Each row is the sequence of `stage` (and `stage:step`) values one checkout open sends. When the consent screen and bank list are shown, the sequence starts `opened:consent`, `opened:bank_list` instead of `opened`. | Journey | Sequence | | --- | --- | | Redirect bank, for example ICICI, approved | `opened`, `method_selected`, `details_submitted`, `attempt_created`, `provider_handoff`, `awaiting_confirmation`, `confirmed` | | Native OTP, then the bank's page | `opened`, `method_selected`, `details_submitted`, `attempt_created`, `customer_auth:otp`, `provider_handoff`, `awaiting_confirmation`, `confirmed` | | Native OTP, no bank page | `opened`, `method_selected`, `details_submitted`, `attempt_created`, `customer_auth:otp`, `awaiting_confirmation`, `confirmed` | | Document upload, then the bank's page | `opened`, `method_selected`, `details_submitted`, `attempt_created`, `customer_auth:document_upload`, `provider_handoff`, `awaiting_confirmation` | | Kotak, in checkout | `opened`, `method_selected`, `details_submitted`, `attempt_created`, `customer_auth:otp`, `customer_auth:txn_summary`, `customer_auth:agreements`, `awaiting_confirmation`, `confirmed` | After `confirmed`, checkout sends `payment.success`. When the customer then closes checkout, it sends `checkout.closed` with `reason: completed` and `lastStage: confirmed`. ### Example closes | What the customer did | `checkout.closed` | | --- | --- | | Closed checkout on the consent screen | `reason: user_dismissed`, `lastStage: opened`, `lastStep: consent` | | Declined consent | `reason: user_cancelled`, `lastStage: opened`, `lastStep: consent` | | Left from the OTP screen and confirmed the exit prompt | `reason: user_cancelled`, `lastStage: customer_auth`, `lastStep: otp`, with `paymentId` | | Closed checkout after the bank confirmed | `reason: completed`, `lastStage: confirmed` | | Closed checkout after a failed payment | `reason: error`, `lastStage: failed` | | Closed checkout after the confirmation wait timed out | `reason: confirmation_timeout`, `lastStage: awaiting_confirmation` | | Checkout hit an error before any stage | `reason: error`, no `lastStage`. `{}` if checkout failed before it finished loading | ## Outcome events `payment.success` and `payment.failure` are the LRS outcome callbacks. They are **not deprecated**. They carry the [shared LRS fields](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#shared-lrs-payload-fields) plus the fields below. With `callbackUrl` set, they are not sent to `.on()`. Their fields are appended to your `callbackUrl` instead. See [Using callbackUrl](https://docs.glomo.one/platform/sdk/unified-sdk#using-callbackurl-redirect-mode). For LRS, `payment.success` means the bank authorised the remittance. It does not mean the money has arrived. That is the `funds_available` [payment webhook](https://docs.glomo.one/platform/webhooks/payment). Both are sent only after Glomo has the payment's result. A failure inside checkout before that, for example when the bank page cannot be reached, shows up as `checkout.stage_changed` with `stage: failed` and as the `checkout.closed` reason, and does not send `payment.failure`. ### payment.success | Field | Type | Required | Values | Description | | --- | --- | --- | --- | --- | | `paymentId` | string | Yes | For example `payt_XXXX` | The payment. | | `status` | string | Yes | `pending` | The bank authorised. Glomo is waiting for the funds. Treat it as an opaque string. | | `signature` | string | Yes | Hex HMAC-SHA256 | Verify it on your server. See [Signature verification](https://docs.glomo.one/platform/sdk/unified-sdk#signature-verification). | | `remittanceInformation` | string or null | No | Free text | The remittance reference for the transfer. | ### payment.failure | Field | Type | Required | Values | Description | | --- | --- | --- | --- | --- | | `paymentId` | string | Yes | For example `payt_XXXX` | The payment. | | `status` | string | Yes | `failed` | Treat it as an opaque string. | | `errorCode` | string or null | No | Open. Payment error codes | Why the payment failed. | | `errorMessage` | string or null | No | Free text | A description of the failure. | | `signature` | string | No | Hex HMAC-SHA256 | Present for some failures. Do not rely on it. | | `remittanceInformation` | string or null | No | Free text | The remittance reference for the transfer. | ## Deprecated events These 15 events are deprecated: `checkout.rendered`, `checkout.bank_redirection`, `consent.screen_shown`, `consent.accepted`, `consent.rejected`, `bank.list_viewed`, `bank.bank_selected`, `bank_account.account_details_screen`, `bank_account.entry_submitted`, `bank.document_upload`, `bank.document_uploaded`, `otp.bank_auth.screen_shown`, `otp.bank_auth.submit_clicked`, `otp.bank_auth.failed`, `otp.bank_auth.success`. What deprecated means here: - **They keep firing, unchanged.** Every merchant still receives them, whether or not checkout events are enabled, with the payloads in [Deprecated event payloads](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/client-side-events#deprecated-event-payloads). - **They are frozen.** No new fields, no new events and no new screens. A screen added to checkout appears only in `checkout.stage_changed`. - **Sunset date to be announced.** `checkout.stage_changed` becomes generally available when it is announced in the changelog and enabled for all merchants. The deprecated events stop firing no earlier than 6 months after that, and not before the merchants who use them have migrated. Glomo will announce the sunset date in the changelog and by email to affected merchants. `checkout.closed`, `payment.success` and `payment.failure` are **not** deprecated: - `checkout.closed` keeps its name. Its payload grows from `{}` to the [v1 payload](https://docs.glomo.one/platform/sdk/checkout-events#checkoutclosed) once checkout events are enabled. This is additive. - `payment.success` and `payment.failure` stay the outcome callbacks. `payment.success` is signed, and `callbackUrl` redirects depend on both. `checkout.stage_changed` with `confirmed` or `failed` is not signed and does not replace them. ### How to migrate 1. Ask your Glomo account manager to enable checkout events for your account. Until they are on, `checkout.stage_changed` is not sent, so the replacements in the table below do not exist for you yet. 2. Add listeners for `checkout.stage_changed` and the new `checkout.closed` fields next to your existing listeners. Keep both running. 3. Compare the two in your analytics for a period that covers your normal traffic, using the table below. 4. Remove the deprecated listeners before the sunset date. ### Migration table | Deprecated event | Replacement | Not carried over | | --- | --- | --- | | `checkout.rendered` | The first `checkout.stage_changed` of a `journeyId`, which is always `stage: opened`. | Shared LRS fields | | `consent.screen_shown` | `stage: opened`, `step: consent` | Shared LRS fields | | `consent.accepted` | The next event after `opened`/`consent`. It is `opened`/`bank_list`, or `method_selected` when the bank is already chosen. | Shared LRS fields | | `consent.rejected` | `checkout.closed` with `reason: user_cancelled`, `lastStage: opened`, `lastStep: consent` | Shared LRS fields | | `bank.list_viewed` | `stage: opened`, `step: bank_list` | Shared LRS fields | | `bank.bank_selected` | `stage: method_selected`. The bank is in `provider`, as a code such as `HDFC`. | `preSelected`. `bankName` (display name) becomes `provider` (code). `provider` is absent for a bank not in the known list. | | `bank_account.account_details_screen` | No event fires when this screen opens. The customer is between `method_selected` and `details_submitted`. | `preFilled`, and the screen itself | | `bank_account.entry_submitted` | `stage: details_submitted` | `preFilled` | | `bank.document_upload` | `stage: customer_auth`, `step: document_upload` | Shared LRS fields | | `bank.document_uploaded` | No direct equivalent. The next step or stage, for example `provider_handoff`, shows the upload went through. | The upload moment | | `otp.bank_auth.screen_shown` | `stage: customer_auth`, `step: otp` | Shared LRS fields | | `otp.bank_auth.submit_clicked` | None | Each OTP submission, and the OTP attempt count | | `otp.bank_auth.failed` | None for a retryable failure. A failure that ends the payment sends `stage: failed`. | `canRetry`, each failed attempt, and the OTP attempt count | | `otp.bank_auth.success` | No direct equivalent. The next step or stage shows the OTP was accepted. | The success moment | | `checkout.bank_redirection` | `stage: provider_handoff`, with `journeyType: redirect` or `native` | Shared LRS fields | **Shared LRS fields not carried over.** Every deprecated event carries `orderId`, `mode`, `resourceType`, `merchantId`, `merchantName`, `merchantEmail`, `customerId`, `paymentMethod`, `repeatUser`, `amount`, `currency` and `bankName`. In the new events: - `orderId` is `resource.id`. - `paymentMethod` is `method`. - `bankName` is `provider`. - The merchant, customer, mode, resource type and amount fields (`merchantId`, `merchantName`, `merchantEmail`, `customerId`, `mode`, `resourceType`, `amount`, `currency`) are not sent. Read them from the order and customer in your own records or the API. - `repeatUser` has no replacement. ## Deprecated event payloads Reference for existing integrations. The payloads are frozen. ### Shared LRS payload fields Every deprecated event, and `payment.success` and `payment.failure`, carries these fields: | Field | Type | Required | Values | Description | | --- | --- | --- | --- | --- | | `orderId` | string | Yes | For example `order_XXXX` | The order. | | `mode` | string | Yes | `live`, `mock` | Whether checkout talks to real banks or the mock bank. | | `resourceType` | string | Yes | `orders`, `payment_link`, `subscription` | The kind of object checkout was opened for. | | `merchantId` | string | Yes | For example `merch_XXXX` | Your merchant ID. | | `merchantName` | string | Yes | Free text | Your business name. | | `merchantEmail` | string | Yes | Email address | Your business email. | | `customerId` | string | Yes | For example `cust_XXXX` | The customer. | | `paymentMethod` | string | Yes | `LRS` | Always `LRS`. | | `repeatUser` | boolean | Yes | `true`, `false` | `true` when the customer has completed an LRS payment before. | | `amount` | number | Yes | Integer | The amount checkout is collecting, in the smallest unit of `currency`. `10000` is 100.00 USD. | | `currency` | string | Yes | ISO 4217 code | The order currency. | | `bankName` | string | No | Free text, for example `HDFC Bank` | The bank's display name. Present once a bank is chosen. | ### Extra fields per event | Event | Extra fields | | --- | --- | | `bank.bank_selected` | `preSelected`: string, `Yes` or `No`. `Yes` when the bank was chosen for the customer. | | `bank_account.account_details_screen` | `preFilled`: string, `Yes`, `No` or `Partial`. Whether the account details were filled in for the customer. | | `bank_account.entry_submitted` | `preFilled`: as above. | | `otp.bank_auth.failed` | `canRetry`: boolean. `true` when the customer can try the OTP again. | | All other deprecated events | None. | ### When each deprecated event fires | Event | Fires when | | --- | --- | | `checkout.rendered` | Checkout loads its first screen, after the consent check. | | `checkout.bank_redirection` | The customer is sent to the bank to authenticate. | | `consent.screen_shown` | The consent screen is shown. | | `consent.accepted` | The customer accepts consent and continues. | | `consent.rejected` | The customer declines consent. | | `bank.list_viewed` | The bank list is shown. | | `bank.bank_selected` | The customer selects a bank, or a bank is pre-selected. | | `bank_account.account_details_screen` | The bank account details screen is shown. | | `bank_account.entry_submitted` | The customer submits bank account details. | | `bank.document_upload` | The document upload screen is shown. | | `bank.document_uploaded` | A document is uploaded. | | `otp.bank_auth.screen_shown` | The OTP screen is shown. | | `otp.bank_auth.submit_clicked` | The customer submits an OTP. | | `otp.bank_auth.failed` | OTP verification fails. | | `otp.bank_auth.success` | OTP verification succeeds. | ### Example `bank.bank_selected`: ```json { "orderId": "order_6f1c2a9b7XyZ1", "mode": "live", "resourceType": "orders", "merchantId": "merch_68cc1216xPrdU", "merchantName": "Example Securities", "merchantEmail": "payments@example.com", "customerId": "cust_686f7c6evv6Nv", "paymentMethod": "LRS", "repeatUser": false, "amount": 100000, "currency": "USD", "bankName": "HDFC Bank", "preSelected": "No" } ``` --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports Section: Payin # Payment, settlement and payout reports for LRS This page explains the three reports you use to reconcile LRS remittances: the **Payment Report**, the **Settlement Report** and the **Payout Report**. It covers what each payment status means, what "funds available" means, and how to tell whether a payment has been settled to you. This page applies to [Resident India Remittance under LRS](https://docs.glomo.one/payin/resident-india-remittance-under-lrs) only. All times are in IST. All three reports are downloaded from the dashboard under **Reports** as CSV, and can be [scheduled for daily email delivery](https://docs.glomo.one/reports#scheduled-reports). ## Which report answers which question | Report | Question it answers | | --- | --- | | **Payment Report** | Did the investor's payment go through, and have the funds reached Glomo? | | **Settlement Report** (listed on the dashboard as the Settlement Transaction Report) | Which payments were included in which settlement to your account? | | **Payout Report** | What money left your Glomo balance as a payout, for example a withdrawal back to an investor? | Every attempt an investor makes is a separate payment with its own `id`. If an investor fails once and then pays successfully, that is two payments: one `failed` and one `success`. The `id` of a payment in the Payment Report is the `entity_id` of that payment's line in the Settlement Report. That is the key that joins the two reports. See [Check whether a payment has been settled](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports#check-whether-a-payment-has-been-settled). --- ## Payment Report The Payment Report lists your payments for the selected date range, with each payment's status. Use it to: - Track every payment's status. - See which successful payments have funds available. - Find the `id` you use to match a payment to its settlement. ### Payment statuses | Status | What it means | | --- | --- | | In Progress | The payment has started and has not completed yet. The investor may still be on checkout, or Glomo may be waiting for the bank's response. | | Action Required | Glomo needs more information before the payment can complete. Respond to the open [RFI](https://docs.glomo.one/request-for-information/handle-rfi-for-a-payment). | | Under Review | The information you submitted is being reviewed. | | Success | The investor's bank has processed the payment. The funds may not have reached Glomo yet. Check funds available. A successful payment does not change status again. | | Failed | The payment did not complete. The `error_code` gives the reason, for example `PAN_MISMATCH` or `INSUFFICIENT_BALANCE`. No funds are settled for a failed payment. | How a payment moves between statuses: - `in_progress` → `success` or `failed`. Almost every payment follows this path. - `in_progress` → `action_required`, and then: - back to `in_progress`, or - to `under_review`, and then back to `in_progress` or to `failed`, or - to `failed`. ### Funds available Funds available is a true/false flag on a successful payment. It applies to accounts with [daily settlement or per-payment payouts](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports#how-funds-reach-you). - **`false`**: the investor's bank has processed the payment, but Glomo has not yet matched the funds to it. They cannot be settled or paid out yet. - **`true`**: Glomo has received the funds and matched them to this payment. They are in your Glomo balance. Glomo matches incoming funds to payments in batch runs on working days, so the flag changes from `false` to `true` only when a run picks up the payment, not at the moment it succeeds. There are no runs on weekends or bank holidays, so a payment that succeeds on Friday evening is marked available on the next working day at the earliest. A failed payment never has funds available. You can read the same flag in three places: - The Payment Report. - The `funds_available` field on the [payment](https://docs.glomo.one/payin/payment) object. - The `payment.funds_available` [webhook](https://docs.glomo.one/platform/webhooks/payment). This is the event to act on, for example to grant buying power. --- ## Settlement Report A settlement is a single transfer from Glomo to your registered account, such as your GIFT City account or your US broker. Each settlement has an `id` that starts with `setl_`. The same ID is the `settlement_id` on each [payment](https://docs.glomo.one/payin/payment) it includes. A settlement includes every payment that is due for settlement that day. That is every payment whose funds became available on the previous working day, plus any earlier payment that has not been settled yet. On accounts with a same-day window, the afternoon settlement also includes payments whose funds became available that day before the window. A settlement can also include debits for some payouts, such as withdrawals back to investors. The Settlement Report has one line for each payment and each payout debit in a settlement. A payment's line has the payment `id` as its `entity_id`. The settlement amount sent to your account is the total of its lines, after payout debits and fees are deducted. ### Settlement statuses | Webhook `event_type` | What it means | | --- | --- | | in_progress | Glomo has created the settlement and started the transfer. | | success | The funds have left Glomo's account. The `utr` identifies the transfer at your bank. | | failed | The transfer failed. Contact Glomo support with the settlement `id`. | | cancelled | Glomo cancelled the settlement. Contact Glomo support with the settlement `id`. | See [Settlement webhooks](https://docs.glomo.one/platform/webhooks/settlement). --- ## Check whether a payment has been settled On an account with daily settlement, a payment has been settled when **all** of these are true: 1. Its status is `success`. 2. Its funds available flag is `true`. 3. It appears in the Settlement Report, with its `id` as the `entity_id` of a line. 4. That settlement has reached `success`. **`success` does not mean the money has arrived.** It means the investor's bank has processed the payment. Funds reach Glomo later. Use funds available, not `success`, to grant buying power or treat the money as received. A payment is settled on the working day after its funds become available. Weekends and bank holidays are not working days, so funds that become available on a Friday are settled on the next working day. See [Settlement holidays](https://docs.glomo.one/settlement-holidays) for the dates. Use this table to read any payment: | Status | Funds available | In the Settlement Report? | What it means | What to do | | --- | --- | --- | --- | --- | | `success` | `false` | No | The bank has processed the payment. Glomo has not matched the funds yet. | Wait. Most payments are marked available within one working day. | | `success` | `true` | No | The funds are in your Glomo balance and are waiting for the next settlement. | Wait for the next settlement, normally the next working day. | | `success` | `true` | Yes, settlement `in_progress` | The payment is in a settlement that is on its way. | Wait for `settlement.success`. | | `success` | `true` | Yes, settlement `success` | **Settled.** The funds have been sent to your registered account. | Match the settlement amount and `utr` against your bank statement. | | `failed` | `false` | No | The payment failed. No funds moved. | None. The investor can try again. | ### Reconcile a day's payments step by step 1. **Download the Payment Report** for the day you want to reconcile. Keep only rows with status `success`. 2. **Split them by funds available.** Rows still `false` are not due for settlement yet. Check them again the next working day. 3. **Download the Settlement Report** for a range that starts on the same day and runs at least three working days later. A payment is settled on the working day after its funds become available, so its settlement can fall days after the payment. 4. **Match the reports.** Join the Payment Report `id` to the Settlement Report `entity_id`. 5. **Check every row.** Each successful payment with funds available should have exactly one Settlement Report line. If a payment with funds available is still missing from the Settlement Report after its next working day, raise it with Glomo support, quoting its `id`. 6. **Tie out to your bank.** For each settlement, total its lines after payout debits and fees are deducted. The result should equal the amount credited to your account under that settlement's `utr`. --- ## Payout Report A payout moves money out of your Glomo balance to a beneficiary's bank account. The Payout Report has one row per payout. For LRS, payouts appear in two cases: - **Withdrawals back to an investor.** When an investor withdraws money, you create a payout to their Indian bank account. It is paid from your Glomo balance. See [Withdraw an LRS remittance back to the investor](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide). - **Per-payment payouts.** On accounts with [per-payment payouts](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports#how-funds-reach-you), Glomo creates one payout for each payment as soon as its funds become available. On accounts with daily settlement, some payouts are also deducted inside a settlement and appear as a debit line in the Settlement Report. Payout statuses are described in [Payout life cycle](https://docs.glomo.one/payout/life-cycle). --- ## How funds reach you Every LRS payment goes through `in_progress` and `success` in the same way. What happens after that depends on how your account is set up, and that decides which report shows the money reaching you. Your Glomo account manager can confirm your account's set-up, including if your successful payments show none of the events below. | Set-up | What happens after `success` | Where you see it | | --- | --- | --- | | **Daily settlement** | Funds are marked available and stay in your Glomo balance. On the next working day they go to your registered account together with your other payments due that day. | Payment Report, Settlement Report. `payment.funds_available` and settlement webhooks. | | **Per-payment payout** | Funds are marked available. Glomo then immediately creates a payout of that payment to your beneficiary account. No settlement is created for it. | Payment Report, Payout Report. `payment.funds_available`, `payment.credited_to_beneficiary` and `payout.success` webhooks. | | **Direct credit to your beneficiary** | Funds are credited to your beneficiary account without passing through your Glomo balance. There is no funds available step, and no settlement or payout is created. | Payment Report. `payment.credited_to_beneficiary` webhook. | On accounts with per-payment payouts or direct credit, the credit to your beneficiary happens in the same working-day runs as funds available. `payment.credited_to_beneficiary` is the event that tells you the money has reached your beneficiary account. --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up Section: Payin # Collect LRS remittances from India > This guide uses the **[Glomo Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk)** — the Order Checkout journey auto-detects the LRS flow. Make sure the order is created as an LRS order: **an order lacking a `checkout_type` defaults to the standard checkout.** See the Unified SDK reference for the full set of journeys and options. To open checkout inside a native mobile app, see **[Web Checkout in a Mobile App (WebView)](https://docs.glomo.one/platform/sdk/experimental)**. If you integrated earlier with the older `lrs-checkout-sdk`, it continues to work — switch the import to the Unified SDK when convenient. The sequence diagram below represents the interactions between the investor, broker, Glomo API and Glomo Web SDK.  [Image: Workflow for merchants ] --- # Integration steps Below are the steps to integrate the Glomo APIs and Web SDK to enable remittance of funds from investors ## Fetch supported banks (optional) **`getLrsBanks`** · `GET /v1/lrs/banks` · [API reference](https://docs.glomo.one/api-reference/openapi/lrs/getlrsbanks) Fetch the list of banks supported on the remittance flow using this API. Only the banks enabled for your account are listed, so the list can be empty. ### API Endpoint ```curl GET https://api.glomopay.com/api/v1/lrs/banks ``` ### Request ```curl curl -i -X GET \ https://api.glomopay.com/api/v1/lrs/banks \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' ``` ### Response ```curl [ { "bank_code": "hdfc", "bank_name": "HDFC bank" }, { "bank_code": "axis", "bank_name": "Axis bank" } ] ``` ## Create a customer **`createCustomer`** · `POST /v1/customer` · [API reference](https://docs.glomo.one/api-reference/openapi/customer/createcustomer) Create a customer entity in Glomo’s system by adding the customer details such as contact details, name and address. > **Note:** **Call this API when the investor adds funds for the first time. Store the `customer_id` received in the response and reuse it for the investor’s return journey.** > > By default, customer uniqueness is enforced on **email**. On request, this can instead be enforced on **PAN** (`kyc.pan_number`) in place of email, so investors are de-duplicated by PAN even if they use different emails. This is off by default — to enable PAN-based uniqueness for your account, reach out to . ### Customer field restrictions When you create a customer (`POST /customer`), Glomo checks the `address`, `city` and `state` fields: | Field | Length | Allowed characters | | --- | --- | --- | | `city` | 2–100 characters | Letters `A-Z` `a-z`, digits `0-9`, space, and `-` `'` `,` `.` `&` `:` `(` `)` | | `state` | 2–100 characters | Letters `A-Z` `a-z`, digits `0-9`, space, and `-` `'` `,` `.` `&` `:` (brackets are not allowed) | | `address` | 2–255 characters | Letters `A-Z` `a-z`, digits `0-9`, space, and `-` `,` `.` `#` `/` `(` `)` `'` `[` `]` `&` `:` `\` | - `city` and `state` must not start or end with `-`, `'` or `,`. - Any other character is rejected. Common examples: accented letters such as `é` or `ū`, letters from other scripts, the curly apostrophe `’`, the long dash `–`, the non-breaking space (often added by copy and paste), and the symbols `_` `@` `;` `"` `+` `!`. - A customer is a duplicate when its `email` and `country` match a customer that already exists in your account. Letter case in the email does not matter. Don't create the customer again; find the existing one with `GET /customer?email_address=` (exact match, case-insensitive) and reuse its `id`. - A request that breaks any of these rules is rejected with `400`, and the `message` field gives the reason. Nothing is created, so you can send the request again once the data is corrected. - Don't retry a `400` unchanged; it will be rejected again. Retry only after a `5xx` error or a timeout. Where possible, check the data against these rules before you send it. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/customer ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/customer \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "name": "John Doe", "customer_type": "individual", "email": "investor@example.com", "phone": "+91-9876543210", "dob": "1990-01-01", "address": "123 Main St", "city": "Anytown", "state": "Anystate", "country": "IND", "pincode": "560048", "kyc": { "pan_number": "BFQPG7654R" } }' ``` ### Response ```curl { "id": "cust_68468bfcxaGo2", "name": "John Doe", "customer_type": "individual", "email": "investor@example.com", "phone": "+91-9876543210", "address": "123 Main St", "city": "Anytown", "state": "Anystate", "country": "IND", "pincode": "560048", "status": "active", "created_at": "2025-06-09T07:23:40.598Z", "updated_at": "2025-06-09T07:23:40.598Z", "kyc": { "pan_number": "BFQPG7654R" } } ``` ## Create a bank account **`createLrsCustomerBankAccount`** · `POST /v1/customer/{id}/bank_account` · [API reference](https://docs.glomo.one/api-reference/openapi/lrs/createlrscustomerbankaccount) Create a bank account entity in Glomo’s system by adding the bank account information of the remitter. > **Note:** **Call this API when the investor adds funds for the first time. Store the `acclrs_id` received in the response and reuse it for the investor’s return journey.** > > The `id` returned in the API response should be passed as a value of `bank_account_id` in the Create an Order API request. > > `bank_customer_id` is the investor's customer ID at their bank. It is optional for every bank. It is checked only for HDFC and Kotak, where it must contain only digits and have a length that bank accepts, or the call returns `400`. For other banks the value is stored as sent. For HDFC and Kotak, if not provided, the checkout will prompt the customer to enter this value during the payment flow. ### Account number restrictions When you add a customer's bank account (`POST /customer/{id}/bank_account`), Glomo checks that the `account_number` is digits only and that its length is within the range the bank accepts: | Bank | Accepted length | | --- | --- | | HDFC | 14–15 digits | | IDFC | 9–11 digits | | ICICI | 12–15 digits | | Axis | 10–15 digits | | Kotak | 10–14 digits | - Send the account number exactly as the bank issued it: digits only, with no spaces, hyphens or other characters. Keep any leading zeros. - A number outside the range is rejected with `400`. The error message names the bank and the length it expects. Nothing is created or changed, so you can retry once the number is corrected. - Don't retry the same number unchanged; it will be rejected again. Check the number with the customer first. - These ranges are confirmed with each bank. Some older accounts may not follow a bank's current format. If you have a valid account number that falls outside its range, contact Glomo support and we will check it with the bank. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/customer/{customer_id}/bank_account ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/customer/cust_68468bfcxaGo2/bank_account \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "bank_code": "hdfc", "account_number": "12345678901234", "bank_customer_id": "12345678" }' ``` ### Response ```curl { "id": "acclrs_68468c03g9xt7", "bank_code": "hdfc", "account_number": "12345678901234", "bank_customer_id": "12345678" } ``` ## Update Bank Customer ID **`updateLrsCustomerBankAccount`** · `PATCH /v1/customer/{id}/bank_account/{bank_account_id}` · [API reference](https://docs.glomo.one/api-reference/openapi/lrs/updatelrscustomerbankaccount) **Use Case:** In case the customer has provided an incorrect Bank Customer ID in the Create a Bank Account API, call this API endpoint to update the Bank Customer ID in Glomo. ### API Endpoint ```curl PATCH https://api.glomopay.com/api/v1/customer/{customer_id}/bank_account/{bank_account_id} ``` ### Request ```curl curl --location --request PATCH 'https://api.glomopay.com/api/v1/customer/cust_68468bfcxaGo2/bank_account/acclrs_68468c03g9xt7' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data '{ "bank_customer_id": "87654321" }' ``` ### Response ```curl { "id": "acclrs_68468c03g9xt7", "bank_code": "hdfc", "account_number": "12345678901234", "bank_customer_id": "87654321" } ``` ## Create a Beneficiary (optional) **`createBeneficiaryV2`** · `POST /v2/beneficiaries` · [API reference](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2) Create a Beneficiary entity in Glomo by providing the receiver’s bank account details. This entity is required when beneficiaries are dynamic (i.e., a different beneficiary per end-user of the broker/fund, or per transaction) and should be created via API. If there is one fixed beneficiary shared across all users, you do not need to create a Beneficiary per user in Glomo. In this scenario, the beneficiary can be configured once in Glomo’s backend system and reused for all transactions. > **Note:** For LRS beneficiaries, the `intermediate_bank.swift_code` field is **required**. This is the SWIFT/BIC code of the correspondent/intermediary bank used to route the remittance. ### API Endpoint ```curl POST https://api.glomopay.com/api/v2/beneficiaries ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v2/beneficiaries \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "category": "lrs", "beneficiary": { "name": "ACME Corporation", "type": "business", "email": "finance@acme.com", "phone": "+1-555-123-4567", "nickname": "ACME Primary Account", "address": { "address_line1": "123 Business Park", "address_line2": "Suite 100", "city": "New York", "state": "NY", "country_code": "USA", "postal_code": "10001" } }, "bank_account": { "account_number": "1234567890", "name": "Citibank NA", "swift_code": "CITIUS33", "local_routing_number": "021000089", "currency": "USD", "address": { "address_line1": "388 Greenwich Street", "city": "New York", "state": "NY", "country_code": "USA", "postal_code": "10013" }, "intermediate_bank": { "name": "JPMorgan Chase Bank", "country": "USA", "swift_code": "CHASUS33", "account_number": "123456789" } } }' ``` ### Response ```curl { "id": "bene_5JU9yv0lGSUP", "name": "ACME Corporation", "type": "business", "category": "lrs", "email": "finance@acme.com", "phone": "+1-555-123-4567", "nickname": "ACME Primary Account", "created_at": "2025-01-15T10:00:00Z", "updated_at": "2025-01-15T10:00:00Z", "address": { "address_line1": "123 Business Park", "address_line2": "Suite 100", "city": "New York", "state": "NY", "country_code": "USA", "postal_code": "10001" }, "bank_account": { "account_number": "1234567890", "name": "Citibank NA", "swift_code": "CITIUS33", "local_routing_number": "021000089", "currency": "USD", "address": { "address_line1": "388 Greenwich Street", "city": "New York", "state": "NY", "country_code": "USA", "postal_code": "10013" }, "intermediate_bank": { "name": "JPMorgan Chase Bank", "country": "USA", "swift_code": "CHASUS33", "account_number": "123456789" } } } ``` ## Create a quote **`createLrsQuote`** · `POST /v1/lrs/quotes` · [API reference](https://docs.glomo.one/api-reference/openapi/lrs/createlrsquote) Create a quote from the server by passing the amount to be remitted and the bank of the customer. Using this API you can display FX rate, tax and net USD to your user before proceeding. Please note that all currency fields are represented in minor units (e.g., cents, paisa, or equivalent subunits). In the response: - `fx_rate` is always INR per 1 USD, whichever direction you quote in. `"84.85"` means ₹84.85 to $1. - `total_tax` is the GST, an integer in paisa. `7906` is ₹79.06. - For an INR-to-USD quote, `to.amount` is the USD remitted after the GST is deducted from the INR amount. Pass it as the order's `amount`. - `expires_at` is when the quote expires. An order created from the quote expires at the same time. > **Note:** The `quote_id` generated from this API is valid for 30 minutes from the time of creation; `expires_at` gives the exact time. The displayed exchange rate is indicative. Actual exchange rate and final INR debit (incl. GST & TCS) are set by the banking partner. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/lrs/quotes ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/lrs/quotes \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "bank_code": "hdfc", "source_amount": 4400000, "source_currency": "INR", "target_currency": "USD" }' ``` ### Response ```curl { "id": "quote_6ab60de4Kx7Pq", "from": { "amount": 4400000, "currency": "INR" }, "to": { "amount": 51763, "currency": "USD" }, "fx_rate": "84.85", "bank_code": "hdfc", "total_tax": 7906, "expires_at": "2026-09-25T06:30:04.113Z", "created_at": "2026-09-25T06:00:04.113Z" } ``` ## Create an order on the server **`createOrder`** · `POST /v1/orders` · [API reference](https://docs.glomo.one/api-reference/openapi/orders/createorder) Initiate the payment process by creating an order from your server using your secret API keys and the previously created quote ID. 1. The `id` returned in the API response should be passed to the web sdk. This ensures the payment is securely linked to the correct order and prevents tampering. 2. The Order API accepts amounts in USD, with the value expressed in cents. `currency` must be `USD`, and `amount` must equal the USD side of the quote: `to.amount` for an INR-to-USD quote, `from.amount` for a USD-to-INR quote. 3. `remittance_information` is a reference string that helps identify the purpose of the remittance. It cannot be empty, must contain only alphanumeric characters and hyphens (a–z, A–Z, 0–9, -), with no spaces or special characters, and must not exceed 20 characters in length. 4. `request_id` is an optional idempotency key. Creating an order with a `request_id` that was already used returns a `400` error (`Order already exists for this request_id`). 5. `purpose_code` is optional. An LRS order accepts only `S0001` or `S0002`, and uses `S0001` if you leave it out. Any other value returns a `400` error. 6. An LRS order expires when its quote expires (see `expires_at` on the quote): the order's `expires_at` is set to the quote's. Creating an order from a quote that has already expired returns a `400` error. The order's `status` may not show `expired` straight away. It usually updates within about 5 minutes, and not until any open payment attempt on the order has resolved; an attempt already under way can still complete the order. Use the quote's `expires_at`, not the order's `status`, to decide whether the customer can start a new payment. > **Note:** If the quote expires while the investor has checkout open, payment creation fails with an error saying the quote or order has expired. Create a new quote and a new order, and open checkout again with the new order ID. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/orders ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/orders \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_68468bfcxaGo2", "currency": "USD", "amount": 51763, "request_id": "unique_order_request_id_123", "notes": { "key1": "some note" }, "lrs": { "lrs_quote_id": "quote_6ab60de4Kx7Pq", "remittance_information": "REF12345", "bank_account_id": "acclrs_68468c03g9xt7", "beneficiary_id": "bene_5JU9yv0lGSUP" } }' ``` > **Note:** LRS orders don't store `invoice_number`, `invoice_description`, `invoice_amount`, `reference_number`, `document_id` or `product`; they come back as `null` or are left out. A value you send is still validated (a malformed `invoice_number`, for example, returns `400`), so leave these fields out. ### Response ```curl { "id": "order_6ab60f0cLm4Wz", "customer_id": "cust_68468bfcxaGo2", "document_id": null, "status": "active", "currency": "USD", "amount": 51763, "remaining_amount": 51763, "already_paid_amount": 0, "purpose_code": "S0001", "invoice_amount": null, "invoice_description": null, "invoice_number": null, "notes": { "key1": "some note" }, "expires_at": "2026-09-25T06:30:04Z", "created_at": "2026-09-25T06:05:00Z", "updated_at": "2026-09-25T06:05:00Z", "reference_number": null, "lrs": { "lrs_quote_id": "quote_6ab60de4Kx7Pq", "remittance_information": "REF12345", "bank_account_id": "acclrs_68468c03g9xt7", "beneficiary_id": "bene_5JU9yv0lGSUP" } } ``` ## Add the payment button on your website or app Integrate an “Add Funds” button into your client-side interface. 1. Add the provided code snippet to your website or app to launch Glomo’s sdk. 2. When the user clicks the button, the checkout form will open, using the `order_id` created using above API. 3. Handle payment initiation success and failure events using the provided handler functions. 4. On payment completion, you’ll receive either a payment object (on successful authorisation by the user) or an error object (on failure). 5. Send this information back to your server for order fulfillment or to trigger a retry if the payment failed. ```html Glomo checkout integration ``` ## Verify the SDK response and signature on the server The process to verify the signature can be found [here](https://docs.glomo.one/payin/checkout). ## Verify payment status Payment status can be tracked via the following ways 1. Dashboard Monitoring: View real-time updates for all payments in the Glomo merchant dashboard. 2. Payment API Polling: Programmatically check payment status using Glomo’s Payment APIs. 3. Webhook Notification: Get instant notifications on payment status changes directly to your server. ## Test it in sandbox Sandbox runs the same checkout your customers see, against a simulated bank. The only change to your integration is the keys: - Create the customer, bank account, quote and order from your server with your **test** secret key. - Open checkout with your **test** public key (`test_…`). Glomo routes to sandbox from the key prefix, so you load the same SDK from the same hosts as in production. You can test a production build of your app this way. An order created with live keys cannot be opened with a test key, and the other way round. ### Complete the OTP step The simulated bank does not send an OTP. Enter `123456`; any other value is rejected as a wrong OTP. ### Trigger the document upload step In production, the bank asks for an ITR or a bank statement when the customer's account is less than a year old. In sandbox, checkout asks for it only for these bank accounts: | Bank | `bank_code` | `account_number` | | --- | --- | --- | | HDFC | `hdfc` | `50100117322072` | | Axis | `axis` | `925010000230876` | [Create the bank account](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up#create-a-bank-account) with one of them, use its `id` as `bank_account_id` on the order, and use a quote for the same `bank_code`. The bank must be one that [Fetch supported banks](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up#fetch-supported-banks-optional) returns for your sandbox account. After the OTP, checkout shows the document step. With any other account number, it skips the step. Upload an ITR to test the step: any readable PDF within the size limit checkout shows is accepted. Once a payment with an uploaded ITR succeeds, later payments by the same customer reuse that ITR for 90 days and skip the step. To see the step again, create a new customer and add the same test account to them. ### Mark the payment successful There is no bank confirmation in sandbox, so a payment completed in checkout stays **In Progress**. To simulate the bank's confirmation: 1. Log in to the **Dashboard**. 2. Open the **Payment Details** page for the payment. 3. Click **Update Status** on the right side of the screen. 4. Select **Success** and click **Confirm**. In production, Glomo updates the status automatically once the bank confirms the payment. --- For answers to common integration questions, see the [FAQ](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/faq). --- Source: https://docs.glomo.one/payin/subscriptions/as-presented-subscriptions Section: Payin ## As Presented Subscriptions: Flexible On-Demand Charging of Merchants As Presented Subscriptions allow merchants to charge customers on-demand, without committing to a fixed billing schedule at the time of subscription creation. Unlike standard subscriptions, where Glomo automatically charges customers on predefined intervals (monthly, quarterly, etc.) with a predefined amount, As Presented frequency gives merchants full control over when a charge is initiated - while still benefiting from card tokenization, recurring consent, and subscription lifecycle management. This model is particularly useful for industries such as insurance, logistics, usage-based services, and event-driven billing, where charges depend on real-world actions rather than a fixed calendar. ### How As Presented Subscriptions Work 1. Merchant creates a subscription with frequency = AS_PRESENTED. 2. Customer completes the first payment, providing consent and card authorization. 3. Glomo securely tokenizes the customer’s card. 4. Merchant initiates future charges on demand via: - API or - Glomo Dashboard 5. Each charge is processed independently under the same subscription context. Glomo does not automatically schedule or trigger payments for As Presented subscriptions. ## Steps to Create a Subscription 1. Go to the Dashboard. Navigate to the **Subscriptions** section. 2. Click “**Create Subscription**” 3. Select **As Presented** as the billing frequency. 4. Enter **customer** and **amount** details. Fixed scheduling inputs such as start date and billing cycle are not required for As Presented subscriptions. 5. Create the subscription and share the **payment link** with the customer. ### Via API Create a subscription with interval_type = `as_presented`. Example: ```http curl -i -X POST \ https://api.glomopay.com/api/v1/subscriptions \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible insurance for belongings easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "As presented billing plan", "amount": 1000, "max_amount": 3000, "currency": "USD", "interval_type": "as_presented", "expires_at": "2026-02-01", "notify_customer": true, "starts_with_first_payment": true }' ``` ## Charging an As Presented Subscription Once the subscription is Active, merchants can initiate charges at any time. ### Via API ```http curl -i -X POST \ https://api.glomopay.com/api/v1/payment \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "subscription_id": "sub_6979fa805EFmv", "sequence": "subsequent", "request_id": "abcd", "amount": 50, "currency": "USD", "notes": { "internal_ref": "ref_12345" } }' ``` Since subsequent payments are merchant-initiated, `card`, `callback_url`, and `method` are not needed — the card from the initial payment is reused automatically. ### Via Dashboard - Open the subscription details page. - Click Charge Subscription. - Confirm the charge. All charges appear under Recent Payments for the subscription. | State | Description | | --- | --- | | Created | Subscription is created by the merchant. No payment has been made yet. | | Active | Subscription is active after the first successful payment, or resumed after a pause. Recurring billing continues. | | Expired | The customer didn’t complete payment before the link expired. The subscription is no longer valid. | | Halted | A scheduled payment failed (after retries). Subscription is paused pending manual reactivation. | | Cancelled | Subscription is cancelled by the merchant. No further billing will occur. | --- Source: https://docs.glomo.one/payin/subscriptions/bulk-subscription-actions Section: Payin Glomo supports two bulk subscription actions from the Dashboard, both built on the same batch upload, validation, and confirmation lifecycle: - **Bulk Subscription Charges** — initiate charges across many As Presented subscriptions in a single operation. - **Bulk Update Next Payment Date** — shift the upcoming billing date for many active Fixed-Frequency subscriptions in a single operation. ## Bulk Subscription Charges Bulk charging allows you to initiate charges across multiple As Presented subscriptions in a single operation — directly from the Glomo Dashboard. Instead of calling the Create Payment API once per subscriber, upload a structured file containing all charge details and Glomo will process them in the background. > **Note:** Bulk charging is available for As Presented subscriptions only. To enable this feature on your account, please reach out to us at [support@glomopay.com](mailto:support@glomopay.com). ### How It Works 1. Navigate to **Bulk Subscription Charges** under **Payin** in the Dashboard. 2. Download the Glomo-provided template and populate it with your subscriber charge details. 3. Upload the file via the Dashboard. 4. Glomo validates every row **asynchronously** in the background — file-level checks (format, headers, row count) run first, followed by business-rule validation on each row. You can leave the page and return once validation is complete. 5. When validation finishes, review the validation summary. The batch moves to **Awaiting Confirmation** only after all rows have been validated. 6. Confirm the upload to submit the batch for processing, **or cancel it** if the results are not as expected. 7. Glomo processes each charge independently in the background. You can leave the page and check back on progress at any time. 8. Once complete, download the results file from the batch detail page for reconciliation. > Glomo does not initiate any charges until you explicitly confirm after reviewing the validation summary. ### File Format & Template Your bulk charge file must follow the Glomo-provided template, available to download directly from the Bulk Subscription Charges page. Upload your file in **CSV** or **Excel (.xlsx)** format only. | Column | Required | Description | | --- | --- | --- | | `subscription_id` | Yes | ID of the active As Presented subscription to charge (e.g. `sub_12345`) | | `amount` | Yes | Charge amount in **major currency units** with up to 2 decimal places (e.g. `1000.00` for one thousand dollars, `10.50` for ten dollars and fifty cents). Must be greater than zero. | | `currency` | Yes | 3-letter ISO 4217 currency code (e.g. `USD`). Must match the subscription plan's currency. | | `merchant_reference` | Yes | Your reference for this charge, used for idempotency and reconciliation. **Each reference can only be used once** across all your bulk uploads (any action). The only exception: if a previous row failed validation, you can reuse its reference. References that match an existing payment are also rejected. | | `reference_number` | No | An optional secondary reference for your own reconciliation (e.g. an invoice number or PO number). Glomo carries it through to the validation summary and results file but does not use it for processing or duplicate checks. | Each row represents a single charge request. Your file must not exceed **1,000 rows** or **10 MB**. ### Subscription Validation Rules During the asynchronous validation phase, each row is checked against the following business rules. Rows that fail any of these checks are marked as Validation Failed and will not be charged. - The `subscription_id` must exist and belong to your business. - The subscription must have an associated subscription plan. - The subscription must be an **As Presented** type. - The subscription must be in an Active or Authorized state. - The subscription must have at least one **successful prior payment using a Card payment method**. This is required to process subsequent card payments. - The `amount` must not exceed the subscription plan's configured `max_amount`. - The `currency` must match the subscription plan's currency. - The `merchant_reference` must be unique across all your bulk uploads (any action) and must not match any existing payment. References from rows that previously failed validation can be reused. ### Batch States Once you upload a file, a batch is created and persists through the entire processing lifecycle. You can track its progress from the batch table at any time. | State | Description | | --- | --- | | Created | The batch has been created and the uploaded file is being ingested. | | Validation In Progress | File format checks have passed. Individual rows are being validated against business rules in the background. | | Awaiting Confirmation | All rows have been validated. Review the validation summary — then confirm to proceed or cancel to discard. | | In Progress | You have confirmed. Charges are being initiated — you can leave the page and check back. | | Completed | All charges have been attempted. Download your results file from the batch detail page. | | Failed | The batch could not be processed. This can occur if the file has invalid headers, contains no valid rows after validation, or if a processing error prevents completion. The failure reason is displayed on the batch detail page. | | Cancelled | You cancelled the batch after reviewing the validation summary. No charges were initiated. | #### Row States Each individual row within a batch also has its own state: | State | Description | | --- | --- | | Created | The row has been parsed from the file. | | Validation In Progress | The row is being validated against business rules. | | Validated | The row passed all validation checks and is ready for processing. | | In Progress | A charge is being initiated for this row. | | Success | The charge was successfully initiated. | | Validation Failed | The row failed one or more validation checks. See the error details for the specific reason. | | Processing Failed | The charge could not be initiated. See the error details for the specific reason. | ### Cancellation After validation completes and the batch is in Awaiting Confirmation status, you can choose to **cancel** the batch instead of confirming it. Cancelling moves the batch to the Cancelled state and ensures no charges are initiated. Once a batch has been confirmed and is In Progress , it cannot be cancelled. ### Results & Reconciliation Once your batch reaches Completed status, download the results file from the batch detail page. The file contains the following columns for every row you submitted: | Column | Description | | --- | --- | | `row_number` | The row's position in the original uploaded file. | | `merchant_reference` | The reference you provided for reconciliation. | | `payment_id` | The Glomo payment ID for the charge, if successfully initiated. | | `subscription_id` | The subscription that was charged. | | `amount` | The charge amount in the currency's major units. | | `reference_number` | The optional secondary reference you provided in the upload, passed through unchanged. | | `status` | The payment status if the charge was initiated, or the row's failure status otherwise. | | `error_message` | The payment-level error message if the charge failed after initiation, or the validation/processing error otherwise. | ### Webhooks All charges trigger the existing `payment_success` and `payment_failed` webhooks. A `batch_id` field is included as a **top-level field** in each webhook payload for payments initiated via batch processing, so you can group outcomes by upload in your own systems. ## Bulk Update Next Payment Date Bulk Update Next Payment Date allows you to shift the upcoming billing date for many active Fixed-Frequency subscriptions in a single operation — directly from the Glomo Dashboard. Instead of calling the Update Next Payment Date API once per subscription, upload a structured file with all the changes and Glomo will apply them in the background. This is particularly useful for insurance and financial-services merchants who need to align recurring billing dates with policy issuance, renewal cycles, or batch onboarding events without cancelling and recreating each subscription. > **Note:** Bulk Update Next Payment Date is available for **Fixed-Frequency** subscriptions only. As Presented subscriptions do not have a scheduled next payment date and are not eligible. For the equivalent single-subscription flow (dashboard and `PATCH /subscriptions/{subscription_id}/next-payment-date` API), see [Subscription Management](https://docs.glomo.one/payin/subscriptions/subscription-management). ### How It Works 1. Navigate to **Bulk Update Next Payment Date** under **Payin → Subscriptions** in the Dashboard. 2. Download the Glomo-provided template and populate it with the subscriptions you want to update. 3. Upload the file via the Dashboard. 4. Glomo validates every row **asynchronously** in the background — file-level checks (format, headers, row count, duplicate references) run first, followed by business-rule validation on each row. You can leave the page and return once validation is complete. 5. When validation finishes, review the validation summary. The batch moves to **Awaiting Confirmation** only after all rows have been validated. 6. Confirm the upload to submit the batch for processing, **or cancel it** if the results are not as expected. 7. Glomo updates each subscription independently in the background. You can leave the page and check back on progress at any time. 8. Once complete, download the results file from the batch detail page for reconciliation. > Glomo does not change any subscription's next payment date until you explicitly confirm after reviewing the validation summary. ### File Format & Template Your bulk update file must follow the Glomo-provided template, available to download directly from the Bulk Update Next Payment Date page. Upload your file in **CSV** or **Excel (.xlsx)** format only. Each file may contain a maximum of **1,000 rows**. | Column | Required | Description | | --- | --- | --- | | `subscription_id` | Yes | The unique identifier of the Fixed-Frequency subscription whose next payment date you want to update (e.g. `sub_5JU9yv0lGSUP`). Must belong to your business. | | `next_payment_date` | Yes | The new next payment date in **`YYYY-MM-DD`** format (ISO 8601). Can be moved earlier without limit, but can only be deferred up to **28 days** from the subscription's current `next_payment_date`. | | `merchant_reference` | Yes | Your reference for this update, used for reconciliation. **Each reference can only be used once** across all your bulk uploads (any action). The only exception: if a previous row failed validation, you can reuse its reference. | Sample row: | `subscription_id` | `next_payment_date` | `merchant_reference` | | --- | --- | --- | | `sub_12345` | `2026-05-01` | `REF-001` | ### Subscription Validation Rules During the asynchronous validation phase, each row is checked against the following business rules. Rows that fail any of these checks are marked as Validation Failed and will not be processed. - The `subscription_id` must exist and belong to your business. - The subscription must be a **Fixed-Frequency** subscription. As Presented subscriptions are rejected. - The subscription must currently be in the Active state. Subscriptions in `created`, `paused`, `halted`, `cancelled`, `failed`, `expired`, `completed`, or `authorized` are rejected. - The subscription must have **no in-flight payment attempt**. If a payment is currently being processed, the row is rejected to avoid races between the payment and the date change. - The subscription must already have a `next_payment_date` set — i.e. it cannot be a brand-new subscription that has never billed yet, since there must be an existing schedule to shift. - The new `next_payment_date` may be moved **earlier without limit**, but may only be **deferred up to 28 days** from the subscription's current `next_payment_date`. - The `subscription_id` must not appear more than once in the same uploaded file. - The `merchant_reference` must be unique across all your bulk uploads (any action). References from rows that previously failed validation can be reused. > Tip: because the 28-day cap is measured against the **current** `next_payment_date`, you can chain multiple bulk updates over time to defer further — each subsequent update is bounded by the most recent next payment date. ### What Happens on a Successful Update When a row is processed successfully, Glomo applies the following changes to the subscription: - The subscription's `next_payment_date` is set to the value you provided. - If the subscription has an `end_date`, it is shifted by the **same number of days** as the change to `next_payment_date`, so that the total number of remaining billing cycles is preserved. This applies whether the date is deferred or pulled earlier. - The internal billing anchor used to compute subsequent payment dates is reset to the new `next_payment_date`. All future scheduled charges flow from this new anchor. ### Batch States The batch and row state machines are identical to Bulk Subscription Charges — see the [Batch States](https://docs.glomo.one/payin/subscriptions/bulk-subscription-actions#batch-states) and [Row States](https://docs.glomo.one/payin/subscriptions/bulk-subscription-actions#row-states) tables above. The only differences are: - **In Progress** means subscription updates are being applied (rather than charges being initiated). - **Completed** means all updates have been attempted (rather than all charges). - **Cancelled** means no subscriptions were updated (rather than no charges initiated). ### Cancellation After validation completes and the batch is in Awaiting Confirmation status, you can choose to **cancel** the batch instead of confirming it. Cancelling moves the batch to the Cancelled state and ensures no subscriptions are updated. Once a batch has been confirmed and is In Progress , it cannot be cancelled. ### Results & Reconciliation Once your batch reaches Completed status, download the results file from the batch detail page. The file contains the following columns for every row you submitted: | Column | Description | | --- | --- | | `row_number` | The row's position in the original uploaded file. | | `merchant_reference` | The reference you provided for reconciliation. | | `subscription_id` | The subscription targeted by the row. | | `old_next_payment_date` | The subscription's `next_payment_date` immediately before the update. Only populated for successful rows. | | `new_next_payment_date` | The new `next_payment_date` written to the subscription. Only populated for successful rows. | | `status` | The row's final status (`success`, `validation_failed`, or `processing_failed`). | | `error_message` | The validation or processing error message for failed rows. Empty for successful rows. | ### Webhooks For each subscription whose date is successfully updated, Glomo fires a **`subscription`** webhook with `event_type: "updated"`. The webhook payload is the standard `Subscription` resource and reflects the new `next_payment_date`. > Note: unlike Bulk Subscription Charges, the subscription `updated` webhook does **not** include a `batch_id` field. If you need to correlate webhook deliveries back to a specific bulk upload, use the `merchant_reference` you supplied in the file together with the results file. If a row fails validation or processing, no subscription is mutated and no webhook is sent for that row. ### What this feature does **not** do - It will not change subscription frequency (e.g. monthly → quarterly). - It will not modify the subscription amount or currency. - It is not a retry mechanism for failed payments — use the standard subscription retry/recovery flow. - It does not apply to As Presented subscriptions. --- Source: https://docs.glomo.one/payin/subscriptions/fixed-frequency-subscriptions Section: Payin ## Fixed Frequency Subscriptions Fixed-Frequency Subscriptions are designed for businesses that charge customers on a predictable, recurring schedule - such as monthly, quarterly, or yearly. With fixed-frequency subscriptions, Glomo automatically initiates payments based on the configured billing cycle, removing the need for manual intervention while ensuring reliable and timely collections. This model is ideal for businesses offering SaaS products, memberships, subscriptions, or installment-based services with consistent billing intervals. ### How Fixed-Frequency Subscriptions Work 1. Merchant creates a subscription with a defined billing frequency and schedule. 2. Customer completes the first payment or authorization on Glomo checkout. 3. Glomo securely stores the customer’s payment method. 4. Glomo automatically charges the customer on each scheduled billing date. 5. Subscription continues until completed, paused, halted, or cancelled. ## Steps to Create a Subscription You can create a subscription directly from the Glomo dashboard. Here’s how: 1. Go to the Dashboard. Navigate to the **Subscriptions** section. 2. Click “**Create Subscription**” 3. Select **customer** 4. Define **Amount**, **Billing Frequency**, **Billing Interval**, **Start Date**, **Number of Billing Cycles**(if applicable). 5. Create the subscription and share the **payment link** with the customer. ### Via API Example: ```http curl -i -X POST \ https://api.glomopay.com/api/v1/subscriptions \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible, monthly insurance for belongings, travel, and digital assets; easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets", "amount": 1000, "currency": "USD", "interval_type": "month", "interval_count": 1, "billing_cycles": 12, "start_date": "2025-01-01", "expires_at": "2025-01-07", "notify_customer": true, "notes": { "key1": "value1", "key2": "value2" }, "reference_number": "R0001", "starts_with_first_payment": true }' ``` ## Pre-Authorization with Future Start Date Fixed-Frequency Subscriptions support pre-authorization, allowing customers to approve future recurring payments ahead of time. ### How It Works - Merchant sets a future start date during subscription creation. - Customer completes checkout immediately. - Glomo stores the authorized payment method securely. - The first charge occurs automatically on the configured start date. | State | Description | | --- | --- | | Created | Subscription is created by the merchant. No payment has been made yet. | | Authorized | The user has successfully set up the subscription. Recurring payments will start on the scheduled date.| | Active | Subscription is active after the first successful payment, or resumed after a pause. Recurring billing continues. | | Paused | Subscription is paused by the merchant. No further payments will be charged until resumed. | | Completed | The subscription has run its full billing cycle and is now complete. | | Expired | The customer didn’t complete payment before the link expired. The subscription is no longer valid. | | Halted | A scheduled payment failed (after retries). Subscription is paused pending manual reactivation. | | Cancelled | Subscription is cancelled by the merchant. No further billing will occur. | ## When to Use Use this feature when: - You’ve collected the first payment and want the next charge to align with the policy start or renewal date. - A customer has requested a short deferral of their next billing date. - You want to maintain consistent billing intervals while preserving the subscription lifecycle. Avoid using this feature to: - Change subscription frequency (e.g., monthly → quarterly). - Modify the billing amount. - Retry a failed payment use the retry mechanism instead. ## Dashboard Flow You can create a subscription directly from the Glomo dashboard. Here's how: 1. Navigate to **Subscriptions** → Subscription Details. 2. Click **“Update Next Payment Date”** (visible only for active subscriptions) 3. A confirmation modal appears: - Displays the **current date**. - Allows selection of a **new future date** (within 28-day window) 4. **Confirm** the update. --- Source: https://docs.glomo.one/payin/subscriptions/set-up Section: Payin > This guide uses the **[Glomo Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk)** (Subscription Checkout journey) — see it for the full set of journeys and options. If you integrated earlier with the older `checkout-sdk`, it continues to work — switch the import to the Unified SDK when convenient. # Set up recurring subscriptions ## Steps to integrate the Subscription on checkout 1. **Create** a Subscription in the Server 2. Add a **Subscribe Button** on checkout 3. Verify **checkout response** and **signature** on the server 4. Verify **payment status** ## Step 1 : Create a Subscription in the Server Use your server and Glomo secret keys to create a subscription via the Create Subscription API. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/subscriptions ``` ### Request ```http curl -i -X POST \ https://api.glomopay.com/api/v1/subscriptions \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible, monthly insurance for belongings, travel, and digital assets; easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets", "amount": 1000, "currency": "USD", "interval_type": "month", "interval_count": 1, "billing_cycles": 12, "start_date": "2025-01-01", "expires_at": "2025-01-07", "notify_customer": true, "notes": { "key1": "value1", "key2": "value2" }, "reference_number": "R0001", "starts_with_first_payment": true }' ``` ### Example: Create an "as_presented" Subscription For `as_presented` subscriptions, `interval_count`, `billing_cycles`, and `start_date` must not be provided. The billing schedule is determined by the merchant presenting charges as needed. A `max_amount` field is required to cap the maximum amount per payment. ```http curl -i -X POST \ https://api.glomopay.com/api/v1/subscriptions \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible insurance for belongings easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "As presented billing plan", "amount": 1000, "max_amount": 3000, "currency": "USD", "interval_type": "as_presented", "expires_at": "2026-02-01", "notify_customer": true, "starts_with_first_payment": true }' ``` ### Response ```http { "id": "sub_6979fa805EFmv", "status": "created", "start_date": null, "end_date": null, "billing_cycles": null, "next_payment_date": null, "expires_at": "2026-02-01", "subscription_link_url": "https://your-dashboard-host.example/subscription-links/sub_6979fa805EFmv", "customer_id": "cust_5JU9yv0lGSUP", "cancelled_at": null, "reference_number": null, "notes": {}, "plan_name": "ShieldGuard Lite", "plan_description": "As presented billing plan", "product_name": "ShieldGuard Insurance", "product_description": "Flexible insurance for belongings easy to manage", "amount": 1000, "currency": "USD", "interval_type": "as_presented", "interval_count": null, "max_amount": 3000 } ``` You will receive an “**id**” in the response. This **id** should be passed to the Checkout SDK. ## Step 2 : Add a Subscribe Button on checkout Add a "**Subscribe**" button to your website and integrate the Glomo Checkout SDK as shown below: ```html ``` ### Notes: - The code snippet will create a **checkout instance** and open the **checkout form** when the user clicks on the subscribe button. - The **subscription** created via your server in **Step 1** should be passed to the checkout instance. - Handle the payment success and failure events, in the handlers function you will get **payment object** or **error object** based on the payment status. Collect these and send them to your server and retry accordingly in case payment fails. - If a **callbackUrl** is provided, users will be redirected to that URL after payment completion. In this case, the **success** and **failure** event handlers will not be triggered. ### About the Callback URL When you provide a callbackUrl, the user will be automatically redirected to that URL after payment completion with the following parameters: ### For successful payments: ```curl https://yourwebsite.com/payment-result?orderId=sub_679a16457aP6K&paymentId=payt_679a16457aP6K&status=success&signature=701eab675aca32c14cd1e5e041842d11ee9d04e91a3aaa73c629664a336b2952 ``` ### For failed payments: ```curl https://yourwebsite.com/payment-result?orderId=sub_679a16457aP6K&paymentId=payt_679a16457aP6K&status=failed&errorCode=INVALID_CARD&errorMessage=Payment+failed+due+to+the+card+being+invalid%3B+please+use+a+different+card. ``` For a subscription, `orderId` holds your subscription ID. A failed redirect carries no `signature`, so confirm the payment on your server. This allows server-side handling of payment results in addition to the client-side event handlers. ## Step 3: Verify checkout response and signature on the server The `payment.success` handler receives `orderId`, `paymentId`, `status` and `signature`, with camelCase keys. For a subscription, `orderId` holds your subscription ID. Verify the signature on your server to confirm the payment is authentic. Sign `orderId|paymentId|status`, using the subscription ID you created in step 1. The signature is the hex HMAC-SHA256 of that string: compute it with each of your active secret keys, and accept the response if any one of them matches. Your active secret keys are every secret key on your account that has not expired. The signature may be made with any one of them, and it can differ between payments, so don't assume it is your newest key. Use a constant-time comparison. The `payment.failure` event is not signed. When you revoke a key, or it expires, remove it from your list. A stale key left in the list opens no security hole, but keep the list matching the keys in your dashboard. ### Sample code to verify the signature The sample loads your active secret keys from a comma-separated `GLOMO_SECRET_KEYS` setting in your config. It trims each key, drops empty entries, and stops with an error if no key is left. An empty key must never count as a match: anyone can compute the signature for an empty key, so it would let a forged response through. ```php ``` ## Step 4: Verify payment status Payment's status can be tracked in the following ways - You can track the payments linked to your **sub_id** via **dashboard**. - You can also track the payment status via polling the **[Payment APIs](https://docs.glomo.one/api-reference/openapi/payment/getpaymentbyid)**. - You can also track the payment status via **[Webhooks](https://docs.glomo.one/platform/webhooks)** which will notify you about the payment status. --- Source: https://docs.glomo.one/payin/subscriptions/subscription-management Section: Payin ## Subscription Management Glomo provides comprehensive tools to manage subscriptions throughout their lifecycle. Merchants can pause, resume, cancel, or update subscriptions directly from the Glomo dashboard or via APIs, giving full control over customer billing while maintaining transparency and compliance. Subscription management capabilities vary slightly depending on whether the subscription is Fixed-Frequency or As Presented. [Image: subscription_management] ### Supported Management Actions | Action | Fixed-Frequency Subscriptions | As Presented Subscriptions | |---|---|---| | Pause Subscription | ✅ Supported | ❌ Not applicable | | Resume Subscription | ✅ Supported | ❌ Not applicable | | Cancel Subscription | ✅ Supported | ✅ Supported | | Update Next Payment Date | ✅ Supported | ❌ Not applicable | | Manual Charge | ❌ Not applicable | ✅ Supported | | Update Card | ✅ Supported | ✅ Supported | | Deactivate Subscription Link | ✅ Supported | ✅ Supported | ## Pausing a Subscription ### What Happens When a Subscription Is Paused - All upcoming scheduled payments are temporarily stopped. - No charges will be attempted until the subscription is resumed. - Subscription remains visible and can be reactivated at any time. > **Note:** Applicable only to Fixed-Frequency subscriptions. ### Steps to Pause a Subscription 1. Go to the Dashboard. Navigate to the **Subscriptions** section. 2. Open the **Subscription Details** 3. Click **Pause** Subscription. 4. **Confirm** the action
[Image: subscription_pause] Alternatively, you can use the **Pause Subscription API** to pause an active subscription. ## Resuming a Paused Subscription ### What Happens When a Subscription Is Resumed - The subscription returns to Active state. - Billing resumes based on the existing schedule. - Future payments are charged automatically by Glomo. ### Steps to Resume a Subscription 1. Navigate to the **paused subscriptions**. 2. Click **Resume** Subscription. 3. **Confirm** the action
[Image: subscription_resume] Alternatively, you can use the **Resume Subscription API** to resume a paused subscription. ## Canceling a Subscription ### What Happens When a Subscription Is Cancelled - The subscription is permanently stopped. - No further payments will be charged. - The subscription cannot be resumed once cancelled. ### Steps to Cancel a Subscription 1. Navigate to the **Subscription** section. 2. Click **Cancel** Subscription. 3. **Confirm** the action
Cancellation is supported for both Fixed-Frequency and As Presented subscriptions. [Image: subscription_cancel] Alternatively, you can use the **Cancel Subscription API** to cancel an active subscription. ## Updating the Next Payment Date (Fixed-Frequency Only) The **Update Next Payment Date** feature allows merchants to adjust the upcoming billing date for an active subscription. This is particularly useful for merchants in the insurance and financial services sectors, where policy issuance or activation may occur after the initial payment collection. By updating the next payment date, merchants can align the recurring billing schedule with business events without cancelling or recreating the subscription. [Image: update_next_payment_date] ### When to Use Use this feature when: - You’ve collected the first payment and want the next charge to align with the policy start or renewal date. - A customer has requested a short deferral of their next billing date. - You want to maintain consistent billing intervals while preserving the subscription lifecycle. Avoid using this feature to: - Change subscription frequency (e.g., monthly → quarterly). - Modify the billing amount. - Retry a failed payment use the retry mechanism instead. ### Dashboard Flow You can create a subscription directly from the Glomo dashboard. Here's how: 1. Navigate to **Subscriptions** → Subscription Details. 2. Click **“Update Next Payment Date”** (visible only for active subscriptions) 3. A confirmation modal appears: - Displays the **current date**. - Allows selection of a **new future date** (within 28-day window) 4. Confirm the update. ### API Reference Endpoint: ```curl PATCH /subscriptions/{subscription_id}/next-payment-date ``` Request Body: ```http { "next_payment_date": "2025-11-10" } ``` ## Update Card on a Subscription You can use this feature to request customers with an active subscription to update their card directly through the existing subscription link. This ensures uninterrupted future auto-debits without the need to create a new subscription. > **Note:** Card can only be updated for Subscriptions in Active Status. ### Steps to Request Card Update 1. Navigate to **Subscriptions** → Subscription Details. 2. Click **More Actions**. 3. Select **Request update card** and click on **Confirm**. 4. The customer receives an email with their subscription link with instructions to update their card.
[Image: subscription_update_card] ### How It Works - The **"Update Card"** CTA is displayed on the subscription link when the subscription is in **Active** status. - The customer enters new card details on the checkout page. - A **$1 USD** verification charge is processed on the new card and automatically refunded on success. - The new card token **replaces the existing payment method** for all future auto-debits. ### What Happens When a Card is Updated - The **Subscription ID remains unchanged** — no new subscription is created. - The **billing cycle remains unchanged** — the next payment date and frequency are not affected. - The new card token replaces the existing payment method for all subsequent auto-debits. - A **tracker entry** is added to the subscription: *"Payment method has been updated. Card ending with XXXX will be used for subsequent payments."* - A webhook event `subscription.payment_method.updated` is fired to notify the merchant. ### Validations and Restrictions | Scenario | Behaviour | |---|---| | Subscription is not in **Active** status | The "Change Card" CTA is **not displayed**. Card update is only available for active subscriptions. | | Customer enters the **same card** already on file | The system detects a duplicate and displays: *"This card is already associated with your subscription. Please use a different card."* | ### Webhook When a card is successfully updated, Glomo sends the following webhook event: **Event type:** `subscription.payment_method.updated` **Example payload:** ```json { "entity_type": "subscription", "event_type": "payment_method.updated", "data": { "id": "sub_69a02470HQ8yr", "status": "active", "start_date": "2026-02-26", "end_date": "2027-02-26", "billing_cycles": 12, "next_payment_date": "2026-04-26", "expires_at": null, "subscription_link_url": "https://your-dashboard-host.example/subscription-links/sub_69a02470HQ8yr", "customer_id": "cust_69a023dfGW4Yt", "cancelled_at": null, "reference_number": "REF-12345", "notes": {}, "payment_method": { "type": "card", "details": { "card_network": "visa", "card_type": "credit", "end_digits": "4242", "country_code": "ARE", "card_holder_name": "John Doe", "card_bin": "424242", "issuer_name": "Emirates NBD" } }, "plan_name": "Monthly Premium", "plan_description": "Monthly subscription plan", "product_name": "Insurance Premium", "product_description": null, "amount": 40000, "currency": "USD", "interval_type": "monthly", "interval_count": 1, "max_amount": null } } ``` The `payment_method` object in the webhook reflects the **newly updated card** details, allowing merchants to confirm the change in their systems. ## Handling Failed Payments & Halted Subscriptions - If a scheduled payment fails after configured retries, the subscription moves to Halted state. - While halted: - No further charges are attempted. - Merchant can collect a payment on the same subscription from the customer to move the subscription to the active state again. - For As Presented subscriptions, halting occurs due to card expiry or repeated failed charges. - When a subscription is halted, the API response and webhook payload include a `halt_reason` object: ```json "halt_reason": { "code": "MAX_RETRIES_REACHED", "description": "The maximum number of auto-debit retry attempts was reached without a successful payment." } ``` The `halt_reason` field is **absent** for subscriptions in any other status. --- Source: https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up Section: Payin # Set up bank transfers The customer pays an order by bank transfer. You create the order on your server and open Glomo checkout. Checkout shows the customer the bank account details, the amount to send and a payment reference. The customer sends the transfer from their own bank. Glomo matches the incoming transfer to the order, and a webhook tells you the result. > **Other bank-transfer flows: confirm with Glomo.** This page covers one payment per order, collected through checkout. If your integration needs a different bank-transfer setup, confirm the flow with Glomo before you build it. ## What the customer sees - **One or more receiving accounts.** Checkout can offer a local-transfer account, an international (SWIFT) account, or both. Checkout chooses the currency of the local account from the customer's `country`. Which accounts appear, and in which currencies, depends on how your Glomo account is set up. Confirm this with Glomo. - **Never per order or per customer.** The receiving account is either your own Glomo account or a shared Glomo account. Different orders, and different customers, can show the same account details. The payment reference is what identifies the order. - **The amount to send, per account.** It is in that account's currency. It includes any fees that your pricing puts on the customer, and the tax on those fees. When the account currency is not the order currency, it also includes the conversion. - **A payment reference.** This is `GLM` followed by five characters. The customer must include it in the transfer. ## Before you start - Bank transfer must be active on your Glomo account. If you send `bank_transfer` in `payment_methods` and it is not active, the order is rejected with `400`. - Server calls use your secret key. Checkout uses your public key. See [Authentication](https://docs.glomo.one/platform/authentication). - Configure a webhook endpoint. Bank-transfer outcomes arrive asynchronously, so webhooks are how you learn the result. See [Webhooks](https://docs.glomo.one/platform/webhooks). ## Integration steps ### Step 1 - Create the customer `createCustomer` - `POST /customer` Call this once per payer and store the returned `id` against your user. Reuse it on later orders. Send `name`, `customer_type`, `email`, `address`, `city`, `state`, `country` and `pincode`. Set `country` correctly, because checkout uses it to choose the local-currency account. See [Create a customer](https://docs.glomo.one/api-reference/openapi/customer/createcustomer) for the validation rules. ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/customer \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "name": "John Doe", "customer_type": "individual", "email": "customer@example.com", "address": "123 Main St", "city": "Anytown", "state": "Anystate", "country": "ARE", "pincode": "560048" }' ``` ### Step 2 - Create the order `createOrder` - `POST /orders` Create the order from your server when the customer starts to pay. The key fields are these: | Field | Value | | --- | --- | | `customer_id` | The customer `id` from step 1. Required. | | `amount` | The amount to collect, in the smallest unit of `currency`. `10000` is 100.00 AED. | | `currency` | The order currency. One of the values that [Create an order](https://docs.glomo.one/api-reference/openapi/orders/createorder) lists. | | `payment_methods` | Include `bank_transfer`. Send only `["bank_transfer"]` to offer bank transfer alone. If you leave out the field, checkout offers every payment method that is active on your account. | | `request_id` | Your unique ID for this order. A second order with the same `request_id` is rejected with `400` and `Order already exists for this request_id`. | | `purpose_code` | A payin code from [Payin purpose codes](https://docs.glomo.one/payin/purpose-codes). Optional. If you leave it out, your account's default applies, if one is set. | | `reference_number` | Optional. Your own reference for reconciliation. | ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/orders \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_E602dMzgjpDC", "amount": 10000, "currency": "AED", "payment_methods": ["bank_transfer"], "purpose_code": "P1401", "reference_number": "R0001", "request_id": "unique_order_request_id_123" }' ``` The response is the order. Pass its `id` (for example `order_678a4c88hpAjf`) to checkout. An order that is `active` can be paid. ### Step 3 - Open checkout Open Glomo checkout in the browser with the order `id` and your public key. The [Checkout](https://docs.glomo.one/payin/checkout) guide has the full setup, including the CSP and popup requirements. ```js import { GlomoCheckoutApi } from 'https://unified-sdk.glomopay.com/index.js'; const checkout = new GlomoCheckoutApi({ orderId: 'order_678a4c88hpAjf', // the order id from step 2 publicKey: '', callbackUrl: 'https://yourwebsite.com/payment-result', // optional, see step 5 }); document.getElementById('pay-button').addEventListener('click', () => checkout.open()); ``` ### Step 4 - The customer sends the transfer The customer picks a receiving account in checkout and sends the amount shown from their own bank. Glomo matches the incoming transfer to the order as follows: - **The payment reference.** When the transfer carries the reference, Glomo matches it to the open order with that reference. - **The amount and currency.** These must equal the amount and currency that checkout showed for that account. If the customer opens checkout again later, the amount shown can change. The transfer must then match the new amount. - **The sender details.** If the reference is missing, Glomo can still match the transfer from the sender's account number and name. It compares them with the customer's name and with the details that the customer confirms in checkout (step 5). - **The order must still be open.** A transfer for an order that is no longer `active`, for example because it expired, does not reopen the order. If Glomo cannot match the transfer, the payment goes to `action_required`. See [When the transfer doesn't match](https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up#when-the-transfer-doesnt-match). ### Step 5 - Handle the submitted event After the transfer, checkout can ask the customer to confirm the account they paid from: the last 4 characters of the account number and the name on the account. When they submit, checkout emits `payment.bank_transfer_submitted`. **This event means the customer says that they sent the transfer. It does not mean that money arrived.** Show a pending state, and wait for the webhook (step 7). The customer can close checkout without submitting, so do not depend on this event. Without a `callbackUrl`, your handler receives this payload: ```json { "status": "bank_transfer_submitted", "orderId": "order_678a4c88hpAjf", "senderAccountNumber": "7890", "senderName": "John Doe", "payerRelationship": "" } ``` `senderAccountNumber` is the last 4 characters of the account the customer paid from. `senderName` is the name on that account. The customer usually types both. Checkout sometimes prefills them from the customer's details, for example from a registered bank account, or it uses the customer's name when they confirm that the account is their own. Treat them as what the customer told checkout, not as verified details. `payerRelationship` can be empty. ```js checkout.on('payment.bank_transfer_submitted', (response) => { // Show "transfer pending". Do not mark the order paid. }); ``` With a `callbackUrl`, the SDK redirects the browser instead of calling your handler. The same fields arrive as query parameters: ``` https://yourwebsite.com/payment-result?orderId=order_678a4c88hpAjf&status=bank_transfer_submitted&senderAccountNumber=7890&senderName=John+Doe&payerRelationship= ``` If the order is already paid while the customer is still on the confirmation screen, checkout emits `payment.success` instead, or redirects with `status=success`. For a bank transfer, this success carries an empty `paymentId` and an empty `signature`. ### Step 6 - Verify the signature - **Checkout events are not signed for bank transfers.** `payment.bank_transfer_submitted` and its redirect have no signature. The bank-transfer `payment.success` has an empty `signature`. You cannot verify them, so never mark an order paid from the browser. The `order_id|payment_id|status` signature recipe in the [Checkout](https://docs.glomo.one/payin/checkout) guide applies only when the event carries a `paymentId` and a `signature`. - **Confirm on your server.** Use a verified webhook (step 7), or call [Retrieve an order](https://docs.glomo.one/api-reference/openapi/orders/getorderbyid) and check for `status: paid`. - **Verify every webhook.** Glomo signs each webhook with HMAC SHA-256 over the raw request body and sends the signature in `X-Glomopay-Signature`. See [Webhook Authentication & Security](https://docs.glomo.one/platform/webhooks#webhook-authentication--security). ### Step 7 - Handle the payment webhooks These webhooks matter for a bank transfer. See [Payment webhooks](https://docs.glomo.one/platform/webhooks/payment) for the payloads. | `entity_type` | `event_type` | Meaning | | --- | --- | --- | | `payment` | `success` | The transfer was received, matched to the order and processed. This is the funds-received signal. Check `funds_available` and `compliance_status` in `data`. | | `payment` | `funds_available` | Funds that were held on a `success` webhook with `funds_available: false` are now available. | | `payment` | `action_required` | A transfer arrived, but Glomo could not complete it. Read `error_code`. See [When the transfer doesn't match](https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up#when-the-transfer-doesnt-match). | | `orders` | `paid` | The order is paid. | About `funds_available`: read it from the `success` webhook, not from the payment returned by an API call. A payment read soon after it succeeds can briefly show `funds_available: false` before the `success` webhook is sent. - On the `success` webhook, `data.funds_available: true` means that the funds are available in your Glomo balance, for payouts and settlement. - On the `success` webhook, `data.funds_available: false` means that the funds are held. A later webhook with `event_type: funds_available` tells you when they become available. - A payment can be `success` while `compliance_status` is `action_required`. The money was received, but it is held until you answer the RFI. See [Compliance Reviews & RFIs on Successful Payments](https://docs.glomo.one/request-for-information/compliance-reviews-and-rfis-on-successful-payments). Do not depend on the order in which the `payment` and `orders` webhooks arrive. A retried delivery can repeat an event, so process each one idempotently. In the payment, `payment_amount` and `payment_currency` are what the customer sent. `converted_amount` and `converted_currency` are the order side. ## When the transfer doesn't match A transfer that Glomo cannot match leaves the payment in `action_required`, with `payment_method.type: bank_transfer` and one of these `error_code` values: - `PAYIN_NOT_FOUND`: no open order matched the transfer. No open order had the transfer's reference or sender together with the same amount and currency, or the order was no longer open. - `PAYIN_AMOUNT_MISMATCH`: the payment is connected to an order, but the amount received does not equal the amount that the order expects. To resolve these payments, see [Resolving Action Required Payments](https://docs.glomo.one/payin/action-required). ## Test it in sandbox In sandbox, [Create a mock payment](https://docs.glomo.one/api-reference/openapi/payment/createmockpayment) sends a mock bank transfer into one of your virtual accounts. Glomo processes it like a real transfer. It matches the transfer to an open order or payment link - **With `payin_id`.** The transfer goes to the virtual account that checkout offers the payin's customer for `transfer_type`. The amount defaults to the payin's quoted amount, and the sender defaults to the payin's customer. The reference defaults to the payin's payment reference, so the transfer matches by reference. Do not send `currency`, or the call returns `400`. - **Without `payin_id`.** Send `amount` and `currency`. The transfer goes to your virtual account for that currency and `transfer_type`. It matches an open payin only by the payin's payment reference, or by the sender's name or account together with the payin's quoted amount. A `local` transfer uses local rails, and a `swift` transfer uses SWIFT rails. If there is no virtual account for the transfer, the call returns `400` with `No active virtual account for this payment`. The examples use the order `order_678a4c88hpAjf`. Its payment reference is `GLMHPAJF`. [Create a mock payment](https://docs.glomo.one/api-reference/openapi/payment/createmockpayment) shows the full response for each case. ### Matched transfer ```json { "payin_id": "order_678a4c88hpAjf", "transfer_type": "local" } ``` Expect a payment with `status: success`, then the `payment` `success` and `orders` `paid` webhooks. ### Overpayment or underpayment Send an `amount` that is different from the quoted amount: ```json { "payin_id": "order_678a4c88hpAjf", "transfer_type": "local", "amount": 12000 } ``` The default reference still connects the transfer to the order. Expect `status: action_required` with `error_code: PAYIN_AMOUNT_MISMATCH`. ### Unmatched transfer ```json { "amount": 10000, "currency": "USD", "transfer_type": "local" } ``` Expect `status: action_required` with `error_code: PAYIN_NOT_FOUND`. Resolve it as in [When the transfer doesn't match](https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up#when-the-transfer-doesnt-match). ### Sanctions hit Create an order whose quoted amount is exactly `6623`. Then mock it with its `payin_id` only: ```json { "payin_id": "order_68f1c1d0sQ4nK", "transfer_type": "local" } ``` The result depends on post-payment screening for bank transfers on your account: - **Off.** Expect `status: action_required` with `error_code: SANCTION_HIT`. - **On.** Expect `status: success` with `compliance_status: under_review`. After the screening, Glomo sends the `payment` `compliance_action_required` webhook with an RFI, and holds settlement until you resolve it. See [Compliance Reviews & RFIs on Successful Payments](https://docs.glomo.one/request-for-information/compliance-reviews-and-rfis-on-successful-payments). Glomo screens a transfer only after it matches a payin and passes the amount check. A transfer that stops with `PAYIN_NOT_FOUND` or `PAYIN_AMOUNT_MISMATCH` is not screened. --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/faq Section: Payin # LRS integration FAQ 1. **What are the bank cut-off timings for LRS remittances?** | Bank | Start | Cut-off | | ----- | ------- | ------- | | HDFC | 9:30 AM | 2:30 PM | | IDFC | 9:30 AM | 2:30 PM | | ICICI | 9:30 AM | 5:30 PM | | Axis | 9:30 AM | 5:30 PM | | Kotak | 9:30 AM | 2:30 PM | All times are IST, Monday–Friday. Orders placed after the cut-off, or on weekends/bank holidays, are queued for processing on the next working day. These windows are as informed by the respective banks. Actual processing may drift from this schedule, particularly during high-volume periods or when a bank is facing operational issues.

2. **Will Glomo ask the customer for bank details at checkout?** Only if the order was created without a `bank_account_id`. If a `bank_account_id` is passed when creating the order, Glomo prefills and displays those bank details to the customer for confirmation (not editable). If it is omitted, Glomo collects the bank details from the customer during checkout. See [Collection of bank account information](https://docs.glomo.one/payin/resident-india-remittance-under-lrs#collection-of-bank-account-information) for details.

3. **Does the Create a quote API return Glomo's rate or the bank's rate?** The `fx_rate` returned by the [Create a quote](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up#create-a-quote) API is based on the partner bank's rate at the time of the call. Glomo adds no markup of its own; the partner bank's FX markup applies. Note that `quote_id` is valid for only 30 minutes — the rate and final INR debit (incl. GST & TCS) are confirmed by the bank at the time the payment is actually processed, and can vary from the indicative quote.

4. **How often do FX rates get updated?** Refresh frequency depends on the bank: - ICICI, IDFC, Axis: twice a day, around 9:30 AM and 5:00 PM IST. - HDFC, Kotak: roughly every 3 hours. Given `quote_id` expires in 30 minutes, fetch a fresh quote close to the time of payment rather than reusing an older one.

5. **Who calculates and collects TCS (Tax Collected at Source)?** TCS is calculated, applied, and managed independently by the remitting bank, in accordance with applicable RBI/tax regulations. Glomo does not compute or collect TCS, since Glomo does not have visibility into the customer's cumulative LRS remittances across other sources.

6. **Are there any processing fees or FX markups added by Glomo?** No processing fee is charged by the bank on these transactions. GST is applicable on the FX component. Glomo adds no FX markup of its own; the exchange rate shown to the customer is the rate provided by the partner bank, and the bank's FX markup applies.

7. **Why is a customer asked to wait when retrying a payment on the same order?** When a payment attempt is made on an order, a payment ID is created. The outcome of the attempt isn't known immediately (e.g. while the bank, such as ICICI, is processing it), so Glomo waits for a set window, configured per bank, before marking that payment ID as failed if no confirmation is received. If a customer reopens the same order while a prior attempt's payment ID is still active, they are prompted to wait until that window elapses. **Recommendation:** instead of making the customer wait, create a fresh order and have the customer pay against it. A new order has no prior payment attempt, so it carries no waiting period.

8. **When does an LRS order expire?** An LRS order expires when its quote expires; a payment attempt does not extend it. A quote is valid for a set window, normally 30 minutes; the quote's `expires_at` gives the exact time. The order's `expires_at` is set to the same value, and after that, payment creation fails. The order's `status` may not show `expired` straight away. It usually updates within about 5 minutes, and not until any open payment attempt on the order has resolved; an attempt already under way can still complete the order. Use the quote's `expires_at`, not the order's `status`, to decide whether the customer can start a new payment.

9. **How is the SWIFT reference number generated and mapped to a transaction?** Glomo does not generate a SWIFT reference number. Every partner bank provides its own unique `payment_id`/transaction reference, which Glomo uses for tracking.

10. **Can a transaction that has been marked successful subsequently be reversed? How are reversals or chargebacks handled?** A transaction is marked successful only after clear funds are sighted by Glomo in its PSP escrow account. In the rare event a bank initiates a reversal for an erroneous credit, Glomo shares the status on a case-by-case basis.

11. **What is the typical turnaround time (TAT) for funds to be credited to the GIFT City account after a transaction is initiated?** TAT varies by bank and its processing cut-offs. Credits to Glomo's GIFT City account are generally observed between T+0 and T+2. These credits are reconciled thrice every working day against each transaction, after which funds are marked available in the client's payment account (enabling buying power on their end). Funds themselves are bulk-settled once daily in a rolling manner.

12. **Are there any charges applicable during the transaction lifecycle, and how are they communicated?** On the charges shown to the investor: the indicative FX rate (fetched via the bank API), the bank's convenience/transaction fee, and the applicable GST are all displayed on the Glomo Checkout.

13. **At what intervals are funds settled and credited to the GIFT City account for pay-in transactions?** Earmarked settlements for pay-in transactions are processed to the identified bank account every working day between 11 AM and 12 PM IST. This can be routed either to the client's GAP physical bank account or directly to a US broker, as per the client's choice.

14. **What report formats are available for pay-in and payout reconciliation (MIS/statements)?** Payment reports, settlement reports, and bank statements are all provided in CSV format, downloadable via the Glomo Dashboard.

15. **Is there a unique transaction identifier to reconcile transactions across reports, APIs, bank statements, and settlement files?** Yes — the `payment_id` is passed consistently across Glomo reports. Within the downloaded reports, the `id` column in the payment report maps to the `entity_id` column in the settlement report, enabling cross-reconciliation between the two. See [Payment, settlement and payout reports for LRS](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports) for a step-by-step reconciliation.

16. **When creating a quote, which side of the conversion is guaranteed — the source or target currency amount?** The amount you pass as `source_currency`/`source_amount` is the one Glomo guarantees; the `target_currency` amount is computed from it via the FX rate and can vary. For example, if you want an exact USD amount debited (e.g. to match a fixed-price USD invoice), set `source_currency` to `USD` and `target_currency` to `INR` — the USD amount stays fixed while the INR equivalent floats with the bank's rate. Conversely, setting `source_currency` to `INR` (as in the [Create a quote](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up#create-a-quote) example) guarantees the INR amount and gives an indicative USD equivalent.

17. **Is the Bank Customer ID required on every transaction, or only the first time?** Only once. After the customer provides it during Glomo's checkout, Glomo collects and stores it against their `bank_account_id`. For returning customers, pass the previously-created `bank_account_id` in the Create an Order API — the customer is prompted to pay using the bank customer ID already on file, without re-entering it.

18. **Which webhook confirms that funds have actually landed and are available to act on (e.g. to grant buying power to the end user)?** `payment.funds_available` is the definitive signal that funds have actually been received and are available — use this to trigger granting buying power. `payment.success` fires earlier, once the bank authorises the payment; it does not mean funds have landed on Glomo's side yet. For the outgoing settlement leg to your GIFT City account, `settlement.initiated` and `settlement.success` mark that movement.

19. **What's the consent/document workflow required for a payout (withdrawal)?** A signed consent letter (on your letterhead, confirming the investor's withdrawal request) is required per payout/withdrawal request. Generate and upload it via the Document Upload API, then pass the returned document ID in the Create a Payout API call. See the [Withdrawal Flow Guide](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide) for the full request/response examples.

20. **Does Glomo provide native iOS/Android SDKs, or only React Native/Flutter?** Native SDKs are in active development. If your app doesn't support React Native/Flutter, check with your Glomo integration contact for the current release timeline.

## Bank-wise account number restrictions When you add a customer's bank account (`POST /customer/{id}/bank_account`), Glomo checks that the `account_number` is digits only and that its length is within the range the bank accepts: | Bank | Accepted length | | --- | --- | | HDFC | 14–15 digits | | IDFC | 9–11 digits | | ICICI | 12–15 digits | | Axis | 10–15 digits | | Kotak | 10–14 digits | - Send the account number exactly as the bank issued it: digits only, with no spaces, hyphens or other characters. Keep any leading zeros. - A number outside the range is rejected with `400`. The error message names the bank and the length it expects. Nothing is created or changed, so you can retry once the number is corrected. - Don't retry the same number unchanged; it will be rejected again. Check the number with the customer first. - These ranges are confirmed with each bank. Some older accounts may not follow a bank's current format. If you have a valid account number that falls outside its range, contact Glomo support and we will check it with the bank. --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/retrieve-existing-records Section: Payin # Retrieve existing LRS records ## Retrieve Customer by Email ID Fetch the customer ID associated with a given email address. ### API Endpoint ```curl GET https://api.glomopay.com/api/v1/customer?email_address=customer%40glomopay.com ``` ### Request ```curl curl --location 'https://api.glomopay.com/api/v1/customer?email_address=customer%40glomopay.com' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' ``` ### Response ```curl { "data": [ { "id": "cust_69fadd9ePPDvZ", "name": "John", "customer_type": "individual", "email": "John@glomopay.com", "phone": "9876543210", "address": "202, swarna", "city": "chirala", "state": "Andhra Pradesh", "country": "IND", "pincode": "523155", "status": "active", "created_at": "2026-05-06T06:20:14.325Z", "updated_at": "2026-05-06T06:21:36.546Z", "address_v2": { "city": "chirala", "postal_code": "523155", "country_code": "IND", "address_line1": "202, swarna", "address_line2": null, "administrative_area": "Andhra Pradesh" }, "metadata": { "kyc": { "pan_number": "BFQPG7654R" }, "bank_accounts": [ { "id": "acclrs_69faddacidiza", "bank_code": "hdfc", "account_number": "10276543543", "bank_customer_id": "1234567" } ] }, "user_id": null, "dob": null, "nationality": null, "deleted_at": null, "tax_identification_number": "BFQPG7654R" } ], "page_meta": { "current": 1, "previous": null, "next": null, "per_page": 20, "pages": 1, "count": 1 } } ``` ## Retrieve Customer by PAN Fetch the customer associated with a given PAN (`tax_identification_number`). The PAN is matched **exactly** (case-insensitive — the value is trimmed and upper-cased before matching), so a partial PAN returns no results. An invalid PAN format returns a `400` error. Results are scoped to your business. ### API Endpoint ```curl GET https://api.glomopay.com/api/v1/customer?tax_identification_number=BFQPG7654R ``` ### Request ```curl curl --location 'https://api.glomopay.com/api/v1/customer?tax_identification_number=BFQPG7654R' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' ``` ### Response ```curl { "data": [ { "id": "cust_69fadd9ePPDvZ", "name": "John", "customer_type": "individual", "email": "John@glomopay.com", "phone": "9876543210", "address": "202, swarna", "city": "chirala", "state": "Andhra Pradesh", "country": "IND", "pincode": "523155", "status": "active", "created_at": "2026-05-06T06:20:14.325Z", "updated_at": "2026-05-06T06:21:36.546Z", "address_v2": { "city": "chirala", "postal_code": "523155", "country_code": "IND", "address_line1": "202, swarna", "address_line2": null, "administrative_area": "Andhra Pradesh" }, "metadata": { "kyc": { "pan_number": "BFQPG7654R" }, "bank_accounts": [ { "id": "acclrs_69faddacidiza", "bank_code": "hdfc", "account_number": "10276543543", "bank_customer_id": "1234567" } ] }, "user_id": null, "dob": null, "nationality": null, "deleted_at": null, "tax_identification_number": "BFQPG7654R" } ], "page_meta": { "current": 1, "previous": null, "next": null, "per_page": 20, "pages": 1, "count": 1 } } ``` ## Retrieve Bank Account Details Fetch the bank account details linked to a customer. ### API Endpoint ```curl GET https://api.glomopay.com/api/v1/customer/customer_id/bank_account ``` ### Request ```curl curl --location 'https://api.glomopay.com/api/v1/customer/cust_69fadd9ePPDvZ/bank_account' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' ``` ### Response ```curl [ { "id": "acclrs_69faddacidiza", "bank_code": "hdfc", "account_number": "10276543543", "bank_customer_id": "1234567" } ] ``` --- Source: https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide Section: Payin # Withdraw an LRS remittance back to the investor This flow is used for fund withdrawals. When an end user requests to withdraw their overseas investments, you, as the Indian broker, initiate the withdrawal by providing the user's bank account details, which are treated as the beneficiary account. The withdrawal flow involves five steps: 1. **Create a Beneficiary** — register the user's bank account details as the beneficiary account. 2. **Create a Document** — upload the user's consent to withdraw the money. 3. **Get a Payout Quote** (optional) — show the investor an estimate of the INR they will receive. 4. **Create a Payout** — initiate the transfer to the beneficiary, referencing the beneficiary and the uploaded documents. 5. **Payout Success** — once the bank has processed the payout, its status changes to `success` and the finalized `destination_amount`, `mid_market_rate`, `taxes`, and `utr` are made available. --- ## Create a Beneficiary (V2) Creates a beneficiary with structured nested objects for beneficiary details, address, and bank account information. > **Note:** > - Create the LRS withdrawal beneficiary with `category` set to `"payout"` and `bank_account.currency` set to `"INR"`. > - Pass the **IFSC code** in the `local_routing_number` field. You do **not** need to pass a `swift_code`. > - Ensure you include the `tax_identification_number` (PAN) of the beneficiary inside the `notes` object. This is an example of a `notes` field your account may require. See the `notes` description in [Create a beneficiary](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2). > - Store the `id` received in the response — it is passed as `beneficiary_id` in the Create a Payout API request. ### API Endpoint ```curl POST https://api.glomopay.com/api/v2/beneficiaries ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v2/beneficiaries \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "category": "payout", "beneficiary": { "name": "John Doe", "type": "individual", "address": { "address_line1": "202 Swarna Residency", "city": "Bengaluru", "state": "Karnataka", "country_code": "IND", "postal_code": "560048" } }, "bank_account": { "account_number": "XXXXXXXXXX0291", "name": "HDFC Bank", "local_routing_number": "HDFC0000123", "currency": "INR", "address": { "address_line1": "HDFC Bank House, Senapati Bapat Marg", "city": "Mumbai", "state": "Maharashtra", "country_code": "IND", "postal_code": "400013" } }, "notes": { "tax_identification_number": "EFEXXXX68F" } }' ``` ### Response ```curl { "id": "bene_5JU9yv0lGSUP", "name": "John Doe", "type": "individual", "category": "payout", "status": "pending", "email": null, "phone": null, "nickname": null, "upi_account": null, "created_at": "2025-01-15T10:00:00Z", "updated_at": "2025-01-15T10:00:00Z", "address": { "address_line1": "202 Swarna Residency", "city": "Bengaluru", "state": "Karnataka", "country_code": "IND", "postal_code": "560048" }, "bank_account": { "account_number": "XXXXXXXXXX0291", "name": "HDFC Bank", "local_routing_number": "HDFC0000123", "currency": "INR", "address": { "address_line1": "HDFC Bank House, Senapati Bapat Marg", "city": "Mumbai", "state": "Maharashtra", "country_code": "IND", "postal_code": "400013" } }, "notes": { "tax_identification_number": "EFEXXXX68F" } } ``` --- ## Create a Document Upload the user's consent to withdraw the money by calling this API. The consent is a withdrawal request letter on your company letterhead confirming the investor's withdrawal request — download the sample template here: **Sample Withdrawal Request Letter**. The file is sent as binary in a `multipart/form-data` request. > **Note:** Store the `id` received in the response — it is passed in the `documents` array of the Create a Payout API request. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/document ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/document \ -H 'Authorization: Bearer ' \ -F 'document_name=Letterhead' \ -F 'file=@/path/to/Sample_Withdrawal_Request_Letter.pdf' ``` ### Response ```curl { "id": "doc_nYUqLpuYQ0M8", "document_name": "Letterhead", "file_name": "Letterhead_BC8tFdE.pdf", "preview_url": "https://glomopay-service-staging-documents.s3.ap-south-1.amazonaws.com/12345_Letterhead", "status": "uploaded", "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" } ``` --- ## Get a Payout Quote This step is optional. Use it to show the user about how much INR they will receive before you create the payout. The quote is an estimate only. It does not lock the rate. The bank sets the actual amount when it processes the batch. **You cannot attach this quote to a payout.** ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/lrs/quotes ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/lrs/quotes \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "resource": "payout", "source_amount": 1000000, "source_currency": "USD", "target_currency": "INR" }' ``` ### Response The API returns `201`. ```curl { "id": "quote_6ab51084HiJPg", "from": { "amount": 1000000, "currency": "USD" }, "to": { "amount": 93142106, "currency": "INR" }, "fx_rate": "94.13", "total_tax": 46594, "expires_at": "2026-09-24T12:29:00.819Z", "created_at": "2026-09-24T11:59:00.822Z" } ``` - `to.amount` is the estimated INR after fees, conversion and tax, in paisa. - `total_tax` is the estimated GST, in paisa. - `fx_rate` is the bank's USD to INR buy rate when the quote was made. > **Note:** This quote is an estimate. ### Errors - `400` — `Validation failed: Bank code is not supported for payout quotes`. You sent `bank_code`. - `400` — `Validation failed: payout quotes are only supported from USD to INR`. The currency pair is not USD to INR. - `422` — `No active exchange rate found`. No rate is available right now. --- ## Create a Payout Initiate the withdrawal by creating a payout to the beneficiary, referencing the `beneficiary_id` and the uploaded document `id`. > **Note:** > - For the LRS withdrawal flow, `source_currency` is `"USD"`, `destination_currency` is `"INR"`, and the `payment_rail` is `"neft"`. > - All amounts are expressed in the smallest unit of the currency (e.g., cents for USD, paisa for INR). For example, `100000` represents $1,000.00 in USD. > - The minimum withdrawal is $1. Set `source_amount` to `100` (USD cents) or more. A payout below this is rejected with a `400` error. > - `request_id` is a client-provided unique identifier for the payout. A payout with a duplicate `request_id` is rejected with a `409` error. ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/payouts ``` ### Request ```curl curl -i -X POST \ https://api.glomopay.com/api/v1/payouts \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "purpose_code": "P0001", "beneficiary_id": "bene_a1b2c3d4e5", "source_currency": "USD", "destination_currency": "INR", "source_amount": 10000, "payment_rail": "neft", "invoice_number": "INV-2026-001", "request_id": "req-7f3a9c20", "documents": ["doc_11aa22bb33"], "notes": { "internal_ref": "batch-42" } }' ``` ### Response ```curl { "id": "payout_6a7c51772CX2A", "beneficiary_id": "bene_6a7061db3UDRq", "destination_amount": null, "destination_currency": "INR", "source_currency": "USD", "source_amount": 10000, "purpose_code": "P0001", "status": "in_progress", "fees": { "txn_fee": { "currency": "USD", "amount": 0 }, "fx_fee": { "currency": "USD", "amount": 0 } }, "mid_market_rate": { "currency": null, "rate": null }, "documents": [], "utr": null, "created_at": "2026-08-11T05:27:16Z", "updated_at": "2026-08-11T05:27:17Z", "receipt_ids": [], "fee_collection_mode": "deferred", "request_id": "2026-08-11T05:27:10.995Z", "payment_rail": "neft", "invoice_number": null, "notes": null, "error_code": null, "error_description": null, "customer_error_description": null, "quote_id": null, "taxes": [], "estimated_credit_date": "2026-08-13" } ``` --- ## Payout Success Once the bank has processed the payout, its status changes to `success`. > **Note:** The values of `destination_amount`, `mid_market_rate`, `taxes`, and `utr` are only finalized once the payout status is `success`. Once the payout succeeds, these values are delivered via the `payout` webhook, and can also be fetched by polling [Retrieve a Payout](https://docs.glomo.one/api-reference/openapi/payout/getpayoutbyid). ### Response ```curl { "id": "payout_6a7c51772CX2A", "beneficiary_id": "bene_6a7061db3UDRq", "destination_amount": 946700, "destination_currency": "INR", "source_currency": "USD", "source_amount": 10000, "purpose_code": "P0001", "status": "success", "fees": { "txn_fee": { "currency": "USD", "amount": 0 }, "fx_fee": { "currency": "USD", "amount": 0 } }, "mid_market_rate": { "currency": "INR", "rate": 96.67 }, "documents": [], "utr": "AXISN1234567890", "created_at": "2026-08-12T10:56:55Z", "updated_at": "2026-08-12T10:56:56Z", "receipt_ids": [], "fee_collection_mode": "immediate", "request_id": "Glomo6", "payment_rail": "neft", "invoice_number": null, "notes": null, "error_code": null, "error_description": null, "customer_error_description": null, "quote_id": null, "taxes": [ { "name": "GST", "amount": 20000, "currency": "INR", "bps": 1800 } ], "estimated_credit_date": "2026-08-17" } ``` --- Source: https://docs.glomo.one/payout Section: Payout # Introduction Payouts are outward remittances made from your Glomo account to beneficiaries globally. With Glomo, you can effortlessly convert and send money to beneficiaries in more than 100 currencies using a single API. From paying international staff and freelancers to sending funds to overseas vendors, Glomo’s payout product simplifies cross-border transactions for all your needs. --- Source: https://docs.glomo.one/payout/action-required-state Section: Payout # Action Required State The action required state is a critical component of the compliance checks conducted by Glomo to prevent money laundering, fraud, and to comply with international financial sanctions. Failure to provide the requested information within the stipulated time frame can result in the transfer being delayed or canceled. When a payout moves to the 'action required' state, you'll receive a `payout` webhook and a notification on your Glomo dashboard. You'll receive an email once our risk analyst raises the RFI. Payout processing will resume once the submitted RFI documents are reviewed by the team. The payment tracker will show its progress. You can respond in the dashboard or through the API, with the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi). For the steps for both, see [Handle RFI for a Payout](https://docs.glomo.one/request-for-information/handle-rfi-for-a-payout). --- ## What you need to do A payout in `action_required` is on hold for a compliance check. It has not failed. Don't cancel it or create a new payout for the same transfer. Who acts depends on whether an RFI is raised: | Situation | Who acts | What to do | | --- | --- | --- | | No RFI raised | Glomo | No action is needed from you. Our compliance team is reviewing the payout, for example a name match found during a compliance check, or a compliance check that is still completing. Once it is cleared, the payout continues automatically and you receive a [`payout` webhook](https://docs.glomo.one/platform/webhooks/payout) for each status change. | | RFI raised | You | You receive an [`rfi` webhook](https://docs.glomo.one/platform/webhooks/rfi) with `event_type: action_required`, an email and a dashboard notification. Upload the requested documents in the dashboard or with the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) before the response deadline. If you don't respond in time, the payout may be delayed or cancelled. | --- ## Respond to an RFI Below are the steps to submit the requested documents in the dashboard. To respond through the API instead, follow [Option 2 in Handle RFI for a Payout](https://docs.glomo.one/request-for-information/handle-rfi-for-a-payout#option-2-upload-via-api). 1. **Login** to the Glomo dashboard 2. **Navigate** to the overview screen 3. **Search** for the transaction where action required state is needed 4. **Click on** the option to upload documents 5. **Upload** the requested documents --- ## Payout State Progression When a payout goes into the action required state, it follows this order: | State | Description | | --- | --- | | In progress | The payout is being processed and the money transfer is underway. A payout is also in this state while submitted RFI documents are under review. | | Action Required | Payout is on hold pending compliance review. Our risk analyst reviews the payout and may raise an RFI; once it is raised, respond to the RFI to continue processing the payout. | | Success | Payout has been successfully completed. | | Failed | The payout could not be completed. Read `error_code` for the reason. | | Cancelled | The payout was cancelled, by you or because the compliance team rejected the submitted RFI documents. A compliance rejection sets `error_code` to `PAYOUT_REJECTED`. | --- > **Note:** Typically, RFIs only occur for international payouts that are deemed risky. --- Source: https://docs.glomo.one/payout/beneficiary Section: Payout # Beneficiary A beneficiary is the person or organization to whom money is being sent or transferred from your Glomo account. You can create a beneficiary with basic details such as name, contact details, and banking information and use it while initiating a payout. --- ## Beneficiary Creation Below are the steps that are required to create a beneficiary :- 1. **Login** to your Glomo dashboard 2. Navigate to **Beneficiary Tab** under Payout 3. Click on **Create New Beneficiary** button 4. **Enter the Beneficiary details** that you want to create 5. **Review the information** and click on create new beneficiary button --- Source: https://docs.glomo.one/payout/cancel Section: Payout # Cancel a Payout Occasionally you may want to cancel a payout in transit for a number of reasons such as a change in the account information from the counterparty, duplicate payouts, incorrect amount, etc --- ## Payout cancellation Below are the steps that are required to cancel payout :- 1. **Navigate** to the payout tab 2. **Search and locate** the payout you want to cancel 3. **Click on** the particular payout to see details 4. Click on the **cancel payout** button 5. **Click on `Yes`** in the confirmation modal --- > **Note:** Payment cancellations are permitted only before the transaction reaches a critical stage in its processing. In cases where cancellation is no longer possible, please reach out to the beneficiary to initiate a reversal of the funds. --- ## Cancel a queued payout A payout with the Queued state can be cancelled at any time while it waits for your balance to cover it. Nothing is reversed, because no funds were held. See [Queued Payouts](https://docs.glomo.one/payout/queued-payouts). --- Source: https://docs.glomo.one/payout/create Section: Payout # Create a Payout A payout essentially refers to the process of distributing funds to a beneficiary across different geographical locations and currencies. Glomo leverages a proprietary network through partner entities, enabling merchants to access a global network for transferring funds to their beneficiaries worldwide. Each payout involves the following: - Amount and currency information - Beneficiary Information  - Purpose and supporting documents --- ## Payout creation Below are the steps that are required to create a payout :- 1. **Login** to your Glomo dashboard 2. **Navigate to** the Payout screen by clicking on Create Payout 3. **Enter the amount and currency** you want to send money 4. **Upload** the necessary documents requested 5. **Enter Beneficiary details.** Select from the dropdown or add a new one 6. **Review the information** and click on Send payout to start the payout process --- Source: https://docs.glomo.one/payout/life-cycle Section: Payout # Payout Life Cycle An overview of the various states in the payout lifecycle :- [Image: Payout Life Cycle Diagram] --- ## Payout States Below are the different statuses a payout ID can hold :- | State | Description | | --- | --- | | Queued | Payout has been accepted and is waiting in the queue. Glomo releases it automatically once your balance covers it. | | In progress | Payout has been created and is in process. | | Action Required | Additional information is needed to process the payout. | | Success | Payout has been successfully completed. | | Failed | Compliance has failed and Glomo has declined to process the payout. | | Cancelled | The user has canceled the payout after initiation. | The Queued state applies only to accounts with payout queueing enabled. See [Queued Payouts](https://docs.glomo.one/payout/queued-payouts). Once a payout is In progress, its `estimated_credit_date` holds the date (IST) Glomo expects the beneficiary to be credited. It is `null` before then. --- Source: https://docs.glomo.one/payout/purpose-codes Section: Payout # Purpose Codes Purpose codes are essential for compliance and are mandatory when sending money across borders. They help categorise the nature of your transactions, ensuring transparency and adherence to regulatory requirements. If you're unsure about selecting the right purpose code for your business needs, our team is here to assist you. Feel free to reach out to us at support@glomopay.com. --- ## Purpose for payouts The **Required Documents** column lists the supporting documents you should collect for each purpose code to satisfy compliance and RBI reporting. Refer to the column for the document(s) a given code requires; codes marked `—` have no mandatory document. Documents are attached via the `documents` field on payout creation. | Purpose Group Name | Purpose Code | Description | Required Documents | | --- | --- | --- | --- | | Capital Account | S0017 | Acquisition of non-produced non-financial assets (Purchase of intangible assets like patents, copyrights, trademarks etc., land acquired by government, use of natural resources) - Government | — | | Capital Account | S0019 | Acquisition of non-produced non-financial assets (Purchase of intangible assets like patents, copyrights, trademarks etc., use of natural resources) - Non-Government | — | | Capital Account | S0026 | Capital transfers (Guarantees payments, Investment Grand given by the government/international organisation, exceptionally large Non-life insurance claims) Government | Invoice | | Capital Account | S0027 | Capital transfers (Guarantees payments, Investment Grand given by the Non-government, exceptionally large Non-life insurance claims) -Non-Government | Invoice | | Capital Account | S0099 | Other capital payments not included elsewhere | Invoice | | Foreign Direct Investments | S0003 | Indian Direct investment abroad (in branches & wholly owned subsidiaries) in equity Shares | Invoice | | Foreign Direct Investments | S0004 | Indian Direct investment abroad (in subsidiaries and associates) in debt instruments | Invoice | | Foreign Direct Investments | S0005 | Indian investment abroad - in real estate | Invoice | | Foreign Direct Investments | S0006 | Repatriation of Foreign Direct Investment made by overseas Investors in India - in equity shares | Invoice | | Foreign Direct Investments | S0007 | Repatriation of Foreign Direct Investment in made by overseas Investors India - in debt instruments | Invoice | | Foreign Direct Investments | S0008 | Repatriation of Foreign Direct Investment made by overseas Investors in India - in real estate | Invoice | | Foreign Portfolio Investments | S0001 | Indian Portfolio investment abroad - in equity shares | Invoice | | Foreign Portfolio Investments | S0002 | Indian Portfolio investment abroad - in debt instruments | Invoice | | Foreign Portfolio Investments | S0009 | Repatriation of Foreign Portfolio Investment made by overseas Investors in India - equity shares/units of AIF, MF (mutual funds) etc. | Invoice | | Foreign Portfolio Investments | S0010 | Repatriation of Foreign Portfolio Investment made by overseas Investors in India - in debt instruments | Invoice | | Loans | S0011 | Loans (short or long-term) extended to NonResidents/ export bill discounting for exports between two non-residents | — | | Loans | S0012 | Repayment of long & medium term loans with original maturity above one year received from Non-Residents | Invoice | | Loans | S0013 | Repayment of short term loans with original maturity up to one year received from NonResidents | Invoice | | Banking Capital | S0014 | Repatriation of Non-Resident Deposits FD, savings account | Invoice | | Banking Capital | S0015 | Repayment of loans & overdrafts taken by IBUs on their own/ overnight lending, placement of deposit by IBUs. | Invoice | | Banking Capital | S0016 | Sale of a foreign currency against another foreign currency | Invoice | | Financial Derivatives and Others | S0020 | Payments made on account of margin payments, premium payment and settlement amount etc. under Financial derivative | Invoice | | Financial Derivatives and Others | S0021 | Payments made on account of sale of share under Employee stock option | Invoice | | Financial Derivatives and Others | S0022 | Investment in Indian Depositories Receipts (IDRs) | Invoice | | Financial Derivatives and Others | S0023 | Opening of foreign currency account abroad with a bank | Invoice | | External Assistance | S0024 | External Assistance extended by India. e.g. Loans and advances extended by India to Foreign governments | Invoice | | External Assistance | S0025 | Repayments made on account of External Assistance received | Invoice | | Merchandise imports between resident and non-resident | S0101 | Advance payment against imports made to countries other than Nepal and Bhutan | Invoice | | Merchandise imports between resident and non-resident | S0102 | Payment towards imports- settlement of invoice other than Nepal and Bhutan | Invoice | | Merchandise imports between resident and non-resident | S0103 | Imports by diplomatic missions other than Nepal and Bhutan | Invoice, Shipping date, Trade documents | | Merchandise imports between resident and non-resident | S0104 | Intermediary trade/transit trade, i.e., third country export passing through India | Invoice | | Merchandise imports between resident and non-resident | S0108 | Goods acquired under merchanting / Payment against import leg of merchanting trade | Invoice | | Merchandise imports between resident and non-resident | S0109 | Payments made for Imports from Nepal and Bhutan, if any | Invoice, Shipping date, Trade documents | | Transport | S0201 | Payments for surplus freight/passenger fare by foreign shipping companies operating in India | Invoice | | Transport | S0202 | Payment for operating expenses of Indian shipping companies operating abroad | Invoice | | Transport | S0203 | Freight on imports – Shipping companies | Invoice | | Transport | S0204 | Freight on exports – Shipping companies | Invoice | | Transport | S0205 | Operational leasing/Rental of Vessels (with crew) –Shipping companies | Invoice | | Transport | S0206 | Booking of passages abroad – Shipping companies | Invoice | | Transport | S0207 | Payments for surplus freight/passenger fare by foreign Airlines companies operating in India | Invoice | | Transport | S0208 | Operating expenses of Indian Airlines companies operating | Invoice | | Transport | S0209 | Freight on imports – Airlines companies | Invoice | | Transport | S0210 | Freight on exports – Airlines companies | Invoice | | Transport | S0211 | Operational leasing / Rental of Vessels (with crew) – Airline companies | Invoice | | Transport | S0212 | Booking of passages abroad – Airlines companies | Invoice | | Transport | S0214 | Payments on account of stevedoring, demurrage, port handling charges etc.(Shipping companies) | Invoice | | Transport | S0215 | Payments on account of stevedoring, demurrage, port handling charges, etc.(Airlines companies) | Invoice | | Transport | S0216 | Payments for Passenger - Shipping companies | Invoice | | Transport | S0217 | Other payments by Shipping companies | Invoice | | Transport | S0218 | Payments for Passenger - Airlines companies | Invoice | | Transport | S0219 | Other Payments by Airlines companies | Invoice | | Transport | S0220 | Payments on account of freight under other modes of transport (Internal Waterways, Roadways, Railways, Pipeline transports and others) | Invoice | | Transport | S0221 | Payments on account of passenger fare under other modes of transport (Internal Waterways, Roadways, Railways, Pipeline transports and others) | Invoice | | Transport | S0222 | Postal & Courier services by Air | Invoice | | Transport | S0223 | Postal & Courier services by Sea | Invoice | | Transport | S0224 | Postal & Courier services by others | Invoice | | Travel | S0301 | Business travel | — | | Travel | S0303 | Travel for pilgrimage | Invoice | | Travel | S0304 | Travel for medical treatment | Invoice | | Travel | S0305 | Travel for education (including fees, hostel expenses etc.) | Invoice | | Travel | S0306 | Other travel (including holiday trips and payments for settling international credit cards transactions) | Invoice | | Construction services | S0501 | Construction of projects abroad by Indian companies including import of goods at project site abroad | — | | Construction services | S0502 | Cost of construction etc. of projects executed by foreign companies in India | Invoice | | Insurance and Pension Services | S0601 | Life Insurance premium except term insurance | — | | Insurance and Pension Services | S0602 | Freight insurance - relating to import & export of goods | Invoice | | Insurance and Pension Services | S0603 | Other general insurance premium including reinsurance premium; and term life insurance premium | Invoice | | Insurance and Pension Services | S0605 | Auxiliary services including commission on insurance | Invoice | | Insurance and Pension Services | S0607 | Insurance claim Settlement of non-life insurance; and life insurance (only term insurance) | Invoice | | Insurance and Pension Services | S0608 | Life Insurance Claim Settlements | Invoice | | Insurance and Pension Services | S0609 | Standardised guarantee services | Invoice | | Insurance and Pension Services | S0610 | Premium for pension funds | Invoice | | Insurance and Pension Services | S0611 | Periodic pension entitlements e.g. monthly quarterly or yearly payments of pension amounts by Indian Pension Fund | Invoice | | Insurance and Pension Services | S0612 | Invoking of standardised guarantees | Invoice | | Financial Services | S0701 | Financial intermediation, except investment banking - Bank charges, collection charges, LC charges etc. | Invoice | | Financial Services | S0702 | Investment banking - brokerage, under writing commission | Invoice | | Financial Services | S0703 | Auxiliary services - charges on operation & regulatory fees, custodial services, depository services etc. | Invoice | | Telecom, Computer & Information Services | S0801 | Hardware consultancy/implementation | Invoice | | Telecom, Computer & Information Services | S0802 | Software consultancy / implementation | Invoice, Shipping date, Trade documents | | Telecom, Computer & Information Services | S0803 | Data base, data processing charges | Invoice | | Telecom, Computer & Information Services | S0804 | Repair and maintenance of computer and software | Invoice | | Telecom, Computer & Information Services | S0805 | News agency services | Invoice | | Telecom, Computer & Information Services | S0806 | Other information services- Subscription to newspapers | Invoice | | Telecom, Computer & Information Services | S0807 | Off-site software imports | Invoice, Shipping date, Trade documents | | Telecom, Computer & Information Services | S0808 | Telecommunication services including electronic mail services and voice mail services | Invoice | | Telecom, Computer & Information Services | S0809 | Satellite services including space shuttle and rockets etc. | Invoice | | Charges for the use of intellectual property n.i.e | S0901 | Franchises services | Invoice | | Charges for the use of intellectual property n.i.e | S0902 | Payment for use, through licensing arrangements, of produced originals or prototypes (such as manuscripts and films), patents, copyrights, trademarks and industrial processes etc. | Invoice | | Other Business Services | S1002 | Trade related services - commission on exports / imports | Invoice | | Other Business Services | S1003 | Operational leasing services (other than financial leasing) without operating crew, including charter hire- Airlines companies | Invoice | | Other Business Services | S1004 | Legal services | Invoice | | Other Business Services | S1005 | Accounting, auditing, book-keeping services | Invoice | | Other Business Services | S1006 | Business and management consultancy and public relations | Invoice | | Other Business Services | S1007 | Advertising, trade fair service | Invoice | | Other Business Services | S1008 | Research & Development services | Invoice | | Other Business Services | S1009 | Architectural services | Invoice | | Other Business Services | S1010 | Agricultural services like protection against insects & disease, increasing of harvest yields, forestry services | Invoice | | Other Business Services | S1011 | Payments for maintenance of offices abroad | Invoice | | Other Business Services | S1013 | Environmental Services | Invoice | | Other Business Services | S1014 | Engineering Services | Invoice | | Other Business Services | S1015 | Tax consulting services | Invoice | | Other Business Services | S1016 | Market research and public opinion polling service | Invoice | | Other Business Services | S1017 | Publishing and printing services | Invoice | | Other Business Services | S1018 | Mining services like on-site processing services analysis | Invoice | | Other Business Services | S1020 | Commission agent services | Invoice | | Other Business Services | S1021 | Wholesale and retailing trade services | Invoice | | Other Business Services | S1022 | Operational leasing services (other than financial leasing) without operating crew, including charter hire-Shipping | Invoice | | Other Business Services | S1023 | Other Technical Services including scientific/space services | Invoice | | Other Business Services | S1099 | Other services not included elsewhere | Invoice | | Personal, Cultural & Recreational services | S1101 | Audio-visual and related services like Motion picture and video tape production, distribution and projection services | Invoice | | Personal, Cultural & Recreational services | S1103 | Radio and television production, distribution and transmission services | Invoice | | Personal, Cultural & Recreational services | S1104 | Entertainment services | Invoice | | Personal, Cultural & Recreational services | S1105 | Museums, library and archival services | Invoice | | Personal, Cultural & Recreational services | S1106 | Recreation and sporting activities services | Invoice | | Personal, Cultural & Recreational services | S1107 | Education (e.g. fees for correspondence courses abroad) | — | | Personal, Cultural & Recreational services | S1108 | Health Service (payment towards services received from hospitals, doctors, nurses, paramedical and similar services etc. rendered remotely or on-site) | — | | Personal, Cultural & Recreational services | S1109 | Other Personal, Cultural & Recreational services | — | | Govt. not included elsewhere (G.n.i.e.) | S1201 | Maintenance of Indian embassies abroad | Invoice | | Govt. not included elsewhere (G.n.i.e.) | S1202 | Remittances by foreign embassies in India | Invoice | | Secondary Income | S1301 | Remittance for family maintenance and savings | — | | Secondary Income | S1302 | Remittance towards personal gifts and donations | Invoice | | Secondary Income | S1303 | Remittance towards donations to religious and charitable institutions abroad | Invoice | | Secondary Income | S1304 | Remittance towards grants and donations to other governments and charitable institutions established by the government | — | | Secondary Income | S1305 | Contributions/donations by the Government to international institutions | Invoice | | Secondary Income | S1306 | Remittance towards payment / refund of taxes | — | | Secondary Income | S1307 | Outflows on account of migrant transfers including personal effects | Invoice | | Primary Income | S1401 | Compensation of employees | Invoice | | Primary Income | S1402 | Remittance towards interest on Non-Resident deposits (FD, Savings Deposits) | Invoice | | Primary Income | S1403 | Remittance towards interest on loans from NonResidents (ST/MT/LT loans); Trade Credits, etc. | Invoice | | Primary Income | S1405 | Remittance towards interest payment by IBUs on their own account or the OD on NOSTRO a/c. | Invoice | | Primary Income | S1408 | Remittance of profit by FDI enterprises in India (by branches of foreign companies including bank branches) | Invoice | | Primary Income | S1409 | Remittance of dividends by FDI enterprises in India (other than branches) on equity and investment fund shares | Invoice | | Primary Income | S1410 | Payment of interest by FDI enterprises in India to their Parent company abroad. | Invoice | | Primary Income | S1411 | Remittance of interest income on account of Portfolio Investment in India | Invoice | | Primary Income | S1412 | Remittance of dividends on account of Portfolio Investment in India on equity and investment fund shares | Invoice | | Others | S1501 | Refunds / rebates / reduction in invoice value on account of exports | Invoice | | Others | S1502 | Reversal of wrong entries, refunds of amount remitted for non-exports | Invoice | | Others | S1503 | Payments by residents for international bidding | Invoice | | Others | S1504 | Notional sales when export bills negotiated/ purchased/ discounted are dishonored/ crystallised/ cancelled and reversed from suspense account | Invoice | | Others | S1505 | Deemed Imports (exports between SEZ, EPZs and Domestic tariff areas) | Invoice | | Maintenance and repair services n.i.e | S1601 | Payments on account of maintenance and repair services rendered for Vessels, ships, boats, warships, etc. | Invoice | | Maintenance and repair services n.i.e | S1602 | Payments on account of maintenance and repair services rendered for aircrafts, space shuttles, rockets, military aircrafts, | Invoice | | Manufacturing services (goods for processing) | S1701 | Payments for processing of goods | Invoice | | Others | S0000 | Self Transfer | Invoice | --- Source: https://docs.glomo.one/payout/queued-payouts Section: Payout # Queued Payouts Sometimes you need to submit a payout before the funds that cover it have landed in your balance. By default, Glomo rejects that payout with an insufficient-balance error, and you have to submit it again after you top up. Payout queueing removes that retry loop. When it is enabled on your account, every payout is accepted with the status `queued`, including one that your balance already covers. Glomo releases each payout automatically once your balance covers it. You do not have to do anything else. > **Note:** Payout queueing is enabled per account by Glomo. Contact your Glomo account manager to enable it. --- ## How a queued payout is released When payout queueing is enabled, every payout is created with the status `queued`, whatever your balance is at that moment. Glomo checks the queue every 15 minutes. At each check it compares your balance in the source currency against the payout amount plus fees, and releases the payout if the balance covers it. The payout then continues as any other payout does: it moves to `in_progress`, and then to `success` or `failed`. Note the following: - **Queued payouts are released in FIFO order, per currency.** Within a source currency, the payout that was queued first is released first. Each currency has its own order, so a queued EUR payout has no effect on your queued AED payouts. - **A payout your balance covers is still queued.** It waits for the next check, so it can take up to 15 minutes before processing starts. - **A payout your balance can't cover holds back the ones behind it.** Within a source currency, release stops at the first payout your balance doesn't cover, and the payouts queued after it wait even if the balance would cover them. --- ## Fees and FX rate Fees and the FX rate are fixed when the payout is created, not when it is released. The rate you see at creation is the rate Glomo applies when the payout is released. --- ## Leaving the queue A queued payout leaves the queue in one of these ways: | Outcome | Description | | --- | --- | | **Released** | Your balance covers the payout. The payout moves to `in_progress` and continues to `success` or `failed`. | | **Expired** | The payout stays queued for 30 days. It moves to `failed` with `error_code` set to `QUEUE_EXPIRED`. No funds were held at any point. | | **Cancelled** | You cancel the payout. You can do this at any time while the payout is queued. Nothing is reversed, because no funds were held. | | **Review needed** | Glomo needs more information before the payout can be processed. The payout moves to `action_required`. See [Action Required State](https://docs.glomo.one/payout/action-required-state). | To cancel a queued payout, use the [Cancel a payout API](https://docs.glomo.one/api-reference/openapi/payout/cancelpayout) or the Glomo dashboard. See [Cancel a Payout](https://docs.glomo.one/payout/cancel). --- ## What you see in the API A queued payout has `status` set to `queued`. The status appears in the create response, in [Retrieve a payout](https://docs.glomo.one/api-reference/openapi/payout/getpayoutbyid) (`GET /v1/payouts/:id`), and in [List all payouts](https://docs.glomo.one/api-reference/openapi/payout/getpayouts) (`GET /v1/payouts`). To list only your queued payouts, use the `status` filter: ``` GET /v1/payouts?status=queued ``` Glomo sends a payout webhook with `event_type` set to `queued` when the payout enters the queue, and another webhook when it leaves. No new webhook type was added. See [Payout Webhooks](https://docs.glomo.one/platform/webhooks/payout). --- ## If payout queueing is not enabled Glomo keeps rejecting a payout that your balance does not cover at the time you create it, with this message: ``` Account has insufficient balance to process this transaction. Additional amount required: N. ``` --- ## Testing queued payouts in sandbox Use your test secret key. The mock endpoints in this section are not available in production. ### Move a queued payout with the mock endpoint A `queued` payout can't be mocked straight to `success`. [Mock update a payout status](https://docs.glomo.one/api-reference/openapi/payout/mockupdatepayoutstatus) (`PATCH /v1/payouts/mock`) returns `400` with `State change not allowed`. Move it in two steps: 1. Mock `pending`. The payout's `status` then reads `in_progress`, not `pending`, so wait for `in_progress` if you poll. ```json { "id": "payout_E602dMzgjpDC", "status": "pending" } ``` 2. Mock `success` or `failed`. ```json { "id": "payout_E602dMzgjpDC", "status": "success" } ``` A payout you moved with the `pending` mock is never sent to a rail, so it always needs the second step, whatever its rail. Only a payout that the queue releases for real completes on its own on a local rail in sandbox (see [Test it in sandbox](https://docs.glomo.one/payout/set-up#test-it-in-sandbox)); for those, the `success` mock is needed only on SWIFT. ### Queue a payout with the mock endpoint To put a payout that is `pending_approval`, `action_required` or under review into the queue, mock `queued`. Mocking `pending` on such a payout also queues it, since that is what a real submission does on an account with payout queueing. Mock `pending` again to move it on. ```json { "id": "payout_E602dMzgjpDC", "status": "queued" } ``` The payout then waits for the queue release like any other queued payout. ### Test the real queue release To test the release itself instead of mocking past it, fund the balance that the payout debits and wait for the queue to release it. - The queue is released every 15 minutes, at :02, :17, :32 and :47 past the hour. These are the same marks in UTC and IST. - Release is FIFO per source currency. A payout is released only when the balance it debits covers it, and a payout at the head of the queue that isn't covered holds back the ones behind it. - A released payout shows `in_progress`. - A payout that stays queued for 30 days fails with `QUEUE_EXPIRED`. - A payout debits your Funded Balance if your account has it enabled, and your Primary Balance otherwise. Only Add Balance top-ups (`add_funds` payins, with IDs starting `addfunds_`) credit the Funded Balance. Regular payins credit the Primary Balance. See [Balances](https://docs.glomo.one/multi-currency-account/balances). To release a queued payout for real: 1. Fund the balance the payout debits. For the Funded Balance, go to **My account**, then **Add balance** on the Balances screen, and choose the currency. See [Add Balance](https://docs.glomo.one/multi-currency-account/add-balance). 2. Call [Create a mock payment](https://docs.glomo.one/api-reference/openapi/payment/createmockpayment) (`POST /v1/payment/mock`) with `payin_id` set to the Add Balance top-up (`addfunds_…`), and with its `amount` and `currency`. 3. If the payment's funds are not yet available, call [Mock funds available](https://docs.glomo.one/api-reference/openapi/payment/mockupdatepaymentfundsavailable) (`PATCH /v1/payment/{id}/mock-funds-available`). 4. Wait for the next release, then read the payout. It shows `in_progress`. The public API doesn't list add-funds payins. [List all payments](https://docs.glomo.one/api-reference/openapi/payment/getpayments) with `payment_type=add_funds` (`GET /v1/payment?payment_type=add_funds`) lists add-funds payments only. --- Source: https://docs.glomo.one/payout/rails Section: Payout # Rails A rail is the scheme on which a payout is settled. Each corridor is served by one or more local rails, together with `swift` for international transfers. A rail may be specified when creating a payout, or taken from a quote where one is bound. Where no rail is specified, `swift` is used. --- ## Supported rails | Rail | Name | Currency | Minimum | Maximum | Identifier | | --- | --- | --- | --- | --- | --- | | `upi` | UPI | INR | ₹0.01 | ₹1,00,000 | UPI ID (VPA) | | `imps` | IMPS | INR | ₹0.01 | ₹5,00,000 | Account number and IFSC | | `rtgs` | RTGS | INR | ₹2,00,000 | ₹50,00,000 | Account number and IFSC | | `neft` | NEFT | INR | ₹0.01 | ₹1,00,00,000 | Account number and IFSC | | `ipp` | IPP | AED | AED 0.01 | AED 50,000 | IBAN | | `fts` | FTS | AED | AED 50,000 | No limit | IBAN | | `sepa` | SEPA | EUR | €0.01 | No limit | IBAN | | `fps` | Faster Payments | GBP | £0.01 | £1,000,000 | Account number and sort code | | `npp` | NPP | AUD | A$0.01 | No limit | Account number and BSB | | `swift` | SWIFT | Any | No limit | No limit | Account number and SWIFT/BIC | A rail is available only where the destination currency corresponds to that rail and the beneficiary holds the identifier on which the rail routes. A request for `sepa` on a GBP payout, or for `fps` against a beneficiary without a sort code, is rejected. Where no rail is specified, `swift` is used. A local rail is not selected automatically; to settle on one, specify it explicitly or bind a quote. A rail is not an input to a quote. A quote request returns one option for each rail that serves the corridor and admits the amount, each carrying its rail in `payment_method.rail`. Currency refers to the destination currency, and the limits apply to the destination amount expressed in it. A rail settles only while the system it routes on is open: the INR rails on Indian bank working days, `swift` on FX and SWIFT business days. The [settlement holiday calendar](https://docs.glomo.one/settlement-holidays) lists the Indian and United States dates in 2026 on which those timelines may be affected. --- ## Beneficiary requirements | Corridor | Required fields | | --- | --- | | INR | `account_number` and the IFSC in `local_routing_number`; or a UPI ID for `upi` | | AED | The IBAN in `account_number`; neither `swift_code` nor `local_routing_number` | | EUR | The IBAN in `account_number`, issued in a SEPA scheme country; neither `swift_code` nor `local_routing_number` | | GBP | The domestic `account_number` and the 6-digit sort code in `local_routing_number` | | AUD | The domestic `account_number` (6 to 10 digits) and the 6-digit BSB in `local_routing_number`, on an Australian bank account | | International | `account_number` and the `swift_code` | > **Note:** SEPA is IBAN-only. A EUR beneficiary is identified by its IBAN alone. A EUR account held outside the IBAN zone, such as a EUR account maintained at a US bank, remains supported: supply the `swift_code` and the account is treated as a SWIFT beneficiary. > **Note:** Faster Payments requires the domestic account number rather than a GB IBAN. The scheme routes on the sort code together with the account number, and a `GB` IBAN supplied in `account_number` does not qualify for `fps` even where a valid sort code is present. --- ## Errors | Message | Description | | --- | --- | | `payment_rail is not available for payouts` | The rail does not serve the specified destination currency | | `Destination amount is outside the limits` | The amount falls above or below the limits for the rail | | `No rails available for this beneficiary` | The beneficiary does not hold the identifier on which the rail routes | | `No available options for this amount` | Every eligible rail was excluded by its limits | | `local_transfer is not supported for destination` | The corridor has no local rail | | `account_number must be a SEPA IBAN` | The IBAN is valid but was issued outside the SEPA scheme area | | `account_number must be a valid IBAN` | The account number is blank, contains spaces, or fails its checksum | --- Source: https://docs.glomo.one/payout/set-up Section: Payout # Send payouts with the API This guide takes a payout from your Glomo balance to a beneficiary's bank account over the API. You create the beneficiary, price the payout if you need a locked rate, create the payout, and follow it to a final status. To do the same job in the dashboard, see [Create a Payout](https://docs.glomo.one/payout/create). All request and response bodies on this page are examples. IDs, amounts and rates are illustrative, and the response bodies are trimmed to the fields this guide uses. The [API reference](https://docs.glomo.one/api-reference/openapi) has the full schemas. The v1 endpoints are under `https://api.glomopay.com/api/v1` and the v2 beneficiary endpoints are under `https://api.glomopay.com/api/v2`. --- ## Before you start - **Secret key.** Every call is made from your server, with your secret key as the bearer token. See [Authentication](https://docs.glomo.one/platform/authentication). Use your test key while you build against sandbox. - **Balance.** A payout is paid from your balance in its `source_currency`. Check it with [Retrieve balances](https://docs.glomo.one/api-reference/openapi/balance/getbalance) (`GET /v1/balances`). [Balances and holds](https://docs.glomo.one/payout/set-up#balances-and-holds) explains when funds are held. - **Webhooks.** Register a webhook URL so that you receive `payout` events. See [Webhooks](https://docs.glomo.one/platform/webhooks). - **Account settings.** Two per-account settings change how this flow behaves. Glomo switches them on for each account, so ask Glomo which ones are on for your account, and ask Glomo to enable any that you need. | Setting | What it changes when it is on | | --- | --- | | Maker-checker approval | A payout created over the API is returned as `pending_approval`. It waits there until a user on your account approves it in the dashboard, and there is no API call to approve it. Nothing is held from your balance before approval. Glomo's approval emails and dashboard notifications go out only for payouts that a dashboard user created, so arrange approval of API payouts yourself. `GET /v1/payouts?status=pending_approval` lists the payouts that are waiting. Approve within 30 minutes of creating the payout, or by the quote's `expires_at` if you sent a `quote_id`. A later approval cancels the payout with `error_code` set to `QUOTE_EXPIRED`. | | Payout queueing | Every payout is created `queued`, including one that your balance already covers, and a payout that your balance can't cover is accepted instead of refused. Glomo releases queued payouts once your balance covers them, checking every 15 minutes, so a payout can wait up to 15 minutes before processing starts. When the setting is off, a payout that your balance cannot cover is refused with `400`. See [Queued Payouts](https://docs.glomo.one/payout/queued-payouts). | --- ## Step 1: Create the beneficiary **`createBeneficiaryV2`** · `POST /v2/beneficiaries` · [API reference](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2) The request needs these fields: - `category`: set it to `payout`. - `beneficiary.name`, `beneficiary.type` (`individual` or `business`) and `beneficiary.address`. The address needs `address_line1`, `city`, `state` and `country_code`. `address_line2` and `postal_code` are optional. - Either `bank_account` or `upi_account`. A `bank_account` needs `account_number` and `currency`, plus exactly one routing identifier: either `local_routing_number` (an IFSC for INR, a sort code for GBP, a BSB for AUD) or `swift_code` for SWIFT. Sending both returns `400`. For an AED or EUR IBAN, put the IBAN in `account_number` and send neither. A `upi_account` needs `upi_id`. A beneficiary can be paid on a rail only if it holds that rail's identifier. [Rails](https://docs.glomo.one/payout/rails#beneficiary-requirements) lists what each corridor needs. Because a beneficiary carries one routing identifier, create it with the identifier for the rail you intend to pay on. For a `payout` beneficiary, Glomo fills in the bank name and address from the routing identifier. If they can't be resolved, the request returns `400`, and you then need to send `bank_account.name` and `bank_account.address` yourself. Example request: ```json { "category": "payout", "beneficiary": { "name": "Rahul Sharma", "type": "individual", "address": { "address_line1": "12 MG Road", "city": "Bengaluru", "state": "Karnataka", "country_code": "IND", "postal_code": "560001" } }, "bank_account": { "account_number": "9876543210", "local_routing_number": "KKBK0000261", "currency": "INR" } } ``` Example response, `201 Created`, trimmed: ```json { "id": "bene_a1b2c3d4e5", "name": "Rahul Sharma", "type": "individual", "category": "payout", "status": "active", "bank_account": { "account_number": "9876543210", "local_routing_number": "KKBK0000261", "currency": "INR" }, "upi_account": null } ``` Store the `id`. If the same bank account already exists on your account, the request returns `409 Conflict` with a message saying that a beneficiary with this account number already exists. Reuse the existing beneficiary instead, which you can find with [List beneficiaries](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/listbeneficiariesv2) (`GET /v2/beneficiaries`). ### Check that the beneficiary is `active` A new beneficiary is created `active`, so you can continue to the next step, unless Glomo has enabled beneficiary review on your account. With review enabled, a new beneficiary starts `pending` and moves to `active` or `rejected` once reviewed; the `beneficiary` webhook reports the change. A payout to a `pending` or `rejected` beneficiary is refused with `400`. In sandbox, approve a `pending` beneficiary with `PATCH /v2/beneficiaries/{id}/mock-review` and the body `{"review_action": "approve"}`. --- ## Step 2 (optional): Get a quote **`createQuote`** · `POST /v1/quotes` · [API reference](https://docs.glomo.one/api-reference/openapi/quote/createquote) A quote locks the exchange rate and fees before you commit to the payout. Use one when someone has to approve the exact amount first. Without a quote, Glomo prices the payout when you create it, and the payout's `quote_id` then refers to that price. The request needs these fields: - `resource`: set it to `payout`. - `source_currency` and `destination_currency`. - Exactly one of `source_amount` or `destination_amount`, in the smallest unit of its currency. - `payment_method`: `type` set to `bank_transfer`, and `subtype` set to `local_transfer` or `swift_transfer`. The response holds a `quotes` array. A `swift_transfer` quote returns a single `swift` option. A `local_transfer` quote returns one option for each local rail of the destination currency whose limits admit the amount. Each option names its rail in `payment_method.rail`. A quote is valid for 30 minutes (see `expires_at`) and can be used for one payout. **The quote doesn't look at the beneficiary.** The request has no beneficiary field, so it prices only the corridor and the amount. A quoted rail can therefore be one that your beneficiary can't receive. Choose the option whose rail matches the identifiers the beneficiary holds. If you create a payout with a quote whose rail the beneficiary doesn't support, the request returns `400` with a message that the quote is not compatible with the selected beneficiary. Example request: ```json { "resource": "payout", "source_currency": "USD", "destination_currency": "INR", "destination_amount": 882000, "payment_method": { "type": "bank_transfer", "subtype": "local_transfer" } } ``` Example response, `201 Created`, trimmed to one option: ```json { "quotes": [ { "id": "quote_3m4n5o6p7q", "resource": "payout", "expires_at": "2026-06-12T08:16:50Z", "payment_method": { "type": "bank_transfer", "subtype": "local_transfer", "rail": "neft" }, "source_currency": "USD", "destination_currency": "INR", "fx_rate": 90.0, "source_amount": 10000, "destination_amount": 882000, "fees": { "txn_fee": { "currency": "USD", "amount": 100 }, "fx_fee": { "currency": "USD", "amount": 100 } } } ] } ``` Here $100.00 (USD) pays ₹8,820.00 (INR) after $2.00 in fees. An LRS repatriation payout (USD to INR, back to an investor) can't use a quote. Follow [Withdraw an LRS remittance back to the investor](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide) instead. --- ## Step 3: Create the payout **`createPayout`** · `POST /v1/payouts` · [API reference](https://docs.glomo.one/api-reference/openapi/payout/createpayout) The required fields depend on whether you use a quote: | | Without a quote | With a quote | | --- | --- | --- | | Required | `beneficiary_id`, `purpose_code`, `source_currency`, `destination_currency`, and exactly one of `source_amount` or `destination_amount` | `quote_id`, `beneficiary_id`, `purpose_code` | | `payment_rail` | Set it (see below) | Don't send it | | Also send | `request_id`, and `documents` if your purpose code needs them | `request_id`, and `documents` if your purpose code needs them | With a quote, the quote fixes the amounts, the currencies and the rail. Sending any of `source_amount`, `destination_amount`, `source_currency`, `destination_currency` or `payment_rail` with a `quote_id` returns `400`. The quote must also be a payout quote that hasn't expired and hasn't already been used. ### `request_id`: make it deterministic Send a `request_id` of at most 64 characters with every payout, and derive it from your own record, such as your internal payout ID. A second create with the same `request_id` returns `409 Conflict` with the message `Record already exists`. No second payout is created, and the existing payout is not returned. If the create call times out, fails on the network or returns a `5xx`, keep retrying with the **same** `request_id`, and look the payout up with `GET /v1/payouts?request_id=`. **Never switch to a new `request_id` after a timeout or network error.** The original call may still be screening the payout and holding funds, and the payout doesn't appear in the list until that call finishes, so a new `request_id` can pay twice. If a retry keeps returning `409` and the lookup never finds a matching payout, contact Glomo support with the `request_id`. The `request_id` is optional, but without one nothing stops a duplicate. ### `payment_rail`: set it without a quote, never with one - **Omitted means SWIFT.** Without a quote, a payout with no `payment_rail` goes on `swift`. That only works for a beneficiary with SWIFT details, meaning a `swift_code`, or an AED or EUR IBAN. Any other beneficiary, such as an INR beneficiary with an IFSC or a UPI ID, gets `400` with the message `No rails available for this beneficiary`. Where SWIFT does work, you get a SWIFT payout even when a local rail was available. - **The rail must fit the payout.** It must serve the `destination_currency`, it must be a rail whose identifier the beneficiary holds, and the amount must be within the rail's limits. [Rails](https://docs.glomo.one/payout/rails) lists the rails, their limits and the errors. Confirm with Glomo which corridors and rails are enabled for your account. - **RTGS is not accepted at the moment.** A payout with `payment_rail: rtgs` returns `400` with a message that `rtgs` is temporarily unavailable for INR payouts and that you should use `neft`. INR quotes don't offer `rtgs` either. - **With a quote,** the rail comes from the quote. Don't send `payment_rail`. ### `purpose_code` Choose the code from [Payout purpose codes](https://docs.glomo.one/payout/purpose-codes) and pass it exactly as listed. Payin codes are rejected on a payout. INR payouts on a local rail (`upi`, `imps`, `neft`, `rtgs`) accept only some of the payout codes. A code outside that set returns `400` with a message saying the code is not a valid purpose code for the selected payment rail. Confirm with Glomo which code applies if you get this error. LRS payouts follow their own guide. ### `documents` If your purpose code needs supporting documents, upload each one first with [Upload a document](https://docs.glomo.one/api-reference/openapi/document/createdocument) (`POST /v1/document`). The upload is sent as `multipart/form-data`, with `file` and `document_name`. Then pass the returned `doc_` IDs in `documents`. Each ID must be a document on your account, or the request returns `400`. The purpose code list names the documents to collect for each code. Example request, without a quote: ```json { "purpose_code": "S0802", "beneficiary_id": "bene_a1b2c3d4e5", "source_currency": "USD", "destination_currency": "INR", "source_amount": 100000, "payment_rail": "neft", "invoice_number": "INV-2026-001", "request_id": "req-7f3a9c20", "documents": ["doc_11aa22bb33"], "notes": { "internal_ref": "batch-42" } } ``` Example request, with a quote: ```json { "quote_id": "quote_3m4n5o6p7q", "beneficiary_id": "bene_a1b2c3d4e5", "purpose_code": "S0802", "request_id": "req-7f3a9c20", "documents": ["doc_11aa22bb33"] } ``` Example response, `201 Created`, trimmed: ```json { "id": "payout_9z8y7x6w5v", "beneficiary_id": "bene_a1b2c3d4e5", "status": "in_progress", "source_amount": 100000, "source_currency": "USD", "destination_amount": 8235000, "destination_currency": "INR", "purpose_code": "S0802", "payment_rail": "neft", "request_id": "req-7f3a9c20", "fees": { "txn_fee": { "currency": "USD", "amount": 500 }, "fx_fee": { "currency": "USD", "amount": 250 } }, "utr": null, "error_code": null, "error_description": null, "quote_id": "quote_8h2k4m6p9r" } ``` A payout created without a quote still carries a `quote_id`: the price Glomo fixed when it created the payout. **Always read `status` in the create response.** The call returns `201` even when the payout is already `pending_approval`, `queued`, `action_required` or `failed`. Without payout queueing, a payout that your balance can't cover returns `400` with `code` set to `INSUFFICIENT_BALANCE`. The message ends with `Additional amount required: N.`, where `N` is the shortfall in the smallest unit of the source currency. A payout whose fees equal or exceed its source amount is also refused with `400`. --- ## Step 4: Track the payout to a final status Glomo sends a `payout` webhook each time a payout's status changes, with `event_type` set to the new status. See [Payout webhooks](https://docs.glomo.one/platform/webhooks/payout). The same status can arrive more than once. For example, `in_progress` arrives again after an RFI response goes under review. So handle events idempotently, keyed on the payout `id` and `status`. To reconcile, such as after a missed webhook, a restart or a timed-out create, read the payout back: - [Retrieve a payout](https://docs.glomo.one/api-reference/openapi/payout/getpayoutbyid): `getPayoutById` · `GET /v1/payouts/{id}` - [List all payouts](https://docs.glomo.one/api-reference/openapi/payout/getpayouts): `getPayouts` · `GET /v1/payouts?request_id=req-7f3a9c20` A `request_id` filter returns at most one payout. A payout whose create call is still running doesn't appear yet, so an empty `data` array doesn't prove that nothing will pay. After a timeout, keep retrying the create with the same `request_id` as described in [`request_id`: make it deterministic](https://docs.glomo.one/payout/set-up#request_id--make-it-deterministic). Example response, `200 OK`, trimmed: ```json { "data": [ { "id": "payout_9z8y7x6w5v", "status": "success", "request_id": "req-7f3a9c20", "payment_rail": "neft", "error_code": null } ], "page_meta": { "current": 1, "previous": null, "next": null, "per_page": 20, "pages": 1, "count": 1 } } ``` --- ## Status lifecycle | Status | What it means for your integration | | --- | --- | | `pending_approval` | Maker-checker is on, and the payout is waiting for approval in the dashboard. Nothing is wrong, so don't recreate it. | | `queued` | Payout queueing is on. Every payout starts here and waits for the next release, which runs every 15 minutes and releases a payout once your balance covers it. | | `in_progress` | The payout is being processed. This includes a payout that is back under review after you responded to an RFI. | | `action_required` | Compliance screening didn't clear, and Glomo may raise an RFI. Answer it in the dashboard, or with [`respondRfi`](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) (`PATCH /v1/rfis/{id}/respond`) if you have the RFI `id`. The payout object and webhook don't include the RFI `id` today. See [Handle RFI for a Payout](https://docs.glomo.one/request-for-information/handle-rfi-for-a-payout) for the steps, and [Action Required State](https://docs.glomo.one/payout/action-required-state). | | `success` | Final. The payout was paid, and `utr` carries the bank reference where one is available. | | `failed` | Final. Read `error_code`. | | `cancelled` | Final. The payout was cancelled by you, rejected by an approver in the dashboard (no `error_code`), rejected by compliance (`PAYOUT_REJECTED`), or cancelled because its quote expired (`QUOTE_EXPIRED`). | [Payout Life Cycle](https://docs.glomo.one/payout/life-cycle) has the full diagram. --- ## Failures: retry, fix or escalate Read `error_code` and `error_description` on a `failed` or `cancelled` payout. A payout in a final status never changes again, and the same `request_id` can't be used a second time. So a retry is always a **new** payout with a **new** `request_id`, and you create it only after you have fixed the cause. | `error_code` | Final status | Cause | What to do | | --- | --- | --- | --- | | `INSUFFICIENT_BALANCE` | `failed` | Your balance no longer covered the payout when it resumed after review. | Fund the balance, then create a new payout. | | `QUOTE_EXPIRED` | `cancelled` | The payout's quote expired before the payout was approved and submitted. | Create a new payout, and approve it within 30 minutes of creating it, or by the quote's `expires_at` if you send a `quote_id`. If you used a quote, get a new quote first. | | `QUEUE_EXPIRED` | `failed` | The payout stayed `queued` for 30 days. | Fund the balance, then create a new payout. | | `INVALID_BENE_ACCOUNT_NUMBER`, `INVALID_BENE_ACCOUNT_TYPE`, `INVALID_BENE_IFSC`, `INVALID_VPA`, `INVALID_BENE_NAME`, `INVALID_BENE_ADDRESS`, `INVALID_BENE_EMAIL`, `INVALID_BENE_CONTACT` | `failed` | The bank or rail rejected the beneficiary's details. | Fix the details. Beneficiaries can't be edited over the API, so create a new beneficiary with the corrected details, then create a new payout. | | `NAME_MISMATCH` | `failed` | The remitter and beneficiary names don't match for the selected purpose. | Check the beneficiary name and the purpose code before you create a new payout. Contact Glomo if both are correct. | | `PAYOUT_REJECTED` | `cancelled` or `failed` | The payout was rejected by compliance after review (`cancelled`), or by the bank for a reason that Glomo doesn't map to a specific code (`failed`). | Don't retry. Escalate to Glomo support. | | none | `failed` | Compliance screening could not complete when the payout was screened. | Retry once later with a new `request_id`. If it happens again, escalate to Glomo support. | | none | `cancelled` | An approver rejected the payout in the dashboard, or you cancelled it. | Create a new payout with a new `request_id` only if the payment is still wanted. | --- ## Cancelling a payout **`cancelPayout`** · `PATCH /v1/payouts/{id}/cancel` · [API reference](https://docs.glomo.one/api-reference/openapi/payout/cancelpayout) You can cancel a payout while it is `pending_approval`, `queued` or `action_required`. You can also cancel it while it is `in_progress` under review after an RFI response. An `in_progress` payout that has been released for processing can't be cancelled: the call returns `400` with the message `Payout cannot be cancelled in its current state`. Don't build a flow that relies on cancelling a payout in flight. See [Cancel a Payout](https://docs.glomo.one/payout/cancel). --- ## Queued payouts With payout queueing on, every payout is created `queued`. Queued payouts are released first in, first out, separately for each source currency, and Glomo checks the queue every 15 minutes, so a payout can wait up to 15 minutes even when your balance already covers it. A payout at the front of the queue that your balance can't cover holds back the payouts behind it in the same currency. A payout that stays queued for 30 days fails with `QUEUE_EXPIRED`. See [Queued Payouts](https://docs.glomo.one/payout/queued-payouts). --- ## Balances and holds A payout is paid from your balance in its `source_currency`. The funds are held once screening clears and the payout is released for processing. On an account without maker-checker or queueing, that happens inside the create call. Nothing is held while a payout is `pending_approval`, `queued`, `action_required` or under review. A hold is released if the payout fails or is cancelled. To pay from a different currency, convert first with [Create a balance conversion](https://docs.glomo.one/api-reference/openapi/balance_conversions/createbalanceconversion) (`POST /v1/balance_conversions`). See [Balances](https://docs.glomo.one/multi-currency-account/balances) and [Balance conversion](https://docs.glomo.one/multi-currency-account/balance-conversion). --- ## Timing No cut-off times or SWIFT delivery times are published, so confirm processing windows with Glomo. Don't promise a delivery date from the rail alone. The [settlement holiday calendar](https://docs.glomo.one/settlement-holidays) lists the dates on which timelines may be affected. --- ## Test it in sandbox Use your test secret key. The mock endpoint below is not available in production. ### Payouts that complete on their own In sandbox, a payout on a local rail (`upi`, `imps` or `neft` for INR, and the local rails for AED, EUR, GBP and AUD) moves through `in_progress` to `success` by itself once it has been released for processing. This usually takes a few seconds, but don't rely on the timing. A SWIFT payout stays `in_progress` until you move it. A payout held in `pending_approval`, `queued` or `action_required` moves only when it is approved, released from the queue or reviewed, or when you move it. ### Move a payout between statuses **`mockUpdatePayoutStatus`** · `PATCH /v1/payouts/mock` · [API reference](https://docs.glomo.one/api-reference/openapi/payout/mockupdatepayoutstatus) Use this endpoint on a SWIFT payout, or on a payout held in `pending_approval`, `queued` or `action_required`. A local-rail payout that has been released completes on its own, so a mock call on it can find the payout already `success` and return `400`. For example, to complete a SWIFT payout that is `in_progress`: ```json { "id": "payout_E602dMzgjpDC", "status": "success" } ``` `status` is the target of the transition, not a value that the payout's `status` field returns. The `pending` target reads back as `in_progress`. Each transition sends the same `payout` webhook as a real one would. A transition must be one the payout could make for real. Otherwise the call returns `400` with `State change not allowed`, which usually means the payout isn't in the status you assumed. | Target | Allowed when the payout is | | --- | --- | | `pending` | `pending_approval`, `queued`, `action_required`, or `in_progress` under review | | `queued` | `pending_approval`, `action_required`, or `in_progress` under review, on an account with payout queueing. Without payout queueing the call returns `400`. | | `success` | `in_progress`, and not under review. Move a held payout or one under review to `pending` first: a `queued` payout mocked straight to `success` returns `400` with `State change not allowed`. The payout moved to `pending` reads back as `in_progress`, so don't wait for `pending`. It doesn't complete on its own, so follow with `success`. See [Testing queued payouts in sandbox](https://docs.glomo.one/payout/queued-payouts#testing-queued-payouts-in-sandbox). | | `action_required` | `pending_approval`, `queued`, or `in_progress` under review | | `failed` | any status that isn't final | | `cancelled` | any status that isn't final, unless the payout has already been sent to the bank | A payout failed through this endpoint has no `error_code`, so you can't produce the codes in the failure table this way. To test the `action_required` path from creation, name the beneficiary with one of the reserved sandbox values listed on `beneficiary.name` in [Create a beneficiary](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2). Those values force a sanctions-screening hit. --- Source: https://docs.glomo.one/payment-accounts Section: Payment accounts # Payment accounts A payment account holds money for one of your customers. You own the account and the customer relationship, and you build the app. Glomo holds the funds, runs the compliance checks and moves the money. With payment accounts you can: - Open an account for each customer when you create the customer. - Let the customer add funds with a card payment. - Show the customer their balances and statement. - Send money from the account to the customer's beneficiaries. To build the integration, follow [Run payment accounts for your customers](https://docs.glomo.one/payment-accounts/set-up). ## How the API is scoped Every call after onboarding goes to a path under `/v1/payment-accounts/{payment_account_id}`. The path names the account, so a call reads or changes that account only, and every list returns that account's records only. A request body never carries a payment account ID. You see only the accounts you own. An account that you do not own returns `404`, the same as an account that does not exist. ## Account status | Status | Meaning | | --- | --- | | `active` | The account can receive funds and send payouts. | | `suspended` | Glomo has stopped the account. It cannot receive funds or send payouts. | | `closed` | The account is closed. | ## Balances [Get a payment account](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccount) returns three balances for each currency. USD is always listed. Another currency is listed only while one of its balances is not zero. | Balance | Meaning | | --- | --- | | `available` | Money the customer can pay out now. | | `pending` | Card payments that succeeded but that Glomo has not cleared yet. The money moves to `available` when the compliance checks clear. | | `on_hold` | Money held for payouts in progress. It leaves the account when the payout succeeds, and goes back to `available` when the payout fails. | For example, a customer adds USD 1,000.00 and then sends a payout of USD 600.00. While the payout is in progress, `available` is `40000` and `on_hold` is `60000`. When the payout succeeds, `on_hold` goes to `0`. ## Statement [List transactions](https://docs.glomo.one/api-reference/openapi/payment_account/listpaymentaccounttransactions) returns one line each time money moves on the account. Every line has one of two types: | `type` | Meaning | | --- | --- | | `credit` | Money came into the account. | | `debit` | Money left the account. | A refund or a reversal is not a separate type. It is a credit or a debit, and `source.type` says which movement wrote the line: - A **credit** with `source.type` `payment` when a card payment succeeds. - A **debit** with `source.type` `payout` when a payout succeeds. - A **credit** or a **debit** with `source.type` `refund` when a payment is refunded, by the way the money moved. A payout in progress is not on the statement. Its amount shows in `on_hold` until the payout succeeds or fails. Each line's `amount` is what moved on the account, so the statement adds up to the balance on `amount` alone. Whether the fees are inside `amount` depends on the line: | `source.type` | `amount` | `fees` | | --- | --- | --- | | `payment` | What was added to the account | Charged to the card on top of `amount`. They never touch the balance. | | `payout` | What left the account, fees included | Inside `amount`. The beneficiary was sent `amount` less `fees.total`. | | `refund` | What was returned | None | For example, a customer sends USD 600.00 with USD 7.50 in fees. The debit has `amount` `60000` and `fees.total.amount` `750`. The balance goes down by USD 600.00, and the beneficiary is sent USD 592.50. A customer who adds USD 1,000.00 with a USD 9.00 fee is charged USD 1,009.00 on the card. The credit has `amount` `100000` and `fees.total.amount` `900`, and the balance goes up by USD 1,000.00. ## Idempotency | Call | `request_id` | When you send it again | | --- | --- | --- | | Create an add-funds order | Optional, unique to you (for example with your own prefix) | On the same account, you get the original order back. | | Create a payout | Required, up to 64 characters, unique on the account | You get the original payout back, in its current status. | ## Webhooks Glomo sends [payout webhooks](https://docs.glomo.one/platform/webhooks/payout) for payouts from a payment account to you. To get the result of a card payment, call [Get an add-funds order](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccountorder). --- Source: https://docs.glomo.one/payment-accounts/set-up Section: Payment accounts # Run payment accounts for your customers This guide takes one customer from onboarding to a payout. You create the customer, which opens their payment account. The customer then adds funds with a card. You show the balance and the statement, and you send money to a beneficiary. [Payment accounts](https://docs.glomo.one/payment-accounts) explains the account, its balances and its statuses. All request and response bodies on this page are examples. IDs, amounts and rates are illustrative. The [API reference](https://docs.glomo.one/api-reference/openapi) has the full schemas. --- ## Before you start - **Secret key.** Make every call from your server, with your secret key as the bearer token. See [Authentication](https://docs.glomo.one/platform/authentication). The base URL is `https://api.glomopay.com/api` for test and live. The key decides the environment. - **KYC record.** You need the customer's name, date of birth, nationality, address and the date of your last KYC check. Send the PAN when you hold one. - **Webhooks.** Register a webhook URL to receive `payout` events. See [Webhooks](https://docs.glomo.one/platform/webhooks). If you have no active webhook endpoint, Glomo does not send payout events. - **Amounts.** All amounts are integers in minor units. USD has two decimals, so `100000` is USD 1,000.00. | Step | Call | | --- | --- | | 1. Onboard the customer | `POST /v1/customer`, then `GET /v1/payment-accounts?customer_id=` | | 2. Add funds with a card | `POST /v1/payment-accounts/{id}/orders`, the Glomo checkout, then `GET /v1/payment-accounts/{id}/orders/{order_id}` | | 3. Show the balance and the statement | `GET /v1/payment-accounts/{id}`, `GET /v1/payment-accounts/{id}/transactions` | | 4. Send money | `POST /v1/payment-accounts/{id}/beneficiaries`, `POST .../quotes/preview`, `POST .../quotes`, `POST .../payouts`, then payout webhooks | --- ## Step 1: Onboard the customer ### Create the customer **`createCustomer`** · `POST /v1/customer` · [API reference](https://docs.glomo.one/api-reference/openapi/customer/createcustomer) Create the customer once, with the KYC record you hold. Glomo opens the customer's payment account in the same call. The response is the customer object. It does not include the payment account. These fields have rules for a payment account customer: | Field | Required | Rule | | --- | --- | --- | | `dob` | Yes | `YYYY-MM-DD`. Must be before today. | | `nationality` | Yes | ISO 3166-1 alpha-3, for example `IND`. | | `kyc.last_kyc_date` | Yes | The date of your last KYC check, `YYYY-MM-DD`. Can be today. Cannot be in the future. | | `kyc.pan_number` | No | A valid PAN in upper case. | `kyc` accepts only `pan_number` and `last_kyc_date`. Other keys return `400`. ```curl curl -i -X POST \ 'https://api.glomopay.com/api/v1/customer' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "name": "Aarav Nair", "customer_type": "individual", "email": "aarav.nair@example.com", "phone": "+971501234567", "address": "Unit 1204, Marina Heights", "city": "Dubai", "state": "Dubai", "country": "ARE", "pincode": "00000", "dob": "1988-04-17", "nationality": "IND", "kyc": { "pan_number": "ABCDE1234F", "last_kyc_date": "2026-09-25" } }' ``` The response is `201 Created` with the customer. Keep its `id`, for example `cust_6ab599fdEvVur`. Create each customer only once. A second create call for the same customer returns `400`. To find the account of a customer you already created, use List payment accounts. To update the customer later, use [Update a customer](https://docs.glomo.one/api-reference/openapi/customer/updatecustomer) (`PATCH /v1/customer/{id}`). For a payment account customer it takes `email`, `phone`, the address fields and `kyc.last_kyc_date`. ### Find the payment account **`listPaymentAccounts`** · `GET /v1/payment-accounts` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/listpaymentaccounts) Send the customer ID as `customer_id` to get the account that Create a customer opened. Store the account `id` with your customer record. ```curl curl -i -X GET \ 'https://api.glomopay.com/api/v1/payment-accounts?customer_id=cust_6ab599fdEvVur' \ -H 'Authorization: Bearer ' ``` ```json { "data": [ { "id": "pacct_6ab59a10Hk3Zq", "customer_id": "cust_6ab599fdEvVur", "status": "active", "created_at": "2026-10-15T09:15:33Z", "updated_at": "2026-10-15T09:15:33Z" } ], "page_meta": { "current": 1, "previous": null, "next": null, "per_page": 20, "pages": 1, "count": 1 } } ``` The account opens as `active`. An account that is `suspended` or `closed` cannot receive funds or send payouts, so read `status` before you offer Add funds. --- ## Step 2: Add funds with a card ### Create an add-funds order **`createPaymentAccountOrder`** · `POST /v1/payment-accounts/{id}/orders` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/createpaymentaccountorder) Create an order for the amount to add. The account is credited the order amount. When a card fee applies, the card is charged the order amount plus the fee, and the fee shows on the statement line in `fees`. The card is charged in USD. When the card is in another currency, the card issuer converts the amount. | Field | Required | Rule | | --- | --- | --- | | `amount` | Yes | A JSON integer in minor units, above zero. A string such as `"100000"` returns `400`. | | `currency` | Yes | `USD`. | | `request_id` | No | Your ID for the order. On the same account, a repeated value returns the original order. Use a value that is unique to you, for example with your own prefix. | ```curl curl -i -X POST \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/orders' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "amount": 100000, "currency": "USD", "request_id": "acme-load-0001" }' ``` Example response, `201 Created`, trimmed: ```json { "id": "paload_6ab59a06f9xuk", "customer_id": "cust_6ab599fdEvVur", "payment_account_id": "pacct_6ab59a10Hk3Zq", "status": "active", "currency": "USD", "amount": 100000, "remaining_amount": 100000, "already_paid_amount": 0, "expires_at": "2027-01-15T09:15:42Z", "request_id": "acme-load-0001", "checkout_url": "https://api.glomopay.com/api/public/v1/checkout/redirect?resource_id=paload_6ab59a06f9xuk&public_key=live_6ab59a01EXAMPLE1" } ``` The order expires 3 months after it is created. | HTTP | `code` or `message` | Meaning | | --- | --- | --- | | `400` | `Payment account cannot accept money` | The account is not `active`. | | `400` | `Order already exists for this request_id` | This `request_id` is already in use. Send a new one. | | `404` | Not found | The account does not exist or you do not own it. | | `422` | `order_amount_above_cap` | The amount is above the order limit for the currency. | | `422` | `order_cap_unavailable` | No order limit is set for the currency, so the order is refused. | ### Open the checkout The Glomo checkout collects the card, checks that Glomo can take it, runs 3D Secure and charges it. The card data goes directly to Glomo and never passes through your servers. Open the checkout with the order's `checkout_url`, or with the order ID and the public key in that URL. Always take the public key from `checkout_url`. - **Web.** Use the [Glomo Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk) with `orderId` and the `public_key` from `checkout_url`. - **Native app.** Open `checkout_url` in a WebView as a top-level page, as the API returned it. See [Web Checkout in a Mobile App (WebView)](https://docs.glomo.one/platform/sdk/experimental). Do not `fetch()` the URL and do not add `mode`. ```html ``` | Event | Meaning | | --- | --- | | `payment.success` | The card payment succeeded. Confirm it on your server before you show funds as added. | | `payment.failure` | The card was declined or the payment did not complete. The order stays payable, so the customer can try again. | | `checkout.closed` | The customer closed the checkout. Nothing was charged. | ### Confirm the result on your server **`getPaymentAccountOrder`** · `GET /v1/payment-accounts/{id}/orders/{order_id}` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccountorder) When the checkout reports a result, call Get an add-funds order from your server and use its `status` as the result. Do not credit the customer on a client-side event alone. ```curl curl -i -X GET \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/orders/paload_6ab59a06f9xuk' \ -H 'Authorization: Bearer ' ``` | Order `status` | Show the customer | | --- | --- | | `paid` | Payment received. Read the balances with Get a payment account. | | `active` | Not paid yet. The customer can try again. | | `expired`, `cancelled`, `failed` | The order cannot be paid. Create a new order. | When the order is `paid`, the money is in `pending` until Glomo clears its compliance checks, and then it moves to `available`. On the statement, the card payment line has `funds_available` `false` while the money is in `pending`, and `true` when it is in `available`. --- ## Step 3: Show the balance and the statement ### Get the balance **`getPaymentAccount`** · `GET /v1/payment-accounts/{id}` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccount) ```curl curl -i -X GET \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq' \ -H 'Authorization: Bearer ' ``` ```json { "id": "pacct_6ab59a10Hk3Zq", "customer_id": "cust_6ab599fdEvVur", "status": "active", "created_at": "2026-10-15T09:15:33Z", "updated_at": "2026-10-15T09:15:33Z", "balances": { "available": [ { "amount": 40000, "currency": "USD" } ], "pending": [ { "amount": 0, "currency": "USD" } ], "on_hold": [ { "amount": 60000, "currency": "USD" } ] } } ``` If the balances are not available for a short time, the call returns `500`. Retry it. ### List the statement **`listPaymentAccountTransactions`** · `GET /v1/payment-accounts/{id}/transactions` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/listpaymentaccounttransactions) The statement lists credits and debits, newest first. Filter with `type` (`credit` or `debit`), `currency`, and `before` and `after` on `processed_at`. Page with `page` and `per_page` (default 20, maximum 100). ```curl curl -i -X GET \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/transactions?after=2026-10-01' \ -H 'Authorization: Bearer ' ``` ```json { "data": [ { "id": "pactxn_6ab5a3f1Pq8Wm", "type": "debit", "amount": 60000, "currency": "USD", "funds_available": null, "source": { "type": "payout", "id": "payout_6ab5a2e7Tn4Yc" }, "processed_at": "2026-10-15T11:02:10Z" }, { "id": "pactxn_6ab59b40Lx2Rb", "type": "credit", "amount": 100000, "currency": "USD", "funds_available": true, "source": { "type": "payment", "id": "payt_6ab59b22oXGRy" }, "processed_at": "2026-10-15T09:18:05Z" } ], "page_meta": { "current": 1, "previous": null, "next": null, "per_page": 20, "pages": 1, "count": 2 } } ``` ### Show a receipt **`getPaymentAccountTransaction`** · `GET /v1/payment-accounts/{id}/transactions/{txn_id}` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccounttransaction) Get a transaction returns the statement line with the details a receipt needs: `source.status`, `status_history`, the fees the customer paid, and for a payout the beneficiary, the conversion and the rail. For a card payment it also returns the card brand, type and last four digits. The API reference has an example of each. --- ## Step 4: Send money ### Add a beneficiary **`createPaymentAccountBeneficiary`** · `POST /v1/payment-accounts/{id}/beneficiaries` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/createpaymentaccountbeneficiary) Add the bank account or UPI ID that the customer sends money to. The beneficiary belongs to this payment account and receives payouts only from it. The body is the same as [Create a beneficiary (v2)](https://docs.glomo.one/api-reference/openapi/beneficiary_v2/createbeneficiaryv2), with these differences: - `category` is `payout`, and it is the default. Any other value returns `400`. - `beneficiary.documents` returns `400`. ```curl curl -i -X POST \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/beneficiaries' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "category": "payout", "beneficiary": { "name": "Aarav Nair", "type": "individual", "email": "aarav.nair@example.com", "nickname": "My NRE account", "address": { "address_line1": "12 Marina Walk", "city": "Kochi", "state": "Kerala", "country_code": "IND", "postal_code": "682001" } }, "bank_account": { "account_number": "000111222333", "local_routing_number": "HDFC0000123", "currency": "INR" } }' ``` Example response, `201 Created`: ```json { "id": "bene_6ab5a1c9gflRf", "payment_account_id": "pacct_6ab59a10Hk3Zq", "name": "Aarav Nair", "category": "payout", "type": "individual", "email": "aarav.nair@example.com", "phone": null, "nickname": "My NRE account", "status": "active", "notes": null, "address": { "address_line1": "12 Marina Walk", "address_line2": null, "city": "Kochi", "state": "Kerala", "country_code": "IND", "postal_code": "682001" }, "bank_account": { "account_number": "000111222333", "name": "HDFC Bank", "swift_code": null, "local_routing_number": "HDFC0000123", "currency": "INR", "category": null, "address": { "address_line1": "MG Road", "address_line2": null, "city": "Kochi", "state": "Kerala", "country_code": "IND", "postal_code": null }, "intermediate_bank": null }, "upi_account": null, "created_at": "2026-10-15T10:40:12Z", "updated_at": "2026-10-15T10:40:12Z" } ``` A new beneficiary is `active`, or `pending` while Glomo verifies it. A payout to a `pending` or `rejected` beneficiary returns `400`. If the account already has a beneficiary with the same account number, the call returns `409`. To list, read or remove beneficiaries, use [List beneficiaries](https://docs.glomo.one/api-reference/openapi/payment_account/listpaymentaccountbeneficiaries), [Get a beneficiary](https://docs.glomo.one/api-reference/openapi/payment_account/getpaymentaccountbeneficiary) and [Delete a beneficiary](https://docs.glomo.one/api-reference/openapi/payment_account/deletepaymentaccountbeneficiary). There is no update call: to change a beneficiary, delete it and add it again. ### Preview the price **`previewPaymentAccountQuote`** · `POST /v1/payment-accounts/{id}/quotes/preview` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/previewpaymentaccountquote) Show the customer the rate, the fees and the amount the beneficiary receives. A preview saves nothing, so it has no `id` and no `expires_at`. Call it each time the customer changes the amount. | Field | Rule | | --- | --- | | `resource` | `payout`. Any other value returns `400`. | | `source_amount` or `destination_amount` | Send one, as an integer in minor units. Send `destination_amount` when the customer types the amount the beneficiary must get. | | `source_currency`, `destination_currency` | Required. | | `payment_method` | `type` `bank_transfer` and `subtype` `local_transfer` or `swift_transfer`. | A `local_transfer` to INR returns one price for each rail that the amount fits: `upi` up to ₹1 lakh, `imps` up to ₹5 lakh and `neft` up to ₹1 crore. ```curl curl -i -X POST \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/quotes/preview' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "resource": "payout", "source_currency": "USD", "destination_currency": "INR", "source_amount": 60000, "payment_method": { "type": "bank_transfer", "subtype": "local_transfer" } }' ``` Example response, `200 OK`, trimmed to one rail: ```json { "quotes": [ { "resource": "payout", "resource_type": null, "payment_account_id": "pacct_6ab59a10Hk3Zq", "payment_method": { "type": "bank_transfer", "subtype": "local_transfer", "rail": "imps" }, "source_currency": "USD", "destination_currency": "INR", "fx_rate": 88.2, "effective_fx_rate": 87.8325, "source_amount": 60000, "destination_amount": 5225850, "fees": { "txn_fee": { "currency": "USD", "amount": 500 }, "fx_fee": { "currency": "USD", "amount": 250 } }, "fee_breakdown": { "fx_fee": [ { "amount": 250, "currency": "USD", "bearer": "merchant", "collection_mode": "immediate", "taxes": [] } ], "txn_fee": [ { "amount": 500, "currency": "USD", "bearer": "merchant", "collection_mode": "immediate", "taxes": [] } ], "referral_fee": [] } } ] } ``` The amounts follow this formula: ``` (source_amount - txn_fee - fx_fee) x fx_rate = destination_amount (60000 - 500 - 250) x 88.2 = 5225850 ``` ### Lock the quote **`createPaymentAccountQuote`** · `POST /v1/payment-accounts/{id}/quotes` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/createpaymentaccountquote) When the customer confirms, send the same body to lock the price. The response has one quote for each rail. Pick the quote for a rail that the beneficiary supports, and send its `id` to Create a payout before `expires_at`. A `upi` quote needs a beneficiary with a UPI ID, and a bank rail such as `imps` or `neft` needs a bank account in the destination currency. A quote expires 30 minutes after it is locked. A quote does not hold funds. The balance is checked when you create the payout. A quote pays one payout only, and only from the account that locked it. Example response, `201 Created`, trimmed to one rail: ```json { "quotes": [ { "id": "quote_6ab5a2d4Wc7Nh", "resource": "payout", "resource_type": null, "payment_account_id": "pacct_6ab59a10Hk3Zq", "expires_at": "2026-10-15T11:30:20Z", "payment_method": { "type": "bank_transfer", "subtype": "local_transfer", "rail": "imps" }, "source_currency": "USD", "destination_currency": "INR", "fx_rate": 88.2, "effective_fx_rate": 87.8325, "source_amount": 60000, "destination_amount": 5225850, "fees": { "txn_fee": { "currency": "USD", "amount": 500 }, "fx_fee": { "currency": "USD", "amount": 250 } }, "fee_breakdown": { "fx_fee": [ { "amount": 250, "currency": "USD", "bearer": "merchant", "collection_mode": "immediate", "taxes": [] } ], "txn_fee": [ { "amount": 500, "currency": "USD", "bearer": "merchant", "collection_mode": "immediate", "taxes": [] } ], "referral_fee": [] } } ] } ``` ### Create the payout **`createPaymentAccountPayout`** · `POST /v1/payment-accounts/{id}/payouts` · [API reference](https://docs.glomo.one/api-reference/openapi/payment_account/createpaymentaccountpayout) | Field | Required | Rule | | --- | --- | --- | | `quote_id` | Yes | A quote locked on this account. | | `beneficiary_id` | Yes | An `active` beneficiary of this account. | | `purpose_code` | Yes | One of the codes below. | | `request_id` | Yes | Up to 64 characters, unique on the account. A repeated value returns the original payout. | | `notes` | No | Your own key-value pairs. A few key names are reserved, and a body that uses one returns `400` naming the key. | | Purpose code | Purpose | | --- | --- | | `S0023` | Transfer to my own overseas account | | `S1301` | Family support or living expenses | | `S1302` | Gift to family or friend | | `S1303` | Donation to charity | | `S0305` | Education: tuition and student expenses | | `S0304` | Medical treatment | | `S0306` | Travel or holiday | | `S0001` | Investments: stocks and securities | | `S0005` | Investments: property or real estate | | `S0601` | Insurance premium | | `S1306` | Tax payment | ```curl curl -i -X POST \ 'https://api.glomopay.com/api/v1/payment-accounts/pacct_6ab59a10Hk3Zq/payouts' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "quote_id": "quote_6ab5a2d4Wc7Nh", "beneficiary_id": "bene_6ab5a1c9gflRf", "purpose_code": "S0023", "request_id": "acme-po-0001", "notes": { "channel": "mobile_app" } }' ``` Example response, `201 Created`: ```json { "id": "payout_6ab5a2e7Tn4Yc", "payment_account_id": "pacct_6ab59a10Hk3Zq", "beneficiary_id": "bene_6ab5a1c9gflRf", "source_amount": 60000, "source_currency": "USD", "destination_amount": 5225850, "destination_currency": "INR", "purpose_code": "S0023", "status": "in_progress", "fees": { "txn_fee": { "currency": "USD", "amount": 500 }, "fx_fee": { "currency": "USD", "amount": 250 } }, "mid_market_rate": { "currency": "INR", "rate": 88.2 }, "documents": [], "receipt_ids": [], "utr": null, "created_at": "2026-10-15T11:01:02Z", "updated_at": "2026-10-15T11:01:02Z", "fee_collection_mode": "immediate", "request_id": "acme-po-0001", "payment_rail": "imps", "invoice_number": null, "notes": { "channel": "mobile_app" }, "error_code": null, "error_description": null, "customer_error_description": null, "quote_id": "quote_6ab5a2d4Wc7Nh", "taxes": [], "estimated_credit_date": "2026-10-15" } ``` **Always read `status` in the create response.** The call returns `201` for every payout it creates: | `status` | What it means | | --- | --- | | `in_progress` | The payout is being processed. Its source amount has moved from `available` to `on_hold`. | | `action_required` | Glomo needs more information before the payout can continue. Nothing is held yet. The amount moves to `on_hold` when the payout continues to `in_progress`. | | `failed` | The payout could not start, for example because a compliance check could not complete. Nothing is held. | | `cancelled` | Rare. The quote expired while the payout was being created, and `error_code` is `QUOTE_EXPIRED`. | A `failed` or `cancelled` payout has used its quote and its `request_id`. To try again, lock a new quote and send a new `request_id`. If you send a `request_id` that the account already used, you get the original payout back, in its current status, and the rest of the body is ignored. | HTTP | `code` or `message` | Meaning | | --- | --- | --- | | `400` | `INSUFFICIENT_BALANCE` | The `available` balance does not cover the payout. Nothing was created. `message` gives the extra amount needed. The same error is returned when the balance cannot be read for a moment, so a retry with the same `request_id` is safe. | | `400` | `Payment account cannot send money` | The account is not `active`. | | `400` | `Payouts are not available` | Payouts are not enabled for your account. Contact Glomo. | | `400` | `Purpose code ... is not allowed for payment account payouts` | Use a code from the list above. | | `400` | `Beneficiary verification is pending`, `Beneficiary has been rejected` | The beneficiary is not `active`. | | `400` | `No rails available for this beneficiary` | The beneficiary does not support the quote's rail or destination currency. Pick a quote for a rail it supports. The quote is not used. | | `400` | `Quote has expired`, `Quote has already been used` | Lock a new quote. | | `400` | `Fee amount is equal to or higher than the total transaction amount, try increasing the amount` | The fees take the whole amount. Lock a quote for a larger amount. | | `404` | Not found | The account, the quote or the beneficiary is not found on this account. | | `409` | `Another transaction on this payment account is in progress` | Another transaction on this account, such as another payout, is in progress. Nothing was done. Retry with the same `request_id`. | ### Follow the payout Glomo sends [payout webhooks](https://docs.glomo.one/platform/webhooks/payout) to you for every status change. `data` is the same payout object as the Create a payout response, with `payment_account_id` and the `request_id` you sent. | Event | What to do | | --- | --- | | `in_progress` | Show the payout as in progress. You can receive this event more than once for one payout. | | `action_required` | Glomo needs more information before the payout can continue. Show the payout as in progress and wait for the next event. | | `success` | The beneficiary is paid. The amount leaves `on_hold`, and a debit line is added to the statement. | | `failed` | The payout failed. The amount goes back to `available`. `error_code` gives the reason. | | `cancelled` | The payout was stopped before it was paid. The amount goes back to `available`. | Create a payout is idempotent on `request_id`. If you miss a webhook, send the same request again: you get the payout back in its current status, and no second payout is made. --- ## Errors and pagination Every error is a flat object with `error` (the HTTP reason) and `message`. Some errors also have `code`, for example `INSUFFICIENT_BALANCE` and `order_amount_above_cap`. When `code` is present, use it. When it is not, use the HTTP status. `message` is for your logs, so do not parse it. ```json { "error": "Bad Request", "message": "Payment account cannot send money" } ``` Every list returns `data` and `page_meta`. Lists take `page` (from 1) and `per_page` (default 20, maximum 100, a higher value is reduced to 100). List transactions also takes `before` and `after`. See [Pagination](https://docs.glomo.one/platform/pagination). --- Source: https://docs.glomo.one/multi-currency-account Section: Multi-currency accounts # Multi Currency Account Glomo offers a multi-currency payment account for global businesses to collect, transfer money and manage their treasury across available currencies. The following currencies are supported: - USD - GBP - EUR - AED - AUD - HKD - SGD --- > **Note:** INR is available for special purposes and on request only. --- Source: https://docs.glomo.one/multi-currency-account/add-balance Section: Multi-currency accounts # Add Balance Merchants can add funds to their Glomo account to facilitate upcoming payouts, cover refunds, and ensure uninterrupted payment processing without delays. Glomo supports adding balances in all currencies supported in the merchants account. Please note that merchants can only add funds from the bank accounts registered with Glomo. --- ## Add Balance Creation Below are the steps that are required to add balance:- 1. **Login** to your Glomo dashboard 2. Navigate to **My account** 3. Click on **Add balance** button on the Balances screen 4. **Choose the currency** to which you want to add balances 5. **Copy bank account details** as shown 6. **Initiate** the transfer from the bank account registered with Glomo via your internet banking / visiting your branch --- Source: https://docs.glomo.one/multi-currency-account/balance-conversion Section: Multi-currency accounts # Balance conversion Balance conversion allows merchants to manage their funds across different currencies within their Glomo account. Merchants can convert balances between any two currencies supported on their account, instantly. --- ## Convert balance Below are the steps that are required to convert balance :- 1. **Login** to your Glomo dashboard 2. Navigate to **My account** 3. Click on **Convert Balance** button on the Balance conversion screen 4. **Select the currency** and amount to convert, and choose the target currency 5. **Review the information** and click on convert button to initiate the conversion --- Source: https://docs.glomo.one/multi-currency-account/balances Section: Multi-currency accounts # Balances A Glomo account holds funds in one or more balances. Each balance is a distinct ledger that accrues credits and is drawn on for debits, and each operates in one or more currencies supported on your account. By default, every Glomo account has a **Primary Balance** that holds all transaction credits and from which all debits are drawn. Enterprise merchants can additionally enable a **Funded Balance** to separate operational debits from settlement inflows. --- ## Balance types **Primary Balance** is enabled on every Glomo account by default. It is funded by transaction credits across all collection methods, and is drawn for scheduled settlement and for debits - including refunds, chargebacks, payouts, and RFI debits - when the Funded Balance is not enabled. **Funded Balance** is available to enterprise merchants on request. It is funded by merchant top-ups and by reversals of debits, and is drawn for all merchant debits when enabled. > **Note:** The Funded Balance is available to enterprise merchants on request. Contact your Glomo account manager to enable it. For merchants on the default single-balance model, all activity flows through the Primary Balance. For merchants on the Funded Balance model, transaction credits accrue to the Primary Balance and settle on schedule untouched by debits, while all debits draw from the Funded Balance. --- ## Managing your balances You can view and manage your balances from the Glomo dashboard and programmatically via the API: - **Dashboard** - navigate to **My account → Balances** to see the current Available and Pending amounts for each balance, by currency, along with the history of Add Balance top-ups crediting your Funded Balance. - **API** - read your balances programmatically (see [Viewing your balances](https://docs.glomo.one/multi-currency-account/balances#viewing-your-balances) below). - **Reports** - go to **Reports → Balance Statement** to download a statement for any balance and date range. --- ## Primary Balance - credits, debits, and settlement Credits accrue from card transaction successes, bank transfer collections, and other inbound payments. Each credit lands in **Pending** and matures to **Available** after the configured hold window. For merchants on the default single-balance model, refunds, chargebacks, RFI debits, payouts, platform fees, and adjustments are drawn from the Available balance, alongside scheduled settlement. For merchants on the Funded Balance model, debits are routed to the Funded Balance and the Primary Balance is drawn only for scheduled settlement. The Available portion is settled to your registered bank account on your configured settlement schedule. Where a settlement date falls on a bank or FX holiday, that timeline may be affected - see the [settlement holiday calendar](https://docs.glomo.one/settlement-holidays) for the Indian and United States holidays in 2026. --- ## Funded Balance - funding and use You fund the Funded Balance by initiating a bank transfer from your registered bank account to your Glomo escrow account. Glomo credits your balance once the transfer is received, typically the same business day. Top-ups must originate from bank accounts registered with Glomo; transfers from other accounts will be returned. When enabled, the Funded Balance Available is drawn for refunds, chargebacks, RFI debits, and payouts. Reversals of these debits credit back to the Funded Balance, not the Primary Balance. ### Insufficient funds If the Available balance is insufficient when a debit lands, behaviour depends on the debit type: - **Refunds** are blocked and can be retried after a top-up. - **Payouts** are blocked and can be retried after a top-up. If payout queueing is enabled on your account, the payout is instead accepted and held until your balance covers it, and is then released automatically. See [Queued Payouts](https://docs.glomo.one/payout/queued-payouts). - **Chargebacks and RFI debits** are still applied and shown as an outstanding amount that will be automatically debited on the next top-up. > **Note:** We recommend maintaining a buffer that covers your expected refund and chargeback volume for at least seven days. --- ## Viewing your balances Use the [Retrieve balances API](https://docs.glomo.one/api-reference/openapi/balance/getbalance) (`GET /balances`) to fetch the `available`, `pending`, and `deficit` amounts for every currency enabled on your account. The `deficit` is what you owe Glomo when a chargeback or RFI debit was applied against an insufficient balance; it clears automatically on your next top-up. If your account is on the Funded Balance model, the response additionally includes a `funded_balances` object with the same `available`, `pending`, and `deficit` breakdown for your Funded Balance. To reconcile top-ups, list your Add Balance payments using the [List payments API](https://docs.glomo.one/api-reference/openapi/payment/getpayments) with the `payment_type` filter set to the Add Fund type. For reports, navigate to **Reports → Balance Statement**, select the balance and date range, and download the statement in CSV format. --- ## Notifications Glomo sends webhook events and email notifications on balance movements. For credits to the Funded Balance, the payment webhook fires with `payin_type` set to `add_funds`, alongside the `balance.funded_balance.credited` event carrying the payment identifier, amount, and updated balance. See [Balance Webhooks](https://docs.glomo.one/platform/webhooks/balance) for the payload. --- ## FAQs **Who is the Funded Balance for?** The Funded Balance is typically enabled for enterprise merchants in insurance, large-volume subscriptions, or treasury-managed businesses, who need clean separation between gross transaction inflows and operational debits, predictable settlement amounts, and independent treasury management of refund and chargeback obligations. **Can I withdraw funds from the Funded Balance?** Withdrawals from the Funded Balance are not supported in self-serve. For offboarding or other withdrawal needs, contact your Glomo account manager. **Does the Funded Balance support multiple currencies?** It is currently supported in a single currency per merchant, matching your settlement currency. **Can I switch back to the default single-balance model?** Yes, on request. The Funded Balance must be brought to zero before the model can be disabled. Contact your Glomo account manager. **What happens if I don't fund the Funded Balance?** You will not be able to initiate refunds or payouts. **What happens at settlement if the Primary Balance is insufficient on the default model?** The settlement amount is reduced accordingly, or paused until sufficient funds are available. On the Funded Balance model, this does not happen - the Primary Balance is untouched by debits, so settlements are not affected by refund or chargeback activity. --- Source: https://docs.glomo.one/multi-currency-account/withdraw-balance Section: Multi-currency accounts # Withdrawal Balance Merchants can withdraw balances from their Glomo account by submitting a withdrawal request to their registered bank account. Withdrawals are processed via bank transfer and adhere to standard bank transfer delivery times. --- ## Withdrawal initiation Below are the steps that are required to withdraw balance :- 1. **Login to** the Glomo dashboard 2. Navigate to **My account** 3. Click on **Withdrawal funds button** in Withdrawal tab 4. **Choose** bank account along with current and amount 5. **Review** and submit --- Source: https://docs.glomo.one/verification/account-validation Section: Verification # Account Validation Glomo offers Confirmation of Payee to help you ensure that funds are sent to the correct bank account. You can verify that the actual account holder's name matches the intended beneficiary’s name, reducing the risk of misdirected payments. Account validation is built into our payout flow. If you’re using the Glomo dashboard, you can validate a beneficiary before making a payout. For added flexibility, we also provide APIs that allow you to integrate the account validation process into your own systems. With Glomo, you can validate bank accounts in more than 25 countries by simply submitting account details, such as the bank account number and the account holder's name. - **Match**: Account found and is registered under the same name. - **Partial match**: Account found and is registered to someone with a similar name. For example, you entered Mick Jager instead of Mick Jagger. - **No match**: Account is found but is registered to a different name. - **Account dormant**: Account is found but is registered to a different name. --- ## Account Validation States Below are the different statuses an account validation ID can hold: | State | Description | | --- | --- | | Created | Glomo has initiated confirmation of payee and it’s in progress. | | Success | Glomo has successfully performed the validation. | | Cancelled | Glomo does not support verifying account details of a beneficiary in this country or was unable to perform account validation. | --- Source: https://docs.glomo.one/verification/kyc Section: Verification # Know Your Customer (KYC) The Glomo KYC Stack provides merchants with a comprehensive back-office interface to manage customer identity verification. It allows teams to initiate, track, and audit KYC journeys independently. Whether a merchant requires full automation via APIs or a manual dashboard-led workflow, the platform offers full visibility into every step of the verification funnel. ## Key Features: - **Centralized Compliance Panel:** A dedicated "Compliance" section in the dashboard houses all KYC-related activities. - **Granular Step Tracking:** View real-time progress for individual checks, including DigiLocker Aadhaar, bank penny verification, selfie uploads, and sanction screening. - **Merchant Branding:** The customer-facing KYC flow is fully configurable to reflect the merchant's unique logo and color theme
[Image: KYC Dashboard] --- ## 1. Generating a KYC Link with step by step instructions To initiate a verification request for a customer, follow these steps: 1. Go to the Dashboard. Navigate to the Compliance section and select **KYC**. 2. Click the "**New KYC Link**" CTA 3. Associate the link with a **specific customer ID** 4. Once submitted, a new **KYC link** is generated. --- ## 2. Monitoring Progress and "KYC Tracker" Once a link is active, the dashboard provides an audit-ready view of the customer's journey: - **Recent Activity:** View KYC attempts at the customer level under their profile. - **The Tracker:** Every step is timestamped in the KYC Tracker. - **Status Indicators:** Each sub-step (Selfie, Signature, Bank Validation) displays its specific state: Not Started, In Progress, Completed, Failed, or Requires Action. --- ## 3. Handling Reports and Data For compliance auditing and reconciliation, Admin users can export data: - **Select Date Range:** Click "Download KYC Report" and specify the "From" and "To" dates. - **Generate Summary:** The system generates a CSV report containing attempt-level information and step-wise statuses for all customers. --- ## KYC States These are the `status` values the KYC link API returns. A webhook is sent for some of them; see [KYC Journey webhooks](https://docs.glomo.one/platform/webhooks/kyc-journey). | Status | Description | Final | | --- | --- | --- | | initiated | Link created; the customer has not started the journey. | No | | in_progress | The customer is going through the steps. | No | | submitted | The customer finished the steps; the result is pending. | No | | under_review_by_maker | Waiting for the first reviewer. A KYC in case review also shows this status. | No | | under_review_by_checker | The first reviewer approved, and the KYC is waiting for the second reviewer. If the second reviewer rejects it, it goes back to `under_review_by_maker`. | No | | action_required | The customer must provide more information. | No | | under_review | The customer replied to a screening information request, and Glomo is reviewing the reply. | No | | completed | Verified. All checks passed. | Yes | | failed | The journey could not finish, for example a check failed, sanctions screening found a match, the eSign could not complete, or the country of residence is not eligible. `failure_reason` says why. | Yes | | rejected | A review or verification check declined the KYC, for example a review rejection, a failed identity check, or a declined or expired eSign. `failure_reason` is a generic text. | Yes | | expired | The link expired before the customer finished. Only a KYC in `initiated` or `in_progress` can expire. | Yes | --- ## Failure and rejection reasons A `failed` or `rejected` KYC carries a `failure_reason`. It is sent only on the [KYC Journey webhook](https://docs.glomo.one/platform/webhooks/kyc-journey). The KYC link API (`GET /kyc-links/{id}`) does not return it. On `rejected`, `failure_reason` is always `Rejected due to unmet compliance requirements`. On `failed`, `failure_reason` is the last reason recorded. Treat it as free text: it can carry the provider's or eSign's own message, so do not match on exact values. The most common reasons are: | `failure_reason` | When | | --- | --- | | `Sanction screening failed` | Sanctions screening found a match and no information request was raised. | | `ineligible_country` | The customer's country of residence is not eligible. This value is a code, not a sentence. | | `CKYC verification failed with prefilled data: ` | You prefilled the customer's details and the CKYC search or OTP request failed. For example `No record found`, or a mobile number mismatch that shows the masked registered number, such as `XXXXXX1234`. | | `Failed due to compliance requirements` | The customer's reply to an information request was not accepted. | | The identity verification provider's message, or `Failed due to unmet compliance requirements` | The identity verification provider marked the KYC request as failed. | | `Video KYC failed due to unmet compliance requirements` | The video KYC call could not complete. | | The eSign error message, or `The signing could not be completed, so this application cannot continue` | The eSign failed. | | `null` | No reason was recorded. | --- Source: https://docs.glomo.one/verification/third-party-verification Section: Verification # Third Party Verification (TPV) The Banking, Financial Services, and Insurance (BFSI) sector, particularly those involved in securities, broking, and mutual funds, is increasingly susceptible to cybercrimes, asset misappropriation, identity theft, money laundering, and fraud. To mitigate these risks, it is essential that investors process funds only from registered bank accounts that have completed the Know Your Customer (KYC) process. This is where Third-Party Validation (TPV) becomes critical. Merchant shares the registered bank during the payments to verify the customer bank account and accept the payment only if the bank details matches. Using Glomo's Third-Party Validation feature, businesses can now comply in a manner such that the customers make payments only from their registered bank accounts. TPV is enabled on a per-business basis. To enable TPV for your account, please contact Glomo support. # How TPV Works Glomo supports validating the payer's/source bank account in two different ways depending on whether the flow is Pull (real-time checkout) or Push (customer sends funds externally, e.g., SWIFT transfer). ## 1. Pull Payment (Real-time at Checkout) In a pull payment, the payment is initiated during checkout (real-time). While creating a payment link / order, the merchant can optionally specify the “expected source bank account” the money should come from (i.e., the bank account Glomo should accept the payment from). What Glomo validates: | Check |Description | | --- | --- | | Sender name | Sender name must match the bank account holder name | | Account Number | Sender account number must match the registered account number | [Image: Pull Payment preview] ## 2. Push Payment In a push payment, the customer sends funds independently (example: SWIFT transfer) to the bank account provided by the merchant/Glomo. Since Glomo only learns the sender details after the payment is received, validation happens post-facto.  If no expected/source bank account is associated with the payment link/order, Glomo validates the sender's bank account details against the customer name. # TPV Validation Results  Glomo supports validating the payer’s/source bank account in two different ways depending on whether the flow is Pull (real-time checkout) or Push (customer sends funds externally, e.g., SWIFT transfer). ## Successful validation If TPV returns a strong match, the payment continues through the normal payment lifecycle (no additional action needed). ## Failed validation If TPV returns a mismatch, weak match, or is unable to verify, the payment is moved to Action Required. The merchant can then: - Request updated sender details (name / account number) from the customer, or - Ask the customer to retry from the correct bank account, or - Trigger manual review (if enabled), or - Refund / cancel (based on corridor + merchant policy) | Error | What it usually means | | --- | --- | | Sender details do not match with the associated details | Sender info provided does not align with the customer profile/expected payer details | | Sender name does not match with bank account name | Bank account holder name differs materially from expected customer name | | Sender account number does not match with bank account number | Account number used for payment differs from the expected/linked account | # For Dashboard Users (Payment Link Flow) When creating a payment link through the Glomo dashboard: [Image: Payment link dashboard preview] 1. **Navigate** to Payment Links 2. Enter **customer details** 3. Enter **Payment amount** and details 4. **Specify** bank account information 5. **Review the information** and submit to generate the payment link --- Source: https://docs.glomo.one/verification/third-party-verification/set-up Section: Verification # Verify a payer's bank account (TPV) You can associate a bank account with orders or payment links in two ways: ## Option 1: Using an Existing Bank Account ID If the customer already has a registered bank account, reference it by ID: ## Create Order ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/orders ``` ### Request ```curl { "customer_id": "cust_E602dMzgjpDC", "amount": 10000, "currency": "USD", "purpose_code": "P1401", "bank_account_id": "ba_xyz123" } ``` ## Option 2: Providing Bank Account Details Inline If you have the customer's bank account details, provide them directly: ## Create Order ### API Endpoint ```curl POST https://api.glomopay.com/api/v1/orders ``` ### Request ```curl { "customer_id": "cust_E602dMzgjpDC", "amount": 10000, "currency": "USD", "purpose_code": "P1401", "bank_account_details": { "account_number": "1234567890", "bic_primary": "HDFCINBBDEL", "bic_secondary": "HDFC0001097", "bank_customer_id": "7189204715" } } ``` ### Bank account details parameters | Parameter | Required | Description | | --- | --- | --- | | `account_number` | Yes | The bank account number | | `bic_primary` | Conditional | SWIFT/BIC code of the bank. Either `bic_primary` or `bic_secondary` must be provided | | `bic_secondary` | Conditional | Local routing code (e.g., IFSC for India). Either `bic_primary` or `bic_secondary` must be provided | | `bank_customer_id` | No | Optional bank customer identifier | | `bank_code` | No | Optional bank code | **Important**: You cannot provide both `bank_account_id` and `bank_account_details` in the same request. --- Source: https://docs.glomo.one/request-for-information Section: Request for Information (RFI) # Request for Information (RFI) Glomo conducts a risk assessment for each transaction to ensure that our teams have a strong understanding of your business model and account usage, as well as to protect both you and from financial crime. In some cases, the automated checks can’t be completed with the information available at the time of the Payment link/order or subscription creation. When that happens, Glomo may request additional information - most commonly supporting documents related to the transaction (for example, a passport or other document that helps validate the underlying party and fund movement and provides the necessary context). When additional information is required, we raise an RFI (Request for Information) and guide you to upload the required document(s) either via API or through the Merchant Dashboard. ## Handle Transaction RFI An RFI can be triggered during the creation of: - Order (via API and Merchant Dashboard) - Payment Link (Via API and Merchant Dashboard) - Subscription (Via API and Merchant Dashboard) - Payout (respond via API or Merchant Dashboard) --- Source: https://docs.glomo.one/request-for-information/compliance-reviews-and-rfis-on-successful-payments Section: Request for Information (RFI) # Compliance Reviews & RFIs on Successful Payments Glomo conducts a risk assessment on every eligible payment to protect you and your customers from financial crime. This check runs automatically at payment success — the moment the bank confirms the payment. Most payments clear automatically. If a payment is flagged, its settlement is placed on hold until the query is addressed — see [Impact on settlement](https://docs.glomo.one/request-for-information/compliance-reviews-and-rfis-on-successful-payments#impact-on-settlement) below. When a check needs more information, Glomo raises a Request for Information (RFI) against the payment. The payment stays `Successful` — the RFI carries a separate compliance status that tells you whether any action is needed. Some flagged payments go straight to Under Review with nothing for you to do. Glomo may then raise a request if it needs more. Your customer is not involved at any point. The review is entirely between you and Glomo, and your customer's payment experience is unchanged. ## Compliance status Each in-scope payment carries a compliance status alongside its payment status: | Compliance status | What it means | What you need to do | | --- | --- | --- | | Approved (`approved`) | The check passed, or a previously flagged payment was approved after review. | Nothing. The payment settles in its normal cycle. | | Action Required (`action_required`) | Glomo has raised a request for information on the payment. | Respond to every open request within 14 days. | | Under Review (`under_review`) | Glomo is reviewing the payment, either after you answered every open request or because it needs no input from you. | Nothing — wait for the review outcome. | | Rejected (`rejected`) | The review concluded the payment cannot proceed, or a request expired without a response. | Contact Glomo support if you believe this is in error. | The value in brackets is the `compliance_status` the API and webhooks return. A payment that passes screening is approved without a webhook. ## When a payment is flagged ### Where it appears Pending compliance actions are surfaced in a banner on your dashboard home page, so you see them as soon as you log in. [Image: RFI dashboard banner preview] A flagged payment appears as a row in the RFIs tab of the Disputes & RFIs section of your dashboard. Each row shows: | Field | Description | | --- | --- | | RFI ID | The unique identifier for the RFI | | Payment ID | The payment the RFI relates to | | Amount | Payment amount | | Reason code | Why the RFI was raised, e.g. Verification required | | Status | The request's status (Action Required → Under Review → Approved / Rejected / Expired, or Cancelled) | | Created at | When the RFI was raised | [Image: RFIs list preview] ### On the payment The payment tracker shows a Compliance step after Payment Successful, linked to the RFI. When settlement is routed through Glomo, the tracker also shows a Settlement step, which stays queued while the RFI is open. [Image: Payment tracker with compliance step preview] ## Responding to an RFI Open the RFI from the RFIs tab, or open the payment and use the upload option there — both lead to the same flow. 1. Review the documents requested. [Image: RFI details preview] 2. Upload the requested document(s) (PDF, JPG, or PNG, up to 10MB each), and answer any questions the request asks. The status moves to Under Review once every open request on the payment has been answered. [Image: Respond to RFI preview] 3. Glomo reviews the payment with your answers. The outcome comes from that review of the payment, not from a single document: - **Approved** — the status moves to Approved and the payment becomes settlement-eligible in the next cycle. - **More information needed** — Glomo raises a new request. It has its own `id`, email and `compliance_action_required` webhook, and the status returns to Action Required. You can also respond programmatically instead of using the dashboard. Fetch the request with the [Fetch an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/getrfi) to see its `instructions`, `documents_required` and `fields_required`. Upload each document with the [Create a Document API](https://docs.glomo.one/api-reference/openapi/document/createdocument), then call the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) with the RFI `id`, the resulting `doc_id`(s), and your answers in `fields`. ### When we need more than one thing More than one request can be open on a payment at the same time. For example, Glomo can raise a further request while reviewing a payment, once you have answered the first one. - Each request has its own `id`, email and `compliance_action_required` webhook. - Answer each one. The payment's `rfis` list holds every open request, oldest first, and `rfi` is the newest. See [Payment Webhooks](https://docs.glomo.one/platform/webhooks/payment). - The status moves to Under Review only once every open request is answered. ### Withdrawn requests Glomo may withdraw a request. It shows Cancelled, needs no response, and the payment returns to Under Review when no other request is open. ## Impact on settlement This section applies when your settlements are routed through Glomo. Only the flagged payment is held. All your other payments settle on their normal schedule. A hold never affects your batch or your other settlements. You are not penalised for review time. Settlement timing is anchored to the date funds were marked available — not the date the RFI cleared. If your settlement window (T + N) has already elapsed when the RFI clears, the payment settles in the next eligible cycle, typically the next day. On Approved, the settlement is scheduled. ## RFI webhook Compliance status changes are delivered on two webhooks you can consume programmatically: - The payment webhook sends `compliance_action_required`, `compliance_under_review`, `compliance_approved` and `compliance_rejected`, with `compliance_status` and `rfi` in the payload. See [Payment Webhooks](https://docs.glomo.one/platform/webhooks/payment). - A dedicated RFI webhook (`entity_type: rfi`) sends `action_required` when the RFI is raised, then `under_review`, `approved` or `rejected`. Its payload is the RFI itself. See [RFI Webhooks](https://docs.glomo.one/platform/webhooks/rfi). ## Emails and reminders You get an email for each request that needs your response, alongside the RFI webhook and the dashboard entry. A payment that goes to Under Review with no request gets the payment webhook only. While a payment is in Action Required, we send you a reminder email at 10:00 IST every third day until you respond. Reminders come as one email listing up to 25 open requests, with a link to view all. Requests raised in the last 24 hours are left out. Each email states what happens if you do not respond before the response window closes. ## If you don't respond If a request gets no response for 14 days after it last changed, it expires. The request shows Expired, `compliance_status` becomes `rejected`, you get the `compliance_rejected` webhook, and the funds are not settled. The payment `status` stays `success`. Expiry runs once a day, so it can land up to a day late. Respond as early as possible — review begins as soon as you upload. The `response_deadline` field on the payment's `rfi` and `rfis` is always `null` today. It is reserved for a future response deadline; use the 14-day window above. ## Testing in sandbox You can reproduce a flagged payment end-to-end in sandbox using a reserved test amount. Create a payment for exactly **`6623` minor units** (i.e. `6623` in the smallest unit of any currency, such as $66.23 or €66.23) and it is forced into a sanctions-screening hit. The flow on this page, a successful payment with an RFI, happens only when post-payment screening is enabled for your account. It is off by default. When it is off, a bank transfer for `6623` is screened before it completes instead: it stays at `status: action_required` with `error_code` `SANCTION_HIT`, and no RFI is raised. With post-payment screening enabled: - The payment still completes with `status: success`. - Its `compliance_status` is set to `action_required` and a payment-screening RFI is raised against it. - Settlement is held until the RFI is resolved, exactly as in production. This works for any payment method and whether or not a customer is attached, so it also covers push (bank transfer) payments that have no customer. Any other amount screens normally and clears. You can trigger this with the [Create a mock payment](https://docs.glomo.one/api-reference/openapi/payment/createmockpayment) endpoint. The mock bank transfer must match a payin first, so mock an order or payment link whose quoted amount is `6623`. See [Test it in sandbox](https://docs.glomo.one/payin/payment-methods/bank-transfer/set-up#test-it-in-sandbox). The reserved amount only takes effect in sandbox — in production the same amount is screened for real and is not treated specially. --- Source: https://docs.glomo.one/request-for-information/handle-rfi-for-a-payment Section: Request for Information (RFI) # Handle RFI for a Payment ## Option 1: Upload via Merchant Dashboard You can upload the requested documents directly from the Merchant Dashboard. ### 1. You create the Payment ### 2. If additional information is required, you'll see Action Required [Image: RFI Action Required preview] ### 3. The dashboard will prompt you to upload the required supporting documents [Image: RFI Upload Documents preview] ### 4. After upload, the status changes to Under Review [Image: RFI Under Review preview] ### 5. Final decision is shared via callback/webhook (and reflected on the dashboard) ## Option 2: Upload via API If you want to submit RFI documents through your backend, you can upload them using Glomo's Respond to an RFI API. ### When this happens: During Create Payment, Glomo runs risk checks as mentioned earlier. If additional verification is required, the Create API returns: - status: `action_required` What you get in the Create response Along with the `payment_id`, you'll receive: - `rfi_id` - the identifier of the RFI to respond to - `rfi_documents` - a list of required documents, each containing: - `rfi_doc_id` - `name` (e.g., `Passport`) **Important**: Each `rfi_doc_id` represents one specific required document. You must upload documents against the same IDs. What happens after you upload Once all required documents are uploaded successfully: - Status changes to `under_review` - Glomo reviews the submission - Status updates are sent via callback/webhook - If approved, status becomes active #### Payment Flow (Example) 1. The Create Payment API returns `action_required` along with: - The payment ID - The RFI ID (`rfi_id`) - One or more RFI document IDs (`rfi_doc_id`) with their document names (`name`) 2. Upload the required documents using the [Create a Document API](https://docs.glomo.one/api-reference/openapi/document/createdocument). 3. Call the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) by supplying: - The payment's `rfi_id` (returned in step 1). The payment's `rfi` object covers only compliance reviews on successful payments; see [Compliance Reviews & RFIs on Successful Payments](https://docs.glomo.one/request-for-information/compliance-reviews-and-rfis-on-successful-payments). You can also find the RFI with the [List RFIs API](https://docs.glomo.one/api-reference/openapi/rfi/getrfis), searching by the payment ID. - For each document, the `rfi_doc_id` returned from step 1 and the `doc_id` returned from step 2 4. After successfully uploading the documents, the Glomo compliance team will review the documents and any status update will be communicated via a callback. --- Source: https://docs.glomo.one/request-for-information/handle-rfi-for-a-payout Section: Request for Information (RFI) # Handle RFI for a Payout You can answer a payout RFI in the Merchant Dashboard, or through the API with the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) if you have the RFI `id`. Both routes submit to the same RFI, and the payout moves the same way afterwards. ## Option 1: Upload via Merchant Dashboard You can upload the requested documents directly from the Merchant Dashboard. ### 1. You create the Payout ### 2. If additional information is required, the payout moves to Action Required When a payout's risk checks aren't cleared, it moves to the `action_required` state and you'll receive a `payout` webhook and a notification on your Glomo dashboard. The email comes later, when our risk analyst raises the RFI. The payout details page shows the Action Required status, and the payout tracker explains why the payout needs your attention. A payout can enter `action_required` before an RFI is raised. Our risk analyst first reviews the payout and then raises the RFI, so there may be a short wait between the payout moving to Action Required and the requested documents becoming available to upload. [Image: RFI Action Required preview] ### 3. Wait for the Respond to RFI button to appear The **Respond to RFI** button is shown only once our risk analyst raises the RFI. Wait for it to appear before attempting to upload any documents. ### 4. Select Respond to RFI to see the requested documents Open the payout and click **Respond to RFI**. The dashboard lists the documents being requested and provides an upload field for each. [Image: RFI Respond preview] ### 5. Upload the required supporting documents and submit Attach a file for each requested document, add an optional note for the reviewer, and click **Submit**. You'll see a confirmation that the documents were submitted successfully. [Image: RFI Documents Submitted preview] ### 6. The payout moves to review While the compliance team reviews your documents, the payout returns to the In Progress state and the payout tracker shows a **Payout under review** entry. [Image: RFI Under Review preview] ### 7. Once cleared, the payout resumes processing After the compliance team clears the submitted documents, the payout resumes processing automatically and continues toward Success. The payout tracker reflects each step, and the final outcome is also shared via callback/webhook. [Image: RFI Cleared preview] ## Option 2: Upload via API **`respondRfi`** · `PATCH /v1/rfis/{id}/respond` · [API reference](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) ### You need the RFI `id` The API call needs the RFI `id`, which starts with `rfi_`. The payout object and the `payout` webhooks don't include it. Get it from either: - The `rfi` webhook with `event_type: action_required`, sent when the RFI is raised. `data.id` is the RFI `id`, and `data.entity_id` is the payout ID. See [RFI webhooks](https://docs.glomo.one/platform/webhooks/rfi). - The [List RFIs API](https://docs.glomo.one/api-reference/openapi/rfi/getrfis) (`getRfis` · `GET /v1/rfis`), with `search` set to the payout ID. ### Steps 1. Wait for the RFI. The payout moves to `action_required` first, and our risk analyst raises the RFI after reviewing it. You'll receive an `rfi` webhook and an email when it is raised. 2. Fetch the RFI with the [Fetch an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/getrfi) (`getRfi` · `GET /v1/rfis/{id}`). Its `documents_required` list has one entry for each requested document, each with an `rfi_doc_id` and a `description`. `instructions` carries the reviewer's note, or a generic message if the reviewer didn't write one. If Glomo later asks for more information, the reviewer's feedback is in `review_comments`. 3. Upload each document with the [Create a Document API](https://docs.glomo.one/api-reference/openapi/document/createdocument). Keep the `id` it returns, which starts with `doc_`. 4. Call the [Respond to an RFI API](https://docs.glomo.one/api-reference/openapi/rfi/respondrfi) with the RFI `id` in the path. In `documents`, send one entry for each item in `documents_required`, pairing its `rfi_doc_id` with the `doc_id` from step 3. You can add an optional `uploader_comments` note for the reviewer. ```json { "documents": [{ "rfi_doc_id": "rfidoc_6a7c5018sI3ht", "doc_id": "doc_6a79c6c4SbTxf" }], "uploader_comments": "Invoice attached for review" } ``` For a payout RFI: - Send `doc_id`, not `doc_ids`. Each entry in a payout RFI's `documents_required` has `multiple_allowed: false` and `max_count: 1`, so it takes one file in `doc_id`. Sending only `doc_ids` returns `404` (`Document not found`). - Answer every requested document in one call. A call that leaves any of them out returns `400` and submits nothing. - Don't send `fields`. A payout RFI asks only for documents, so a `fields` object returns `400`. - Upload each document first, from your own account. A `doc_id` whose document isn't uploaded returns `400`, and a document from another account returns `404`. A successful call returns `200` with the RFI `status` set to `submitted`. When you read the RFI afterwards with `getRfi`, the same state shows as `under_review`, so don't poll for `submitted`. A second call while the RFI is under review returns `422`. ### What happens next The payout moves from `action_required` to `in_progress` while the compliance team reviews your documents, and you receive a `payout` webhook with `event_type: in_progress`. - If the documents are cleared, the payout resumes and continues toward `success`. If your balance no longer covers it, it is queued when payout queueing is on, and otherwise it fails with `INSUFFICIENT_BALANCE`. - If the documents are rejected, the payout is cancelled with `error_code` set to `PAYOUT_REJECTED`. - Glomo may ask for more information. The RFI returns to `action_required` (see `review_comments`), the payout returns to `action_required` with a `payout` webhook and an email, and you respond again to the same RFI `id`. Each of these changes arrives as a `payout` webhook. See [Payout webhooks](https://docs.glomo.one/platform/webhooks/payout). For the full payout state progression, see [Action Required State](https://docs.glomo.one/payout/action-required-state). --- Source: https://docs.glomo.one/request-for-information/handle-rfi-for-an-order Section: Request for Information (RFI) # Handle RFI for an Order ## Option 1: Upload via Merchant Dashboard You can upload the requested documents directly from the Merchant Dashboard. ### 1. You create the Order ### 2. If additional information is required, you'll see Action Required [Image: RFI Modal preview] ### 3. The dashboard will prompt you to upload the required supporting documents [Image: RFI Upload Documents preview] ### 4. After upload, the status changes to Under Review [Image: RFI Under Review preview] ### 5. Final decision is shared via callback/webhook (and reflected on the dashboard) ## Option 2: Upload via API If you want to submit RFI documents through your backend, you can upload them using Glomo's Update RFI Document API. ### When this happens: During Create Order, Glomo runs risk checks as mentioned earlier. If additional verification is required, the Create API returns: - status: `action_required` What you get in the Create response Along with the `order_id`, you'll receive: - `rfi_documents` - a list of required documents, each containing: - `rfi_doc_id` - `name` (e.g., `Passport`) **Important**: Each `rfi_doc_id` represents one specific required document. You must upload documents against the same IDs. What happens after you upload Once all required documents are uploaded successfully: - Status changes to `under_review` - Glomo reviews the submission - Status updates are sent via callback/webhook - If approved, status becomes active #### Order Flow (Example) 1. The Create Order API returns `action_required` along with: - The order ID - One or more RFI document IDs (`rfi_doc_id`) with their document names (`name`) 2. Upload the required documents using the [Create a Document API](https://docs.glomo.one/api-reference/openapi/document/createdocument). 3. Call the [Update RFI Documents for Orders API](https://docs.glomo.one/api-reference/openapi/orders/updateorderrfi) by supplying: - The order ID returned from step 1 - The RFI document IDs returned from step 1 - The id returned from step 2 4. After successfully uploading the documents, the Glomo compliance team will review the documents and any status update will be communicated via a callback. --- Source: https://docs.glomo.one/request-for-information/handle-transaction-rfi Section: Request for Information (RFI) # Handle RFI for a Payment Link ## Option 1: Upload via Merchant Dashboard You can upload the requested documents directly from the Merchant Dashboard. ### 1. You create the Payment Link ### 2. If additional information is required, you'll see Action Required [Image: RFI Modal preview] ### 3. The dashboard will prompt you to upload the required supporting documents ### 4. After upload, the status changes to Under Review [Image: RFI Successful upload preview] ### 5. Final decision is shared via callback/webhook (and reflected on the dashboard) [Image: RFI Result preview] ## Option 2: Upload via API If you want to submit RFI documents through your backend, you can upload them using Glomo's Update RFI Document API. ### When this happens: During Create Payment Link, Glomo runs risk checks as mentioned earlier. If additional verification is required, the Create API returns: - status: `action_required` What you get in the Create response Along with the `payment_link_id`, you'll receive: - `rfi_documents` - a list of required documents, each containing: - `rfi_doc_id` - `name` (e.g., `Passport`) **Important**: Each `rfi_doc_id` represents one specific required document. You must upload documents against the same IDs. What happens after you upload Once all required documents are uploaded successfully: - Status changes to `under_review` - Glomo reviews the submission - Status updates are sent via callback/webhook - If approved, status becomes active #### Payment Link Flow (Example) 1. The Create Payment Link API returns `action_required` and provides: - The payment link ID - One or more RFI document IDs (`rfi_doc_id`), each with a document name (`name`) 2. Upload the required documents using the [Create a Document API](https://docs.glomo.one/api-reference/openapi/document/createdocument). 3. Call the [Update RFI Documents for a Payment Link API](https://docs.glomo.one/api-reference/openapi/payment_link/updatepayinrfi) by supplying: - The payment link ID returned from step 1 - The RFI document IDs returned from step 1 - The id returned from step 2 4. After successfully uploading the documents, the Glomo compliance team will review the documents and any status update will be communicated via a callback. --- Source: https://docs.glomo.one/capital-markets Section: Nivo (Capital markets) # Introduction to Nivo Nivo is Glomo's capital markets suite. It gives anyone who brings investors to an investment one pipeline for the money and the journey: - **Mutual funds.** Nivo takes an investor from the first tap to units allotted: KYC, payment, folio creation and unit allotment, with no manual handoffs. Glomo is integrated with the fund's registrar (RTA), so every investment goes straight to the RTA, which creates the folio and allots the units. You start the journey. Glomo runs everything after that. - **Overseas investments.** Nivo sends a resident Indian investor's money abroad under the Liberalised Remittance Scheme (LRS), from their own Indian bank account, so you can offer overseas investments without building the remittance yourself. The name comes from *nivesh*, which means investment. ## Who Nivo is for | Customer | What Nivo does for you | | --- | --- | | AMCs | **Nivo for AMCs.** Take investments into your own schemes on your own branded checkout. Run them through launches, NFOs, investor campaigns and recurring SIPs. | | Distributors | **Nivo for Distributors.** Bring investors to any fund you have a relationship with. Your ARN is locked in on every investment, and the investor cannot change it. | | Brokers | Offer overseas investments to your customers. Nivo runs the remittance from India under LRS, and you keep the investor relationship and the trade. See [Overseas investing under LRS](https://docs.glomo.one/capital-markets/overseas-investing). | | Wealth management platforms | One pipeline for payments and overseas investments. Put Nivo behind an "Invest now" button in your app, on your site or in a campaign, and every investor gets their own journey with no extra build. A platform with an ARN also integrates as a distributor. | Nivo is enabled per business. Contact Glomo support to set it up. ## Nivo APIs | API | What it does | Start here | | --- | --- | --- | | Distributor onboarding | Onboard one known investor into a fund's scheme. Nivo runs their KYC, payment and unit allotment, credited to your ARN. | [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up) | | One Click Distributor Link | Create one link for a scheme and share it with as many investors as you like, on WhatsApp, email, your site or your app. The link does not expire, so you can reuse it next quarter. | [One Click Distributor Link](https://docs.glomo.one/capital-markets/distributor/share-a-link) | | LRS SIP | Recurring global investing from the investor's India bank account, in USD: monthly, quarterly, half-yearly or yearly. Set it up once and share one link. The investor is reminded before every instalment and pays straight from their bank. | [LRS SIP](https://docs.glomo.one/capital-markets/lrs-sip) | | Complete onboarding and payments | For an AMC's own investors. One journey covers onboarding, KYC and payment, then Nivo submits the investment to your registrar (RTA) for folio creation and unit allotment. No spreadsheets or manual uploads to the RTA. | [How a purchase runs](https://docs.glomo.one/capital-markets#how-a-purchase-runs) | | Investor Portal | An AMC's own portal for its investors. Send an investor there with one link. A new investor is onboarded, and a returning investor signs in to see their holdings across your funds and invest again. | [Investor Portal](https://docs.glomo.one/capital-markets/investor-portal) | | Overseas investing | Send a resident Indian investor's money abroad under LRS to buy overseas investments. You create the order. The investor approves the remittance with their bank. | [Overseas investing under LRS](https://docs.glomo.one/capital-markets/overseas-investing) | ## How Nivo works The rest of this page explains the roles in a mutual fund purchase and the steps it runs. Read it before you start a mutual fund integration. For overseas investing, start at [Overseas investing under LRS](https://docs.glomo.one/capital-markets/overseas-investing). ## Who is involved | Role | What it means on Nivo | | --- | --- | | Fund | The asset management company (AMC) business on Nivo. It owns the schemes, the customers, the payments and the folios. | | Distributor | A business registered with an ARN that brings investors to a fund. It opens payment sessions for the fund's schemes. See [Distributor](https://docs.glomo.one/capital-markets/distributor). | | Scheme | One investable product of a fund, identified by its scheme code. Each scheme has one plan. | | Plan | `regular` or `direct`. A regular plan pays commission to the distributor named on the purchase. A direct plan has no distributor. | | ARN | The AMFI Registration Number of a distributor. It is sent to the registrar (RTA) with a regular-plan purchase. | | Folio | The investor's account with the fund at the registrar. The first purchase creates it. Later purchases add to it. | ## How a purchase runs The fund's session type decides the steps. A typical investment session runs these in order: 1. **Identify the investor.** Email, and PAN if the fund requires it. 2. **Pick the folio.** A new folio, or an existing one for a returning investor. 3. **Choose the scheme plan and amount.** 4. **Complete KYC.** 5. **Pay.** For a resident Indian investor, this is a remittance under LRS. See [Collect LRS remittances from India](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up). 6. **Allot units.** Glomo submits the purchase to the registrar (RTA) through its RTA integration. The RTA creates the folio for a new investor and allots the units. The session completes when units are allotted. The investor sees only the steps that need their input. Glomo runs the rest in the background. ## Who can open a session - **The fund**, for its own investors. It can name one of its own schemes with `data.scheme.scheme_code`. - **A distributor**, for a fund it has a relationship with. It must name the scheme. See [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up). --- Source: https://docs.glomo.one/capital-markets/distributor Section: Nivo (Capital markets) # Distributor A distributor brings investors to a fund. With Nivo for Distributors, a distributor opens a payment session for one of the fund's schemes. The investor then completes the fund's own journey, and the purchase is made with the distributor's ARN. Nivo for Distributors is enabled per business. Contact Glomo support to set it up. ## The relationship with a fund A distributor can open sessions only for a fund it has a relationship with. Glomo sets up the relationship with the fund's agreement. It holds: - **Your ARN for that fund.** Glomo uses it on every purchase made in a session you open. - **The schemes you may sell.** The fund chooses them, scheme by scheme. Only regular-plan schemes can be distributed. A direct plan pays no distributor, so it is refused. The fund or Glomo can disable a relationship. A disabled relationship refuses new sessions with a 403. Sessions you already opened are not affected. ## What the relationship fixes When you open a session, Glomo takes these values from the relationship and the scheme, not from your request: | Value | Where it comes from | | --- | --- | | Fund and session type | The fund that owns the scheme. The session runs the fund's journey. | | ARN | Your relationship with the fund. A `distributor_arn` in your request is ignored. | The investor sees your ARN on the checkout, but cannot change it. If a changed value reaches Glomo, it is replaced with the ARN saved when the session was created. For a fund whose registrar is CAMS, Glomo checks the ARN with CAMS before the purchase is accepted. ## Scheme NAVs You can look up the NAV of every scheme you may sell, to show investors the latest price and its date. Glomo pulls NAVs from the fund's registrar on a schedule, and again when you ask and the last pull is more than a day old. Glomo keeps their history. See [Look up scheme NAVs](https://docs.glomo.one/api-reference/openapi/scheme_nav/listschemenavs) (API reference). ## Next - [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up) - [One Click Distributor Link](https://docs.glomo.one/capital-markets/distributor/share-a-link) - [Create a payment session](https://docs.glomo.one/api-reference/openapi/payment_session/createpaymentsession) (API reference) --- Source: https://docs.glomo.one/capital-markets/investor-portal Section: Nivo (Capital markets) # Investor Portal The Investor Portal is an AMC's own portal for its investors. You send an investor there with one link. A new investor completes the fund's journey: KYC, payment and the purchase. A returning investor signs in and sees their holdings and transactions across the AMC's funds, and can invest again. The Investor Portal is enabled per AMC. Contact Glomo support to set it up. ## The parent business and its funds An AMC on the Investor Portal has two kinds of business on Glomo: - **The parent business.** One per AMC. It stands for the AMC as a whole, and the Investor Portal belongs to it. - **One business per fund.** Each fund's business owns that fund's schemes, investors, payments and folios. An investor signs in to the portal once and sees every fund under the parent business. ## Which API keys to use The parent business and each fund's business have their own API keys. Use the keys of the business that owns what you are calling. | Call | API keys to use | | --- | --- | | [Create investor journey](https://docs.glomo.one/api-reference/openapi/investor_journey/createinvestorjourney) | The parent business. A fund's keys are refused with a 401. | | [Create a distributor link](https://docs.glomo.one/api-reference/openapi/distributor_link/createdistributorlink) for one of your own schemes | The business of the fund that owns the scheme, not the parent business. See [One Click Distributor Link](https://docs.glomo.one/capital-markets/distributor/share-a-link). | ## What the investor sees When an investor opens the link, Glomo checks whether they have completed KYC with the fund that owns the scheme. | Investor | What happens | | --- | --- | | New to the fund | The investor starts the fund's journey, prefilled with the email, PAN and scheme you sent. They complete KYC, pay, and the purchase is made. See [How a purchase runs](https://docs.glomo.one/capital-markets#how-a-purchase-runs). | | Has completed KYC with the fund | The investor signs in with a one-time password (OTP). Glomo sends it to the email the fund has on record for the investor. After sign-in the investor sees the portal. | In the portal, a signed-in investor can: - **See their portfolio.** Holdings across the AMC's funds, read from the registrar (RTA). - **See their transactions.** Each purchase and its status. - **Invest again.** Add to a fund they already invest in, in `USD`. ## Next - [Send an investor to the Investor Portal](https://docs.glomo.one/capital-markets/investor-portal/set-up) - [Create investor journey](https://docs.glomo.one/api-reference/openapi/investor_journey/createinvestorjourney) (API reference) --- Source: https://docs.glomo.one/capital-markets/lrs-sip Section: Nivo (Capital markets) # LRS SIP An LRS SIP is a recurring investment plan for an investor who lives in India. Each cycle, the investor pays one instalment from their own Indian bank account, as a remittance under the Liberalised Remittance Scheme (LRS). LRS SIP is enabled per business. Contact Glomo support to set it up. ## What stays the same throughout the subscription - **The bank account.** One of the customer's LRS bank accounts. Every instalment is paid from that account, and it cannot be changed later. - **The amount.** Every instalment is for the same amount, in USD. - **The schedule.** The start date, the interval and the number of billing cycles fix every due date. The first due date is the start date. The end date is the start date plus one interval for each billing cycle. ## Instalments An instalment is one cycle's payment. Glomo creates each instalment two days before its due date. A plan that starts today, tomorrow or the day after has its first instalment from the moment you create it. ### The pay window The investor can pay an instalment from its due date until three days before the next due date. Both days are included, and days are counted in India time (IST). For example, on a monthly plan, the instalment due on 4 October can be paid from 4 October to 1 November. ## Reminder emails Glomo emails the investor about each instalment, once a day at 09:15 IST, on these days: | Day | Email | | --- | --- | | Two days before the due date | The instalment is due in two days. | | The due date | The instalment is due today. | | Three days after the due date | The instalment is still due. | | Seven days after the due date | The instalment is still due. | Glomo does not send a reminder when the instalment is no longer `due`, when a payment for it is in progress, or when the plan is paused. A reminder whose day has passed is not sent late. So for a plan created one or two days before its start date, the first email the investor gets can be "due today". ## Pause, resume and cancel - **Pause.** The plan becomes `paused`. An instalment that is already open stays payable until its pay window ends. Glomo creates no new instalment and sends no reminders while the plan is paused. Each due date that passes during the pause gets an `unpaid` instalment, so a paused cycle counts as missed, not skipped. The end date does not move. - **Resume.** The plan becomes `active` again, and the schedule does not change. If the current cycle's pay window is still open, Glomo creates its instalment shortly after the resume. - **Cancel.** The plan becomes `cancelled`. Glomo then cancels the open instalment. If a bank payment for it is in progress, Glomo waits: a successful payment still marks it `paid`. ## End of the plan When the last instalment is no longer `due`, paid or unpaid, Glomo marks the plan `completed`, within about an hour. A plan that is paused at that point stays `paused` until you resume it. ## What is not possible | Action | Result | | --- | --- | | Change the next payment date | `400` with `The next payment date of an LRS SIP cannot be changed` | | Change the bank account | Not possible. Create a new plan with the other bank account. | ## Limits - The amount must be in USD and within the investor's bank's minimum and maximum for an LRS remittance. For an IDFC bank account, the amount must be in whole dollars. - The start date must be between today and 30 days from today, in IST. --- Source: https://docs.glomo.one/capital-markets/overseas-investing Section: Nivo (Capital markets) # Overseas investing under LRS Brokers and wealth management platforms use Nivo, Glomo's capital markets suite, to let resident Indian investors buy overseas investments. The investor pays in INR from their own Indian bank account. Glomo sends the money abroad under the Liberalised Remittance Scheme (LRS) of the Reserve Bank of India. This page explains the use case. The payment itself is a payin. Its objects and integration steps are in [Resident India Remittance under LRS](https://docs.glomo.one/payin/resident-india-remittance-under-lrs). LRS access is enabled per business. Contact Glomo support to set it up. ## Who is involved | Role | What it means on Glomo | | --- | --- | | Broker | Your business. You own the investor relationship and create the orders. | | Investor | An individual who lives in India. LRS is open only to resident individuals. On Glomo the investor is a [customer](https://docs.glomo.one/api-reference/openapi/customer/createcustomer). | | Investor's bank | The Indian bank the investor pays from. The investor approves the remittance with their bank during checkout. | ## What the money can be used for Every LRS order carries a purpose code. Glomo accepts two: | Purpose code | Use | | --- | --- | | `S0001` | Investment in overseas equity. Used when the order has no purpose code. | | `S0002` | Investment in overseas debt securities. | Any other purpose code is refused with a `400`. ## How an investment runs 1. **Create the customer.** Do this once per investor. Reuse the `customer_id` on later investments. 2. **Get the investor's bank account.** Send it in the order, or leave it out and checkout collects it. 3. **Create a quote.** The quote fixes the exchange rate, fees and taxes until it expires. 4. **Create the order.** It names the quote and the purpose code. 5. **The investor pays.** Checkout confirms the bank account and takes their consent. The investor then approves the remittance with their bank. 6. **Confirm the payment.** Use webhooks, the payment API or the dashboard. Steps 1 to 6 are covered in [Collect LRS remittances from India](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up). To send money back to the investor, see [Withdraw an LRS remittance back to the investor](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/set-up/withdrawal-flow-guide). ## Brokers and mutual funds LRS appears in two places in Nivo. For a broker, the LRS remittance is the whole integration. For a mutual fund, it is one step of the journey. They are different integrations. | Question | Broker | Mutual fund | | --- | --- | --- | | Who starts it | You create an LRS order. | The fund or a distributor opens a payment session. | | Who runs the journey | Your app. Glomo runs only the payment. | Glomo runs it all: identity, KYC, payment and folio. | | Where LRS fits | It is the whole integration. | It is the payment step for a resident Indian investor. | | Start here | This page. | [Introduction to Nivo](https://docs.glomo.one/capital-markets). | --- Source: https://docs.glomo.one/capital-markets/distributor/set-up Section: Nivo (Capital markets) # Open payment sessions as a distributor This guide opens a session for one of a fund's schemes and hands it to the investor. Read [Distributor](https://docs.glomo.one/capital-markets/distributor) first for what the relationship fixes. ## Before you start - Distributor access is enabled for your business. - You have an active relationship with the fund. - The fund has given you the scheme codes you may sell. - You have your API key. See [Get started](https://docs.glomo.one/get-started). ## 1. Create the session on your server Send the scheme code in `data.scheme.scheme_code`. Matching ignores case and surrounding spaces. ```curl curl -X POST 'https://api.glomopay.com/api/v1/payment-sessions' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "email": "john.doe@example.com", "data": { "scheme": { "scheme_code": "SCH001", "amount": 500000, "currency": "USD" }, "kyc": { "pan": "ABCPE1234F" } } }' ``` | Field | Required | Notes | | --- | --- | --- | | `data.scheme.scheme_code` | Yes | A scheme the fund has enabled for you. | | `email` | No | Prefills the investor's email. Required if you send `pan`, `phone` or `dob`. | | `data.scheme.amount`, `data.scheme.currency` | No | Prefills the amount, in cents of `USD`. Send both or neither. Send whole dollars (a multiple of `100`). | | `data.kyc` | No | Prefills `pan`, `phone`, `country` and `dob` for KYC. | Do not send `customer_id`; it returns 422. `distributor_arn` is ignored. The response: ```json { "id": "psess_6819d8046mpKt", "status": "active", "session_type": "kyc_lrs_folio", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_at": "2026-05-07T10:30:00Z" } ``` `session_type` is the fund's, not yours. Keep `token` on your server until you hand it to the investor's checkout. Do not log it or send it anywhere else. ## 2. Launch the session for the investor Pass `id` and `token` to the Unified SDK as `paymentSessionId` and `paymentSessionToken`. See [Unified SDK → Payment Session](https://docs.glomo.one/platform/sdk/unified-sdk). To open it inside a mobile app, see [Web Checkout in a Mobile App](https://docs.glomo.one/platform/sdk/experimental). The investor then completes the fund's journey. Your ARN is shown on the checkout and cannot be changed. ## 3. Track the session You see every session credited to you, the same way the fund sees it: - **Webhook.** Register a webhook endpoint to receive the [payment_session webhook](https://docs.glomo.one/platform/webhooks/payment-session) each time the session changes status, from `created` to `completed`. The fund gets the same event. - **One session.** Call [Retrieve a payment session](https://docs.glomo.one/api-reference/openapi/payment_session/getpaymentsession) with the session `id` for its current state. - **All your sessions.** Call [List payment sessions](https://docs.glomo.one/api-reference/openapi/payment_session/listpaymentsessions) for the sessions credited to you across every fund, newest first. Filter by `scheme_code`, or by `status` (`completed` or `failed`). A session credited to another distributor returns `404`. ## Errors | Status | Message | What to do | | --- | --- | --- | | 400 | `scheme_code is required` | Send `data.scheme.scheme_code`. | | 403 | `Payment session is not enabled for this business` | The fund does not have payment sessions enabled. Contact Glomo support. | | 403 | `No active relationship with this fund` | Your relationship with the fund is disabled. Contact the fund. | | 403 | `Scheme not enabled for this relationship` | The fund has not enabled this scheme for you. Contact the fund. | | 404 | `Scheme not found` | The code matches no active scheme, or no fund you have a relationship with. Check the code. | | 409 | `PAN is already registered with a different email` | The PAN is registered under another email. Use that email. | | 422 | `Scheme is not available for distribution` | The scheme is a direct plan. Use the fund's regular-plan scheme. | | 422 | `Fund is not configured for scheme sessions` | The fund's journey has no scheme step. Contact Glomo support. | | 422 | `Distributor ARN is not configured for this fund` | Your ARN is missing on the relationship. Contact Glomo support. | | 422 | `customer_id is not supported for relationship-originated sessions` | Remove `customer_id`. Send `email` instead. | For the full request schema, see [Create a payment session](https://docs.glomo.one/api-reference/openapi/payment_session/createpaymentsession). --- Source: https://docs.glomo.one/capital-markets/distributor/share-a-link Section: Nivo (Capital markets) # One Click Distributor Link A distributor link is one link for one of a fund's schemes. You create it once and share it with as many investors as you like. Each time an investor opens it, Glomo starts a new payment session for that scheme, credited to you, and the investor completes the fund's journey. Use it when you want to post one link, for example in a message, an email campaign or your app, instead of creating a session per investor. To create a session for one known investor, see [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up). Read [Distributor](https://docs.glomo.one/capital-markets/distributor) first for what the relationship with a fund fixes. ## Before you start - Distributor links are enabled for your business. Contact Glomo support to set it up. - You have an active relationship with the fund, and the fund has enabled the scheme for you. - You have your API key. See [Get started](https://docs.glomo.one/get-started). A fund can also create a link for one of its own schemes, with the same call. ## How it works 1. **You create the link** on your server with [Create a distributor link](https://docs.glomo.one/api-reference/openapi/distributor_link/createdistributorlink). Glomo checks your relationship with the fund, the scheme and any amount you send, and returns the link `url`. 2. **You share the link** with investors. The link is on the fund's checkout domain. 3. **An investor opens the link.** The page shows the fund, the scheme and your name. When the investor starts, Glomo creates a new payment session for that investor, prefilled with the scheme, your ARN and the amount, if you set one. Every open starts its own session, so one link serves any number of investors. 4. **The investor completes the fund's journey:** KYC, payment, and the purchase. Your ARN is shown on the checkout and cannot be changed. The amount stays editable within the scheme's limits. A link does not expire. ## 1. Create the link on your server ```curl curl -X POST 'https://api.glomopay.com/api/v1/distributor-links' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "scheme_code": "SCH001", "amount": 500000 }' ``` | Field | Required | Notes | | --- | --- | --- | | `scheme_code` | Yes | A scheme the fund has enabled for you. Matching ignores case and surrounding spaces. | | `amount` | No | Prefills the amount, in cents of `USD`. It must be within the scheme's limits for a fresh purchase. The investor can change it. | | `distributor_arn` | No | If you send it, it must be your ARN for that fund, with or without the fund's prefix. Left out, Glomo uses your ARN from the relationship. A fund creating its own link can send any ARN with its own prefix, as an editable prefill. | The response: ```json { "id": "shl_q6af9kKWKaXV4LH8XNVliBrc", "link_type": "payment_session", "url": "https://pay.example-fund.com/shared-link/shl_q6af9kKWKaXV4LH8XNVliBrc", "status": "active", "details": { "fund_name": "Example Fund", "scheme_code": "SCH001", "scheme_name": "Example Global Equity Fund", "plan": "regular", "distributor_name": "Example Distributor", "distributor_arn": "ARN-123456", "amount": 500000 }, "openings_count": 0, "created_at": "2026-10-09T10:30:00Z" } ``` Keep the `id`; it identifies the link if you contact Glomo support about it. ## 2. Share the link Send the link (`url`) to investors through any channel. Anyone with the link can open it, so share it where you would share a sign-up link, not a secret. ## Errors | Status | Message | What to do | | --- | --- | --- | | 400 | `Feature not enabled` | Distributor links are not enabled for your business. Contact Glomo support. | | 400 | `Validation failed: Scheme code can't be blank` | Send `scheme_code`. | | 400 | `Validation failed: Amount must be greater than 0`, `Validation failed: Amount must be an integer` | Send `amount` as a whole number of cents, or leave it out. | | 403 | `No active relationship with this fund` | Your relationship with the fund is disabled. Contact the fund. | | 403 | `Scheme not enabled for this relationship` | The fund has not enabled this scheme for you. Contact the fund. | | 404 | `Scheme not found` | The code matches no active scheme, or no fund you have a relationship with. Check the code. | | 422 | `distributor_arn does not match the registered ARN` | Send your ARN for that fund, or leave `distributor_arn` out. | | 422 | `Amount must be between and USD` | Send an amount within the scheme's fresh-purchase limits, or leave it out. | | 422 | `Scheme is not available for distribution` | The scheme is a direct plan. Use the fund's regular-plan scheme. | | 422 | `Fund is not configured for scheme sessions` | The fund's journey has no scheme step. Contact Glomo support. | ## Next - [Create a distributor link](https://docs.glomo.one/api-reference/openapi/distributor_link/createdistributorlink) (API reference) - [Open payment sessions as a distributor](https://docs.glomo.one/capital-markets/distributor/set-up) --- Source: https://docs.glomo.one/capital-markets/investor-portal/set-up Section: Nivo (Capital markets) # Send an investor to the Investor Portal This guide creates an Investor Portal link for one investor and one scheme, and hands it to the investor. Read [Investor Portal](https://docs.glomo.one/capital-markets/investor-portal) first for how the parent business and its funds fit together. ## Before you start - The Investor Portal is enabled for your AMC. Contact Glomo support to set it up. - You have the API key of the **parent business**, not of a fund's business. See [Get started](https://docs.glomo.one/get-started). - The scheme belongs to one of the funds under your parent business. ## 1. Create the link on your server ```curl curl -X POST 'https://api.glomopay.com/api/v1/investor-journey' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "email": "investor@example.com", "pan": "ABCPD1234E", "scheme_no": "HGEMR" }' ``` | Field | Required | Notes | | --- | --- | --- | | `email` | Yes | The investor's email. Surrounding spaces are removed and the address is lower-cased. | | `pan` | Yes | The investor's PAN. The fourth letter must be `P`. Surrounding spaces are removed. | | `scheme_no` | Yes | A scheme of one of the funds under your parent business. | The response: ```json { "url": "https://investors.example-amc.com#payload=..." } ``` ## 2. Send the investor to the link Redirect the investor to the `url`, or send it to them. Pass it on unchanged: the investor's details travel encrypted in the part after `#`. The link is for the one investor you named. Create a new link for each investor. ## 3. The investor opens the link - **A new investor** starts the fund's journey with the email, PAN and scheme you sent, and completes KYC, payment and the purchase. - **An investor who has completed KYC with the fund** signs in with a one-time password (OTP) sent to the email the fund has on record, and lands in the portal. See [What the investor sees](https://docs.glomo.one/capital-markets/investor-portal#what-the-investor-sees). ## Errors | Status | Message | What to do | | --- | --- | --- | | 400 | `Validation failed: Pan is not a valid PAN number` | Send a valid individual PAN. An invalid email returns a `Validation failed` message too. | | 400 | `Scheme not found` | The `scheme_no` matches no scheme of a fund under your parent business. Check the scheme number. | | 400 | `Investor portal is not configured for this merchant` | The Investor Portal is not set up for your AMC. Contact Glomo support. | | 401 | `Access restricted to platform businesses only` | You used a fund's API keys. Use the parent business's API keys. | | 401 | `Missing token` | Send your JWT in the `Authorization` header. | ## Next - [Create investor journey](https://docs.glomo.one/api-reference/openapi/investor_journey/createinvestorjourney) (API reference) - [Investor Portal](https://docs.glomo.one/capital-markets/investor-portal) --- Source: https://docs.glomo.one/capital-markets/lrs-sip/set-up Section: Nivo (Capital markets) # Create LRS SIP This guide creates an LRS SIP for an investor and hands the plan's link to them. Read [LRS SIP](https://docs.glomo.one/capital-markets/lrs-sip) first for how instalments, pay windows and reminders work. ## Before you start - LRS and LRS SIP are enabled for your business. Contact Glomo support to set them up. - The investor is a customer of your business, and lives in India. - You have your API key. See [Get started](https://docs.glomo.one/get-started). ## 1. Register the investor's LRS bank account Every instalment is paid from one Indian bank account, fixed when you create the plan. Register it with [Register a customer's LRS bank account](https://docs.glomo.one/api-reference/openapi/lrs/createlrscustomerbankaccount), and keep the returned `id` (`acclrs_...`). ```curl curl -X POST 'https://api.glomopay.com/api/v1/customer/cust_6812ab4c9TzQe/bank_account' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "bank_code": "hdfc", "account_number": "50100123456789" }' ``` If the investor already has an LRS bank account with you, you can use its `id`. Use an account from this endpoint, not from `POST /customer/{id}/bank-accounts`. ## 2. Create the LRS SIP Call [Create a subscription](https://docs.glomo.one/api-reference/openapi/subscription/createsubscription). You do not send a type. Glomo creates an LRS SIP because your business has LRS SIP enabled and the customer lives in India. ```curl curl -X POST 'https://api.glomopay.com/api/v1/subscriptions' \ -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "cust_6812ab4c9TzQe", "bank_account_id": "acclrs_6812ab4cK2mTd", "start_date": "2026-10-15", "amount": 50000, "currency": "USD", "interval_type": "month", "interval_count": 1, "billing_cycles": 12, "product_name": "Monthly SIP", "reference_number": "merchant-ref-123", "remittance_information": "FOLIO-123" }' ``` An LRS SIP accepts only these fields: - Field: `customer_id` - Required: Yes - Notes: A customer of your business who lives in India. - Field: `bank_account_id` - Required: Yes - Notes: The customer's LRS bank account from step 1. Its bank must be enabled for your business. It cannot be changed later. - Field: `start_date` - Required: Yes - Notes: The first due date, `YYYY-MM-DD`. Between today and 30 days from today, in India time (IST). - Field: `amount` - Required: Yes - Notes: The amount of each instalment, in cents of `USD`. `50000` is $500.00. It must be within the minimum and maximum of the account's bank. For an IDFC account, send whole dollars (a multiple of `100`). - Field: `currency` - Required: Yes - Notes: `USD` only. - Field: `interval_type` - Required: Yes - Notes: The unit of time between instalments: `month` or `year`. `as_presented` is not supported. - Field: `interval_count` - Required: Yes - Notes: How many of those units make one cycle. Together with `interval_type`, it sets how often an instalment is due: - `month` and `1`: every month - `month` and `3`: every 3 months (quarterly) - `month` and `6`: every 6 months (half-yearly) - `year` and `1`: every year Any other pair returns `400`. - Field: `billing_cycles` - Required: Yes - Notes: The number of instalments, at least `2`. At most 360 monthly, 120 quarterly, 60 half-yearly or 30 yearly. - Field: `product_name` - Required: Yes - Notes: The name the investor sees. - Field: `product_description`, `plan_name`, `plan_description` - Required: No - Notes: Shown with the plan. - Field: `reference_number` - Required: No - Notes: Your own reference, for reconciliation. - Field: `remittance_information` - Required: No - Notes: Up to 20 letters, digits or hyphens, for example a folio number. For an HDFC or Axis account, Glomo sends it to the bank with every instalment payment. Other banks do not use it. Do not put it inside `notes`. - Field: `notes` - Required: No - Notes: Key-value pairs for your own use. Any other field returns a `400` that names it. This includes the card subscription fields `expires_at`, `notify_customer`, `starts_with_first_payment`, `max_amount` and `split_ids`, even when their value is `false`, `null` or empty. Field names in camelCase, such as `bankAccountId`, are accepted. The response is the subscription, with `201`: ```json { "id": "sub_6812ab4dHq7Ls", "status": "active", "start_date": "2026-10-15", "end_date": "2027-10-15", "billing_cycles": 12, "next_payment_date": "2026-10-15", "expires_at": null, "subscription_link_url": "https://your-dashboard-host.example/subscription-links/sub_6812ab4dHq7Ls", "customer_id": "cust_6812ab4c9TzQe", "cancelled_at": null, "reference_number": "merchant-ref-123", "notes": {}, "payment_method": null, "bank_account_id": "acclrs_6812ab4cK2mTd", "remittance_information": "FOLIO-123", "plan_name": null, "plan_description": null, "product_name": "Monthly SIP", "product_description": null, "amount": 50000, "currency": "USD", "interval_type": "month", "interval_count": 1, "max_amount": null } ``` - `status` is `active` at once. It does not mean anything is paid. - `bank_account_id` is the account every instalment is paid from. `remittance_information` is the value you sent, or `null`. ## Errors Every error is a `400` with this body: ```json { "error": "Bad Request", "message": "notify_customer is not supported for an LRS SIP" } ``` - ` is not supported for an LRS SIP`: remove the field. Send only the fields in step 2. - `LRS SIP is not enabled for this business`: contact Glomo support. - `Validation failed: Bank account can't be blank`: send `bank_account_id`. - `Validation failed: Bank account not found for this customer`: send an LRS bank account of this customer, from step 1. - `Validation failed: Bank account is with a bank that is not enabled for this business`: use an account at a bank that is enabled for your business. - `Validation failed: Amount must be between and `: send an amount within the limits of the account's bank. - `Validation failed: Amount must be a whole dollar amount for an IDFC bank account (for example $100, not $100.50)`: send a multiple of `100`. - `Validation failed: Currency must be USD for an LRS SIP`: send `USD`. - `Validation failed: Start date must be between today and 30 days from today (IST)`: send a start date in that range. - `Validation failed: Interval type cannot be as_presented for an LRS SIP`: use a monthly, quarterly, half-yearly or yearly interval. - `Validation failed: Remittance information is too long (maximum is 20 characters)`: send at most 20 characters. - `Validation failed: Remittance information is invalid`: use only letters, digits and hyphens. - `Validation failed: Remittance information must be a string`: send it as a JSON string. - `Validation failed: Notes keys remittance_information are reserved and cannot be used`: send `remittance_information` at the top level, not inside `notes`. --- Source: https://docs.glomo.one/reports Section: Reports # Reports Glomo gives merchants a set of downloadable reports for reconciliation, compliance, and treasury operations. Reports are available from the dashboard under **Reports**, and most can be scoped to a date range and downloaded as CSV. Reports can also be [scheduled for automatic delivery](https://docs.glomo.one/reports/scheduled-reports) instead of downloaded manually. For LRS remittances, see [Payment, settlement and payout reports for LRS](https://docs.glomo.one/payin/resident-india-remittance-under-lrs/reports) for what each status means, what funds available means, and how to check whether a payment has been settled. Report access follows your [platform role](https://docs.glomo.one/access-management#roles-and-permissions): Admins and Members can view and download reports; Sales Partners do not have report access. ## Available reports Go to **Reports → Request report**, open the card for the report you want, pick a date range and click **Request report**. When the file is ready, download it from the **Report history** tab. | Report | Card on the dashboard | What it contains | |---|---|---| | [Payout Report](https://docs.glomo.one/reports#payout-report) | Payouts reports | Every payout, with beneficiary, amount, fees, FX and status | | [Payment Report](https://docs.glomo.one/reports#payment-report) | Payments reports | All payment transactions, including status, amount, and any configured custom fields | | [Refund Report](https://docs.glomo.one/reports#refund-report) | Refunds reports | Every refund, with its status, amount and the original payment | | [Balance Statement](https://docs.glomo.one/reports#balance-statement) | Balance Statement | Statement of credits and debits for a given balance and date range | | [Settlement Breakup Report](https://docs.glomo.one/reports#settlement-breakup-report) | Settlement reports | Line-item breakdown of every settlement, including fees, refunds, chargebacks, and disputes | | [Subscription Report](https://docs.glomo.one/reports#subscription-report) | Subscriptions reports | All subscription transactions, including status, amount, and any configured custom fields | | [KYC Report](https://docs.glomo.one/reports#kyc-report) | KYC reports | Attempt-level KYC data and step-wise verification status for all customers | | [Dispute Report](https://docs.glomo.one/reports#dispute-report) | Disputes reports | Every dispute, with status, disputed amount, fee and response deadline | | [Customer Report](https://docs.glomo.one/reports#customer-report) | Customers reports | Your customer records, with contact, address and identity details | | [Payment Link Report](https://docs.glomo.one/reports#payment-link-report) | Payment links reports | Every payment link, with amount, status, customer and invoice details | | [RFI Report](https://docs.glomo.one/reports#rfi-report) | RFIs reports | Every Request for Information, with the related transaction, documents requested and deadline | You see a card only for products enabled on your account. For example, the Payouts, Subscriptions and KYC cards appear only when those products are on, and the Settlement card appears only when your settlements are automated. You can choose which fields each report contains and their order. See [Customize your report](https://docs.glomo.one/reports/customize-your-report). --- ## Payout Report An export of your [payouts](https://docs.glomo.one/payout) for a selected date range. It includes the payout's category, payment method and rail, purpose code, beneficiary details, amount, fees and taxes, FX rate and destination amount, and status with any error details. ## Payment Report A batch export of your payment transactions for a selected date range, covering payments taken via Payment Links, Orders, and server-to-server integration. - If [custom fields](https://docs.glomo.one/payin/custom-fields) are configured on your account, each one appears as an additional column, populated per transaction. - If [declaration collection](https://docs.glomo.one/payin/checkout/declaration-collection) is enabled, the `Payer Relationship` and `NRE/NRO Declaration` fields are included as additional columns. ## Subscription Report The same batch export as the Payment Report, scoped to subscription transactions. If [custom fields](https://docs.glomo.one/payin/custom-fields) are configured, they appear as additional columns here as well, populated for each subscription charge where a value was provided. ## Settlement Breakup Report A line-item reconciliation report for every settlement paid out to your registered bank account, covering platform fees, refunds, chargebacks, and adjustments. Dispute activity also appears here so you can reconcile it alongside regular settlement activity - see [Viewing Data in the Settlement Report](https://docs.glomo.one/payin/disputes#viewing-data-in-the-settlement-report). ## Refund Report An export of your [refunds](https://docs.glomo.one/payin/refund) for a selected date range. Each row has the refund's status, reason and amount, the original payment it was made against, the fees and balance debited, the customer, and the UTR. ## Balance Statement A statement of credits and debits for any [balance](https://docs.glomo.one/multi-currency-account/balances) on your account (Primary Balance, and Funded Balance if enabled), for a selected currency and date range. To download: go to **Reports → Balance Statement**, select the balance and date range, and export as CSV. ## KYC Report An attempt-level export of customer KYC verification activity, for compliance auditing and reconciliation. To download: open the **KYC reports** card under **Reports → Request report**, or go to **Compliance → KYC** and click **Download KYC Report**, and specify the "From" and "To" dates. The generated CSV includes attempt-level information and step-wise verification status for all customers. See [Handling Reports and Data](https://docs.glomo.one/verification/kyc#3-handling-reports-and-data) for details. ## Dispute Report An export of your [disputes](https://docs.glomo.one/payin/disputes) for a selected date range. Each row has the chargeback ID, the disputed payment, status, disputed amount, chargeback fee and the response deadline. ## Customer Report An export of your customer records for a selected date range: contact details, address, identity details such as nationality, tax identification number and date of birth, and status. ## Payment Link Report An export of your [payment links](https://docs.glomo.one/payin/payment-link) for a selected date range. Each row has the link's amount, status, expiry and last reminder sent, the customer, product and invoice details, and any notes. ## RFI Report An export of every [Request for Information (RFI)](https://docs.glomo.one/request-for-information) raised on your account for a selected date range. Each row has the RFI's status, the transaction it is about, the documents required, the reason, and the response deadline. --- ## Scheduled Reports To have a report emailed to your team on a schedule, see [Scheduled Reports](https://docs.glomo.one/reports/scheduled-reports). ## Customize your report To choose which fields a report contains and their order, see [Customize your report](https://docs.glomo.one/reports/customize-your-report). --- Source: https://docs.glomo.one/reports/customize-your-report Section: Reports # Customize your report Choose which fields appear in a standard report and the order they appear in. Your layout is saved and used for every future download of that report, including [scheduled reports](https://docs.glomo.one/reports/scheduled-reports), so you set it up once instead of editing the file each time. [Image: Report card showing the fields summary and the Edit fields link] Each report card shows how many fields the report has and whether it uses the **Default** layout or a **Custom** one. ## Edit the fields in a report 1. Go to **Reports → Request report** and find the report you want to customize. 2. Below the date fields, you see a summary of the fields currently in the report. Click **Edit fields**. 3. In **Available**, select the fields you want to add. Fields are grouped by category, and you can use **Add all** or **Remove all** for a whole group. Use the search box to find a field by name. 4. In **In your report**, set the column order by dragging fields or using the move buttons (top, up, down, bottom). Click **✕** to remove a field. 5. Check the **Preview**, which shows a sample row with your chosen columns in order. 6. Click **Save fields**, then confirm. The Edit fields window looks like this: [Image: Edit fields window, with Available fields on the left, In your report on the right and the Preview below] To go back to the standard layout, click **Restore to default** in the Edit fields window, then click **Restore** to confirm. Your custom layout is removed straight away. ## Fields you can include Fields are grouped into categories. The categories and fields available depend on the report. For example, the Payments report has Payment, Fees, Customer, Payment method, Bank transfer, Invoice, Investment, Platform, Notes and Custom fields. Some fields need explaining: | Field or category | Meaning | |---|---| | **Always included** | Fields that are in every download of the report and can't be removed, for example Payment ID and Created at. You can still move them. | | **Custom fields** | The [custom fields](https://docs.glomo.one/payin/custom-fields) set up for your account by Glomo. Values come from what you enter when creating payment links, subscriptions or orders, or what you send in `notes` via the API. Available in the Payments, Subscriptions and Settlement reports. | ## How your layout is applied Each report type has one saved layout for your account. When you change it, every future download and every scheduled report of that type uses the new layout. Reports already generated aren't affected. --- Source: https://docs.glomo.one/reports/scheduled-reports Section: Reports # Scheduled Reports Rather than logging in to manually download a report each time, you can schedule it for automatic delivery by email to yourself and your team. ## Creating a schedule 1. Navigate to the **Reports** section on the dashboard, open the **Scheduled Reports** tab, and click **Create Schedule**. 2. Select the **report type** you want delivered, from the reports available for manual download (for example, Payment Report or Settlement Transaction Report). 3. Configure the **date range** the report should cover - previous day, previous 7 days, or a rolling window. 4. Set the **delivery time** for the report. Daily delivery is the only frequency supported currently. 5. Add **recipient email addresses**, including people without a Glomo dashboard login. 6. Name the schedule (for example, "Daily Payments Summary") and click **Save**. Once saved, the schedule is active and appears in the Scheduled Reports list with its next delivery date. ## What recipients receive At the configured time, every recipient gets an email with a download link. Clicking the link downloads the pre-generated report directly as a CSV. The email states the report name, the merchant name, and the date range covered. - If the report has no data for the period, the email still goes out and the linked report is empty - delivery is never skipped silently. - If delivery fails for a recipient (for example, an invalid email address), the user who created the schedule is notified. ## Managing schedules The Scheduled Reports list shows every schedule's report type, frequency, next delivery date, and recipient count. From this list, you can: - **Edit** a schedule - update the report type, delivery time, or recipients. - **Pause** a schedule - stop delivery without deleting the configuration. - **Delete** a schedule - permanently remove it. ## Things to keep in mind - You can only schedule report types that are already available for manual download - scheduling doesn't add new report types. - Recipients don't need a Glomo dashboard account to receive a scheduled report. --- Source: https://docs.glomo.one/access-management Section: Identity and Access Management # Identity and Access Management Glomo's Multi login capability allows you to manage multiple accounts under a single set of credentials. Your team can switch between business units without having to log in to each one separately. ## Unified Authentication Glomo consolidates user access into a single global identity. When a user is added to multiple Merchant IDs (MIDs), they maintain one set of credentials to access the entire ecosystem. This removes the need for duplicate accounts and ensures that security policies, such as password resets and multi-factor authentication, are applied across all business lines.
[Image: Unified authentication preview] ## Contextual Switching Glomo enables users to switch between different MIDs instantly without logging out. Users can transition from one merchant dashboard to another. This allows centralized finance and operations teams to manage reconciliation, refunds, and reporting across different MIDs.
[Image: Contextual switching preview] ## Roles and Permissions Every user on the platform is assigned one of three roles — Admin, Member, or Sales Partner — which determines the scope of records they can view and act on, and which platform capabilities they can access. ### Admin Admins have unrestricted access to the platform. You can view and manage all records across the business — regardless of who created them — and have full control over team management, including inviting new users, disabling existing ones, and updating roles. Beyond day-to-day operations, Admins have access to reports and webhooks for monitoring and integrations, and on platforms with child merchants, you can manage those sub-accounts directly. You are also the designated owners of compliance workflows, with visibility into screening hits, sanctions checks, and transaction monitoring (TxM) decisions. ### Member Members are set up for day-to-day platform operations. You have the same operational access as an Admin — managing payins, subscriptions, payments, customers, refunds, reports, and webhooks — but with a narrower scope of authority. Members cannot manage other users, assign or change roles, or access any compliance-related workflows. This makes the Member role well-suited for operational teams who need broad transactional access without administrative or regulatory responsibilities. ### Sales Partner The Sales Partner role is designed for external or channel partners who operate independently within the platform. Your access is intentionally scoped: you can only view and act on records you personally created, ensuring a clean separation between partner activity and the broader business. Within that scope, Sales Partners can manage the complete lifecycle of payins, subscriptions, customers, and refunds. One exception applies: you cannot update the next payment date on subscriptions. You do not have access to reports, webhooks, user management, or any compliance or platform-level features. | Capability | Admin | Member | Sales Partner | |---|---|---|---| | Record scope | All records | All records | Only records you created | | Payins, subscriptions, customers, refunds | Full access | Full access | Full access (except updating next payment date) | | Reports and webhooks | Yes | Yes | No | | User management (invite, disable, assign roles) | Yes | No | No | | Child merchant / sub-account management | Yes | No | No | | Compliance workflows (screening, sanctions, TxM) | Yes | No | No | ## Inviting a New Member Only Admins can invite new users to the platform. To send an invitation: 1. From the left sidebar, go to **Settings**. 2. Open **User Account Management**. This takes you to the **Users** page, which lists everyone on your account along with their email, role, creation date, and last login. 3. Click **Invite Member** in the top-right corner of the Users page. 4. In the **Invite users** dialog, fill in the new member's details: - **First Name** and **Last Name** - **Email Address** — the invitation is sent to this address - **Role** — select Admin, Member, or Sales Partner (see [Roles and Permissions](https://docs.glomo.one/access-management#roles-and-permissions) above for what each role can access) 5. Click **Confirm** to send the invitation. The new member receives an invitation at the email address provided and appears on the Users page once they complete their account setup. --- Source: https://docs.glomo.one/settlement-holidays Section: Settlement holidays # Settlement Holidays 2026 On bank and FX/SWIFT holidays, payment settlement timelines may be affected. This page lists all Indian and United States settlement holidays for 2026 so you can plan your payouts and collections accordingly. ## 2026 Holiday Calendar | India Date | India Holiday | US Date | US Holiday | | --- | --- | --- | --- | | 26 Jan 2026 | Republic Day | 01 Jan 2026 | New Year's Day | | 15 Feb 2026 | Maha Shivratri | 19 Jan 2026 | Birthday of Martin Luther King, Jr. | | 19 Feb 2026 | Chhatrapati Shivaji Jayanti | 16 Feb 2026 | Washington's Birthday | | 03 Mar 2026 | Holi (2nd Day) | 25 May 2026 | Memorial Day | | 04 Mar 2026 | Holi — Dhuleti | 19 Jun 2026 | Juneteenth National Independence Day | | 19 Mar 2026 | Gudi Padwa | 04 Jul 2026 | Independence Day* | | 21 Mar 2026 | Ramzan Id (Id-ul-Fitr) | 07 Sep 2026 | Labor Day | | 26 Mar 2026 | Ram Navmi | 12 Oct 2026 | Columbus Day | | 31 Mar 2026 | Mahavir Jayanti | 11 Nov 2026 | Veterans Day | | 01 Apr 2026 | Bank Yearly Closing | 26 Nov 2026 | Thanksgiving Day | | 03 Apr 2026 | Good Friday | 25 Dec 2026 | Christmas Day | | 14 Apr 2026 | Dr. Ambedkar Jayanti | | | | 19 Apr 2026 | Parshuram Jayanti | | | | 01 May 2026 | Maharashtra Day / Buddha Purnima | | | | 27 May 2026 | Eid-Ul-Adha (Bakri-Eid) | | | | 28 May 2026 | Id ul Zuha (Bakri Id) | | | | 26 Jun 2026 | Moharrum | | | | 15 Aug 2026 | Independence Day / Parsi New Year Day | | | | 26 Aug 2026 | Id-e-Milad | | | | 28 Aug 2026 | Raksha Bandhan | | | | 04 Sep 2026 | Janmashtami | | | | 14 Sep 2026 | Ganesh Chaturthi | | | | 15 Sep 2026 | Samvatsari | | | | 02 Oct 2026 | Gandhi Jayanti | | | | 20 Oct 2026 | Dassera (Vijaya Dashmi) | | | | 31 Oct 2026 | Sardar Vallabhbhai Patel Jayanti | | | | 08 Nov 2026 | Diwali (Laxmi Puja) | | | | 10 Nov 2026 | Balipratiprada / Vikram Samvant New Year | | | | 24 Nov 2026 | Guru Nanak Jayanti | | | | 25 Dec 2026 | Christmas | | | --- For any questions about how holidays affect your payouts or collections, reach out to us at support@glomopay.com. --- Source: https://docs.glomo.one/platform Section: Developer resources # Introduction The Glomo API is designed using REST principles, featuring clear, resource-based URLs. It processes form-encoded request bodies, returns responses in JSON format, and utilizes standard HTTP methods, response codes, and authentication. Test mode is available for the Glomo API, allowing you to run requests without affecting live data. The type of API key used will determine if the request is in test or live mode. Note that bulk updates are not supported, so each request handles only one object at a time. ## The OpenAPI description The complete API contract is published as a single, self-contained OpenAPI 3.1 document: | Format | URL | | --- | --- | | YAML | [/openapi.yaml](https://docs.glomo.one/openapi.yaml) | | JSON | [/openapi.json](https://docs.glomo.one/openapi.json) | Both are the same document — 67 paths, 89 operations, 73 schemas — with every `$ref` resolved inline, so one request gets you the whole contract with nothing left to follow. They are served as `application/yaml` and `application/json` with `Access-Control-Allow-Origin: *`, so a browser-based tool can fetch them cross-origin. Use them to generate a client, seed an HTTP collection, or hand the API to a coding agent. The URLs are stable; they are regenerated from source on every change and guarded in CI against drift. --- Source: https://docs.glomo.one/platform/authentication Section: Developer resources # Authentication Glomo uses a secure authentication system that employs both **Public** and **Secret** API keys. This dual-key approach enhances security and simplifies integration. --- ## API Keys ### Public Key - **Usage**: Intended for client-side operations, such as securely rendering checkout page. - **Security**: Safe for use in client-side code, but should still be protected from unauthorized access. ### Secret Key - **Usage**: Used for server-side API calls that perform sensitive operations, such as accessing balance, customer data, etc. - **Security**: Must be kept confidential. Do not expose it in client-side code, public repositories, or logs. --- ## Getting your Secret Key on first login 1. Log in to the [Glomo dashboard](https://app.glomopay.com). 2. Navigate to **Settings** at the bottom of the left sidebar. 3. Select **API Keys** — or go directly to the [API Keys](https://app.glomopay.com/api-keys-and-webhooks/api-keys) page. 4. Copy your **Secret Key** and store it in a secure location, such as a secrets manager. **The key is visible only once** — you cannot view it again from the dashboard later. Do not commit it to source control, embed it in client-side code, or write it to logs. If you didn't store the key, you can [rotate it](https://docs.glomo.one/platform/authentication#rotating-your-api-key) at any time to generate a fresh one. New accounts start in **Test mode**, so the keys you copy are test keys — they work only against the test environment and cannot process real payments. To go live, reach out to [support@glomopay.com](mailto:support@glomopay.com) to enable Live mode for your account. --- ## Rotating your API Key API key rotation is a security best practice that allows you to replace an existing API key with a new one. This process helps maintain security by regularly changing access credentials. ### Rotation process - Request API Key rotation - Navgate to [API Keys](https://app.glomopay.com/api-keys-and-webhooks/api-keys) page on the dashboard. - Select the 3-dot menu for the key you want to rotate and click on the **Rotate Key**. - Select an expiration period for the old API key and click the **Rotate API Key** button. - OTP Verification - Verify the **OTP** received on your email to confirm key rotation. ### Security features - Two-step verification process using email OTP - Configurable transition period for the old key - Support for both publishable and private API keys To rotate your key programmatically, use the [Rotate API Key](https://docs.glomo.one/api-reference/openapi/api_key/rotateapikey) endpoint. --- ## Environments Glomo provides separate environments for testing and production to facilitate development: - **Test Environment**: Use test API keys to simulate transactions without processing real payments from your staging/testing environment. - **Live Environment**: Use live API keys when you're ready to accept real payments from customers from your production environment. --- ## Glomo API Keys Usage Guide | **Key Type** | **Environment** | **Usage Scenario** | **Where to Use** | **Notes** | | --- | --- | --- | --- | --- | | **Public Key** | **Test** | Client-side tokenization of test environment. | **Client-side** | - Safe to use in client-side code in a test environment.
- Not valid for real transactions. | | **Secret Key** | **Test** | Testing server-side API calls. Simulating payment processing and other operations during development. | **Server-side** | - Must be kept confidential.
- Use for testing purposes only.
- Do not expose in client-side code. | | **Public Key** | **Live** | Client-side tokenization of live payment/production payments. | **Client-side** | - Ensure it's securely integrated into your application.
- Avoid exposing to unauthorized users. | | **Secret Key** | **Live** | Server-side API calls for sensitive data on production environment | **Server-side** | - Must be kept confidential at all times.
- Critical for live transactions.
- Do not share or expose. | ### Using secret key You can access your secret key from Glomo [dashboard](https://app.glomopay.com/api-keys-and-webhooks/api-keys). Authentication to the API is performed via `bearer auth`. Provide your API key as the bearer token as part of the `Authorization` header `-H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJlbnYiOiJ0Z..."`. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. Eg- ``` curl --location 'https://api.glomopay.com/api/v1/ping' \ --header 'Authorization: Bearer ' ``` You will recieve `401 Unauthorized` if you fail to provide a token or if the token is malformed or if its expired. --- Source: https://docs.glomo.one/platform/countries Section: Developer resources # Supported Countries This page provides information about countries supported by Glomo and their specific requirements. ## Supported Countries Glomo supports payments and payouts for the following countries: | Country | ISO Code | | --- | --- | | Aruba | ABW | | Angola | AGO | | Anguilla | AIA | | Albania | ALB | | Andorra | AND | | United Arab Emirates | ARE | | Argentina | ARG | | Armenia | ARM | | American Samoa | ASM | | Antarctica | ATA | | French Southern Territories | ATF | | Antigua and Barbuda | ATG | | Australia | AUS | | Austria | AUT | | Azerbaijan | AZE | | Belgium | BEL | | Benin | BEN | | Bangladesh | BGD | | Bahrain | BHR | | Bahamas | BHS | | Belize | BLZ | | Bermuda | BMU | | Bolivia | BOL | | Brazil | BRA | | Barbados | BRB | | Brunei Darussalam | BRN | | Bhutan | BTN | | Bouvet Island | BVT | | Botswana | BWA | | Canada | CAN | | Cocos (Keeling) Islands | CCK | | Switzerland | CHE | | Chile | CHL | | Côte d'Ivoire | CIV | | Congo | COG | | Cook Islands | COK | | Colombia | COL | | Comoros | COM | | Cabo Verde | CPV | | Costa Rica | CRI | | Christmas Island | CXR | | Cayman Islands | CYM | | Cyprus | CYP | | Czechia | CZE | | Germany | DEU | | Djibouti | DJI | | Dominica | DMA | | Denmark | DNK | | Dominican Republic | DOM | | Algeria | DZA | | Ecuador | ECU | | Egypt | EGY | | Western Sahara | ESH | | Spain | ESP | | Estonia | EST | | Finland | FIN | | Fiji | FJI | | Falkland Islands (Malvinas) | FLK | | France | FRA | | Faroe Islands | FRO | | Micronesia (Federated States of) | FSM | | Gabon | GAB | | United Kingdom of Great Britain and Northern Ireland | GBR | | Georgia | GEO | | Ghana | GHA | | Gibraltar | GIB | | Guadeloupe | GLP | | Gambia | GMB | | Equatorial Guinea | GNQ | | Greece | GRC | | Grenada | GRD | | Greenland | GRL | | Guatemala | GTM | | French Guiana | GUF | | Guam | GUM | | Guyana | GUY | | Heard Island and McDonald Islands | HMD | | Honduras | HND | | Hungary | HUN | | Indonesia | IDN | | India | IND | | British Indian Ocean Territory | IOT | | Ireland | IRL | | Iceland | ISL | | Israel | ISR | | Italy | ITA | | Jordan | JOR | | Japan | JPN | | Kazakhstan | KAZ | | Kyrgyzstan | KGZ | | Cambodia | KHM | | Kiribati | KIR | | Saint Kitts and Nevis | KNA | | Republic of Korea | KOR | | Kuwait | KWT | | Lao People's Democratic Republic | LAO | | Liberia | LBR | | Saint Lucia | LCA | | Liechtenstein | LIE | | Sri Lanka | LKA | | Lesotho | LSO | | Lithuania | LTU | | Luxembourg | LUX | | Latvia | LVA | | Macao | MAC | | Morocco | MAR | | Monaco | MCO | | Madagascar | MDG | | Maldives | MDV | | Mexico | MEX | | Marshall Islands | MHL | | North Macedonia | MKD | | Malta | MLT | | Mongolia | MNG | | Northern Mariana Islands | MNP | | Mauritania | MRT | | Montserrat | MSR | | Martinique | MTQ | | Mauritius | MUS | | Malawi | MWI | | Malaysia | MYS | | Mayotte | MYT | | New Caledonia | NCL | | Niger | NER | | Norfolk Island | NFK | | Niue | NIU | | Netherlands | NLD | | Norway | NOR | | Nepal | NPL | | Nauru | NRU | | New Zealand | NZL | | Oman | OMN | | Pakistan | PAK | | Panama | PAN | | Pitcairn Islands | PCN | | Peru | PER | | Palau | PLW | | Papua New Guinea | PNG | | Poland | POL | | Puerto Rico | PRI | | Portugal | PRT | | Paraguay | PRY | | French Polynesia | PYF | | Qatar | QAT | | Réunion | REU | | Romania | ROU | | Rwanda | RWA | | Saudi Arabia | SAU | | Singapore | SGP | | South Georgia and the South Sandwich Islands | SGS | | Saint Helena, Ascension and Tristan da Cunha | SHN | | Svalbard and Jan Mayen | SJM | | Solomon Islands | SLB | | Sierra Leone | SLE | | El Salvador | SLV | | San Marino | SMR | | Saint Pierre and Miquelon | SPM | | Sao Tome and Principe | STP | | Suriname | SUR | | Slovakia | SVK | | Slovenia | SVN | | Sweden | SWE | | Eswatini (Swaziland) | SWZ | | Seychelles | SYC | | Turks and Caicos Islands | TCA | | Chad | TCD | | Togo | TGO | | Thailand | THA | | Tajikistan | TJK | | Tokelau | TKL | | Turkmenistan | TKM | | Tonga | TON | | Trinidad and Tobago | TTO | | Tuvalu | TUV | | Taiwan | TWN | | U.S. Minor Outlying Islands | UMI | | Uruguay | URY | | United States of America | USA | | Uzbekistan | UZB | | Holy See (Vatican City State) | VAT | | Saint Vincent and the Grenadines | VCT | | British Virgin Islands | VGB | | U.S. Virgin Islands | VIR | | Vanuatu | VUT | | Wallis and Futuna | WLF | | Samoa | WSM | | South Africa | ZAF | | Zambia | ZMB | ## Countries Requiring Pincode The following countries require a postal/zip code when processing payments or payouts: | Country | ISO Code | | --- | --- | | Anguilla | AIA | | Albania | ALB | | Andorra | AND | | Argentina | ARG | | Armenia | ARM | | American Samoa | ASM | | Antarctica | ATA | | French Southern Territories | ATF | | Australia | AUS | | Austria | AUT | | Azerbaijan | AZE | | Belgium | BEL | | Bangladesh | BGD | | Bahrain | BHR | | Belize | BLZ | | Bermuda | BMU | | Bolivia | BOL | | Brazil | BRA | | Barbados | BRB | | Brunei Darussalam | BRN | | Bhutan | BTN | | Bouvet Island | BVT | | Canada | CAN | | Cocos (Keeling) Islands | CCK | | Switzerland | CHE | | Chile | CHL | | Côte d'Ivoire | CIV | | Cook Islands | COK | | Colombia | COL | | Cabo Verde | CPV | | Costa Rica | CRI | | Christmas Island | CXR | | Cayman Islands | CYM | | Cyprus | CYP | | Czechia | CZE | | Germany | DEU | | Dominica | DMA | | Denmark | DNK | | Dominican Republic | DOM | | Algeria | DZA | | Ecuador | ECU | | Egypt | EGY | | Western Sahara | ESH | | Spain | ESP | | Estonia | EST | | Finland | FIN | | Fiji | FJI | | Falkland Islands (Malvinas) | FLK | | France | FRA | | Faroe Islands | FRO | | Micronesia (Federated States of) | FSM | | Gabon | GAB | | United Kingdom of Great Britain and Northern Ireland | GBR | | Georgia | GEO | | Gibraltar | GIB | | Guadeloupe | GLP | | Gambia | GMB | | Greece | GRC | | Greenland | GRL | | Guatemala | GTM | | French Guiana | GUF | | Guam | GUM | | Heard Island and McDonald Islands | HMD | | Honduras | HND | | Hungary | HUN | | Indonesia | IDN | | India | IND | | British Indian Ocean Territory | IOT | | Ireland | IRL | | Iceland | ISL | | Israel | ISR | | Italy | ITA | | Jordan | JOR | | Japan | JPN | | Kazakhstan | KAZ | | Kyrgyzstan | KGZ | | Cambodia | KHM | | Kiribati | KIR | | Republic of Korea | KOR | | Kuwait | KWT | | Lao People's Democratic Republic | LAO | | Saint Lucia | LCA | | Liechtenstein | LIE | | Sri Lanka | LKA | | Lesotho | LSO | | Lithuania | LTU | | Luxembourg | LUX | | Latvia | LVA | | Morocco | MAR | | Monaco | MCO | | Madagascar | MDG | | Maldives | MDV | | Mexico | MEX | | Marshall Islands | MHL | | North Macedonia | MKD | | Malta | MLT | | Mongolia | MNG | | Northern Mariana Islands | MNP | | Montserrat | MSR | | Martinique | MTQ | | Mauritius | MUS | | Malaysia | MYS | | Mayotte | MYT | | New Caledonia | NCL | | Niger | NER | | Norfolk Island | NFK | | Netherlands | NLD | | Norway | NOR | | Nepal | NPL | | New Zealand | NZL | | Oman | OMN | | Pakistan | PAK | | Panama | PAN | | Pitcairn Islands | PCN | | Peru | PER | | Palau | PLW | | Papua New Guinea | PNG | | Poland | POL | | Puerto Rico | PRI | | Portugal | PRT | | Paraguay | PRY | | French Polynesia | PYF | | Qatar | QAT | | Réunion | REU | | Romania | ROU | | Saudi Arabia | SAU | | Singapore | SGP | | South Georgia and the South Sandwich Islands | SGS | | Saint Helena, Ascension and Tristan da Cunha | SHN | | Svalbard and Jan Mayen | SJM | | Solomon Islands | SLB | | El Salvador | SLV | | San Marino | SMR | | Saint Pierre and Miquelon | SPM | | Slovakia | SVK | | Slovenia | SVN | | Sweden | SWE | | Eswatini (Swaziland) | SWZ | | Turks and Caicos Islands | TCA | | Thailand | THA | | Tajikistan | TJK | | Turkmenistan | TKM | | Tonga | TON | | Trinidad and Tobago | TTO | | Taiwan | TWN | | U.S. Minor Outlying Islands | UMI | | Uruguay | URY | | United States of America | USA | | Uzbekistan | UZB | | Holy See (Vatican City State) | VAT | | Saint Vincent and the Grenadines | VCT | | British Virgin Islands | VGB | | U.S. Virgin Islands | VIR | | Wallis and Futuna | WLF | | South Africa | ZAF | | Zambia | ZMB | ## Usage Notes - When creating payments or payouts for countries that require pincode, ensure the postal/zip code field is included in your request - ISO codes should be used when specifying countries in API requests - Country support may vary by payment method and currency --- Source: https://docs.glomo.one/platform/errors Section: Developer resources # Errors Glomo uses standard HTTP status codes to indicate the success or failure of an API request: - **2xx Success**: The request was successful. - **4xx Client Error**: There was an error with the request. - **5xx Server Error**: An error occurred on our end. --- ## 4xx Client Errors | **HTTP Status Code** | **Description** | |---|---| | **400** | The request is invalid or missing required parameters. | | **401** | Authentication failed due to invalid API keys. | | **403** | You do not have permission to perform the requested operation. | | **404** | The requested resource does not exist. | | **409** | The request could not be completed due to a conflict with the current state of the resource. | | **422** | The request was well-formed but could not be processed. | | **429** | Too many requests have been made in a short period. | --- ## 5xx Server Errors | **HTTP Status Code** | **Description** | |---|---| | **500** | An internal error occurred on Glomo's servers. | | **502** | Glomo is temporarily unavailable. | | **503** | The service is temporarily unavailable. | | **504** | The request to Glomo timed out. | --- ### Error Response Format An error response is a flat JSON object: * `error`: the HTTP status name, for example `"Bad Request"` or `"Not Found"`. * `message`: a human-readable description of what went wrong. * `code`: a machine-readable error code. Present only on some `400` and `422` responses; branch on it when it is there. ```json { "error": "Not Found", "message": "Payment not found" } ``` With a `code`: ```json { "error": "Bad Request", "message": "Account has insufficient balance to process this transaction. Additional amount required: 5000.", "code": "INSUFFICIENT_BALANCE" } ``` A `429` comes from the API gateway before the request reaches the API, so its body does not follow this format. See [Rate Limits](https://docs.glomo.one/platform/rate_limit). --- Source: https://docs.glomo.one/platform/mcp-server Section: Developer resources # Connect an AI agent with MCP Glomo runs a remote [MCP](https://modelcontextprotocol.io) server that gives your AI coding agent the Glomo docs and API as tools. Without a credential, the agent can search the docs, find the right endpoint, read its schema, generate a sample request and get the ordered calls for an integration. With an MCP credential it can also call the API for you. Every call it makes, read or write, runs against your test (sandbox) account only. --- ## Server URL and authentication | Setting | Value | | --- | --- | | URL | `https://mcp.glomo.one/mcp` | | Transport | Streamable HTTP (stateless, `POST` only) | | Auth | `Authorization: Bearer ` | - The credential is optional. Connecting, listing tools and every discovery tool work without one. - The credential is an **MCP credential**, not your secret key. You mint it with your test secret key; see [Get an MCP credential](https://docs.glomo.one/platform/mcp-server#get-an-mcp-credential). The server refuses a secret key. - Before it runs `glomo_api_read` or `glomo_api_write`, the server checks that the credential was issued by Glomo for MCP, has not expired, and belongs to a sandbox account. It holds no key of its own: it forwards your credential to the Glomo API, which checks it again on every call. The file-based configs below read the credential from the `GLOMO_MCP_CREDENTIAL` environment variable or prompt for it, so no credential lands in a file you commit. The Claude Code plugin reads the variable too. `claude mcp add` and Lovable are the exceptions: they save the value in their own settings, as their sections explain. Set it in the shell you start your client from: ```bash export GLOMO_MCP_CREDENTIAL="" ``` --- ## Get an MCP credential MCP credentials are available on every Glomo account except white-label partner accounts and the merchants they host. Mint the credential with your **test secret key** over the Glomo API, or generate it in the Merchant Dashboard under **API keys**, in test mode. See [Getting your Secret Key](https://docs.glomo.one/platform/authentication#getting-your-secret-key-on-first-login) for the key. ### Create ```bash curl -X POST 'https://api.glomopay.com/api/v1/mcp-credentials' \ -H "Authorization: Bearer $GLOMO_SECRET_KEY" ``` The request has no body. The response is `201 Created`: ```json { "mcp_credential": "eyJhbGciOiJSUzI1NiJ9.example-payload.example-signature", "expires_at": "2026-10-28T06:30:00Z" } ``` - `GLOMO_SECRET_KEY` in these calls is your test secret key. It is only used to mint or rotate the credential, and never goes into your agent's config. - The API returns `mcp_credential` only in this response. Store it the way you store your secret key. - It expires 30 days after it is minted. `expires_at` is in UTC. - You can hold one active MCP credential at a time. If one is already active, create returns `409 Conflict` with `An active MCP credential already exists; rotate it instead`. Once it has expired, create works again. ### Rotate ```bash curl -X POST 'https://api.glomopay.com/api/v1/mcp-credentials/rotate' \ -H "Authorization: Bearer $GLOMO_SECRET_KEY" ``` The request has no body. The response is `200 OK`, in the same shape as create, with a new credential that is valid for 30 days. - **The old credential stops working immediately.** There is no grace period, so update your client config before an agent next calls the API. - If you have no active MCP credential, rotate returns `404 Not Found` with `No active MCP credential to rotate; create one instead`. ### Revoke ```bash curl -X POST 'https://api.glomopay.com/api/v1/mcp-credentials/revoke' \ -H "Authorization: Bearer $GLOMO_SECRET_KEY" ``` The request has no body. The response is `204 No Content`. - **The credential stops working immediately**, and no new one is issued. Revoke it when it may have leaked, or when you stop using MCP. - Create works again straight after, if you want a new one. - If you have no active MCP credential, revoke returns `404 Not Found` with `No active MCP credential to revoke`. ### Rules for these calls - **Sandbox only.** Call them with your test secret key. With a live key they return `403 Forbidden` with `MCP credentials are only issued on sandbox`. - **Only a secret key can manage MCP credentials.** With an MCP credential as the bearer they return `403 Forbidden` with `MCP credentials cannot manage MCP credentials`, so an agent cannot renew its own access. - **Account access.** On an account without MCP access, create and rotate return `400 Bad Request` with `Feature not enabled`. Revoke always works, so you can end a credential you already hold. - **Rate limit.** Create, rotate and revoke share a limit of 10 requests a minute per account. Beyond that you get `429 Too Many Requests` with `Too many MCP credential requests; try again in a minute`. - A missing or invalid key returns `401 Unauthorized`. --- ## Tools | Tool | Credential | What it does | | --- | --- | --- | | `glomo_docs_search` | No | Searches these docs and returns cited excerpts with their URLs. | | `glomo_api_search` | No | Finds an API operation by keyword. | | `glomo_api_details` | No | Returns the parameters and request and response schemas for an `operationId`. | | `glomo_sample_request` | No | Generates a cURL, Python or Node sample for your own app code. Samples read your secret key from `GLOMO_API_KEY`, not the agent's MCP credential. | | `glomo_implementation_planner` | No | Returns the ordered API calls for an integration, copied from [Get started](https://docs.glomo.one/get-started). Given a goal, it lists the matching flows to choose from. | | `glomo_api_read` | Yes | Runs a `GET` operation against your sandbox account. | | `glomo_api_write` | Yes | Runs a `POST`, `PATCH` or `DELETE` operation against your sandbox account. | The discovery tools cover the whole API. Only a reviewed allowlist of operations can be run; the rest come back marked `executable: false`, so the agent can read them but not call them. The planner never invents a call order: a goal with no authored flow says so. --- ## Set up your client ### Claude Code #### Install the Glomo plugin The plugin adds this MCP server and the Glomo [agent skills](https://docs.glomo.one/.well-known/skills/index.json) in one step. In Claude Code, run: ```text /plugin marketplace add glomopay/glomo-ai-plugins /plugin install glomo@glomo ``` - The plugin reads your credential from `GLOMO_MCP_CREDENTIAL` each time Claude Code starts, so it never saves the credential. Without the variable, the discovery tools still work. - The skills are `/glomo:integration`, `/glomo:payins`, `/glomo:payouts`, `/glomo:testing` and `/glomo:webhooks`. Claude Code loads the right one when your task needs it, or you can run one by name. - To offer the plugin to everyone who works in a repo, commit this to the repo's `.claude/settings.json`: ```json { "extraKnownMarketplaces": { "glomo": { "source": { "source": "github", "repo": "glomopay/glomo-ai-plugins" } } }, "enabledPlugins": { "glomo@glomo": true } } ``` Check it with `/mcp` inside a session: `glomo` should be listed as connected. #### Add the server only To add the MCP server without the skills, run this once for all your projects: ```bash claude mcp add --transport http --scope user glomo https://mcp.glomo.one/mcp \ --header "Authorization: Bearer $GLOMO_MCP_CREDENTIAL" ``` Your shell expands `$GLOMO_MCP_CREDENTIAL` when you run this, so the credential is saved in `~/.claude.json`, which is private to you. To share the setup with your team without sharing a credential, commit a `.mcp.json` at the project root instead. Claude Code expands `${GLOMO_MCP_CREDENTIAL}` from each developer's environment at startup: ```json { "mcpServers": { "glomo": { "type": "http", "url": "https://mcp.glomo.one/mcp", "headers": { "Authorization": "Bearer ${GLOMO_MCP_CREDENTIAL}" } } } } ``` Check it with `claude mcp list`, or `/mcp` inside a session. ### Cursor Add this to `~/.cursor/mcp.json` for all projects, or `.cursor/mcp.json` for one: ```json { "mcpServers": { "glomo": { "url": "https://mcp.glomo.one/mcp", "headers": { "Authorization": "Bearer ${env:GLOMO_MCP_CREDENTIAL}" } } } } ``` Cursor lists the server and its tools in its MCP settings once it connects. ### VS Code (GitHub Copilot agent mode) Add this to `.vscode/mcp.json`. VS Code prompts for the credential the first time the server starts, so the file holds no secret: ```json { "inputs": [ { "type": "promptString", "id": "glomo-mcp-credential", "description": "Glomo MCP credential", "password": true } ], "servers": { "glomo": { "type": "http", "url": "https://mcp.glomo.one/mcp", "headers": { "Authorization": "Bearer ${input:glomo-mcp-credential}" } } } } ``` Run **MCP: List Servers** from the Command Palette to check it started, then open Chat in agent mode and look for the Glomo tools in the tools picker. ### OpenAI Codex CLI Codex connects to streamable HTTP servers directly; you do not need a bridge such as `mcp-remote`. You need a Codex CLI release that supports `bearer_token_env_var`. If your build rejects that key, upgrade Codex rather than putting the token inline. Add this to `~/.codex/config.toml`: ```toml [mcp_servers.glomo] url = "https://mcp.glomo.one/mcp" bearer_token_env_var = "GLOMO_MCP_CREDENTIAL" ``` Codex sends the variable's value as `Authorization: Bearer `. Check it with `codex mcp list`, or `/mcp` inside a session. ### Lovable Lovable connects from its own servers, so it stores the credential itself rather than reading your environment. A custom MCP server is a personal chat connector: it is never part of your published app. 1. Open [Connectors](https://lovable.dev/dashboard?connectors), select **+** in the top right, and choose **MCP server**. 2. **Server name**: `glomo`. 3. **Connection type**, if shown: **Direct connection**. 4. **Server URL**: `https://mcp.glomo.one/mcp`. 5. **Authentication**: choose **Bearer token or API key** and paste your MCP credential. Do not leave the default **OAuth** selected; this server does not use OAuth. For docs and API discovery only, choose **No authentication**. 6. Select **Add server**. --- ## Check the connection Ask your agent: 1. "List the Glomo MCP tools." You should see the seven `glomo_*` tools above. 2. "Use `glomo_docs_search` to find how to create a payout." You should get excerpts with `docs.glomo.one` links. This works without a credential. 3. With a credential set: "Use `glomo_api_read` to run `getBalance`." You should get your sandbox account's balances. --- ## Sandbox only - **Reads and writes both run only against sandbox.** `glomo_api_read` and `glomo_api_write` refuse any credential that is not a sandbox credential, before the call reaches the Glomo API. An agent cannot read or change live data through this server. - **Your secret key does not work here,** test or live. The server accepts only an MCP credential. - **The credential lasts 30 days.** Rotate it before then, or create a new one after it expires, and update your client config. - Keep the credential out of prompts, commits and shared config. Every setup above keeps it in your environment, an input prompt or the client's own store. --- ## Troubleshooting **`Unauthorized: no Glomo credential supplied for this request.`** The server received no credential. The header must be exactly `Authorization: Bearer `. Check `echo $GLOMO_MCP_CREDENTIAL` in the shell you start the client from, and restart the client after setting it. A client started before you exported the variable does not see it. **`Unauthorized: invalid credential.`** The server rejected the credential before calling the API. It is your secret key rather than an MCP credential, the MCP credential has expired, or it was not issued by Glomo for MCP (for example, it was altered). [Create one](https://docs.glomo.one/platform/mcp-server#create), or [rotate](https://docs.glomo.one/platform/mcp-server#rotate) if it is still active, and update your config. **A tool result with `"statusCode": 401`** The Glomo API rejected the credential. Most often it was rotated or revoked, which ends it at once. Put the current MCP credential in your config. **The client reports a 401 or an auth failure when connecting** Not your credential: the server accepts every connection and only checks credentials on `glomo_api_read` and `glomo_api_write`. Check the URL ends in `/mcp`. In Lovable, make sure **OAuth** is not selected. **`the execution tools are sandbox-only and require a sandbox credential`** The credential is not a sandbox credential. Mint one with your test secret key. **`Invalid arguments for tool glomo_api_read` (or `glomo_api_write`) with `Invalid enum value`** Each tool accepts only the operations it can run. Either the operation is documentation only (`executable: false` in `glomo_api_search` or `glomo_api_details`), or you called it through the wrong tool: the `tool` field in those results names the right one. For a documentation-only operation, call the API from your own code; `glomo_sample_request` gives you the request. **The Glomo tools do not show up** - The URL must end in `/mcp`. Opening it in a browser returns `405 Method not allowed`: that is expected, because the server only accepts `POST`, and it proves the URL is reachable. - Claude Code needs `--transport http` (without it, `claude mcp add` expects a local command). VS Code needs `"type": "http"`. - Restart or reload the client after editing its config, then run its check command above. --- ## Related - [llms.txt](https://docs.glomo.one/llms.txt) and [llms-full.txt](https://docs.glomo.one/llms-full.txt): these docs as plain text for agents. - [Agent skills](https://docs.glomo.one/.well-known/skills/index.json): the catalogue of Glomo skills for your agent. - [Get started](https://docs.glomo.one/get-started): the ordered calls that `glomo_implementation_planner` returns. - [API reference](https://docs.glomo.one/api-reference/openapi), and the full contract as one document at [/openapi.yaml](https://docs.glomo.one/openapi.yaml). - [Authentication](https://docs.glomo.one/platform/authentication): API keys, test and live environments, rotation. --- Source: https://docs.glomo.one/platform/pagination Section: Developer resources # Pagination Glomo's API endpoints that return collections of data (such as lists of payments, customers, or transactions) support pagination. This allows you to control the number of records returned in a single API response and navigate through large datasets efficiently. --- ## Overview - **Default Pagination**: By default, API endpoints returns 20 records per request. - **Pagination Parameters**: Use query parameters to specify the page number and the number of records per page. - **Response Metadata**: Each paginated response includes metadata about the pagination state. --- ## Parameters When making a request to an endpoint that supports pagination, you can include the following query parameters: - **page**: `integer` page number to retrieve. Starts from 1. - Default: `1` - **per_page**: `integer` number of records to return per page. - Default: `20` - Maximum: `100` - **before**: `string` returns only entities created at or before this time. An [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp with an offset, such as `2025-02-18T12:03:44Z`. A timestamp without an offset is read as UTC. A bare date (`YYYY-MM-DD`) means the end of that day in UTC. - **after**: `string` returns only entities created at or after this time, in the same format as `before`. A bare date (`YYYY-MM-DD`) means the start of that day in UTC. - An invalid `before` or `after` value returns `400 Bad Request`. Use `before` or `after` timestamps to ensure consistent results and avoid **Page drift**. A page drift is a case which happens in case new records were added to the result set while you were traversing a series of pages. The new records will end up pushing some older results into your new pages hence resulting in duplicated values in 2 subsequent pages. Using the timestamps will restrict the search window and prevent new records from seeping into the current result set. --- ## Example Request and Response ### Retrieving a List of Payments with Pagination ## Request ```http GET /v1/payments?page=2&per_page=20 Authorization: Bearer YOUR_SECRET_KEY Content-Type: application/json ``` ## Response ```http request { "data": [ { "id": "payt_E602dMzgjpDC", "payin_id": "plink_E602dMzgjpDC", "status": "success", "currency": "USD", "amount": 1, "credit_account_number": "string", "debit_account_number": "string", "purpose_code": "S0001", "transaction_reference_number": "plink_E602dMzgjpDC", "sender_name": "John Doe", "metadata": {}, "error_message": "string", "payment_date": "2024-12-06T11:38:37.130Z", "created_at": "2024-12-06T11:38:37.130Z", "updated_at": "2024-12-06T11:38:37.130Z", "customer_id": "cust_E602sMzgjpDC", "country": "Ind", "ordered_amount": 1000, "ordered_currency": "USD", "fx_fee": { "amount": 1000, "currency": "USD" }, "txn_fee": { "amount": 1000, "currency": "USD" }, "documents": [ { "id": "doc_nYUqLpuYQ0M8", "type": "invoice", "status": "pending", "rfi_doc_id": "rfidoc_nYUqLpuYQ0M8" } ] } ], "page_meta": { "current": 2, "previous": 1, "next": 3, "per_page": 20, "pages": 10, "count": 200 } } ``` --- Source: https://docs.glomo.one/platform/quote Section: Developer resources # Quotes A quote locks in the terms of a transfer for a fixed period from creation. Use the returned quote `id` when creating a payin or payout to guarantee the quoted terms. The `POST /quotes` endpoint prices both payouts and payins. --- ## Why use quotes The primary purpose of a quote is to **lock in pricing before funds move**. A quote freezes the terms of a transfer at the moment it is generated, and those terms stay guaranteed until the quote's `expires_at`. Binding a quote to a payin or payout guarantees that the FX rate, fees, payment method and amounts shown to you are exactly what will be applied at execution — no surprises between pricing and settlement. A quote locks the following until it expires: - **FX rate** (`fx_rate`) — the exchange rate for the currency pair is fixed; it will not drift with the market. - **Payment method** (`payment_method`) — the `type`, `subtype` and derived `rail` are pinned to the quoted option. - **Pricing** — the `source_amount`, `destination_amount` and the full `fees` breakdown (`txn_fee`, `fx_fee`, and `referral_fee` for payins) are fixed. Without a quote, these terms are computed at request time and can vary with live market rates. By passing the quote `id` as `quote_id` when initiating the movement of funds: - **Payins (payment links and orders)** — the locked rate, fees and payment method are what the customer sees on the checkout page. - **Payouts** — the locked rate, fees and payment method are what is applied to the payout at execution. A quote is valid only until its `expires_at` (shown in the response). Once it expires or has already been consumed, you must mint a fresh quote. --- ## How quotes work 1. **Request a quote** — Provide the `resource` (`payout`), the currency pair, an amount, and a `payment_method`. Specify either the source amount or destination amount (not both). 2. **Review available options** — For a payout, `local_transfer` to an INR destination returns one quote per rail (`upi`, `imps`, `neft`, `rtgs`); `swift_transfer` returns a single SWIFT quote. Each quote in the response carries its own `payment_method.rail`. 3. **Use the quote** — Provide the quote `id` as `quote_id` in the relevant request: payins (payment links and orders) and payouts. --- ## Key details | Detail | Value | | --- | --- | | **Quote validity** | A fixed period from creation | | **Resource** | `payout` or `payin` | | **Amount specification** | Either `source_amount` or `destination_amount`, not both | | **Amounts format** | In cents | | **Payment method** | `bank_transfer` or `pay_via_bank` (`pay_via_bank` supports only `local_transfer`) | | **Subtype** | `local_transfer` or `swift_transfer` | | **Payment rails (derived)** | `upi`, `imps`, `neft`, `rtgs`, `swift` | --- ## Example request ```bash curl -X POST https://api.glomopay.com/api/v1/quotes \ -H "Authorization: Bearer " \ -H "Content-Type: application/json" \ -d '{ "resource": "payout", "source_currency": "USD", "destination_currency": "INR", "source_amount": 10000, "payment_method": { "type": "bank_transfer", "subtype": "swift_transfer" } }' ``` ## Example response ```json { "quotes": [ { "id": "quote_3m4n5o6p7q", "resource": "payout", "expires_at": "2026-06-12T08:16:50Z", "payment_method": { "type": "bank_transfer", "subtype": "swift_transfer", "rail": "swift" }, "source_currency": "USD", "destination_currency": "INR", "fx_rate": 90.0, "source_amount": 10000, "destination_amount": 882000, "fees": { "txn_fee": { "currency": "USD", "amount": 100 }, "fx_fee": { "currency": "USD", "amount": 100 } } } ] } ``` --- ## Fees breakdown Each quote includes a detailed fee breakdown: - **Transaction fee (`txn_fee`)** — Fixed fee charged per transaction. - **FX fee (`fx_fee`)** — Fee applied on top of the exchange rate for currency conversion. - **Referral fee (`referral_fee`)** — Payin only; present when a referral `price_id` was applied. All fees are expressed in the smallest unit of the fee currency. --- Source: https://docs.glomo.one/platform/rate_limit Section: Developer resources # Rate Limit To ensure optimal performance, we enforce rate limits on API requests: - **Limit**: 60 requests per second per client IP address. The limit is counted by IP, not by API key, so every key you call from the same IP address shares it. - If the limit is exceeded, a `429 Too Many Requests` status code is returned. - Responses don't include rate-limit headers, so track your own request rate. --- ## Handling Rate Limit Errors When you receive a `429 Too Many Requests` error: - **Implement Exponential Backoff**: Gradually increase the wait time between retries. - **Optimize Your Requests**: Ensure you're not making unnecessary API calls. --- Source: https://docs.glomo.one/platform/sdk Section: Developer resources # SDK Glomo provides native SDKs for mobile platforms to help you embed payment checkout flows directly into your applications with minimal setup. ## Available SDKs ### React Native SDK The React Native SDK enables you to embed Glomo payment checkout flows into your React Native application. It renders a secure WebView-based checkout and auto-detects the correct flow (LRS, standard, or subscriptions) based on your order. - **Supported Payment Flows:** LRS, Standard (Cards, Bank Transfer, Pay via Bank), Subscriptions - **Platforms:** iOS and Android - **Language:** TypeScript / JavaScript - **Latest Version:** v6.0.0 ([Changelog](https://docs.glomo.one/platform/sdk/react-native-sdk/changelog)) [View React Native SDK →](https://docs.glomo.one/platform/sdk/react-native-sdk) ### Flutter SDK The Flutter SDK provides a native widget (`GlomoPayCheckout`) for embedding Glomo checkout into Flutter applications. It supports multiple payment flows and handles device security compliance out of the box. - **Supported Payment Flows:** LRS (Liberalised Remittance Scheme), Standard (Cards, Bank Transfer), Subscriptions - **Platforms:** iOS and Android - **Language:** Dart - **Latest Version:** v2.3.0 ([Changelog](https://docs.glomo.one/platform/sdk/flutter-sdk/changelog)) [View Flutter SDK →](https://docs.glomo.one/platform/sdk/flutter-sdk) ### Android SDK The Android SDK enables you to embed Glomo payment checkout flows into your native Android applications. It renders a secure WebView-based checkout and auto-detects the correct flow (LRS, Standard, or Subscriptions) based on your order. - **Supported Payment Flows:** LRS, Standard (Cards, Bank Transfer), Subscriptions - **Platforms:** Android (API 24+) - **Language:** Kotlin - **Latest Version:** v2.3.0 ([Changelog](https://docs.glomo.one/platform/sdk/android-sdk/changelog)) [View Android SDK →](https://docs.glomo.one/platform/sdk/android-sdk) ### iOS SDK The iOS SDK enables you to embed Glomo payment checkout flows into your native iOS applications. It presents a secure WebView-based checkout as a page sheet and auto-detects the correct flow (LRS, Standard, or Subscriptions) from your order. - **Supported Payment Flows:** LRS, Standard (Cards, Bank Transfer), Subscriptions - **Platforms:** iOS 16.0+ - **Language:** Swift - **Latest Version:** v1.3.0 ([Changelog](https://docs.glomo.one/platform/sdk/ios-sdk/changelog)) [View iOS SDK →](https://docs.glomo.one/platform/sdk/ios-sdk) ### Unified SDK (Web) The Unified SDK enables you to embed the Glomo checkout flow directly into your web application. It supports standard payments, LRS, subscriptions, and payment sessions with automatic flow detection. - **Supported Payment Flows:** Standard, LRS, Subscriptions, Payment Sessions - **Platforms:** Web (all modern browsers) - **Language:** JavaScript / TypeScript [View Unified SDK (Web) →](https://docs.glomo.one/platform/sdk/unified-sdk) ## Payment Flow Support | Payment Flow | React Native SDK | Flutter SDK | Android SDK | iOS SDK | Unified SDK (Web) | | --- | --- | --- | --- | --- | --- | | LRS (Liberalised Remittance Scheme) | ✅ | ✅ | ✅ | ✅ | ✅ | | Standard Payments (Cards) | ✅ | ✅ | ✅ | ✅ | ✅ | | Standard Payments (Bank Transfer) | ✅ | ✅ | ✅ | ✅ | ✅ | | Standard Payments (Pay via Bank) | ✅ | ❌ | ❌ | ❌ | ✅ | | Subscriptions | ✅ | ✅ | ✅ | ✅ | ✅ | | Payment Sessions | ❌ | ❌ | ❌ | ❌ | ✅ | For Pay via Bank availability by market, see [Pay via Bank](https://docs.glomo.one/payin/payment-methods/pay-via-bank). ## Dark mode Every Glomo SDK can ask the checkout page to present a light or a dark scheme, through a property called `appColorScheme`. It is a request, not an instruction, and dark mode is enabled per account. The property is spelled the same everywhere, but its _automatic_ value resolves to something different on each platform, and on the web SDK it is not even the default. [Dark mode across the SDKs](https://docs.glomo.one/platform/sdk/dark-mode) is the one place that states all five. ## Checkout progress events Every Glomo SDK can report how far a customer got through an LRS checkout and why the checkout closed. On the web these are the `checkout.stage_changed` and `checkout.closed` events; on the mobile SDKs they are typed callbacks named `onCheckoutStageChanged` and `onCheckoutClosed`. They are enabled per merchant and off by default, and they need a minimum SDK version: Flutter v2.3.0, React Native v6.0.0, Android v2.3.0, iOS v1.3.0. [Checkout events](https://docs.glomo.one/platform/sdk/checkout-events) carries the contract - every stage, step, close reason and field - and lists the per-SDK surface. ## How It Works All Glomo SDKs follow the same integration pattern: 1. **Create an order** on your backend using the Glomo API to obtain an `order_id`. 2. **Initialise the SDK** in your app with your `publicKey` and the `order_id` (or `subscriptionId` for subscription payments). 3. **Start the checkout** by calling the SDK's `start()` method — this launches the secure checkout UI. 4. **Handle callbacks** for `onPaymentSuccess`, `onPaymentFailure`, `onPaymentTerminate`, and `onSdkError` to update your app state and backend accordingly. ## Security All SDKs are built with the following security measures: - **WebView-based checkout** — payment data is handled within a secure, isolated WebView and never passes through your application code. - **Signature verification** — every payment success or failure callback includes a `signature` field for backend verification. - **Device compliance checks** — the SDKs detect rooted (Android) or jailbroken (iOS) devices and block checkout initiation on non-compliant devices, in line with regulatory requirements. - **Mock mode isolation** — using a `test_` public key automatically enables mock mode, ensuring test transactions are completely isolated from live payments. ## Choosing the Right SDK - If you are building a **web application**, use the [Unified SDK (Web)](https://docs.glomo.one/platform/sdk/unified-sdk). - If your app is built with **React Native**, use the [React Native SDK](https://docs.glomo.one/platform/sdk/react-native-sdk). Supports LRS, standard payments, and subscriptions. - If your app is built with **Flutter**, the [Flutter SDK](https://docs.glomo.one/platform/sdk/flutter-sdk) supports LRS, standard payments, and subscriptions. - If you are building a **native Android** app (Kotlin/Java), use the [Android SDK](https://docs.glomo.one/platform/sdk/android-sdk). Supports LRS, standard payments, and subscriptions. - If you are building a **native iOS** app (Swift), use the [iOS SDK](https://docs.glomo.one/platform/sdk/ios-sdk). Supports LRS, standard payments, and subscriptions. --- Source: https://docs.glomo.one/platform/security Section: Developer resources # Security As a financial service provider, Glomo prioritizes the security and privacy of your data. We are committed to maintaining a robust and secure environment, ensuring that every transaction is protected with industry-leading safeguards. Our users trust Glomo with their sensitive financial information, and we take this responsibility seriously. As a global payments platform, we continuously enhance our security posture to meet and exceed the stringent standards of the financial industry, providing a safe and seamless payment experience for businesses and their customers. All the data at rest at Glomo is encrypted using AES-256 encryption. ## Regulations and Compliance ### Certifications #### SOC 2 Type 2 Certification Glomo is SOC 2 Type 2 compliant, ensuring the highest standards of security, availability, and data integrity. This certification demonstrates our commitment to protecting sensitive data and maintaining a secure and reliable payments infrastructure. As part of our compliance, we undergo regular independent audits to verify that our security controls and processes meet industry best practices. Our systems are designed to safeguard customer data, ensuring that we operate with the highest levels of trust and transparency. By achieving SOC 2 Type 2 compliance, Glomo continues to uphold its commitment to data security and regulatory compliance, providing businesses and users with a secure payment experience. #### ISO 27001:2022 certification Glomo is ISO 27001:2022 certified, demonstrating our commitment to industry-leading information security standards. This certification ensures that we follow best practices for data protection, risk management, and compliance, providing a secure and reliable payments infrastructure for our users. ## TLS Encryption Glomo employs industry-leading encryption practices to ensure the security of all transactions. **Minimum version supported is TLS 1.2** ## IP Whitelisting For all the incoming traffic from Glomo, please whitelist the following IP addresses in respective environments: #### Sandbox ```34.47.199.41, 34.93.125.61 ``` #### Production ```35.200.206.17, 34.47.255.77, 34.47.195.89``` --- Source: https://docs.glomo.one/platform/validations Section: Developer resources # API Validations Glomo APIs apply comprehensive business logic validations to ensure that every request aligns with product rules, regulatory standards, and expected workflows. These validations go beyond simple formatting checks and focus on the correctness, consistency, and legitimacy of the transaction itself. By enforcing these rules, Glomo guarantees that only valid operations are processed, while any invalid request is immediately rejected with a clear and standardized error response. ## Validations for creating customers | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Name | Missing or blank | Customer name cannot be blank. | | Customer Type | Anything other than Individual or Business | Customer type must be either Individual or Business. | | Email | Wrong format | Email address is not valid. | | Email | Already used in your business | This email address is already registered under your business. | | Phone | Wrong format (if provided) | Phone number format is invalid. | | Address | Missing | Address cannot be blank. | | City | Missing | City cannot be blank. | | State | Missing | State cannot be blank. | | Country | Wrong code (not 3-letter, lowercase, or unsupported) | Country code must be a valid 3-letter ISO code (e.g., IND, USA). | | Pincode | Missing for countries where it is mandatory | Pincode is required for the selected country. | | Nationality | Wrong code (not valid 3-letter ISO) | Nationality code must be valid 3-letter ISO. | | Date of Birth | Future date or wrong format | Date of birth must be in the past. | | Duplicate Customer | Email already exists in the system | A customer with this email already exists. | > **Note:** By default, customer uniqueness is enforced on **email** — a business cannot create two customers with the same email. On the [LRS](https://docs.glomo.one/payin/resident-india-remittance-under-lrs) flow, this can instead be enforced on **PAN** (`tax_identification_number`) in place of email, so customers are de-duplicated by PAN even if they use different emails. This is off by default — to enable it for your account, reach out to . ## Validations for updating customers Applies to `PATCH /customer/{id}`. Only `email` and `phone` can be updated, and the update is partial — omitted fields are left unchanged. | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Customer ID | Missing, empty, or wrong format (must start with cust\_) | Customer ID must start with cust\_ and be valid. | | Request | Neither `email` nor `phone` supplied | At least one field must be provided to update. | | Email | Supplied but blank or `null` | Email can't be blank. | | Email | Wrong format | Email address is not valid. | | Phone | Supplied but blank or `null` | Phone can't be blank. | | Phone | Not a valid number for the customer's country | Phone number format is invalid. | | Customer Not Found | Customer ID doesn't exist in your account | Customer not found. | For account funding partners: | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Address | Sent without the other address fields | Address can't be blank. | | Last KYC date | Not a `YYYY-MM-DD` date | Kyc last_kyc_date must be a date in YYYY-MM-DD format. | | Last KYC date | In the future | Kyc last_kyc_date cannot be in the future. | | Last KYC date | Earlier than the date already on file | last_kyc_date cannot be earlier than the KYC date on file. | | Last KYC date | Customer was created without `kyc` | Kyc last_kyc_date can only be updated for a customer onboarded with partner KYC. | ## Validations for creating orders | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Customer ID | Missing, empty, or wrong format (must start with cust\_) | Customer ID must start with cust\_ and be valid. | | Amount | Zero, negative, or non-integer | Amount must be a positive whole number in the smallest currency unit (e.g., cents). | | Currency | Not supported or not uppercase 3-letter code | Currency code must be valid (USD, EUR, GBP, AED, SGD). | | Document ID | Wrong format (must start with doc\_) | Document ID must start with doc\_ and be valid. | | Purpose Code | Invalid or not found in the system | Purpose code is not valid. | | Purpose Code | Missing, with no account default (LRS/funding exempt) | Purpose code can't be blank | | Invoice Amount | Zero or negative | Invoice amount must be greater than 0. | | Invoice Number | Contains unsupported characters or too long (>50 chars) | Invoice number contains invalid characters or is too long. | | Invoice Description | Contains unsupported characters or too long (>512 chars) | Invoice description contains invalid characters or is too long. | | Product (Name/Description) | Name missing, invalid characters, or too long | Product name is required, valid characters only, max 128 chars. | | Notes / Reference Number | Wrong format (rare) | Notes or reference number is invalid. | | Duplicate Order | Order already exists | An order with these details already exists. | | Customer Not Found | Customer ID doesn't exist in your account | Customer not found. | ## Validations for creating payment links | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Customer ID | Missing, empty, or wrong format (must start with cust\_) | Customer ID must start with cust\_ and be valid. | | Amount | Zero, negative, or non-integer | The amount must be a positive whole number in the smallest currency unit (e.g., cents). | | Currency | Not supported or not uppercase 3-letter code | Currency code must be valid (USD, EUR, GBP, AED, SGD). | | Purpose Code | Invalid or missing | Purpose code is not valid. | | Expires At | Past date, wrong format, or more than 6 months ahead | Expiry date must be in the future and within 6 months. | | Document ID | Wrong format (must start with doc\_) | Document ID must start with doc\_ and be valid. | | Invoice Amount | Zero or negative | Invoice amount must be greater than 0. | | Invoice Number | Contains unsupported characters or too long (>50 chars) | Invoice number contains invalid characters or is too long. | | Invoice Description | Contains unsupported characters or too long (>512 chars) | Invoice description contains invalid characters or is too long. | | Reminder Frequency | Value not in [1, 2, 7, 14] | Reminder frequency must be 1, 2, 7, or 14 days. | | Product (Name/Description) | Name missing, invalid characters, or too long | Product name is required, valid characters only, max 128 chars. | | Reference Number | Wrong format (rare) | Reference number is invalid. | | Customer Not Found | Customer ID doesn't exist in your account | Customer not found. | | Document Not Found | Document ID doesn't exist in your account | Document not found. | | Duplicate Payment Link | Link already exists | A payment link with these details already exists. | ## Validations for declaring dynamic fee splits Applies to `POST /prices/dynamic-splits`. List the rules you may declare against with `GET /prices/dynamic`. | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Price ID | Missing or blank | Price id can't be blank | | Price ID | Wrong format (must start with price\_) | Price id must start with 'price\_' and contain only alphanumeric characters | | Price ID | Does not exist, or belongs to another business | price_id not found | | Price ID | The rule's fee bearer is not dynamic | price_id is not a dynamic-bearer rule | | Price ID | The rule does not price a payin | dynamic splits are only supported for payin | | Price ID | The rule does not price transaction fees | dynamic splits are only supported for transaction_fees | | Price ID | The rule version is not effective yet | price_id is not effective yet | | Price ID | A newer version of the rule is effective | price_id has been superseded by a newer version of the rule | | bps / fixed_amount | Neither provided, or both provided | exactly one of bps or fixed_amount must be provided | | bps | Missing on a percentage-priced rule | bps is required for a percentage-priced rule | | bps | Greater than the rule's own bps | bps cannot exceed the rule's total of 300 | | fixed_amount | Missing on a fixed-priced rule | fixed_amount is required for a fixed-priced rule | | fixed_amount | Greater than the rule's own fees_amount | fixed_amount cannot exceed the rule's total | | fee_currency | Does not match a fixed-priced rule's currency | fee_currency must be USD to match the rule | | fee_currency | Missing while min_fee or max_fee is declared | fee_currency is required when a bound is declared | | min_fee / max_fee | Declared on a fixed-priced rule | min_fee and max_fee are not supported for a fixed-priced rule | | min_fee / max_fee | min_fee greater than max_fee | min_fee must be less than or equal to max_fee | | Any amount | Not an integer, or negative | Bps must be an integer / Bps must be greater than or equal to 0 | > **Note:** All amounts are in minor units (cents) and `bps` is basis points, so 100 is 1%. A `bps` of `0` is valid and means the customer bears the whole fee. Each rule is held to its own ceiling — a declaration against one rule is never capped by another rule's total. ## Validations for using split_ids Applies to `POST /payin`, `POST /orders`, `POST /quotes`, `POST /subscriptions` and `POST /payment`. Messages raised by form validation arrive prefixed with `Validation failed: `. | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | split_ids | An id does not exist, belongs to another business, or no longer points at a live dynamic rule | Split ids are invalid or no longer point at a dynamic rule: psplit_7Kq2mXbTdLp9 | | split_ids | Two dynamic rules share a dimension and only one is declared | Split ids must be declared for every dynamic rule on the dimension, missing rules: price_Kd82nvQ1TzAe | | split_ids | A declared payment method is not enabled for your business (payment links and orders only) | Split ids are not valid for any enabled payment method: bank_transfer | | split_ids | Omitted while your account requires a declaration | Split ids are required when dynamic fee splits are enforced | | split_ids | Sent with a quote_id on a payment link or an order | Split ids cannot be specified when quote_id is present | | split_ids | Sent on a quote whose resource is not payin | split_ids is only valid for payin quotes | | split_ids | Sent on a fixed-frequency subscription | Split ids are only supported for as_presented subscriptions | | split_ids | Sent on `POST /payment` for a fixed-frequency subscription | split_ids are only supported for as_presented subscriptions | | split_ids | Omitted on an auto debit whose subscription declaration no longer resolves | Declared fee splits on the subscription no longer point at a live dynamic rule: psplit_7Kq2mXbTdLp9. Pass a valid split_id to override. | | split_ids | Declared for a payment method a subscription never charges (only `card` and `pay_via_bank` are chargeable) | Split ids cannot be declared for a payment method a subscription never charges: bank_transfer | | split_ids | Sent on an auto debit for a method other than the one the subscription charges | split_ids must be declared for card, which this subscription charges, not bank_transfer | > **Note:** A dimension is the combination of payment method, subtype, rail, currency and fee type. When two dynamic rules share one, declare a split for both. > **Note:** A subscription only ever charges `card`, or `pay_via_bank` when SEPA-eligible, so a split declared for any other payment method is rejected both at subscription creation and on an auto debit. An auto-debit override must be declared for the method the subscription actually charges. > **Note:** `split_ids` and `payment_methods` are independent. `payment_methods` restricts which methods the checkout offers; a split only changes how the fee for its own payment method is priced. One checkout can price one method from a dynamic split and another method from your normal rules. > **Note:** If a payment link or an order carries a declaration that no longer resolves, opening the checkout returns `400 Bad Request` with `This payment_link has expired because of expired split_ids. Please create another payin.` (or `This orders has expired…` for an order). The payin is expired and you must issue a new one. ## Validations for creating beneficiaries (v2) | Field | What Can Go Wrong | Error Message You'll See | | --- | --- | --- | | Category | Missing or blank | Category can't be blank | | Category | Not "lrs" or "payout" | Category must be one of: lrs, payout | | Beneficiary | Missing or blank | Beneficiary can't be blank | | Beneficiary | Not an object | Beneficiary must be an object | | Beneficiary Name | Missing or blank | Beneficiary name is required | | Beneficiary Address | Missing or blank | Beneficiary address is required | | Bank Account | Missing or blank | Bank account can't be blank | | Bank Account | Not an object | Bank account must be an object | | Account Number | Missing or blank | Bank account account_number is required | | Bank Name | Missing or blank | Bank account name is required | | SWIFT Code | Missing or blank | Bank account swift_code is required | | SWIFT Code | Not 8-11 characters (payout category) | Swift code must be 8 to 11 characters long | | SWIFT Code | Not exactly 8 characters (LRS category) | Swift code must be 8 characters long | | SWIFT Code | First 6 characters not alphabets | Swift code First 6 characters must be alphabets | | SWIFT Code | Country code doesn't match bank address country | Swift code Country code in BIC does not match selected country | | Currency | Missing or blank | Bank account currency is required | | Bank Address | Missing or blank | Bank account address is required | | Local Routing Number | Missing for LRS category | Local routing number can't be blank | | Intermediate Bank | Provided but not an object | Bank account intermediate_bank must be an object | | Intermediate Bank SWIFT Code | Missing for LRS category | Bank account intermediate_bank swift_code is required for LRS beneficiaries | | Duplicate Account | Account already exists for this business | Business already had this Account Number, Account Type and Transfer Method | --- Source: https://docs.glomo.one/platform/versioning Section: Developer resources # Versioning The API version is indicated in the base URL (`/v1/` or `/v2/` etc). Updates to the API will be released under new versions to maintain backward compatibility. **Note: Currently we are supporting `/v1/` for all the APIs.** ## Updating to a New Version - **Review the Changelog**: Understand the changes in the new version. - **Test in Sandbox Environment**: Ensure your integration works with the new version. - **Update Your Application**: Make necessary code changes to accommodate updates. --- Source: https://docs.glomo.one/platform/webhooks Section: Developer resources # Webhooks ## What is a Webhook? Webhooks allow your application to receive real-time notifications about events that occur in your account, such as payment link creation, payment completion, or payment failures. Technically, a webhook is an **HTTP POST request** that Glomo sends to a URL you control, containing a **JSON payload** that describes what happened. --- ## What is a Webhook URL? A webhook URL is a publicly accessible HTTPS endpoint on your server that is set up to receive incoming HTTP POST requests from Glomo. When you configure a webhook in the Glomo dashboard, you provide this URL. Every time an event occurs in your account, Glomo will send the event data to that URL. **Requirements for a valid webhook URL:** - Must be publicly accessible over the internet (not `localhost`) - Must use **HTTPS** (plain HTTP is not accepted) - Must respond with a `200 OK` status code upon successful receipt - Must be able to handle POST requests with a JSON body --- ## How Does a Webhook URL Work? — Step by Step 1. An event occurs (e.g. a customer completes a payment) 2. Glomo detects the event 3. Glomo sends an HTTP POST request to your Webhook URL 4. Your server receives the request and processes it 5. Your server responds with **HTTP 200 OK** to acknowledge receipt --- ## Key Things to Know - Glomo sends webhook notifications as **HTTP POST requests** - The data is delivered in **JSON format** - Every webhook payload always contains two important fields: - `entity_type` — identifies _what_ the webhook is about (e.g. payment, order, payout) - `event_type` — identifies _what happened_ to it (e.g. success, failed, expired) --- ## Example Payload Structure Every webhook payload follows the same top-level structure: ```json { "entity_type": "payment", "event_type": "success", "data": { "id": "payt_686f7cc3pe69T", "status": "success", ... } } ``` | Field | Type | Description | | --- | --- | --- | | `entity_type` | string | The type of resource this webhook is about (e.g., `payment`, `orders`, `payout`). | | `event_type` | string | The specific event that occurred on that resource (e.g., `success`, `failed`, `active`). | | `data` | object | A full snapshot of the resource at the time the event occurred, including IDs, amounts, status, timestamps, and more. | > **Note:** This example is pretty-printed for readability. The body actually delivered is the RFC 8785 canonical form — one line, no whitespace, object keys sorted at every depth. That is also the form we sign, so verify against the raw body exactly as received. See [Webhook Authentication & Security](https://docs.glomo.one/platform/webhooks#webhook-authentication--security). --- ## Setting Up Webhooks You can set up to receive webhook events on your account in 3 simple steps. 1. **Login** to your Glomo dashboard. 2. Navigate to **Settings > Webhooks** and click **Add Webhook**. 3. **Enter the URL** where you want to receive events, add your secret key, select the entity types you want events for, and click Create to add your webhook. An endpoint receives events only for the entity types you select (for example `payment`, `payout`, `rfi`). To change the selection later, open the endpoint from **Settings > Webhooks** and click **Edit**; events for entity types you haven't selected are not sent to that endpoint. [Image: Webhook details] --- ## Test Connection You can verify that your webhook URL is correctly set up and reachable by using the **Test Connection** feature in the Glomo dashboard. ### How to Test Your Webhook Connection 1. **Save your webhook details first** — Test Connection is only available after the webhook has been saved. 2. **Click "Test connection"** — Open the endpoint from **Settings > Webhooks**; the link is to the right of the Webhook URL on the Webhook details page. 3. Glomo will send a test request to your configured webhook URL. ### Possible Responses | Result | Message | | --- | --- | | ✅ Success | `Webhook connection successful` | | ❌ Failure | `Request failed with status 422` | If the test fails, verify that: - Your webhook URL is publicly accessible over HTTPS - Your server is returning a `200 OK` response - There are no firewall or IP restrictions blocking Glomo's requests --- ## Webhook Authentication & Security Every webhook request Glomo sends is signed with your webhook secret key. This allows you to verify that the request genuinely came from Glomo and has not been tampered with in transit. ### How Signing Works When Glomo sends a webhook, it: 1. Builds the JSON event object. 2. Serialises it using **RFC 8785 JSON Canonicalization Scheme (JCS)**. This produces one deterministic byte sequence — the **canonical form**. 3. Computes an **HMAC SHA-256** over exactly those canonical bytes, using your webhook secret key, and hex-encodes the result. 4. Sends **those same canonical bytes** as the HTTP request body, with the hex signature in the `X-Glomopay-Signature` header. The signed bytes and the transmitted bytes are the same bytes. **The body you receive is already canonical**, so you never have to canonicalize anything yourself — you HMAC the raw request body exactly as it arrived. The header value is 64 lowercase hexadecimal characters with no algorithm prefix — `X-Glomopay-Signature: d5b5…` and not `sha256=d5b5…`. ### What "canonical" Means You do not need to implement JCS to verify a signature, but you do need to know what the bytes look like, because it explains why the body is not formatted the way the sample payloads in these docs are. Under [RFC 8785](https://www.rfc-editor.org/rfc/rfc8785.html): | Rule | What Glomo sends | | --- | --- | | **Key order** | Object keys are sorted lexicographically, recursively, at every nesting depth. `data` comes before `entity_type` before `event_type`. | | **Array order** | Preserved exactly as generated. Sorting applies to object keys only, never to array elements. | | **Whitespace** | None. No spaces after `:` or `,`, no newlines, no indentation. | | **Encoding** | UTF-8. Non-ASCII characters are sent literally (`café`, not `caf\u00e9`). | | **String escaping** | Only the escapes JSON requires — `\"`, `\\`, `\b`, `\f`, `\n`, `\r`, `\t`, and `\u00XX` for other control characters. Forward slashes are **not** escaped. | | **Numbers** | ECMAScript `Number::toString` form — `250000`, `1.5`, `0`, `0.000001`, `1e+21`. No trailing zeros; integers below 1e21 carry no decimal point and no exponent. | ### Verifying the Signature On your server: 1. Read the **raw request body**, as bytes, before any JSON parsing. 2. Compute the HMAC SHA-256 of those bytes using your stored webhook secret key, and hex-encode it. 3. Compare your value with the `X-Glomopay-Signature` header using a **constant-time** comparison. 4. If they match, the webhook is authentic. If they don't, discard the request. > **Do not re-serialise the body before hashing.** Parsing the JSON and dumping it again — `json.dumps(json.loads(body))`, `JSON.stringify(req.body)`, `payload.to_json` — produces different bytes (different spacing, different escaping, and in most languages a different key order), and the signature will never match. Hash the bytes you received. Most web frameworks parse the body for you and discard the original bytes. Keep a handle on the raw body: | Framework | Raw body | | --- | --- | | Rails | `request.raw_post` | | Django | `request.body` | | Flask | `request.get_data()` | | Express | `express.raw({ type: 'application/json' })`, or the `verify` callback on `express.json()` | | PHP | `file_get_contents('php://input')` | | Spring | `ContentCachingRequestWrapper`, or read `request.getInputStream()` before the body is parsed | > **Important:** Never process a webhook payload without first verifying the signature. Skipping this step exposes your system to spoofed or tampered requests. ### Worked Example Given the webhook secret `whsec_2f1c9b7a4d6e8031`, this is the exact request body Glomo puts on the wire — one line, 223 bytes, keys sorted at both levels: ```text {"data":{"amount":250000,"beneficiary":{"country":"DEU","name":"Acme GmbH"},"created_at":"2026-09-09T07:00:09Z","currency":"USD","id":"payout_6a8fd80eo6coZ","status":"success"},"entity_type":"payout","event_type":"success"} ``` HMAC SHA-256 of those bytes with that secret is: ```text d5b5a68b9729f41c4a46f1e94c750bf10fb32f345a5467cbfec7739df83f2c02 ``` which is what arrives in `X-Glomopay-Signature`. Run your verification code against this pair before you point it at live traffic — if it reproduces that hex string, your raw-body handling is correct.
Code Examples
PHP ```php // $payload must be the raw body: file_get_contents('php://input') function isValidSignature($payload, $headerSignature, $secretKey) { $computedHash = hash_hmac('sha256', $payload, $secretKey); return hash_equals($computedHash, $headerSignature); } ```
Ruby ```ruby require 'openssl' # payload must be the raw body: request.raw_post def valid_signature?(payload, header_signature, secret_key) computed_hash = OpenSSL::HMAC.hexdigest('sha256', secret_key, payload) OpenSSL.secure_compare(computed_hash, header_signature.to_s) end ```
Node.js ```javascript const crypto = require('crypto'); // payload must be the raw body Buffer, not the parsed object function isValidSignature(payload, headerSignature, secretKey) { const computedHash = crypto.createHmac('sha256', secretKey).update(payload).digest('hex'); const a = Buffer.from(computedHash, 'utf8'); const b = Buffer.from(String(headerSignature), 'utf8'); return a.length === b.length && crypto.timingSafeEqual(a, b); } ```
Python ```python import hmac import hashlib # payload must be the raw body bytes: request.body / request.get_data() def is_valid_signature(payload, header_signature, secret_key): computed_hash = hmac.new(secret_key.encode(), payload, hashlib.sha256).hexdigest() return hmac.compare_digest(computed_hash, header_signature) ```
Java ```java import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; // payload must be the raw body bytes, not a re-serialized JSON object static boolean isValidSignature(byte[] payload, String headerSignature, String secretKey) throws Exception { if (headerSignature == null) { return false; } Mac mac = Mac.getInstance("HmacSHA256"); mac.init(new SecretKeySpec(secretKey.getBytes(StandardCharsets.UTF_8), "HmacSHA256")); byte[] raw = mac.doFinal(payload); StringBuilder hex = new StringBuilder(raw.length * 2); for (byte b : raw) { hex.append(String.format("%02x", b)); } byte[] computedHash = hex.toString().getBytes(StandardCharsets.UTF_8); byte[] received = headerSignature.getBytes(StandardCharsets.UTF_8); return MessageDigest.isEqual(computedHash, received); } ```
> **Note:** The **Webhook delivery log** in the dashboard stores the payload as parsed JSON and re-renders it for display, so the body shown there is not byte-identical to what was sent. Use it to inspect event contents, not to re-check a signature. --- ## What Happens if Your Server Doesn't Respond? If Glomo sends a webhook to your URL and does not receive a `200 OK` response — whether because your server is down, too slow, returned an error, or responded with any other status code — the delivery is considered failed. Glomo will **automatically retry** the webhook delivery up to **9 times**, using the following back-off schedule: | Attempt | Delay After Previous Attempt | | --- | --- | | 1st retry | 1 minute | | 2nd retry | 5 minutes | | 3rd retry | 15 minutes | | 4th retry | 1 hour | | 5th retry | 3 hours | | 6th retry | 6 hours | | 7th retry | 12 hours | | 8th retry | 24 hours | | 9th retry | 48 hours | If all 9 retries are exhausted without a successful `200 OK`, no further delivery attempts will be made for that event. You can still send it again from the dashboard; see [Delivery Logs and Replay](https://docs.glomo.one/platform/webhooks#delivery-logs-and-replay). ### Automatic Pausing After Continuous Failures If every delivery of an entity type's events to an endpoint fails for 7 consecutive days, Glomo pauses that entity type on the endpoint and emails you. Other entity types on the same endpoint keep receiving events. While an entity type is paused, its events are not sent to that endpoint and are not delivered later; they don't appear in the delivery log, so they can't be replayed. To resume, fix the endpoint and select the entity type again in **Settings > Webhooks**. ### Best Practices to Avoid Missed Webhooks - **Return `200 OK` immediately** — Acknowledge receipt first, then handle processing asynchronously in a background job or queue. - **Monitor your endpoint** — Set up alerting for 5xx errors or high response times on your webhook endpoint. - **Design for idempotency** — Since retries and replays can result in the same event being delivered multiple times, ensure your processing logic handles duplicate deliveries safely. --- ## Delivery Logs and Replay The **Deliveries** tab in **Settings > Webhooks** lists every delivery attempt to an endpoint from the last 7 days, with the event, a delivery ID, the time and the HTTP status your server returned. Choose the endpoint from the dropdown above the list. [Image: Webhook delivery attempts] Select an attempt to open its **Delivery details**: the attempts count, when it was created and delivered, and the full request body Glomo sent. ### Replaying a Delivery To send a delivery again, open it and click **Replay**. [Image: Webhook delivery details with Replay] - The replay sends the same request body as the original delivery. `data` is the object as it was when the event first fired, not its current state. - It is signed with the endpoint's current secret. - It is queued and shows up as a new attempt in the Deliveries tab. If it fails, it is retried on the schedule above. - The endpoint must be active and subscribed to the delivery's entity type. Otherwise the replay is refused, and you need to turn the endpoint or entity type back on first. - Replay is available only in the dashboard. There is no API for it. Your handler receives a replay like any other delivery, so deduplicate it the same way. --- ## Glossary | Term | Definition | | --- | --- | | **Webhook** | An automated HTTP POST request sent by Glomo to your server when a specific event occurs. | | **Webhook URL** | A publicly accessible HTTPS endpoint on your server configured to receive webhook POST requests from Glomo. | | **Payload** | The JSON body of the webhook request, containing details about the event that occurred. | | **`entity_type`** | A field in every webhook payload that identifies the type of resource the event relates to (e.g., `payment`, `payout`, `orders`). | | **`event_type`** | A field in every webhook payload that identifies what happened to the resource (e.g., `success`, `failed`, `active`). | | **HMAC SHA-256** | A cryptographic algorithm used to sign webhook payloads. Glomo signs each request; you verify the signature to confirm authenticity. | | **`X-Glomopay-Signature`** | The HTTP request header that carries the HMAC SHA-256 signature of the webhook payload, as 64 lowercase hex characters with no algorithm prefix. | | **RFC 8785** | The JSON Canonicalization Scheme (JCS) — one deterministic serialisation of a JSON value, with object keys sorted at every depth and no insignificant whitespace. Glomo both signs and sends this form, so you verify against the raw body as received. | | **Idempotency** | The property of an operation that produces the same result even if applied multiple times. Your webhook handler should be idempotent to handle potential duplicate deliveries safely. | | **Retry** | An automatic re-delivery of a webhook that did not receive a `200 OK` response. Glomo retries up to 9 times with increasing back-off intervals. | | **Back-off** | The strategy of waiting progressively longer between retry attempts, reducing load on a struggling server while ensuring eventual delivery. | | **Secret Key** | A shared secret you configure when setting up a webhook. Glomo uses it to sign payloads; you use it to verify the signature. | | **Polling** | The alternative to webhooks — repeatedly querying an API to check for updates. Webhooks eliminate the need for polling by pushing updates proactively. | | **Smallest currency unit** | The convention used for all monetary amounts in Glomo webhooks. Amounts are expressed without decimal points (e.g., $10.00 is sent as `1000`). | --- Source: https://docs.glomo.one/platform/sdk/android-sdk Section: Developer resources # Glomo Android SDK Official Android SDK for integrating Glomo payment checkout flows into your native Android applications. The SDK renders a secure WebView-based checkout and auto-detects the correct flow (LRS, Standard, or Subscriptions) based on your order. ## Supported Payment Flows - **LRS** (Liberalised Remittance Scheme) - **Standard Payments** (Cards, Bank Transfer) - **Subscriptions** ## System Requirements | Requirement | Version | | --- | --- | | Android SDK | minSdk 24 (Android 7.0+) | | Compile SDK | 35 or later | | Kotlin | >= 2.0 | | Gradle | >= 8.0 | ## Versions | Version | Status | Documentation | | --- | --- | --- | | v2.3.0 | Latest | [Android SDK v2](https://docs.glomo.one/platform/sdk/android-sdk/v2) | | v1.0.0 | Archived | [Android SDK v1](https://docs.glomo.one/platform/sdk/android-sdk/v1) | Archived versions are superseded but documented. Upgrading from v1.0.0? See the [Migration Guide](https://docs.glomo.one/platform/sdk/android-sdk/migration). ## Resources - [Changelog](https://docs.glomo.one/platform/sdk/android-sdk/changelog) - all release notes - [Dark mode](https://docs.glomo.one/platform/sdk/dark-mode) - what `AUTO` resolves to here, and on the other Glomo SDKs - [Checkout events](https://docs.glomo.one/platform/sdk/checkout-events) - the stage and close-reason contract the v2.3.0 progress callbacks relay - [Migration Guide](https://docs.glomo.one/platform/sdk/android-sdk/migration) - step-by-step upgrade instructions - [iOS SDK](https://docs.glomo.one/platform/sdk/ios-sdk) - Glomo SDK for native iOS apps - [React Native SDK](https://docs.glomo.one/platform/sdk/react-native-sdk) - Glomo SDK for React Native apps - [Flutter SDK](https://docs.glomo.one/platform/sdk/flutter-sdk) - Glomo SDK for Flutter apps - [Unified SDK (Web)](https://docs.glomo.one/platform/sdk/unified-sdk) - Glomo SDK for web apps --- Source: https://docs.glomo.one/platform/sdk/checkout-events Section: Developer resources # Checkout events Checkout events tell your page where a customer is in checkout while it is open, and why it closed. There are two: `checkout.stage_changed` and `checkout.closed`. They are sent to the listeners you register with `.on()` on the [Unified SDK](https://docs.glomo.one/platform/sdk/unified-sdk), and relayed by the mobile SDKs as typed callbacks - see [On the mobile SDKs](https://docs.glomo.one/platform/sdk/checkout-events#on-the-mobile-sdks). Client events are best effort. For the authoritative state of a payment, use [payment webhooks](https://docs.glomo.one/platform/webhooks/payment). For how far the customer got, use the payment's [`progress`](https://docs.glomo.one/platform/webhooks/payment#payment-progress) field. ## Availability | Checkout | `checkout.stage_changed` | `checkout.closed` payload | | --- | --- | --- | | LRS order opened with `orderId` on the Unified SDK | Sent | v1 payload (this page) | | LRS order opened with the [legacy LRS SDK](https://docs.glomo.one/platform/sdk/legacy-web-sdk#legacy-lrs-sdk) (`LrsCheckoutApi`) | Sent | v1 payload (this page) | | LRS payment session (`paymentSessionId`) | Not sent | `{}` | | Standard checkout (orders, subscriptions) | Not sent | `{}` | | LRS order on the Flutter, React Native, Android or iOS SDK | Relayed as a callback | v1 payload (this page) | The mobile SDK row needs a minimum SDK version - see [On the mobile SDKs](https://docs.glomo.one/platform/sdk/checkout-events#on-the-mobile-sdks). An older version exposes neither event. The events are **enabled per merchant** and are off by default. To turn them on, contact your Glomo account manager. The same switch also adds [`progress`](https://docs.glomo.one/platform/webhooks/payment#payment-progress) to the payment webhook and API, so you do not need to ask twice. To check whether the events are on for your account, look at the `checkout.closed` payload. It contains `v: 1` when they are on, and is `{}` when they are off. It is also `{}` when checkout fails before it finishes loading, so a single `{}` does not prove the events are off. ## Quick start Register listeners before you call `open()`. A listener registered later misses the events that were already sent. ```javascript const checkout = new GlomoCheckoutApi({ publicKey: 'live_XXXX', orderId: 'order_XXXX', }); checkout.on('checkout.stage_changed', function (event) { // event.stage is one of the payment stages below; event.step narrows it down analytics.track('checkout_stage', { orderId: event.resource.id, journeyId: event.journeyId, stage: event.stage, step: event.step, }); }); checkout.on('checkout.closed', function (event) { if (event.v !== 1) return; // events off for this account, or checkout failed before loading: the payload is {} if (event.reason === 'completed') return; // the payment journey finished; wait for the webhook analytics.track('checkout_abandoned', { lastStage: event.lastStage, reason: event.reason, }); }); await checkout.open(); ``` ## checkout.stage_changed Sent when the customer reaches a new [payment stage](https://docs.glomo.one/platform/sdk/checkout-events#payment-stages), or a new step within the current stage. - Sent at most once for each `stage` and `step` pair in one checkout open. - `stage` never goes backwards within one checkout open. A stage reached after a later stage is not sent, so stages can be skipped. - Retries are not reported. For example, a second OTP attempt sends nothing. ### Fields | Field | Type | Required | Values | Description | | --- | --- | --- | --- | --- | | `v` | integer | Yes | `1` | Payload version. See [Versioning and compatibility](https://docs.glomo.one/platform/sdk/checkout-events#versioning-and-compatibility). | | `flow` | string | Yes | `payment`. `kyc` is reserved. | What the checkout is for. `stage` is a stage of this flow. Only `payment` is sent today. | | `method` | string | No | Known: `lrs`. New values can be added. | The payment method. | | `resource.type` | string | Yes | `order`, `kyc`, `session` | The kind of object the checkout was opened for. `order` for an LRS order. | | `resource.id` | string | Yes | For example `order_XXXX` | The ID of that object. | | `paymentId` | string | No | For example `payt_XXXX` | The payment attempt. Present from the `attempt_created` stage onward. | | `journeyId` | string | Yes | Opaque | Identifies one checkout open. Every event from the same open carries the same value. A new `open()` gets a new value. | | `stage` | string | Yes | Known values in [Payment stages](https://docs.glomo.one/platform/sdk/checkout-events#payment-stages) | The stage the customer reached. New stages can be added. | | `step` | string | No | Known values in [Steps](https://docs.glomo.one/platform/sdk/checkout-events#steps) | The screen within the stage. Absent when the stage has no steps. New steps can be added. | | `provider` | string | No | Known (LRS): `HDFC`, `IDFC`, `ICICI`, `AXIS`, `KOTAK` | The provider the customer chose. For LRS, the bank. Present from `method_selected` onward. Absent for a provider not in the known list. New values can be added. | | `journeyType` | string | No | `redirect`, `native` | `redirect`: the customer approves on the provider's page. `native`: the whole authentication happens inside checkout. Present from `method_selected` onward. | | `errorCode` | string | No | Open string | Only on `stage: failed`, and not always present there. A Glomo payment error code or a checkout error code, for example `BANK_DECLINED`. | | `segment.index` | integer | No | 1 or more | Reserved. Not sent today. See [Reserved](https://docs.glomo.one/platform/sdk/checkout-events#reserved). | | `segment.total` | integer | No | 1 or more, at least `segment.index` | Reserved. Not sent today. | | `at` | string | Yes | ISO 8601 date-time, UTC, milliseconds | When checkout sent the event, from the customer's device clock. Do not use it to order events across devices. | These are the checkout error codes `errorCode` can carry: | `errorCode` | Meaning | | --- | --- | | `PAYMENT_INITIATION_FAILED` | Checkout could not create the payment or start it with the bank. | | `BANK_REDIRECT_UNAVAILABLE` | Checkout had no bank page to send the customer to. | | `BANK_CONNECTION_FAILED` | Checkout could not reach the bank, or could not open the bank's page. | | `DOCUMENT_UPLOAD_FAILED` | The customer's document could not be uploaded. | Any other value is the error code of the payment or of the bank step that failed. See [Error Codes](https://docs.glomo.one/payin/payment#error-codes). New values can be added. ### Examples First event of a checkout open where the consent screen is shown: ```json { "v": 1, "flow": "payment", "method": "lrs", "resource": { "type": "order", "id": "order_6f1c2a9b7XyZ1" }, "journeyId": "a3f1c9e2-5b7d-4e8a-9c21-0f6b2d4e8a17", "stage": "opened", "step": "consent", "at": "2026-11-16T09:30:12.418Z" } ``` The customer is on the OTP screen after a payment attempt was created: ```json { "v": 1, "flow": "payment", "method": "lrs", "resource": { "type": "order", "id": "order_6f1c2a9b7XyZ1" }, "paymentId": "payt_6f1c2b04QmR8s", "journeyId": "a3f1c9e2-5b7d-4e8a-9c21-0f6b2d4e8a17", "stage": "customer_auth", "step": "otp", "provider": "HDFC", "journeyType": "native", "at": "2026-11-16T09:31:40.077Z" } ``` The payment failed: ```json { "v": 1, "flow": "payment", "method": "lrs", "resource": { "type": "order", "id": "order_6f1c2a9b7XyZ1" }, "paymentId": "payt_6f1c2b04QmR8s", "journeyId": "a3f1c9e2-5b7d-4e8a-9c21-0f6b2d4e8a17", "stage": "failed", "provider": "HDFC", "journeyType": "native", "errorCode": "BANK_DECLINED", "at": "2026-11-16T09:33:02.511Z" } ``` ## checkout.closed Sent at most once per checkout open, when checkout closes itself: when the customer closes it, when the customer cancels, after an error, and after the payment journey finishes. It is **not** sent when: - your code calls `close()`; - the customer closes the SDK's own loading or configuration-error screen; - a `callbackUrl` redirect takes the customer away from your page; - the customer closes the browser tab. ### Closed event fields | Field | Type | Required | Values | Description | | --- | --- | --- | --- | --- | | `v` | integer | Yes | `1` | Payload version. | | `flow` | string | Yes | `payment`. `kyc` is reserved. | As on `checkout.stage_changed`. | | `method` | string | No | Known: `lrs`. New values can be added. | As on `checkout.stage_changed`. | | `resource.type` | string | Yes | `order`, `kyc`, `session` | As on `checkout.stage_changed`. | | `resource.id` | string | Yes | For example `order_XXXX` | As on `checkout.stage_changed`. | | `paymentId` | string | No | For example `payt_XXXX` | Present when a payment attempt was created before checkout closed. | | `journeyId` | string | Yes | Opaque | Same value as the `checkout.stage_changed` events from this checkout open. | | `lastStage` | string | No | Known values in [Payment stages](https://docs.glomo.one/platform/sdk/checkout-events#payment-stages) | The last stage sent in this checkout open. Absent if none was sent. | | `lastStep` | string | No | Known values in [Steps](https://docs.glomo.one/platform/sdk/checkout-events#steps) | The step sent with `lastStage`, when there was one. | | `reason` | string | Yes | Known values in [Close reasons](https://docs.glomo.one/platform/sdk/checkout-events#close-reasons) | Why checkout closed. New reasons can be added. | | `at` | string | Yes | ISO 8601 date-time, UTC, milliseconds | When checkout closed, from the customer's device clock. | ### Close reasons These are all the close reasons sent today. New reasons can be added within v1, so do not fail on a reason you do not recognise. | `reason` | When it is sent | | --- | --- | | `completed` | The customer closed checkout after the payment journey finished. Wait for the payment webhook for the outcome. | | `user_cancelled` | The customer chose to leave and confirmed it, for example in the exit prompt or by declining consent. Closing does not cancel a payment attempt that was already created: read the payment `status`. | | `user_dismissed` | The customer closed checkout from a screen that closes without a confirmation prompt, for example while waiting for the bank. | | `error` | Checkout closed from its error screen, or after an error it could not recover from. | | `confirmation_timeout` | Checkout stopped waiting for the provider to confirm the payment. The payment can still complete. Wait for the payment webhook. | ### Closed event example ```json { "v": 1, "flow": "payment", "method": "lrs", "resource": { "type": "order", "id": "order_6f1c2a9b7XyZ1" }, "paymentId": "payt_6f1c2b04QmR8s", "journeyId": "a3f1c9e2-5b7d-4e8a-9c21-0f6b2d4e8a17", "lastStage": "customer_auth", "lastStep": "otp", "reason": "user_cancelled", "at": "2026-11-16T09:32:15.902Z" } ``` ### Payload when the events are not enabled **On the web.** Until checkout events are enabled for your account, and for the checkouts marked `{}` in [Availability](https://docs.glomo.one/platform/sdk/checkout-events#availability), `checkout.closed` is still sent and your listener receives an empty object, `{}`. Write your listener so that it works with both shapes. **On the mobile SDKs** there is no empty-payload shape to handle: an empty or differently versioned payload is not delivered, so the callback simply does not fire. See [On the mobile SDKs](https://docs.glomo.one/platform/sdk/checkout-events#on-the-mobile-sdks). ## Payment stages Stages of `flow: payment`, in the order a customer reaches them: ```text opened -> method_selected -> details_submitted -> attempt_created -> customer_auth -> provider_handoff -> awaiting_confirmation -> confirmed \-> failed (can follow any stage) ``` These are all the stages sent today. New stages can be added within v1, so ignore a stage you do not recognise. Not every customer passes through every stage. | Order | `stage` | Meaning | Steps | | --- | --- | --- | --- | | 1 | `opened` | Checkout is showing its first screen. | `consent`, `bank_list`, or none | | 2 | `method_selected` | The customer chose how to pay. For LRS, the bank. `provider` and `journeyType` are set from here on. | none | | 3 | `details_submitted` | The customer submitted their details and moved on to pay. | none | | 4 | `attempt_created` | Glomo created a payment attempt. `paymentId` is set from here on. | none | | 5 | `customer_auth` | The customer is authenticating inside checkout. | `otp`, `document_upload`, `txn_summary`, `agreements` | | 6 | `provider_handoff` | The customer was sent to the provider's page to approve the payment. Sent only for journeys with a provider page. | none | | 7 | `awaiting_confirmation` | Checkout is waiting for the provider to confirm the payment. | none | | 8 | `confirmed` | The provider confirmed the payment. `payment.success` follows. | none | | 9 | `failed` | The payment failed. `errorCode` may say why. Not sent when the customer cancels or when confirmation times out. Those appear only as the `checkout.closed` reason. | none | ### Steps These are all the steps sent today. New steps can be added within v1, so ignore a step you do not recognise. | `stage` | `step` | Screen | | --- | --- | --- | | `opened` | `consent` | The customer is asked for consent. | | `opened` | `bank_list` | The customer is choosing a bank. | | `customer_auth` | `otp` | One-time password from the bank. | | `customer_auth` | `document_upload` | The customer uploads a document the bank asks for. | | `customer_auth` | `txn_summary` | The customer reviews the transaction summary. | | `customer_auth` | `agreements` | The customer accepts the bank's terms. | ## On the mobile SDKs Each mobile SDK relays both events as typed callbacks rather than as `.on()` listeners. The contract is the same one documented on this page - the same stages, steps, close reasons and field meanings - so the per-SDK pages below cover the surface and the platform-specific close behaviour, not the contract. | SDK | Minimum version | Surface | | --- | --- | --- | | Flutter | v2.3.0 | `onCheckoutStageChanged` / `onCheckoutClosed` props on `GlomoPayCheckout` - [reference](https://docs.glomo.one/platform/sdk/flutter-sdk/v2#checkout-progress-events) | | React Native | v6.0.0 | `onCheckoutStageChanged` / `onCheckoutClosed` props on `GlomoCheckout` - [reference](https://docs.glomo.one/platform/sdk/react-native-sdk/v6#checkout-progress-events) | | Android | v2.3.0 | `onCheckoutStageChanged` / `onCheckoutClosed` on `GlomoPayListener` - [reference](https://docs.glomo.one/platform/sdk/android-sdk/v2#checkout-progress-events) | | iOS | v1.3.0 | `onCheckoutStageChanged` / `onCheckoutClosed` on `GlomoPayListener` - [reference](https://docs.glomo.one/platform/sdk/ios-sdk/v1#checkout-progress-events) | All four are optional and additive: an existing integration that does not implement them compiles and behaves unchanged. ### Two differences from the web **Field naming.** The native SDKs expose the payload version as `version` rather than `v`, and the three native lines (Flutter, Android, iOS) also expose a `rawPayload` map holding the payload as received, including fields added after that SDK version was built. React Native keeps `v` and has no `rawPayload`. **Closes the SDK writes itself.** On the web, `checkout.closed` is not sent when your code calls `close()` or when the customer leaves the SDK's own screens. A mobile checkout has exits the page never sees at all - a system back gesture, a sheet swiped away, the host activity going away, a connection-error screen - so each SDK reports those closes itself, with `completed` after a successful payment, `error` after a failed one or an error screen, and `user_dismissed` otherwise. The exact set differs per platform; the per-SDK pages above state which. A close stays **not guaranteed** on every SDK, for two separate reasons: - a checkout closed from host code before it reached a payment result reports none; - **a checkout left before the SDK saw a stage it recognises reports none either.** A customer who backs out on the loading screen produces neither a stage change nor a close, so `onCheckoutClosed` is not an end-of-checkout hook - use the SDK's termination callback for that, and read a close as "the customer got at least this far". Close a checkout from host code *after* a payment result and the close is still delivered, with `lastStage` set to the last stage the page reported before you closed. ## Delivery and ordering - **Best effort.** Events travel from the checkout frame to your page in the browser. They are not retried or replayed, and they stop when the customer closes the tab or leaves the page. - **Once.** Each `stage` and `step` pair is sent at most once per `journeyId`. `checkout.closed` is sent at most once per `journeyId`. - **In order, within one event name.** `checkout.stage_changed` events for one `journeyId` arrive in stage order. Do not rely on ordering between different event names, for example `checkout.stage_changed` and `payment.failure`. - **Deduplicate** on `journeyId` + `stage` + `step` if you forward events to your server. - **Isolated listeners.** An exception thrown in one listener does not stop the others. - **`callbackUrl`.** With a `callbackUrl`, `checkout.stage_changed` and `checkout.closed` still reach your `.on()` listeners. The redirect on `payment.success` or `payment.failure` usually leaves your page before `checkout.closed` is sent. - **Authoritative state** comes from [payment webhooks](https://docs.glomo.one/platform/webhooks/payment), never from client events. ## Versioning and compatibility - `v` is the payload version. It is `1` for every payload described here. - Within v1, changes are additive only: new optional fields, new stages, new steps, new close reasons, and new values for `method`, `provider` and `errorCode`. The tables on this page list every value sent today. - A change that removes or renames a field, or changes the meaning of a value, ships as `v: 2` alongside v1. It does not replace v1 in place. - Your code must ignore fields and values it does not recognise. It must not fail on them. ## JSON Schema The JSON Schema (draft-07) for the v1 payloads is at [https://docs.glomo.one/schemas/checkout-events/v1.json](https://docs.glomo.one/schemas/checkout-events/v1.json). It has one definition per event: `CheckoutStageChanged` and `CheckoutClosed`. `stage`, `lastStage` and `reason` are open strings in the schema, so values added within v1 still validate. Each field's description lists the values known today. ## Relation to payment outcomes and webhooks | Signal | Where | Signed | Use it for | | --- | --- | --- | --- | | `payment.success`, `payment.failure` | Browser, `.on()` or `callbackUrl` | `payment.success` is | Showing the result to the customer. Verify the signature on your server. | | `checkout.stage_changed` | Browser, `.on()` | No | Live progress and drop-off analytics. | | `checkout.closed` | Browser, `.on()` | No | Knowing that checkout closed, where the customer was, and why. | | Payment webhook, including `progress` | Your server | Yes | The authoritative status, and the last stage recorded by Glomo, even when the page never received client events. | Client events use camelCase. The server uses snake_case under `progress`: | Client (`checkout.closed`) | Server (`progress`) | | --- | --- | | `lastStage` | `progress.last_stage` | | `lastStep` | `progress.last_step` | | `at` | `progress.at` | The stage values are the same strings. The server records a subset of the stages. See [Payment progress](https://docs.glomo.one/platform/webhooks/payment#payment-progress). ## Reserved These are defined in v1 but not sent today. Do not build on them yet. - `flow: kyc` with stages `opened`, `in_progress`, `submitted`, `under_review`, `action_required`, `approved`, `rejected`, `expired`, `failed`. - `segment` (`index`, `total`), for checkouts that run several parts in one session. --- Source: https://docs.glomo.one/platform/sdk/dark-mode Section: Developer resources # Dark mode Every Glomo SDK can tell the checkout page which colour scheme to present. The property is called `appColorScheme` on all five surfaces, and it behaves the same way everywhere except for one thing: what the automatic value resolves to. That part is a per-platform decision. ## It requests a scheme, it does not force one `appColorScheme` is a request. The checkout page decides, against your merchant dashboard settings. Passing `dark` does not guarantee a dark checkout. Dark mode is enabled per account. Until it is enabled for yours, checkout stays light whatever you pass - so you can ship the integration ahead of time and it will start matching once the account is switched on. Contact Glomo support to enable it. White-labelled checkouts always stay light. On the web SDK, the loading screen starts light and switches once checkout has confirmed dark mode is enabled for your account. The iOS SDK does the same as of v1.2.0: the loading screen, the checkout web view and the education carousel are light until the order confirms dark mode is on for your account. A checkout that never loads an order - one opened with an explicit `orderType`, or a subscription - stays light throughout. What the page is told is unchanged; this is only about the surfaces the SDK paints before the page does. ## `light` and `dark` mean the same thing everywhere If you want a specific scheme, pass `light` or `dark`. Those two values are the portable ones: they mean exactly the same thing on every Glomo SDK, and an integration that drives the property from its own theme state behaves identically across platforms. The automatic value is the one that differs. ## What the automatic value resolves to | SDK | Value | Resolves to | | --- | --- | --- | | [Unified SDK (Web)](https://docs.glomo.one/platform/sdk/unified-sdk#dark-mode) | `'system'` | The customer's device setting, including changes made while checkout is open. | | [Flutter](https://docs.glomo.one/platform/sdk/flutter-sdk/v2#dark-mode) | `GlomoColorScheme.auto` | `Theme.of(context).brightness` where the checkout is mounted - your app's own appearance, not the device's. An app on `ThemeMode.system` therefore gets the device setting, because that is what its theme already reports. | | [React Native](https://docs.glomo.one/platform/sdk/react-native-sdk/v6#dark-mode) | `"auto"` | `Appearance.getColorScheme()`, which is your app's _effective_ appearance. If your app calls `Appearance.setColorScheme()`, that value is what the SDK sees - React Native overwrites the device value in place and exposes nothing that reports what it overwrote. | | [iOS](https://docs.glomo.one/platform/sdk/ios-sdk/v1#dark-mode) | `.auto` | The checkout's own trait collection, so an app that sets `overrideUserInterfaceStyle` gets what it set rather than what the device is on. | | [Android](https://docs.glomo.one/platform/sdk/android-sdk/v2#dark-mode) | `GlomoColorScheme.AUTO` | Your app's own appearance, from the most specific source that can answer: `AppCompatDelegate.getDefaultNightMode()` if you have set one, otherwise your theme's `isLightTheme`, otherwise the device configuration. | Note the web SDK differs twice over: the value is spelled `'system'` rather than `auto`, and it is not the default. Leave `appColorScheme` out on the web and checkout stays light. On all four mobile SDKs the automatic value _is_ the default, so an integration that sets nothing already follows the host app. The mobile SDKs spell it `auto` rather than `system` on purpose. On a mobile host the value the SDK can reach is the application's appearance, not the operating system's underlying setting - calling it `system` would promise something three of the four platforms cannot deliver. ## Changing the scheme while a checkout is open Supported on every SDK, and on none of them does it reload the page - the live page is told directly, so a payment in flight survives the change. | SDK | How | | --- | --- | | Unified SDK (Web) | `checkout.setAppColorScheme('dark')` | | Flutter | Pass a new value to the `GlomoPayCheckout` widget | | React Native | Pass a new value to the `GlomoCheckout` component | | iOS | `handle.setAppColorScheme(.dark)` on the handle returned by `startCheckout` | | Android | `handle.setAppColorScheme(GlomoColorScheme.DARK)` on the handle returned by `startCheckout` | **Do not remount, dismiss or restart the checkout to change the scheme.** That reloads the WebView and loses the payment. This is the one way to get this wrong that costs something. Two caveats on the mobile SDKs: - A change that lands while the page is still loading may be missed. The SDK hands it over and does not reload the checkout to force it through, so nothing errors and the payment is never interrupted - the page simply keeps the scheme it started with. For a guaranteed scheme, set `appColorScheme` before the checkout opens. - Whether a _device_ toggle reaches an open checkout depends on the platform. On iOS and on Android it does, while the scheme is automatic and the host's own appearance follows the device. On Android, a host that has never called `AppCompatDelegate.setDefaultNightMode` is resolved from its theme once at launch, so a raw device toggle mid-checkout is not followed; drive it yourself with `setAppColorScheme` from your configuration callback if you need it. On React Native the automatic value is read when you call `start()`. ## Android: keep `uiMode` in `android:configChanges` This one is not about `appColorScheme`, and it is not new - but it matters more now that users have a reason to toggle their theme mid-payment. Your checkout activity needs `uiMode` in its `android:configChanges`: ```xml ``` Without it, an OS dark-mode toggle destroys and recreates your activity mid-checkout and loses the payment in flight. Flutter's `MainActivity` template already includes it. This applies to the Flutter and React Native SDKs, which render inside your activity; the native Android SDK owns its own activity and declares this itself. ## The names on the wire The property is `appColorScheme` on every SDK. The query parameter the checkout page reads is `colorScheme`. The two were not renamed together, so a checkout URL captured from a proxy or a debug log will not match the property name you set. Nothing to configure either way. A self-built WebView host has no SDK property and passes the scheme itself. If it loads checkout through the redirect entry URL, the parameter there is `color_scheme`, snake_case like the rest of that endpoint, and the endpoint forwards it as `colorScheme` - see [Web Checkout in a Mobile App (WebView)](https://docs.glomo.one/platform/sdk/experimental#dark-mode). ## Related - [Unified SDK (Web) - Dark mode](https://docs.glomo.one/platform/sdk/unified-sdk#dark-mode) - [Flutter SDK v2](https://docs.glomo.one/platform/sdk/flutter-sdk/v2) - [React Native SDK v6](https://docs.glomo.one/platform/sdk/react-native-sdk/v6) - [Android SDK v2](https://docs.glomo.one/platform/sdk/android-sdk/v2) - [iOS SDK v1](https://docs.glomo.one/platform/sdk/ios-sdk/v1) - [Web Checkout in a Mobile App (WebView) - Dark mode](https://docs.glomo.one/platform/sdk/experimental#dark-mode) --- Source: https://docs.glomo.one/platform/sdk/experimental Section: Developer resources # Web Checkout in a Native Mobile App (WebView)

Unsupported Integration

Web checkout in a mobile app is an unsupported integration. Mobile WebViews are not compatible with Glomo's Unified Web SDK (and Checkout) due to known platform-specific complications, bottlenecks, and limitations. And alignment with compliance requirements such as PCI DSS information security is an added challenge. These custom integrations are considered experimental and flaky - prone to payment failures, race conditions, and unstability.

We officially recommend our first-party native SDKs: Flutter SDK and React Native SDK. They are lightweight, work out of the box, and receive frequent releases with active support.

The Glomo web checkout is built for browsers. To use it inside a native mobile app you have to host it in a system WebView (`WKWebView` on iOS, `android.webkit.WebView` on Android). A WebView is **not** a full browser — it omits or changes behaviour that payment and bank pages rely on, so a checkout that works perfectly in mobile Safari or Chrome can fail when the same page is loaded inside an app. Glomo ships native **[Flutter](https://docs.glomo.one/platform/sdk/flutter-sdk)** and **[React Native](https://docs.glomo.one/platform/sdk/react-native-sdk)** SDKs precisely so you don't have to solve these problems yourself. Under the hood they load the hosted checkout page directly in a correctly-configured WebView, inject a bridge so the page can talk to the native layer, and handle every issue listed below. > The native SDK is the fastest path to a stable live integration, not a later optimisation — all of the handling on this page already comes solved. A self-built WebView host is slower to get right, not quicker, because you take on every item here yourself. If your app is written in a framework our SDKs cover, use the SDK. This page is for teams who have no supported native SDK and must build their own WebView host. Treat it as a non-trivial integration: every item below is a real class of issue we have had to handle in our own native SDKs, a raw WebView host inherits none of that handling by default, and behaviour differs between iOS and Android, so both platforms must be tested independently. ## How the native SDKs load the checkout The native SDKs do **not** run the [Unified (Web) SDK](https://docs.glomo.one/platform/sdk/unified-sdk) JavaScript. That SDK is for web pages — it injects the checkout as an `