Siparişleri Çekme

Siparişleri Çek

POST https://api.marketplace.tekbas.com/orders

Siparişleri çekmek için kullanabileceğiniz ortak rota

Headers

Name
Type
Description

Authentication

string

Api Tokeni Gereklidir

Request Body

Name
Type
Description

pageSize

number

Sayfa büyüklüğü. Minimum 10, maksimum 50

pageNo

number

Sayfa numarası 0 dan başlar

orderSource

number

Çekmek istediğiniz siparişlerin kaynağı: 1: N11 2: Trendyol 3: Hepsi Eğer hepsini seçerseniz safyalama iptal edilecektir

endDate

number

Bitiş tarihinin saniye cinsinden timestampi

startDate

number

Başlangıç tarihinin saniye cinsinden timestampi

 {
    "success": true,
    "message": "",
    "data": {
        "totalCount": 2,
        "page": 0,
        "pageSize": 50,
        "data": [
            {
                "orderSource": 1,
                "sourceOrderId": "123456789012",
                "rawData": {
                    "citizenshipId": "12345678901",
                    "createDate": "05/09/2020 11:40",
                    "id": "123456789",
                    "orderNumber": "123456789012",
                    "paymentType": 1,
                    "status": 5,
                    "details": {
                        "citizenshipId": "123456789012",
                        "createDate": "05/09/2020 11:40",
                        "id": "248923351",
                        "orderNumber": "123456789012",
                        "paymentType": 1,
                        "status": 5,
                        "billingAddress": {
                            "address": "adres",
                            "city": "Bursa",
                            "district": "Osmangazi",
                            "fullName": "deneme deneme",
                            "gsm": "12345678912",
                            "neighborhood": "Bahar Mh.",
                            "postalCode": "12345",
                            "tcId": "123456789012",
                            "taxNo": "vergino , opsiyoneldir",
                            "taxOffice": "vergi dairesi, opsiyoneldir"
                        },
                        "billingTemplate": {
                            "dueAmount": 149.5,
                            "installmentChargeWithVat": 0,
                            "originalPrice": 249.5,
                            "sellerInvoiceAmount": 149.5,
                            "totalMallDiscountPrice": 0,
                            "totalSellerDiscount": 100,
                            "totalServiceItemOriginalPrice": 0
                        },
                        "buyer": {
                            "email": "örnek@örnek.com",
                            "fullName": "deneme deneme ",
                            "id": "14362475",
                            "taxId": "",
                            "taxOffice": "",
                            "tcId": "123456789012"
                        },
                        "invoiceType": "1",
                        "serviceItemList": null,
                        "shippingAddress": {
                            "address": "adres",
                            "city": "Bursa",
                            "district": "Osmangazi",
                            "fullName": "deneme deneme",
                            "gsm": "12345678912",
                            "neighborhood": "Bahar Mh.",
                            "postalCode": "22233",
                            "tcId": "123456789012,
                            "taxNo": "vergino , opsiyoneldir",
                            "taxOffice": "vergi dairesi, opsiyoneldir"
                        },
                        "items": [
                            {
                                "approvedDate": "",
                                "attributes": {
                                    "attribute": [
                                        {
                                            "id": "354424918",
                                            "name": "Numara",
                                            "value": "42"
                                        }
                                    ]
                                },
                                "commission": 0,
                                "customTextOptionValues": null,
                                "deliveryFeeType": 3,
                                "dueAmount": 149.5,
                                "id": "239824246",
                                "installmentChargeWithVAT": 0,
                                "mallDiscount": 0,
                                "price": 249.5,
                                "productId": "439215602",
                                "productName": "KEMAL TANCA ERKEK DERİ SİYAH ANTİK FLOTTER AYAKKABI 586283EV",
                                "productSellerCode": "586283EV-SİYAH",
                                "quantity": 1,
                                "rejectReasonType": "OUT_OF_STOCK",
                                "sellerCouponDiscount": 0,
                                "sellerDiscount": 100,
                                "sellerInvoiceAmount": 149.5,
                                "shipmentInfo": {
                                    "campaignNumberStatus": 2,
                                    "shipmentCode": 223929523,
                                    "shipmentCompany": {
                                        "id": "345",
                                        "name": "Aras",
                                        "shortName": "ARAS"
                                    },
                                    "shipmentMethod": "1"
                                },
                                "shippingDate": "",
                                "sppApproved": "true",
                                "status": "8",
                                "totalMallDiscountPrice": 0,
                                "updatedDate": "07/09/2020 09:50",
                                "version": "7"
                            }
                        ]
                    }
                },
                "netPrice": 249.5,
                "grossPrice": 0,
                "items": [
                    {
                        "productName": "KEMAL TANCA ERKEK DERİ SİYAH ANTİK FLOTTER AYAKKABI 586283EV",
                        "productCode": "439215602",
                        "quantity": 1,
                        "price": 249.5,
                        "orderItemId": "239824246",
                        "totalPrice": 249.5,
                        "status": "ürün sipariş durumu"
                    }
                ]
            },
            {
                "customerInfo": {
                    "govId": "99999999999",
                    "fullName": "DenemeDeneme",
                    "email": "[email protected]"
                },
                "billingInfo": {
                    "address": "adress",
                    "city": " İstanbul ",
                    "district": "Ataşehir",
                    "postalCode": "",
                    "fullName": "Deneme Deneme",
                    "fullAddress": "adres Ataşehir İstanbul"
                },
                "shippingInfo": {
                    "address": "adres",
                    "city": " İstanbul ",
                    "postalCode": "",
                    "district": "Ataşehir",
                    "fullName": "Deneme Deneme",
                    "fullAddress": "adres Ataşehir  İstanbul "
                },
                "orderSource": 2,
                "sourceOrderId": "123456569",
                "rawData": {
                    "shipmentAddress": {
                        "id": 123456569,
                        "firstName": "Deneme",
                        "lastName": "Deneme",
                        "address1": "Adres ",
                        "address2": "",
                        "city": " İstanbul ",
                        "cityCode": 34,
                        "district": "Ataşehir",
                        "districtId": 40,
                        "postalCode": "",
                        "countryCode": "TR",
                        "neighborhoodId": 27126,
                        "neighborhood": "Barbaros Mah",
                        "fullAddress": "adres Ataşehir  İstanbul ",
                        "fullName": "Deneme Deneme"
                    },
                    "orderNumber": "111936111",
                    "grossAmount": 79,
                    "totalDiscount": 0,
                    "taxNumber": null,
                    "invoiceAddress": {
                        "id": 111156111,
                        "firstName": "Deneme",
                        "lastName": "Deneme",
                        "company": "",
                        "address1": "Adres ",
                        "address2": "",
                        "city": " İstanbul ",
                        "cityCode": 34,
                        "district": "Ataşehir",
                        "districtId": 40,
                        "postalCode": "",
                        "countryCode": "TR",
                        "neighborhoodId": 27126,
                        "neighborhood": "Adres",
                        "fullAddress": "Adres  Ataşehir  İstanbul ",
                        "fullName": "Deneme Deneme "
                    },
                    "customerFirstName": "Deneme",
                    "customerEmail": "[email protected]",
                    "customerId": 11160132,
                    "customerLastName": "Deneme",
                    "id": 111254111,
                    "cargoTrackingNumber": 1112811511190,
                    "cargoTrackingLink": "http://kargotakip.araskargo.com.tr/mainpage.aspx?code=1112811511190",
                    "cargoSenderNumber": "111134701111",
                    "cargoProviderName": "Aras Kargo Marketplace",
                    "lines": [
                        {
                            "quantity": 1,
                            "salesCampaignId": 530676,
                            "productSize": "Tek Ebat",
                            "merchantSku": "REBULICE3LÜ270ML",
                            "productName": "Ice Kolonya 270 Ml Cam Şişe 3 Adet HBV000002PYY1, one size",
                            "productCode": 67262725,
                            "merchantId": 116465,
                            "amount": 79,
                            "discount": 0,
                            "discountDetails": [
                                {
                                    "lineItemPrice": 79,
                                    "lineItemDiscount": 0
                                }
                            ],
                            "currencyCode": "TRY",
                            "id": 404332235,
                            "sku": "HBV000002PYY1",
                            "vatBaseAmount": 18,
                            "barcode": "HBV000002PYY1",
                            "orderLineItemStatusName": "Shipped",
                            "price": 79
                        }
                    ],
                    "orderDate": 1599751464358,
                    "tcIdentityNumber": "99999999999",
                    "currencyCode": "TRY",
                    "packageHistories": [
                        {
                            "createdDate": 1599816279977,
                            "status": "Invoiced"
                        },
                        {
                            "createdDate": 1599835535479,
                            "status": "Shipped"
                        },
                        {
                            "createdDate": 1599740666506,
                            "status": "Awaiting"
                        },
                        {
                            "createdDate": 1599740669644,
                            "status": "Created"
                        }
                    ],
                    "shipmentPackageStatus": "Shipped",
                    "deliveryType": "normal",
                    "estimatedDeliveryStartDate": 1599827064000,
                    "estimatedDeliveryEndDate": 1600950264000,
                    "totalPrice": 79
                },
                "netPrice": 79,
                "grossPrice": 79,
                "items": [
                    {
                        "productName": "Ice Kolonya 270 Ml Cam Şişe 3 Adet HBV000002PYY1, one size",
                        "productCode": "67262725",
                        "quantity": 1,
                        "price": 79,
                        "orderItemId": "111331115",
                        "totalPrice": 79
                    }
                ]
            }
        ]
    }
}
            

Last updated

Was this helpful?