Order Query (Marketplace)

  • Through this service; You can view your orders for the specified date range.
  • The date range should be a maximum of 7 days.
  • The status of the products you need to send to Modanisa is specified as Pending.
  • GET https://marketplace-stg.modanisa.com/api/marketplace/orderList
    Parameter Explanation Data Type Compulsory
    startDateTime Order creation date (beginning) Datetime (Y-m-d H:i:s) Yes
    endDateTime Order occurrence date (end) Datetime (Y-m-d H:i:s) Yes
    paymentStatus Order payment status - approved
    - pending
    - rejected
    No
    cargoLabelStatus Order shipping label status - ready (cargo label can be printed)
    - notReady (cargo label can not be printed)
    No
    dateType Order date time - order (order placement date)
    - payment (order payment date)
    No
    orderId Order Number integer No
    page Information on which page to bring orders integer Yes
    size Information on how many orders will bring on a page integer Yes

    You can make a request to the order inquiry service in two ways.
    1- Request ( raw body ):
    {
        "startDateTime": "2020-08-10 00:00:00",
        "endDateTime": "2020-08-17 00:00:00",
        "paymentStatus": "approved",
        "cargoLabelStatus": "ready",
    }
    
    
    2- Request ( url parameter ):
    /orderList?startDateTime=2019-06-29T00:00:00&endDateTime=2019-06-30T23:59:59&paymentStatus=approved&cargoLabelStatus=ready
    
    

    Response:
    {
        "success": true,
        "message": "success",
        "status_code": 200,
        "data": {
            "dateTimeRange": {
                "startDateTime": "2019-01-01 00:00:00",
                "endDateTime": "2019-01-05 23:59:59"
            },
            "orders": {
                "totalCount": 4,
                "details": [
                    {
                        "orderId": "42044394",
                        "isMarketplaceOrder": true
                        "date": "2020-12-15 00:36:54",
                        "paymentStatus": "approved",
                        "cargoLabelStatus": "ready",
                        "cargoLabel": "https://mdns-depo.s3.eu-west-1.amazonaws.com/label/aramex/2020/01/05/42044394/4204432323-label.jpg",
                        "cargoAmount": "75",
                        "shipmentInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey"
                        },
                        "invoiceInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey",
                            "company": "",
                            "TaxOffice": "",
                            "TaxNo": ""
                        },
                        "products": [
                            {
                                "productName": "Kazak - Kırmızı ",
                                "productId": "234234",
                                "variantId": "2196556",
                                "modanisaProductId": "543592",
                                "modanisaVariantId": "1603633",
                                "modanisaOrderProductId": "259574330",
                                "quantity": 1,
                                "price": "66.71",
                                "barcode": "8681367963249",
                                "currency": "TRY",
                                "status": "Pending",
                                "discount": "15.00",
                                "commission": "20"
                            },
                            {
                                "productName": "Kazak - sarı",
                                "productId": "345346",
                                "variantId": "2196554",
                                "modanisaProductId": "543592",
                                "modanisaVariantId": "1603631",
                                "modanisaOrderProductId": "259574331",
                                "quantity": 1,
                                "price": "66.71",
                                "barcode": "8681367963225",
                                "currency": "TRY",
                                "status": "Completed",
                                "discount": "15.00",
                                "commission": "20"
                            }
                        ]
                    },
                    {
                        "orderId": "42045880",
                        "isMarketplaceOrder": true
                        "date": "2019-01-01 02:23:47",
                        "paymentStatus": "approved",
                        "cargoLabelStatus": "ready",
                        "cargoLabel": "https://mdns-depo.s3.eu-west-1.amazonaws.com/label/yurtici/2019/01/05/42045880/42034545880_2-label.epl",
                        "cargoAmount": "75",
                        "shipmentInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey"
                        },
                        "invoiceInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey",
                            "company": "",
                            "TaxOffice": "",
                            "TaxNo": ""
                        },
                        "products": [
                            {
                                "productName": "Yelek - Siyah",
                                "productId": "2424234",
                                "variantId": "2134593",
                                "modanisaProductId": "674562",
                                "modanisaVariantId": "1828994",
                                "modanisaOrderProductId": "259579547",
                                "quantity": 1,
                                "price": "26.99",
                                "barcode": "8681358857069",
                                "currency": "TRY",
                                "status": "Pending",
                                "discount": "15.00",
                                "commission": "20"
                            }
                        ]
                    },
                    {
                        "orderId": "42050297",
                        "isMarketplaceOrder": true
                        "date": "2019-01-01 13:54:11",
                        "paymentStatus": "pending",
                        "cargoLabelStatus": "notReady",
                        "cargoLabel": "https://mdns-depo.s3.eu-west-1.amazonaws.com/label/aramex/2019/01/05/42050297/4205234240297_2-label.jpg",
                        "cargoAmount": "75",
                        "shipmentInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey"
                        },
                        "invoiceInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey",
                            "company": "",
                            "TaxOffice": "",
                            "TaxNo": ""
                        },
                        "products": [
                            {
                                "productName": "Gömlek - Mavi",
                                "productId": "234124",
                                "variantId": "2094664",
                                "modanisaProductId": "450017",
                                "modanisaVariantId": "1422492",
                                "modanisaOrderProductId": "259596864",
                                "quantity": 1,
                                "price": "59.29",
                                "barcode": "8681358991817",
                                "currency": "TRY",
                                "status": "Pending",
                                "discount": "15.00",
                                "commission": "20"
                            }
                        ]
                    },
                    {
                        "orderId": "42051340",
                        "isMarketplaceOrder": true
                        "date": "2019-01-01 14:54:17",
                        "paymentStatus": "approved",
                        "cargoLabelStatus": "notReady",
                        "cargoLabel": "",
                        "cargoAmount": "75",
                        "shipmentInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey"
                        },
                        "invoiceInfo": {
                            "fullName": "Adı Soyadı",
                            "address": "No 15/4 Eyalet sokak",
                            "district": "Kartal",
                            "city": "Istanbul",
                            "zip": "34340",
                            "phoneNumber": "+90544XXXXXXX",
                            "countryCod": "TR",
                            "country": "Turkey",
                            "company": "",
                            "TaxOffice": "",
                            "TaxNo": ""
                        },
                        "products": [
                            {
                                "productName": "Tunik - Gri",
                                "productId": "234234",
                                "variantId": "2226159",
                                "modanisaProductId": "569496",
                                "modanisaVariantId": "1648176",
                                "modanisaOrderProductId": "259600204",
                                "quantity": 1,
                                "price": "103.62",
                                "barcode": "8681358637531",
                                "currency": "TRY",
                                "status": "Pending",
                                "discount": "15.00",
                                "commission": "20"
                            }
                        ]
                    }
                ]
            },
            "companyInfo": {
                "name": "MODAN\u0130SA ELEKTRON\u0130K MA\u011eAZACILIK ve T\u0130C A.\u015e.",
                "address": "Tepe\u00f6ren Mahallesi, Eski Ankara Asfalt\u0131 Cd. No:177",
                "district": "Tuzla",
                "city": "\u0130stanbul",
                "zip": "34959",
                "email": "tedarik@modanisa.com",
                "phoneNumber": "+902164747473",
                "invoiceInfo": {
                    "address": "Altunizade Mahallesi Kuşbakışı Caddesi No:27/1",
                    "district": "Üsküdar",
                    "city": "İstanbul",
                    "zip": "34662",
                    "phoneNumber": "+902164747473",
                    "taxAdministration": "\u00dcsk\u00fcdar",
                    "taxNumber": "6220586224"
                }
            }
        }
    }