Cycle Logo

Terminal Management

Guides for creating and managing terminals via the REST API.

Creating a Terminal

Endpoint

POST /api/v1/terminal/create

The request body contains a JSON model with the table fields necessary to create a terminal.

Terminal Request Body

Field NameTypeMandatoryDescription
BranchIDIntegerYesMerchant/Branch ID
NameStringYesTerminal name (TID)
AliasStringYesTerminal alias (TID)
SICStringYesMCC for the terminal
TitleStringYesTerminal title (TID)
CurrencyStringYesCurrency code (numeric ISO 4217)
CountryStringYesCountry code (ISO 3166-1 numeric)
CityStringYesCity
LocationStringYesLocation (Latin characters)
EntryCapsStringYesTerminal capabilities code
RegionCodeStringYesRegion code
CountryCodeStringYesCountry code (ISO 3166-1 alpha-2)
DeviceInfoJsonObjectYesDevice object
TerminalGroupIDIntegerNoTerminal Group ID
TerminalGroupCodeStringNoName of the terminal group
PhoneStringNoTerminal holder phone number
StateIntegerNoStatus (0 - blocked, 1 - active)
DescriptionStringNoTerminal description
ClassStringNoTerminal class
BackRetailerIDStringNoMerchant identifier (MID)
OwnerStringNoTerminal owner
RegionStringNoRegion name
BranchStringNoMerchant/branch name
ZIPStringNoPostal code
TimeOffsetStringNoTime zone
ContactlessCapableStringNoContactless capability
SelfSeviceStringNoSelf Service capability
TypeStringNoTerminal type
LatitudeNumberNoLatitude
LongitudeNumberNoLongitude
WithAccountsBooleanNoLink to accounts
ForAccountBooleanNoFor a specific account
CurrentAccountIDIntegerNoID of the user making the request
SbpJsonObjectNoSBP Settings
IPStringNoRequest IP address
LangStringNoLanguage

Value Dictionaries

SIC – MCC codes are indicated in the international format (e.g. "5411")
RegionCode – The codes of the regions of South Africa are indicated (e.g., “GP” for Gauteng)
Currency – The country currency code is indicated in the numeric ISO 4217 format (710 for ZAR)
Country – The country code is indicated in the ISO 3166-1 numeric format (710 for South Africa)

EntryCaps

TypeDescription
0Unknown
1No TerminalUsed
2Magnetic Stripe Reader
3Bar code
4OCR
5Magnetic stripe and chip reader – Use it
6Key Entry
7Magnetic stripe reader and key entry
8Magnetic stripe and chip and key entry
9Chip reader
10None

Example: Create Terminal Request

{
  "BranchID": 18349,
  "Name": "04202298",
  "SIC": "5411",
  "Title": "04202298",
  "Currency": "710",
  "Country": "710",
  "City": "Johannesburg",
  "Location": "South Africa",
  "TerminalGroupCode": "DEFAULT",
  "EntryCaps": "5",
  "RegionCode": "GP",
  "CountryCode": "ZA",
  "DeviceInfo": {
    "PhoneManufacturer": "Generic",
    "PhoneModel": "Windows_RestAPI",
    "DeviceID": "",
    "DeviceType": "1",
    "AppFramework": "java",
    "OS": "Windows",
    "OSVersion": "10",
    "AppID": "RestAPI",
    "BuildNumber": "2.4.390248"
  },
  "GMT": 2,
  "AppFramework": "java",
  "Lang": "en",
  "IP": "102.132.95.88"
}

Terminal Response Body

Field NameTypeDescription
TerminalObjectTerminal object
IDIntegerTerminal identifier
AliasStringTerminal alias
NameStringTerminal name
FinstIDIntegerFinancial institution identifier
ClientIDIntegerMerchant ID
BranchIDIntegerBranch ID
BranchNameStringBranch name
SICStringMCC for the terminal
LocationStringLocation
ClassStringTerminal class
TitleStringTerminal title
DescriptionStringTerminal description
BackRetailerIDStringMID Merchant identifier
CurrencyStringCurrency code
CountryStringCountry
OwnerStringTerminal owner
RegionStringRegion name
BranchStringMerchant/branch name
CityStringCity
ZIPStringPostal code
PhoneStringTerminal holder phone number
TimeOffsetStringTime zone
EntryCapsStringTerminal capabilities
LatitudeNumberLatitude
LongitudeNumberLongitude
ContactlessCapableStringContactless capability
SelfSeviceStringSelf Service capability
TypeStringTerminal type
RegionCodeStringRegion code
StateIntegerStatus (0 - blocked, 1 - active)
GroupIDIntegerTerminal Group ID
SbpJsonObjectSBP Settings
ErrorCodeStringExecution result code
ErrorMessageStringExecution result message

Example: Create Terminal Response

{
  "Terminal": {
    "ID": 8272,
    "Alias": null,
    "Name": "04202298",
    "FinstID": 3012,
    "ClientID": 18349,
    "BranchID": 18349,
    "BranchName": null,
    "Selected": false,
    "PosCount": null,
    "SIC": "5411",
    "Location": "South Africa",
    "Class": "",
    "Title": "04202298",
    "Description": null,
    "BackRetailerId": null,
    "Currency": "710",
    "Country": "710",
    "Owner": null,
    "Region": null,
    "Branch": null,
    "City": "Johannesburg",
    "ZIP": null,
    "Phone": null,
    "TimeOffset": null,
    "EntryCaps": "5",
    "Latitude": null,
    "Longitude": null,
    "ContactlessCapable": "1",
    "SelfService": null,
    "Type": "",
    "RegionCode": "GP",
    "Accounts": null,
    "SettleStatus": 0,
    "Settled": null,
    "SettleTry": null,
    "CanStartSettlement": false,
    "TMK": null,
    "TMKKCV": null,
    "VN_OCEAN_TID": null,
    "VN_OCEAN_PSW": null,
    "CanExport": true,
    "ProccessTry": null,
    "ProcessStatus": 0,
    "ProcessCreateSuccess": false,
    "DirectPosCount": null,
    "State": 1,
    "GroupID": 2541,
    "IsCarousel": false
  },
  "ErrorCode": 0,
  "ErrorMessage": null,
  "Validations": null
}