Kite
API ReferenceFees

Create a fee

POST
/api/fees

Authorization

headerx-kite-signature<token>

Base64url Ed25519 signature of timestamp nonce METHOD path?query sha256(body), sent with x-kite-api-key-id, x-kite-timestamp and x-kite-nonce

Request Body

application/json
  1. body
chainId*string
Formatuuid
label*string
Length1 <= length <= 120
type*string
Value in"Fixed""Variable"
value*string
Match^[0-9]+$
Lengthlength <= 78
minAmountToCharge?|
Match^[0-9]+$
Lengthlength <= 78
maxAmountToCharge?|
Match^[0-9]+$
Lengthlength <= 78
condition*
feeAddress?|
Match^0x[0-9a-fA-F]{40}$

Response Body

Response for status 201

application/json
  1. response
id*string
Formatuuid
appId*|
Formatuuid
chainId*string
Formatuuid
label*string
type*string
Value in"Fixed""Variable"
value*string
Match^[0-9]+$
Lengthlength <= 78
minAmountToCharge*|
Match^[0-9]+$
Lengthlength <= 78
maxAmountToCharge*|
Match^[0-9]+$
Lengthlength <= 78
condition*
feeAddress*|
Match^0x[0-9a-fA-F]{40}$
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://testnet.usekite.site/api/fees' \  -H 'Content-Type: application/json' \  -d '{  "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",  "label": "string",  "type": "Fixed",  "value": "string",  "condition": {}}'
Example Response201
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",  "label": "string",  "type": "Fixed",  "value": "string",  "minAmountToCharge": "string",  "maxAmountToCharge": "string",  "condition": {},  "feeAddress": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}