Operator

The section will describe the Operator API overview, request model, and response model.

Overview

The operator is used to create API credentials that will be used in the API endpoints as an authorization key. API credentials content both test and live keys for both public and private environments.

Operator Request Example

To obtain API credentials, send a multipart/form-data request with the specified parameters as listed in the Operator Request table.

Operator Request Table (multipart/form-data)

Field NameField TypeDescriptionsData Formate
wallet_idstringrequired
Wallet ID that should be connected to the operator
Text
Example:'wal_xxx'
developer_idstringrequiredText
Example:'dev_xxx'
namestringrequiredUnique Text
terminal_idstringoptional
Terminal ID that should be connected to the operator
Text
platformstringoptional
Which platform the operator will be used for
Text
brandsarray[object]optional
Brands object.
[
{
"brand_id":"String",
"branch_id": ["String"]
}
]
toolkitobjectoptional
Toolkit object
{
"type":"String",
"version":"String"
}
appobjectoptional
App object
{
"type":"String",
"url":"String",
"development_language":"String",
"os":"String",
"bundle_id":"String",
"locale":"String"
}

Request Example

{
  "wallet_id": "wal_C03P2419164361xT12NL10s669",
  "developer_id": "dev_P2419164361xcZUV21916",
  "name": "Web",
  "platform": "mobile",
  "brands": [
    {
      "brand_id": "brd_cZUV2191640Z3Op12YV10b779",
      "branch_id": [
        "brc_2Ft76191640YnBk12y5105800"
      ]
    }
  ],
  "toolkit": {
    "type": "iOS_SDK",
    "version": "2.2.6"
  },
  "app": {
    "type": "mobile",
    "url": "sdcfs",
    "development_language": "swift",
    "os": "iOS",
    "bundle_id": "com.test.application",
    "locale": "en"
  }
}

Operator Response Example

This section will show the response after creating an Operator.

Operator Response Table (JSON)

Field NameField TypeDescription
idstringoptional
Unique identifier of operator
statusstringoptional
Unique identifier of operator
createdintegeroptional
Operator created time stamp
objectstringoptional
operator
live_modebooleaoptional
Define live mode or sandbox mode (true or false)
api_versionstringoptional
Version of this API
feature_versionstringoptional
Version of this feature
namestringoptional
business_idstringoptional
business id that is connected
business_entity_idstringoptional
business entity id that is connected
brandsarray[object]optional
brands object
wallet_idstringoptional
wallet id that is connected
platformstringoptional
platform used
toolkitobjectoptional
toolkit object
appobjectoptional
app object
api_credentialsobjectoptional
api_credentials object used to access tap API's

Response Example

{
  "id": "opr_cXvn14191558ZuAP14dd101978",
  "status": "Active",
  "created": 1573736294978,
  "object": "Operator",
  "live_mode": false,
  "api_version": "v2",
  "feature_version": "v2",
  "business_id": "bus_GDpQ53191639IYC412W210L218",
  "business_entity_id": "ent_zPcc59191639VjPC12xX10I279",
  "brands": [
    {
      "brand_id": "brd_cZUV2191640Z3Op12YV10b779",
      "branch_id": [
        "brc_2Ft76191640YnBk12y5105800"
      ]
    }
  ],
  "wallet_id": "wal_C03P2419164361xT12NL10s669",
  "platform": "mobile",
  "toolkit": {
    "type": "iOS_SDK",
    "version": "2.2.6"
  },
  "app": {
    "type": "mobile",
    "url": "sdcfs",
    "os": "iOS",
    "bundle_id": "com.test.application",
    "locale": "en"
  },
  "api_credentials": {
    "test": {
      "secret": "sk_test_Lc704RwybGXmAUSo5plqgTaI",
      "public": "pk_test_zOye9K7r0LM2Ig4YUJBj1ZtQ"
    },
    "live": {
      "secret": "sk_live_iy4SKO3NpUxzrRPugbEoDHnZ",
      "public": "pk_live_bLZjFaSEeOxt93ikV7ADWg5T"
    }
  }
}