İçeriğe geç

Alıcı Adresi Detayı

GET /v1/addresses/receiver/{USER_ID}/67fcc0f63f154d3f8d97a3a3
GET /v1/addresses/receiver/{USER_ID}/67fcc0f63f154d3f8d97a3a3

Kullanıcıya ait spesifik bir alıcı adres detayını getirir.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
searchquerystringSonuçları spesifik bir isme veya dizeye göre filtreler.-Evim
USER_ID * pathstringİşlem yapan kullanıcının kimlik (ID) değeri. UUID formatındadır.--
fetch('https://api.kargomucuz.com/v1/addresses/receiver/{USER_ID}/67fcc0f63f154d3f8d97a3a3', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı
{
"status": false,
"message": "Adres bulunamadı.",
"code": 500
}
401: Yetkisiz
{
"status": false,
"message": "Herhangi bir giriş sağlanmadı.",
"code": 500
}