Hexallion.com
  1. APIs for Reseller
Hexallion.com
  • Overview
  • Getting Started
    • Glossary
    • Where to start?
    • What does agent-client mean?
    • Resource monitoring
    • Reseller webhooks
    • Installation
      • Setting up tariffs and groups
      • Setup of the first server and agent installation
      • Installing VPN servers
      • Script Recipes & Macroses
      • Firewalls
      • DNS & Cloudflare Tunnel
      • VPN Servers
        • OpenVPN
        • WireGuard
        • V2Fly
        • XRay
    • Generating VPN accounts
      • Registration of the first reseller
      • Creating the first user and testing the VPN
  • User Guide
    • Using the Admin Panel
      • Dashboard Overview
      • Managing Servers
      • Managing Resellers
      • Managing Users
      • Settings
    • Ordering and Access
      • Choosing a Tariff
      • Naming the Service
      • Payment Process
      • Receiving Admin Panel Access and API Links
  • Best Practices
    • Using NextDns.io and providing DNS filtering
    • Selling accounts through RevenueCat
    • Mobile application and generation of free accounts
    • Selling via telegramBot
  • Integrations
    • RevenueCat
    • PlayIntegrity & DeviceCheck
    • Partitions Servers
    • Geo Limits
    • WHMCS
  • APIs for User
    • Sessions
      • Get session
      • Create sessions
      • Delete session
    • VPN
      • Get vpn servers
      • Get vpn servers config
    • Notify
      • Get user`s notifications
      • Delete notification by Id
    • Get user`s ip address
    • Get user`s servers
    • Get user by revenuecat id
  • APIs for Reseller
    • Users
      • Create a new user
      • GET user by UUID
      • Delete a user by uuid
      • Get user`s token
      • Update user`s token
      • Set user status to on
      • Set user status to off
      • Update user`s number of devices
      • Set user`s expiry date
      • GET users list
    • Notifications
      • Create a notification
      • Get user`s notification
      • Delete all user`s notifications
      • Notify all users
      • Delete a specific notification by id
    • VPN
      • Get vpn servers list
      • Get vpn servers config
      • Delete Sessions
    • GET API-keys info
      GET
    • GET news
      GET
    • Get servers list
      GET
    • Webhook for RevenueCat
      POST
  • User Stories and Use Cases
    • Developer Use Cases
    • Reseller Use Cases
    • End-User Scenarios
  • Video Tutorials and Walkthroughs
    • Setting up Tariffs and Groups
    • Installing and Configuring Servers
    • Using the Admin Panel
    • Integrations Setup
    • Generating and Managing VPN Accounts
  • Troubleshooting
    • Common Issues and Solutions
    • FAQ
  • Contact and Support
    • Getting Help
    • Support Channels
  1. APIs for Reseller

Webhook for RevenueCat

POST
/reseller/webhook/revenuecat
Info for resellers

Request

Body Params application/json
object {0}
Example
{
  "api_version": "1.0",
  "event": {
    "aliases": [
      "yourCustomerAliasedID",
      "yourCustomerAliasedID"
    ],
    "app_id": "yourAppID",
    "app_user_id": "yourCustomerAppUserID",
    "commission_percentage": 0.3,
    "country_code": "US",
    "currency": "USD",
    "entitlement_id": "pro_cat",
    "entitlement_ids": [
      "pro_cat"
    ],
    "environment": "PRODUCTION",
    "event_timestamp_ms": 1591121855319,
    "expiration_at_ms": 1591726653000,
    "id": "UniqueIdentifierOfEvent",
    "is_family_share": false,
    "offer_code": "free_month",
    "original_app_user_id": "123",
    "original_transaction_id": "1530648507000",
    "period_type": "NORMAL",
    "presented_offering_id": "OfferingID",
    "price": 2.49,
    "price_in_purchased_currency": 2.49,
    "product_id": "onemonth_no_trial",
    "purchased_at_ms": 1591121853000,
    "store": "APP_STORE",
    "subscriber_attributes": {
      "$Favorite Cat": {
        "updated_at_ms": 1581121853000,
        "value": "Garfield"
      }
    },
    "takehome_percentage": 0.7,
    "tax_percentage": 0.3,
    "transaction_id": "170000869511114",
    "type": "INITIAL_PURCHASE"
  }
}

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://test.your-api-server.com/reseller/webhook/revenuecat' \
--header 'Content-Type: application/json' \
--data-raw '{
    "api_version": "1.0",
    "event": {
        "aliases": [
            "yourCustomerAliasedID",
            "yourCustomerAliasedID"
        ],
        "app_id": "yourAppID",
        "app_user_id": "yourCustomerAppUserID",
        "commission_percentage": 0.3,
        "country_code": "US",
        "currency": "USD",
        "entitlement_id": "pro_cat",
        "entitlement_ids": [
            "pro_cat"
        ],
        "environment": "PRODUCTION",
        "event_timestamp_ms": 1591121855319,
        "expiration_at_ms": 1591726653000,
        "id": "UniqueIdentifierOfEvent",
        "is_family_share": false,
        "offer_code": "free_month",
        "original_app_user_id": "123",
        "original_transaction_id": "1530648507000",
        "period_type": "NORMAL",
        "presented_offering_id": "OfferingID",
        "price": 2.49,
        "price_in_purchased_currency": 2.49,
        "product_id": "onemonth_no_trial",
        "purchased_at_ms": 1591121853000,
        "store": "APP_STORE",
        "subscriber_attributes": {
            "$Favorite Cat": {
                "updated_at_ms": 1581121853000,
                "value": "Garfield"
            }
        },
        "takehome_percentage": 0.7,
        "tax_percentage": 0.3,
        "transaction_id": "170000869511114",
        "type": "INITIAL_PURCHASE"
    }
}'

Responses

🟢200Success
application/json
Body
user
string 
required
Example:
9e81f5bf-3d7f-4987-96b9-5032010f831f
expiration_at
number 
required
Example:
1682682793
Example
{
  "user": "9e81f5bf-3d7f-4987-96b9-5032010f831f",
  "expiration_at": 1682682793
}
🟢201Success
🟢204Success
🟠400400
🟠401401
🟠403403
🟠404404
Previous
Get servers list
Next
Developer Use Cases
Built with