Platform Ücreti Oluşturma
Bu endpoint, platform (kök node) için ücret yapılandırması oluşturmanızı sağlar.
Endpoint
POST /v2/fees/nodes/:id
Path Parametreleri
| Parametre | Tip | Açıklama |
|---|---|---|
| id | string | Kök Node ID |
İstek Gövdesi
{
"entity": 2,
"value": {
"tokenization": {
"asset_tokenization": {
"id": 0,
"value": 10
},
"tokenized_asset_sales": {
"id": 0,
"value": 11
},
"management": {
"id": 0,
"value": 12
}
},
"secondary_market": {
"buy_order": {
"id": 0,
"value": 13
},
"sell_order": {
"id": 0,
"value": 14
},
"otc_sale": {
"id": 0,
"value": 15
}
},
"lending": {
"borrower": {
"id": 0,
"value": 16
},
"lending": {
"id": 0,
"value": 17
},
"liquidation": {
"id": 0,
"value": 18
}
}
},
"categories": null
}
İstek Gövdesi Parametreleri
| Parametre | Tip | Açıklama |
|---|---|---|
| entity | number | Entity ID |
| value | object | Ücret yapılandırma değerleri |
| categories | null | Kategoriler (şu an kullanılmıyor) |
Yanıt
Endpoint başarılı oluşturma durumunda içerik döndürmez.
Örnek
İstek
curl -X POST "https://api.example.com/v2/fees/platform/680bdf195d63bcee848d38e6" \
-H "Content-Type: application/json" \
-d '{
"entity": 3,
"value": {
"tokenization": {
"asset_tokenization": {
"id": 0,
"value": 10
},
"tokenized_asset_sales": {
"id": 0,
"value": 11
},
"management": {
"id": 0,
"value": 12
}
},
"secondary_market": {
"buy_order": {
"id": 0,
"value": 13
},
"sell_order": {
"id": 0,
"value": 14
},
"otc_sale": {
"id": 0,
"value": 15
}
},
"lending": {
"borrower": {
"id": 0,
"value": 16
},
"lending": {
"id": 0,
"value": 17
},
"liquidation": {
"id": 0,
"value": 18
}
}
},
"categories": null
}'
Yanıt
HTTP/1.1 204 No Content