POST api/clerk/shop/{shopId}

Provide true/false on creation of a clerk, given shop id and a clerk model. Give clerk model in body. More information regarding language and userRights can be found in the documentation

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

The shop id.

integer

Required

Body Parameters

The clerk insert model.

ClerkCreateModel
NameDescriptionTypeAdditional information
ClerkId

Clerk id

string

None.

Language

Clerk language

string

None.

Terminal

Terminal identifier

string

None.

FirstName

First name

string

Required

String length: inclusive between 0 and 64

LastName

Last name

string

Required

String length: inclusive between 0 and 64

CreateSource

string

String length: inclusive between 0 and 32

Active

(Not)Active setting

boolean

None.

UserName

User name

string

String length: inclusive between 0 and 50

Password

Password

string

String length: inclusive between 0 and 50

UserRights

User rights

integer

Range: inclusive between 1 and 3

SupportParameter

integer

Range: inclusive between 0 and 1

Request Formats

application/json, text/json

Sample:
{
  "ClerkId": "sample string 1",
  "Language": "sample string 2",
  "Terminal": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "CreateSource": "sample string 6",
  "Active": true,
  "UserName": "sample string 8",
  "Password": "sample string 9",
  "UserRights": 10,
  "SupportParameter": 11
}

application/xml, text/xml

Sample:
<ClerkCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Active>true</Active>
  <CreateSource>sample string 6</CreateSource>
  <FirstName>sample string 4</FirstName>
  <LastName>sample string 5</LastName>
  <Password>sample string 9</Password>
  <SupportParameter>11</SupportParameter>
  <UserName>sample string 8</UserName>
  <UserRights>10</UserRights>
  <ClerkId>sample string 1</ClerkId>
  <Language>sample string 2</Language>
  <Terminal>sample string 3</Terminal>
</ClerkCreateModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClerkCreateModel'.

Response Information

Resource Description

True/false.

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>