POST api/Admin/Register

Register POS admin User and create databse for new customer

Request Information

URI Parameters

None.

Body Parameters

Company
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Max length: 100

Address

string

Max length: 500

City

string

Max length: 50

PostalCode

string

Max length: 10

Country

string

Max length: 50

AdminURL

string

Max length: 150

Active

boolean

None.

DBServer

string

Max length: 150

DBName

string

Max length: 50

DBUser

string

Max length: 50

DBPassword

string

Max length: 50

TenantType

TenantType

None.

CreatedOn

date

None.

AccessToken

string

Max length: 100

ConnectionString

string

None.

UserEmail

string

None.

UserName

string

None.

UserPassword

string

None.

PhoneNo

string

None.

OrgNo

string

None.

SaleType

integer

None.

SubscribType

integer

None.

Currency

string

None.

Outlets

Collection of AdminOutlet

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "a0f20d43-6b47-4577-9a7b-e3295e7f3210",
  "Name": "sample string 2",
  "Address": "sample string 3",
  "City": "sample string 4",
  "PostalCode": "sample string 5",
  "Country": "sample string 6",
  "AdminURL": "sample string 7",
  "Active": true,
  "DBServer": "sample string 9",
  "DBName": "sample string 10",
  "DBUser": "sample string 11",
  "DBPassword": "sample string 12",
  "TenantType": 0,
  "CreatedOn": "2024-05-16T13:38:45.9219112+02:00",
  "AccessToken": "sample string 14",
  "ConnectionString": "Data Source=sample string 9;Initial Catalog=sample string 10;User Id=sample string 11;Password=sample string 12",
  "UserEmail": "sample string 15",
  "UserName": "sample string 16",
  "UserPassword": "sample string 17",
  "PhoneNo": "sample string 18",
  "OrgNo": "sample string 19",
  "SaleType": 20,
  "SubscribType": 21,
  "Currency": "sample string 22",
  "Outlets": [
    {
      "$id": "2",
      "Id": "1c41836f-ca5d-49c2-9637-240c91d29c08",
      "Name": "sample string 2",
      "CompanyId": "f70855ac-8d02-4425-8fee-6cfd3bb314a5",
      "Company": {
        "$ref": "1"
      },
      "Terminals": [
        {
          "$id": "3",
          "Id": "c80c2c86-a3c3-49dd-8459-4588c599ebf3",
          "OutletId": "9d640957-2aa9-4c86-8d33-a9b7ab83409a",
          "UniqueIdentification": "sample string 3",
          "Customer": "sample string 4",
          "POSVersion": "sample string 5",
          "PaymentDevice": 0
        },
        {
          "$ref": "3"
        }
      ]
    },
    {
      "$ref": "2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.