KYC Token Adresi Oluştur
Bir token için KYC token adresi ilişkilendirmesi oluşturun.
Endpoint: POST /api/v1/integration/tokens/{token_id}/kyc-tokens
Kimlik Doğrulama: Gerekli (Bearer token)
Gerekli Header'lar:
Authorization: Bearer <access_token>
X-Target-Server: integration
Content-Type: application/json
Yol Parametreleri
| Parametre | Tip | Gerekli | Açıklama |
|---|---|---|---|
token_id | string (UUID) | Evet | Token ID |
İstek Gövdesi
{
"kyc_address_id": "3b695a99-be80-4668-99af-254717524dd0",
"chain_id": 1,
"hash": "0x81948129849128491824981294",
"is_approved": true
}
İstek Parametreleri
| Alan | Tip | Gerekli | Açıklama |
|---|---|---|---|
kyc_address_id | string (UUID) | Evet | KYC Adresi ID |
chain_id | integer | Evet | Blockchain ağ kimliği (örn: 1 = Ethereum Mainnet, 137 = Polygon) |
hash | string | Evet | Transaction veya contract hash'i |
is_approved | boolean | Evet | KYC token adresinin onaylanıp onaylanmadığı |
Yanıt
Durum: 201 Created
Oluşturulan distributor KYC token nesnesini döndürür.
{
"id": "e28cae58-0c9c-4f71-91b4-e567e06cc6a7",
"distributor_id": "084a5159-1546-4ade-a7ba-956e0234a417",
"kyc_address_id": "3b695a99-be80-4668-99af-254717524dd0",
"token_id": "3c4da8b4-99e0-45ca-bb0b-221c3b1272b3",
"chain_id": 1,
"hash": "0x81948129849128491824981294",
"is_approved": true,
"created_at": "2025-12-24T19:09:11.407528+03:00",
"updated_at": "2025-12-24T19:09:11.407528+03:00"
}
Örnek cURL İsteği
curl -X POST 'https://<base-url>/api/v1/integration/tokens/3c4da8b4-99e0-45ca-bb0b-221c3b1272b3/kyc-tokens' \
-H "Content-Type: application/json" \
-H "X-Target-Server: integration" \
-H "Authorization: Bearer <access_token>" \
-d '{
"kyc_address_id": "3b695a99-be80-4668-99af-254717524dd0",
"chain_id": 1,
"hash": "0x81948129849128491824981294",
"is_approved": true
}'