{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Open payment sessions as a distributor","siteUrl":"https://docs.glomo.one","llmstxt":{"title":"Glomo developer documentation","description":"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.","details":{"content":"How to use these docs:\n\n- Get started is the front door. It has one section per integration\n  (what you're building), each with the API calls in order and the guide that builds it, plus\n  how to get API keys.\n- The product sections - Payin, Payout, Multi-currency accounts,\n  Verification, Request for Information (RFI) - each hold two kinds of page.\n  Pages titled as a noun (\"Subscriptions\", \"Bank Transfer\") explain what\n  an object is. Pages titled as a job (\"Set up recurring subscriptions\",\n  \"Collect LRS remittances from India\") are complete integration flows\n  and live one level under the object they set up. Match a user's goal\n  against the job-shaped titles first.\n- Reports and Identity and Access Management are the two subjects with no\n  API counterpart. There are no endpoints for reports, users, roles or\n  invites; both pages document the merchant dashboard. A dashboard\n  procedure for something the API also does (a refund, a payout) is NOT\n  here - it stays in the product that owns it.\n- API reference is generated from OpenAPI and carries endpoint detail.\n- The OpenAPI description itself is published as a single self-contained\n  document at /openapi.yaml, and the same document as JSON at\n  /openapi.json. Every $ref is resolved into it, so one fetch is the\n  whole contract: 81 paths, 106 operations, 88 schemas - the same\n  endpoints the API reference pages render. Fetch that instead of\n  reading the 129 pages under /api-reference/.\n- Every page below, in full, is one document at /llms-full.txt. Fetch that\n  instead of the pages one by one. It leaves out the API reference;\n  /openapi.yaml is that.\n- Developer resources covers what every integration touches and no single\n  product owns: auth, errors, pagination, rate limits, webhooks,\n  versioning, supported countries, quotes, the MCP server for AI\n  agents, and the client SDKs.\n"},"sections":[{"title":"Get started","description":"The front door. The ordered API calls for each integration and the guide that delivers it, how to obtain API keys, and the platform glossary.","includeFiles":["**/get-started/**"]},{"title":"Payin","description":"Collecting money: customers, orders, checkout, payment links, payment methods (cards, bank transfer, pay via bank), refunds, disputes, purpose codes, fee models, custom fields, subscriptions, and resident India remittance under LRS. Includes the flows that set each up - bank transfers, subscriptions, LRS remittances, and server-to-server card payments.","includeFiles":["**/payin/**"]},{"title":"Payout","description":"Sending money: the payout life cycle, queued payouts, creating and cancelling a payout, rails, beneficiaries, purpose codes, and the action required state. Includes the flow that sends a payout over the API.","includeFiles":["**/payout/**"]},{"title":"Payment accounts","description":"Holding money for your own customers in Glomo payment accounts that you own: opening an account with the customer, adding funds with a card, balances and the statement, beneficiaries, payout quotes and payouts. Includes the flow that runs an account end to end.","includeFiles":["**/payment-accounts/**"]},{"title":"Multi-currency accounts","description":"Holding money: balances, balance conversion, adding balance, and withdrawing balance.","includeFiles":["**/multi-currency-account/**"]},{"title":"Verification","description":"Proving who someone is and that an account is theirs: KYC, bank account validation, and third-party verification (TPV) with the flow that verifies a payer's bank account.","includeFiles":["**/verification/**"]},{"title":"Request for Information (RFI)","description":"Responding to a compliance request for information, per object - payment link, order, payment, payout - plus compliance reviews and RFIs raised on already-successful payments.","includeFiles":["**/request-for-information/**"]},{"title":"Nivo (Capital markets)","description":"Nivo, Glomo's capital markets suite (Nivo for AMCs, Nivo for Distributors, and overseas investing for brokers and wealth platforms). Mutual fund investments run as payment sessions: the fund, distributor, scheme, plan, ARN and folio roles; the distributor's relationship with a fund and what it fixes; and the flow that opens a session as a distributor.","includeFiles":["**/capital-markets/**"]},{"title":"Reports","description":"The downloadable and scheduled reports a merchant pulls from the dashboard for reconciliation, compliance and treasury: payment, subscription, settlement breakup, balance statement and KYC reports, plus scheduling one for recurring email delivery and customizing the fields and column order of a report. Dashboard only - there is no reports API.","includeFiles":["**/reports/**"],"excludeFiles":["**/payin/**"]},{"title":"Identity and Access Management","description":"Administering who can use a merchant account: one set of credentials across multiple MIDs, switching between them without logging out, the Admin / Member / Sales Partner roles and what each may see and do, and inviting a new member. Dashboard only - there is no users, roles or invites API.","includeFiles":["**/access-management/**"]},{"title":"Settlement holidays","description":"The settlement holiday calendar for 2026 - the Indian and US bank and FX holidays on which payin, payout and settlement to the merchant's bank account may be delayed.","includeFiles":["**/settlement-holidays/**"]},{"title":"API reference","description":"Endpoint reference generated from the Glomo OpenAPI description.","includeFiles":["**/api-reference/**"]},{"title":"Developer resources","description":"What every integration touches and no single product owns: auth, errors, pagination, rate limits, webhooks, versioning, API validations, security, supported countries, quotes, connecting an AI agent to the Glomo MCP server, and the client SDKs - React Native, Flutter, Android and the Unified Web SDK, with per-version references and changelogs. Reports and Identity and Access Management used to be listed here and are now their own sections.","includeFiles":["**/platform/**"]}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"open-payment-sessions-as-a-distributor","__idx":0},"children":["Open payment sessions as a distributor"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide opens a session for one of a fund's schemes and hands it to the investor. Read ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/capital-markets/distributor"},"children":["Distributor"]}," first for what the relationship fixes."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"before-you-start","__idx":1},"children":["Before you start"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Distributor access is enabled for your business."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You have an active relationship with the fund."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The fund has given you the scheme codes you may sell."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You have your API key. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/get-started"},"children":["Get started"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-create-the-session-on-your-server","__idx":2},"children":["1. Create the session on your server"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send the scheme code in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.scheme.scheme_code"]},". Matching ignores case and surrounding spaces."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"curl","header":{"controls":{"copy":{}}},"source":"curl -X POST 'https://api.glomopay.com/api/v1/payment-sessions' \\\n  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"email\": \"john.doe@example.com\",\n    \"data\": {\n      \"scheme\": {\n        \"scheme_code\": \"SCH001\",\n        \"amount\": 500000,\n        \"currency\": \"USD\"\n      },\n      \"kyc\": {\n        \"pan\": \"ABCPE1234F\"\n      }\n    }\n  }'\n","lang":"curl"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Field"},"children":["Field "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"Required"},"children":["Required "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"55%","data-label":"Notes"},"children":["Notes "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.scheme.scheme_code"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A scheme the fund has enabled for you."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Prefills the investor's email. Required if you send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pan"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["phone"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dob"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.scheme.amount"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.scheme.currency"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Prefills the amount, in cents of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USD"]},". Send both or neither. Send whole dollars (a multiple of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["100"]},")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.kyc"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Prefills ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pan"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["phone"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["country"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dob"]}," for KYC."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Do not send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},"; it returns 422. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["distributor_arn"]}," is ignored."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"psess_6819d8046mpKt\",\n  \"status\": \"active\",\n  \"session_type\": \"kyc_lrs_folio\",\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\",\n  \"expires_at\": \"2026-05-07T10:30:00Z\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["session_type"]}," is the fund's, not yours. Keep ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["token"]}," on your server until you hand it to the investor's checkout. Do not log it or send it anywhere else."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-launch-the-session-for-the-investor","__idx":3},"children":["2. Launch the session for the investor"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["token"]}," to the Unified SDK as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentSessionId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentSessionToken"]},". See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/unified-sdk"},"children":["Unified SDK → Payment Session"]},". To open it inside a mobile app, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/sdk/experimental"},"children":["Web Checkout in a Mobile App"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The investor then completes the fund's journey. Your ARN is shown on the checkout and cannot be changed."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3-track-the-session","__idx":4},"children":["3. Track the session"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You see every session credited to you, the same way the fund sees it:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Webhook."]}," Register a webhook endpoint to receive the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/platform/webhooks/payment-session"},"children":["payment_session webhook"]}," each time the session changes status, from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["created"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]},". The fund gets the same event."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["One session."]}," Call ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api-reference/openapi/payment_session/getpaymentsession"},"children":["Retrieve a payment session"]}," with the session ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," for its current state."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All your sessions."]}," Call ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api-reference/openapi/payment_session/listpaymentsessions"},"children":["List payment sessions"]}," for the sessions credited to you across every fund, newest first. Filter by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["scheme_code"]},", or by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["completed"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]},")."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A session credited to another distributor returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"errors","__idx":5},"children":["Errors"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"12%","data-label":"Status"},"children":["Status "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"43%","data-label":"Message"},"children":["Message "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"What to do"},"children":["What to do "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["scheme_code is required"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.scheme.scheme_code"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Payment session is not enabled for this business"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The fund does not have payment sessions enabled. Contact Glomo support."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["No active relationship with this fund"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your relationship with the fund is disabled. Contact the fund."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Scheme not enabled for this relationship"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The fund has not enabled this scheme for you. Contact the fund."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Scheme not found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The code matches no active scheme, or no fund you have a relationship with. Check the code."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["409"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PAN is already registered with a different email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The PAN is registered under another email. Use that email."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Scheme is not available for distribution"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The scheme is a direct plan. Use the fund's regular-plan scheme."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Fund is not configured for scheme sessions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The fund's journey has no scheme step. Contact Glomo support."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Distributor ARN is not configured for this fund"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your ARN is missing on the relationship. Contact Glomo support."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id is not supported for relationship-originated sessions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Remove ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customer_id"]},". Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," instead."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the full request schema, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api-reference/openapi/payment_session/createpaymentsession"},"children":["Create a payment session"]},"."]}]},"headings":[{"value":"Open payment sessions as a distributor","id":"open-payment-sessions-as-a-distributor","depth":1},{"value":"Before you start","id":"before-you-start","depth":2},{"value":"1. Create the session on your server","id":"1-create-the-session-on-your-server","depth":2},{"value":"2. Launch the session for the investor","id":"2-launch-the-session-for-the-investor","depth":2},{"value":"3. Track the session","id":"3-track-the-session","depth":2},{"value":"Errors","id":"errors","depth":2}],"frontmatter":{"title":"Open payment sessions as a distributor","description":"Create a payment session for a fund's scheme as a distributor, launch it with the Unified SDK, and handle the errors the fund relationship can return.","seo":{"title":"Open payment sessions as a distributor"}},"lastModified":"2026-11-06T11:05:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/capital-markets/distributor/set-up","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}