Tariff API

Tariff API

Get extended fee for the operation

post

Permission annotations:

Header parameters
KeystringRequired
SignstringRequired
Body

Object with request data

timestampinteger · int64Required

Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future

Responses
200
OK
*/*
post
POST /api/v1/tariff/extended-fee HTTP/1.1
Host: api.calypso.finance
Key: text
Sign: text
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "timestamp": 1,
  "payload": {
    "items": [
      {
        "baseAmount": 1000,
        "currency": "USDT",
        "opType": "INVOICE"
      }
    ]
  }
}
{
  "items": [
    {
      "amount": 1000,
      "currency": "USDT",
      "opType": "INVOICE",
      "feeReceiver": {
        "amount": 1050,
        "fee": 50
      },
      "feeSender": {
        "amount": 1050,
        "fee": 50
      }
    }
  ]
}