Skip to main content
POST
/
api
/
v1.1
/
operator-api
/
create
cURL
curl --request POST \
  --url https://api-staging.smatvirtual.com/api/v1/api/v1.1/operator-api/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "countryCodes": [
    "<string>"
  ],
  "companyName": "<string>",
  "email": "<string>",
  "providerId": 123
}
'
{
  "id": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "email": "<string>",
  "password": "<string>",
  "accountStatus": "<string>",
  "clientId": "<string>",
  "companyName": "<string>",
  "country": "<string>",
  "currency": "<string>",
  "encryptionKey": "<string>",
  "hashedClientId": "<string>",
  "phoneNumber": "<string>",
  "privateKey": "<string>",
  "providerId": 123,
  "publicKey": "<string>",
  "MerchantSettings": {
    "id": 123,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "agentPercentProfit": 123,
    "callbackUrl": "<string>",
    "colorGameProfit": 123,
    "cupImageUrl": "<string>",
    "fontFamilyUrl": "<string>",
    "hideBalance": true,
    "logo1xUrl": "<string>",
    "logo2xUrl": "<string>",
    "minimumStake": 123,
    "maximumStake": 123,
    "lottoGameProfit": 123,
    "megaTenGameProfit": 123,
    "merchantId": 123,
    "merchantPercentProfit": 123,
    "oddEvenGameProfit": 123,
    "providerPercentProfit": 123,
    "shopDetailsUrl": "<string>",
    "singleGameProfit": 123,
    "superProviderPercentProfit": 123,
    "underOverGameProfit": 123,
    "userDetailsUrl": "<string>",
    "userPercentProfit": 123,
    "webhookUrl": "<string>",
    "creditWebhookUrl": "<string>",
    "debitWebhookUrl": "<string>",
    "refundWebhookUrl": "<string>",
    "isSeperateWebhookUrl": true
  },
  "isDefaultPassword": true,
  "otpToken": "<string>",
  "verifiedEmail": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
countryCodes
string[]
required
companyName
string
required
email
string
required
providerId
number
required

Response

201 - application/json

The merchant was successfully created.

id
number
required
createdAt
string
required
updatedAt
string
required
email
string
required
password
string
required
accountStatus
string
required
clientId
string
required
companyName
string
required
country
string
required
currency
string
required
encryptionKey
string
required
hashedClientId
string
required
phoneNumber
string
required
privateKey
string
required
providerId
number
required
publicKey
string
required
MerchantSettings
object
isDefaultPassword
boolean
otpToken
string
verifiedEmail
boolean