Lopay Partner API
  1. Merchants
Lopay Partner API
  • Introduction
  • Environments
  • Authentication
  • Webhooks
  • Terminal ordering
  • Reporting
  • Errors
  • Getting started
  • Payment Links
    • List all payment links
      GET
    • Create a new payment link
      POST
    • Get existing payment link
      GET
    • Update existing payment link
      PATCH
    • Revoke an existing payment link
      DELETE
    • Send a payment link via email and/or SMS
      POST
  • Webhook subscriptions
    • Get login link for Lopay Partner Webhook Portal
      GET
    • List webhook subscriptions
      GET
    • Create webhook subscription
      POST
    • Update existing webhook subscription
      PUT
    • Remove an existing webhook subscription
      DELETE
  • Merchants
    • List all merchants
      GET
    • Register a new merchant
      POST
    • Get merchant details
      GET
    • Update merchant bank details for receiving payouts.
      PUT
    • Get merchant onboarding link
      GET
    • Create account session with permissions for the specified embedded components.
      POST
    • Get list of available hardware for given merchant to purchase
      GET
    • Order terminal hardware for the specified merchant.
      POST
  • Marketing Deeplinks
    • List all affiliate marketing deeplinks.
    • Create a new affiliate marketing deeplink.
  • Reports
    • List all statement activity
  • Customers
    • Temporarily store customer details
  • Subscription Plans
    • Create a new subscription plan
    • List all subscription plans
    • Get existing subscription plan
  • Subscriptions
    • Get existing subscription
  1. Merchants

Create account session with permissions for the specified embedded components.

Production Environment
https://api.lopay.com
Production Environment
https://api.lopay.com
POST
/api/1/partner/merchant/{id}/account-session
Merchants

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
id
string <uuid>
required
Merchant ID (UUID)
Body Params application/json
components
object 
required
See available component parameters here: https://docs.stripe.com/api/account_sessions/create
Example
Create an account session
{
    "components": {
        "account_onboarding": {
            "enabled": true
        }
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lopay.com/api/1/partner/merchant//account-session' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "components": {
        "account_onboarding": {
            "enabled": true
        }
    }
}'

Responses

🟢200OK
application/json
OK response
Body
stripeAccountId
string 
required
Stripe account ID.
Example:
acct_1LmZQr2fwpTOCBRL
clientSecret
string 
required
Account session ID client secret to pass to the Stripe embedded components.
expiresAt
string 
required
ISO8601 date of when client secret expires.
returnUrl
string <uri>
required
Deeplink back into Lopay app
Example
{
    "stripeAccountId": "acct_1NkDjjJyhOZfPCWt",
    "clientSecret": "_OXIKXxEihJokDBnDoe2sgG5OGSO2Q12shKvbeboxpALZGng",
    "expiresAt": "2025-01-01T00:00:00.000Z",
    "returnUrl": "https://merchant.lopay.app/xxx"
}
🟠401Unauthorized
🟠404Record Not Found
Modified at 2025-06-04 16:00:16
Previous
Get merchant onboarding link
Next
Get list of available hardware for given merchant to purchase
Built with