SellSN API docs
HomeHelpStatus
  • Introduction
  • Embeds
  • Webhooks
  • API reference
    • Authorization
    • Users
    • Stores
    • Orders
    • Products
    • Product groups
    • Tickets
    • Coupons
    • Miscellaneous objects
  • OAuth2
    • Credentials
    • Permissions
    • Authorizing users
Powered by GitBook
On this page

Was this helpful?

  1. API reference

Users

Managing your own user account

PreviousAuthorizationNextStores

Last updated 8 months ago

Was this helpful?

Page cover image

Get user

get

Gets the currently signed-in user account data, requires the Scopes.ViewUser permission

Authorizations
Responses
200
The object was successfully returned.
401
You are not authorized, check your API key and try again.
403
You are not authorized to access this endpoint, you may be missing an API key scope or be requesting a privileged endpoint.
get
GET /user HTTP/1.1
Host: api.sellsn.io
Authorization: Bearer JWT
Accept: */*
{
  "success": true,
  "message": "text",
  "data": {
    "id": "text",
    "dateCreated": "2025-05-21T12:23:52.108Z",
    "plan": "text",
    "setupCompletionState": 0,
    "disabledPaymentMethods": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "email": "text",
    "userName": "text",
    "allowMarketplace": true,
    "stores": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "dateCreated": "2025-05-21T12:23:52.108Z",
        "name": "text",
        "description": "text",
        "url": "\n                store\n            ",
        "customDomain": "text",
        "termsOfService": "text",
        "copyright": "text",
        "privacyPolicy": "text",
        "preferredCurrency": "text",
        "isVerified": true,
        "prependProductNameToReceipt": true,
        "featuredProduct": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "dateCreated": "2025-05-21T12:23:52.108Z",
          "name": "text",
          "description": "text",
          "tags": [
            "text"
          ],
          "imageNames": [
            "text"
          ],
          "cost": 1,
          "type": 0,
          "subscriptionPeriod": "text",
          "stock": 1,
          "amountSold": 1,
          "ignoreOutOfStock": true,
          "isPinned": true,
          "isDynamic": true,
          "rating": 1,
          "minimumQuantity": 1,
          "maximumQuantity": 1,
          "order": 1,
          "visibility": 0,
          "likes": 1,
          "customValueKeys": [
            "text"
          ],
          "store": {
            "id": "123e4567-e89b-12d3-a456-426614174000",
            "dateCreated": "2025-05-21T12:23:52.108Z",
            "name": "text",
            "description": "text",
            "url": "\n                store\n            ",
            "customDomain": "text",
            "termsOfService": "text",
            "copyright": "text",
            "privacyPolicy": "text",
            "preferredCurrency": "text",
            "isVerified": true,
            "prependProductNameToReceipt": true,
            "featuredProduct": "[Circular Reference]",
            "visits": 1,
            "reviews": 1,
            "rating": 1,
            "resolvedTickets": 1,
            "productsSold": 1,
            "theme": {
              "properties": {
                "ANY_ADDITIONAL_PROPERTY": "text"
              }
            },
            "socialMediaAccounts": {
              "tikTok": "text",
              "youTube": "text",
              "twitter": "text",
              "facebook": "text",
              "discord": "text",
              "telegram": "text",
              "instagram": "text"
            },
            "profileImage": "text",
            "scopes": [
              "text"
            ],
            "isDiscordBotConfigured": true,
            "domain": "text"
          },
          "discordRoleId": 1,
          "requireDiscordAuthorization": true,
          "useDiscordIntegration": true
        },
        "visits": 1,
        "reviews": 1,
        "rating": 1,
        "resolvedTickets": 1,
        "productsSold": 1,
        "theme": {
          "properties": {
            "ANY_ADDITIONAL_PROPERTY": "text"
          }
        },
        "socialMediaAccounts": {
          "tikTok": "text",
          "youTube": "text",
          "twitter": "text",
          "facebook": "text",
          "discord": "text",
          "telegram": "text",
          "instagram": "text"
        },
        "profileImage": "text",
        "scopes": [
          "text"
        ],
        "isDiscordBotConfigured": true,
        "domain": "text"
      }
    ],
    "twoFactorEnabled": true,
    "discordWebhookUrl": "text",
    "lastPasswordUpdate": "2025-05-21T12:23:52.108Z",
    "cashAppOptions": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "dateCreated": "2025-05-21T12:23:52.108Z",
      "isEnabled": true,
      "email": "text",
      "verificationCode": "text",
      "isAcceptingRequests": true,
      "tag": "text"
    },
    "payPalOptions": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "dateCreated": "2025-05-21T12:23:52.108Z",
      "isEnabled": true,
      "isFriendsAndFamilyEnabled": true,
      "isAcceptingRequests": true,
      "email": "text",
      "payPalEmail": "text"
    },
    "disabled": true,
    "planExpiry": "2025-05-21T12:23:52.108Z",
    "enabledCryptocurrencies": [
      "text"
    ],
    "stripeOptions": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "dateCreated": "2025-05-21T12:23:52.108Z",
      "isEnabled": true,
      "publishableKey": "text"
    },
    "ownedReferralLink": "text",
    "referralLink": "text",
    "atlasReports": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "dateCreated": "2025-05-21T12:23:52.108Z",
        "email": "text",
        "reason": "text",
        "gateway": "text",
        "reporter": "text",
        "resolved": true,
        "type": "text",
        "userId": "text"
      }
    ],
    "stripeEnabled": true,
    "apiKeyActive": true,
    "isCryptoEnabled": true,
    "isCardsToCryptoEnabled": true,
    "isSumUpEnabled": true,
    "isTazaEnabled": true,
    "refreshAt": "2025-05-21T12:23:52.108Z"
  }
}
  • GETGet enabled cryptocurrencies
  • GETGet cryptocurrency balances
  • GETGet user
  • GETGet referral statistics

Get cryptocurrency balances

get

Gets the current cryptocurrency balance of the signed-in user. Requires the Scopes.ViewCryptoBalance permission

Authorizations
Responses
200
The object was successfully returned.
400
The provided form information is not valid, check that the provided data is valid. You can use the 'invalidFields' field to get the list of invalid fields or just use the 'message' field.
401
You are not authorized, check your API key and try again.
403
You are not authorized to access this endpoint, you may be missing an API key scope or be requesting a privileged endpoint.
get
GET /cryptocurrency/balance HTTP/1.1
Host: api.sellsn.io
Authorization: Bearer JWT
Accept: */*
{
  "success": true,
  "message": "text",
  "data": [
    {
      "cryptoCode": "text",
      "available": 1,
      "availableUsd": 1,
      "pending": 1,
      "pendingUsd": 1
    }
  ]
}

