Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This call is intended to return current pricing of FIO Addresses and Domains based on Wallet Profile provided.

POST GET /get-pricing/{referralCode}

Request

Parameter

Format

Required

Description

referralCode

String

Yes

Wallet profile referral code

Example

...

languagejson

...

Response

Group

Parameter

Format

Required

Description

success

boolean

Yes

true if successful

pricing->fio

domain

Int

Yes

FIO Domain price in SUFs

pricing->fio

address

Int

Yes

FIO Address price in SUFs

pricing->usdt

domain

Double

Yes

FIO Domain price in USDT

pricing->usdt

address

Double

Yes

FIO Domain price in USDT

Example

Code Block
languagejson
{
  "success": true
  "pricing" : [{
    fio: [{
      "domain": 400000000000,
      "address": 20000000000
    }],
    usdt: [{
      "domain": 40.00,
      "address": 2.00
    }],  
  error: false
} 

Buy FIO Tokens

...

Parameter

Format

Required

Description

referralCode

String

Yes

Wallet profile referral code

domainRegistrations

Int

Yes

Number of FIO Domain registrations

addressRegistrations

Int

Yes

Number of FIO Address registrations

publicKey

String

Yes

FIO public key for the ownership of the FIO Tokens

redirectUrl

String

No

This url will be shown to users upon redirection from Coinbase payment screen. Irrelevant if you are showing payment screens inside app.

apiToken

String

Yes

API Token configured in Wallet Profile

webHook

String

No

Webhook which needs to be notified when payment is processed

Example

Code Block
languagejson
{
  "referralCode": "fio",
  "domainRegistrations": 0,
  "addressRegistrations": 5,
  "publicKey": "FIO86zM5iJAdsEgF3ggWJDM4SGgTFBVpx63cuBM4SxBEvBFewNyrv",
  "apiToken": "",
  "webHook": "https://www/example.com/webhook"
}

...