İçeriğe geç

Gönderici Adreslerini Listele

GET /v1/addresses/sender/0

Kullanıcının gönderici adreslerini listeler.

ParametreKonumTipAçıklamaVarsayılanÖrnek
Authorization * headerstringBearer Yetkilendirme Tokeni (Örn: Bearer eyJhb...)-Bearer <TOKEN>
USER_ID * pathstringKullanıcı ID'si--
fetch('https://api.kargomucuz.com/v1/addresses/sender/0', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <YOUR_TOKEN>'
}
})
.then(response => response.json())
.then(data => console.log(data));
200: Başarılı kimlik doğrulaması sonrası dönen yanıt.
{
"status": true,
"message": "Tip ile kullanıcının adresleri getirildi.",
"payload": {
"data": [
{
"others": {
"tag": null,
"latitude": null,
"longitude": null,
"isActive": false,
"updated": "2025-02-09T23:04:52.942Z",
"created": "2025-02-09T23:04:52.942Z"
},
"resellerId": null,
"_id": "67a9349418cbc8606b2e27a2",
"type": "sender",
"title": "Teknopark",
"explanation": null,
"location": {
"country": {
"id": "298795",
"title": "türkiye",
"code": "tr"
},
"province": {
"id": null,
"title": null,
"code": null
},
"city": {
"id": "55",
"title": "Samsun",
"code": null
},
"district": {
"id": "55015",
"title": "Atakum",
"code": null
},
"neighborhood": {
"id": null,
"title": null,
"code": null
},
"street": {
"id": null,
"title": null,
"code": null
},
"address": {
"line1": "Aksu Mah. OMÜ Cd. No:165 Teknopark, Samsun, Türkiye",
"line2": null,
"line3": null
},
"postCode": null
},
"by": {
"phone1": {
"phoneCountryCode": "90",
"number": "5337072010"
},
"phone2": {
"phoneCountryCode": null,
"number": null
},
"phone3": {
"phoneCountryCode": null,
"number": null
},
"entity": "Xristal Bilgi Sistemleri",
"email": null
},
"__v": 0
}
],
"totalCount": 30
},
"code": 500
}