Payment (REST)

Endpoint

Real Server : https://api.finenex.net/v1/ict

Test Server : https://test1-api.finenex.net/v1/ict

Authentication

To make a request, you need to include the JWT in the HTTP header. JWT can be received through the authentication server.

Example

If JWT is "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0MTExQGRzdGEuY29tIiwicm9sZSI6IlJPTEVfU1RPUkUiLCJleHAiOjE2NDgyMDc1OTIsImlhdCI6MTY0ODEyMTE5Mn0.AYNcBLhKqtqwzxNm7kOREEUH0_3gFevOXxI94TBORao",

curl -X 'POST' \
  'https://test1-api.finenex.net/v1/ict/pay' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0MTExQGRzdGEuY29tIiwicm9sZSI6IlJPTEVfU1RPUkUiLCJleHAiOjE2NDgyMDc1OTIsImlhdCI6MTY0ODEyMTE5Mn0.AYNcBLhKqtqwzxNm7kOREEUH0_3gFevOXxI94TBORao' \
  -H 'Content-Type: application/json' \
  -d '{
  ...
}'

API References

Payment

The User pays using the amount in his or her account.

  • tokenName: Token name. "VIXP" is available.

  • amount: Amount to pay.

  • myAddress: Account address where the user will make payment.

  • password: Password to obtain the private key of the account address.

Example

curl -X 'POST' \
  'https://test1-api.finenex.net/v1/ict/pay' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0cG9zMSIsInJvbGUiOiJST0xFX09XTkVSIiwiaXNzIjoiYXV0aC55b3Nob3AubmV0IiwiZXhwIjoxNjk3MTYzNDk3LCJpYXQiOjE2OTQ1NzE0OTd9.hpGO0_f8DsC_NQwWAnzwp2LRlxy0cuTAp9GA29bv_cU' \
  -H 'Content-Type: application/json' \
  -d '{
  "tokenName": "VIXP",
  "myAddress": "0x2680ce4b1e04223a126294cf86b0352e4a463443",
  "amount": "0.01",
  "password": "1324"
}'

Last updated