User

All the requests described below require authentication headers. For more information please refer to the "Authentication" page.

🔑pageAuthentication

Who am I?

GET /v1/user/whoami

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

{
    "userId": "OWN-agfjdfc7d-11c0-49f6-8e16-1hdcc931fb76",
    "email": "usermail@mail.com"
}

Get settings

GET /v1/user/settings

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

{
  "callback.secret": "asdsd"
}

Add setting

POST /v1/user/settings

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

Request Body

NameTypeDescription

name*

String

supported values: callback.url, callback.secret, callback.crypto-acquiring.requests.url, callback.crypto-acquiring.requests.secret, callback.crypto-acquiring.checkouts.url, callback.crypto-acquiring.checkouts.secret,notification.payment.email.enabled

value*

String

Delete setting

DELETE /v1/user/settings/{name}

Path Parameters

NameTypeDescription

name*

String

supported values: callback.url, callback.secret, notification.payment.email.enabled

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

{
    // Response
}

GET /v1/user/referral/links

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

{
  "cabinetLink": "https://cabinet.inqud.com/#/signup?code=d6en96mhNuJk"
}

Get referrals income info

GET /v1/user/referral/info

Headers

NameTypeDescription

X-Token-API-Id*

String

Identifier of the token (started with TKN- prefix)

X-Token-API-Secret*

String

Token Secret

{
  "income": [],
  "level1Percents": 13,
  "level2Percents": 2
}

Last updated