Order Query V2

  • 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/orderListV2
    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
    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
    sort Sorting of orders by date - ASC (old to new)
    - DESC (new to old)
    No

    paymentStatus Descriptions:

    • approved: The payment for the order has been successfully received, and the products under the order with a "pending" status must be sent.
    • pending: Order is waiting for payment confirmation. Orders in this situation should be questioned until their status is
      "approved" or "rejected".
    • rejected: The payment for the order could not be received, the order was canceled.

    dateType Descriptions:

    • order : If an inquiry is made according to the order date, you are expected to reserve the product in the order until the payment confirmation is received, so when the order is finalized with the payment confirmation, the situation of being out of stock is prevented. In this case, an inquiry should be made every few minutes for the last 48 hours.
    • payment: When an inquiry is made according to the payment date, only the orders whose payment has been finalized are listed and the product is reserved. In this case, an inquiry should be made every few minutes for the last 48 hours.


    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",
        "page": "1",
        "size": "100"
    }
    
    
    2- Request ( url parameter ):
    /orderList?startDateTime=2019-06-29T00:00:00&endDateTime=2019-06-30T23:59:59
    
    

    Response:
    {
        "success": true,
        "message": "success",
        "status_code": 200,
        "data": {
            "dateTimeRange": {
                "startDateTime": "2020-08-10 00:00:00",
                "endDateTime": "2020-08-17 00:00:00"
            },
            "orders": {
                "totalCount": 2,
                "details": [
                    {
                        "orderId": "612348912365",
                        "paymentStatus": "approved",
                        "date": "2020-08-12 16:03:43",
                        "products": [
                            {
                                "productName": "Beyaz Tunik",
                                "productId": "12345-Beyaz",
                                "variantId": "645234",
                                "categoryId": "64523",
                                "brandId": "64522",
                                "modanisaProductId": "97654",
                                "modanisaVariantId": "765543",
                                "modanisaOrderProductId" : "2234765543",
                                "price": "48.993",
                                "quantity": 1,
                                "barcode": "1BARCODE1",
                                "alternative_barcode": "8682446256221",
                                "currency": "TRY",
                                "status": "Pending",
                                "optionNane": "38 Numara",
                                "optionId": "440",
                                "colorName": "Kırmızı",
                                "colorId": "849"
                            }
                        ]
                    },
                    {
                        "orderId": "4912304983",
                        "paymentStatus": "pending",
                        "date": "2020-08-12 19:45:31",
                        "products": [
                            {
                                "productName": "Kırmızı Tunik",
                                "productId": "12345-Kırmızı",
                                "variantId": "13252",
                                "categoryId": "64523",
                                "brandId": "64522",
                                "modanisaProductId": "6543123",
                                "modanisaVariantId": "345346",
                                "modanisaOrderProductId" : "2234765544",
                                "price": "27.993",
                                "quantity": 1,
                                "barcode": "123BARCODE123",
                                "alternative_barcode": null,
                                "currency": "TRY",
                                "status": "Completed",
                                "optionNane": "40 Numara",
                                "optionId": "441",
                                "colorName": "Kırmızı",
                                "colorId": "849"
                            }
                        ]
                    },
                    {
                        "orderId": "4912304983",
                        "paymentStatus": "rejected",
                        "date": "2020-098-12 19:45:31",
                        "products": [
                            {
                                "productName": "Çizgili Tunik",
                                "productId": "12345-Yeşil",
                                "variantId": "132521",
                                "categoryId": "64523",
                                "brandId": "64522",
                                "modanisaProductId": "65423123",
                                "modanisaVariantId": "3453346",
                                "modanisaOrderProductId" : "22334765544",
                                "price": "127.993",
                                "quantity": 1,
                                "barcode": "123BARCODEWE3",
                                "alternative_barcode": null,
                                "currency": "TRY",
                                "status": "Completed",
                                "optionNane": "42 Numara",
                                "optionId": "442",
                                "colorName": "Kırmızı",
                                "colorId": "849"
                            }
                        ]
                    }
                ]
            },
            ,
            "pagination": {
                "page": 1.0,
                "totalPage": 1.0,
                "count": 2.0,
                "limit": 100.0
            },
            "companyInfo": {
                "name": "MODANİSA ELEKTRONİK MAĞAZACILIK ve TİC A.Ş.",
                "address": "Tepeören Mahallesi, Eski Ankara Asfaltı Cd. No:177",
                "district": "Tuzla",
                "city": "İstanbul",
                "zip": "34959",
                "email": "tedarik@modanisa.com",
                "phoneNumber": "+902164747473",
                "invoiceInfo": {
                    "name": "MODANİSA ELEKTRONİK MAĞAZACILIK ve TİC A.Ş.",
                    "address": "Altunizade Mahallesi Kuşbakışı Caddesi No:27/1",
                    "district": "Üsküdar",
                    "city": "İstanbul",
                    "zip": "34662",
                    "phoneNumber": "+902164747473",
                    "taxAdministration": "Üsküdar",
                    "taxNumber": "6220586224"
                }
            }
        }
    }