My Account

This API returns Account details of the currently logged in User.

Fields

Tag Data Type Description
accountToken Character (40) Unique string identifier used to login from a specific Account
allowSubAccountBranding Boolean Indicates if the Account allows sub account branding or not.
canCreateReseller Boolean Indicates if the Account can create other reseller Accounts or not.
domainName Text Contains an Account’s custom domain name. This is not returned for Accounts that don’t have one.
features Object Contains Features and indicates if they are available for the Account:

  • ifta – when available, this enables the State Mileage Menu in the Portal
  • map – when available, this enables the Locations Page in the Portal
id Auto-incremented Long Unique Identifier
isReseller Boolean Indicates if the Account is a reseller or not
name Character (225) The name of the Account.
productIds Array The Product associated with the Account.
resellableProducts Array  The ids of the Product(s) that an Account can resell to its own sub-accounts.
uuid Text (unlimited)  Internal use only.

Read

API PATH: /api/v2/myAccount
METHOD: GET
EXAMPLE RESPONSE:
{
  "id": 1249104,
  "name": "Account 1",
  "accountToken": "0ADFF3DDC0BA42958F315C352B27AD96",
  "uuid": "a678b9eb-0b6d-402e-b812-5a27e1e6c050",
  "canCreateReseller": true,
  "isReseller": true,
  "domainName": "www.account.com",
  "allowSubAccountBranding": false, 
  "productIds": [
    1247623
  ],
  "resellableProducts": [
    {
      "id": 1247623,
    }
  ],
  "features": {
    "ifta": true,
    "map": true
  }
}

API error calls

ERROR MESSAGE POSSIBLE CAUSES
POST is not supported. POST method is not allowed
PUT is not supported. PUT method is not allowed
DELETE is not supported. DELETE method is not allowed