POST api/pos/manage/create

Creates a Point of Sale - POST method.
NOTE: You will be able to create a Point of Sale if the terminal's PoSId value on Integra is empty.

Request Information

URI Parameters

None.

Body Parameters

The PoS terminal information

PosTerminalViewModel
NameDescriptionTypeAdditional information
terminalId

string

None.

accessToken

string

None.

bioCode

string

None.

Request Formats

application/xml, text/xml

Sample:
<PosTerminalViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_1SA_MobilePay_POS_ViewModels.ViewModels">
  <accessToken xmlns="http://schemas.datacontract.org/2004/07/_1SA_MobilePay_POS_ViewModels">sample string 2</accessToken>
  <bioCode xmlns="http://schemas.datacontract.org/2004/07/_1SA_MobilePay_POS_ViewModels">sample string 3</bioCode>
  <terminalId>sample string 1</terminalId>
</PosTerminalViewModel>

application/json, text/json

Sample:
{
  "terminalId": "sample string 1",
  "accessToken": "sample string 2",
  "bioCode": "sample string 3"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PosManageViewModel
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

errors

Collection of string

None.

Response Formats

application/xml, text/xml

Sample:
<PosManageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_1SA_MobilePay_POS_ViewModels.ViewModels">
  <errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </errors>
  <success>true</success>
  <message>sample string 1</message>
</PosManageViewModel>

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "errors": [
    "sample string 1",
    "sample string 2"
  ]
}