İade ve Sevkiyat Adres Bilgileri (getSuppliersAddresses)

İade ve Sevkiyat Adres Bilgileri

createProduct V2 servisine yapılacak isteklerde gönderilecek sipariş ve sevkiyat kargo firma bilgileri ve bu bilgilere ait ID değerleri bu servis kullanılarak alınacaktır.

"SATICI BAŞVURU SÜRECİM" tam olarak tamamlanmadı ise bu servisi kullanmamanız gerekir.

Ürün gönderimi yaparken adresi ID değerlerini kontrol etmelisiniz. Hatalı gönderim yapılması halinde ürün aktarımı gerçekleşmeyecektir.

  • GET getSuppliersAddresses

https://api.trendyol.com/sapigw/suppliers/{supplierId}/addresses

Örnek Servis Cevabı


{
    "supplierAddresses": [
        {
            "id": 1,
            "addressType": "Shipment",
            "country": "Country-0",
            "city": "Kocaeli",
            "cityCode": 0,
            "district": "Gebze",
            "districtId": 0,
            "postCode": "post-code-0",
            "address": "Address-0",
            "returningAddress": false,
            "fullAddress": "Address-0 Gebze post-code-0 Kocaeli Country-0",
            "shipmentAddress": true,
            "invoiceAddress": false,
            "default": true
        },
        {
            "id": 2,
            "addressType": "Invoice",
            "country": "Country-2",
            "city": "Ankara",
            "cityCode": 0,
            "district": "Mamak",
            "districtId": 0,
            "postCode": "post-code-2",
            "address": "Address-2",
            "returningAddress": false,
            "fullAddress": "Address-2 Mamak post-code-2 Ankara Country-2",
            "shipmentAddress": false,
            "invoiceAddress": true,
            "default": true
        },
        {
            "id": 3,
            "addressType": "Returning",
            "country": "Country-3",
            "city": "Bursa",
            "cityCode": 0,
            "district": "Teleferik",
            "districtId": 0,
            "postCode": "post-code-3",
            "address": "Address-3",
            "returningAddress": true,
            "fullAddress": "Address-3 Teleferik post-code-3 Bursa Country-3",
            "shipmentAddress": false,
            "invoiceAddress": false,
            "default": true
        },
        {
            "id": 4,
            "addressType": "Returning",
            "country": "Country-4",
            "city": "İzmir",
            "cityCode": 0,
            "district": "Bornova",
            "districtId": 0,
            "postCode": "post-code-4",
            "address": "Address-4",
            "returningAddress": true,
            "fullAddress": "Address-4 Bornova post-code-4 İzmir Country-4",
            "shipmentAddress": false,
            "invoiceAddress": false,
            "default": false
        }
    ],
    "defaultShipmentAddress": {
        "id": 0,
        "addressType": "Shipment",
        "country": "Country-0",
        "city": "Kocaeli",
        "cityCode": 0,
        "district": "Gebze",
        "districtId": 0,
        "postCode": "post-code-0",
        "address": "Address-0",
        "returningAddress": false,
        "fullAddress": "Address-0 Gebze post-code-0 Kocaeli Country-0",
        "shipmentAddress": true,
        "invoiceAddress": false,
        "default": true
    },
    "defaultInvoiceAddress": {
        "id": 2,
        "addressType": "Invoice",
        "country": "Country-2",
        "city": "Ankara",
        "cityCode": 0,
        "district": "Mamak",
        "districtId": 0,
        "postCode": "post-code-2",
        "address": "Address-2",
        "returningAddress": false,
        "fullAddress": "Address-2 Mamak post-code-2 Ankara Country-2",
        "shipmentAddress": false,
        "invoiceAddress": true,
        "default": true
    },
    "defaultReturningAddress": {
        "present": true
    }
}