Get enabled cryptocurrencies

get

Gets the enabled cryptocurrencies on a users account. Requires the Scopes.ViewEnabledCryptos permission

Authorizations
Responses
200
The object was successfully returned.
401
You are not authorized, check your API key and try again.
403
You are not authorized to access this endpoint, you may be missing an API key scope or be requesting a privileged endpoint.
get

Get referral statistics

get

Gets the referral link statistics if you have an active referral link, requires the Scopes.ViewUser permission

Authorizations
Responses
200
The object was successfully returned.
400
The provided form information is not valid, check that the provided data is valid. You can use the 'invalidFields' field to get the list of invalid fields or just use the 'message' field.
401
You are not authorized, check your API key and try again.
403
You are not authorized to access this endpoint, you may be missing an API key scope or be requesting a privileged endpoint.
get
GET /cryptocurrency/enabled HTTP/1.1
Host: api.sellsn.io
Authorization: Bearer JWT
Accept: */*
{
  "success": true,
  "message": "text",
  "data": [
    "text"
  ]
}
GET /user/referral-stats HTTP/1.1
Host: api.sellsn.io
Authorization: Bearer JWT
Accept: */*
{
  "success": true,
  "message": "text",
  "data": {
    "amountRegistered": 1,
    "amountSubscribed": 1,
    "amountEarned": 1
  }
}