Back to Home
Developer Documentation

Build with the Sellary API.

Power your memberships, software licenses, and paid website access with our robust API and real-time webhooks.

Order Verification

Instantly verify if a user has paid for your product using their Order ID and your secure API key.

Real-time Webhooks

Receive signed events directly to your server as soon as a payment is confirmed.

Verify Transactions & Memberships

Use this endpoint to verify a specific order or to check if a user has an active membership on your website.

Option A: By Order ID

Best for "Thank You" pages or instant delivery redirects.

GET /api/v1/verify?orderId=ORD_123

Option B: By User Email

Best for Login-gated membership sites (e.g. Job Boards).

GET /api/v1/verify?email=user@me.com&productId=PROD_123

Verifying Membership (Python)

import requests

def check_access(email, product_id, api_key):
    url = f"https://sellary.live/api/v1/verify?email={email}&productId={product_id}"
    headers = {"X-Sellary-Key": api_key}
    
    res = requests.get(url, headers=headers).json()
    return res.get("isValidAccess", False)

Sample Response

{
  "success": true,
  "isValidAccess": true,  /* Direct boolean for your paywall */
  "status": "COMPLETED",
  "order": {
    "id": "ORD_12345",
    "accessExpiresAt": "2026-12-31T23:59:59Z"
  }
}

How it works

When a customer purchases a product of type MEMBERSHIP or TELEGRAM_SUBSCRIPTION, Sellary automatically calculates an expiration date based on the duration you set.

Our Verification API checks this expiration date and the order status. If the payment is completed and hasn't expired, isValidAccess will be true.

Security First

Always keep your API keys secret. Never expose them in your frontend or public repositories.

Need Help?

Our developer support team is available to help you with your integration.

Ready to Integrate?

Sellary powers payments for over 1,000+ creators and software developers.