POST api/Partner/CreateTerminal

Request Information

URI Parameters

None.

Body Parameters

CreateTerminalRequest
NameDescriptionTypeAdditional information
Termainal

Terminal

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Termainal": {
    "Id": "sample string 1",
    "TermainalName": "sample string 2",
    "TermainalStatus": 3
  },
  "Token": "sample string 1"
}

application/xml, text/xml

Sample:
<CreateTerminalRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Terminal.Request">
  <Token xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 1</Token>
  <Termainal xmlns:d2p1="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Terminal">
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:TermainalName>sample string 2</d2p1:TermainalName>
    <d2p1:TermainalStatus>3</d2p1:TermainalStatus>
  </Termainal>
</CreateTerminalRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateTerminalResponse
NameDescriptionTypeAdditional information
Terminal

Terminal

None.

ErrorCode

string

None.

ErrorMessage

string

None.

ErrorCategory

string

None.

Result

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Terminal": {
    "Id": "sample string 1",
    "TermainalName": "sample string 2",
    "TermainalStatus": 3
  },
  "ErrorCode": "sample string 1",
  "ErrorMessage": "sample string 2",
  "ErrorCategory": "sample string 3",
  "Result": true
}

application/xml, text/xml

Sample:
<CreateTerminalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Terminal.Response">
  <ErrorCategory xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 3</ErrorCategory>
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 1</ErrorCode>
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">sample string 2</ErrorMessage>
  <Result xmlns="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Base">true</Result>
  <Terminal xmlns:d2p1="http://schemas.datacontract.org/2004/07/Shams.Api.Model.Terminal">
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:TermainalName>sample string 2</d2p1:TermainalName>
    <d2p1:TermainalStatus>3</d2p1:TermainalStatus>
  </Terminal>
</CreateTerminalResponse>