• Resolved Hassan Hossinie

    (@onlinerir)


    Hello

    When the request to display all withdrawals is sent in
    The result is the order of the display in reverse of the date

    Current result example

    [
    	{
    		"id": 1,
    		"amount": 100000,
    		"created": "2021-05-04T20:07:31",
    		"status": "cancelled",
    		"method": "paypal",
    	},
    	{
    		"id": 2,
    		"amount": 100000,
    		"created": "2021-05-05T20:07:31",
    		"status": "pending",
    		"method": "bank",
    	},
    	{
    		"id": 3,
    		"amount": 100000,
    		"created": "2021-05-06T20:07:31",
    		"status": "approved",
    		"method": "skril",
    	},
    	{
    		"id": 4,
    		"amount": 100000,
    		"created": "2021-05-07T20:07:31",
    		"status": "cancelled",
    		"method": "bank",
    	},
    	{
    		"id": 5,
    		"amount": 100000,
    		"created": "2021-05-08T20:07:31",
    		"status": "approved",
    		"method": "skril",
    	}
    ]

    But it must be so
    Based on the latest

    [
    	{
    		"id": 5,
    		"amount": 100000,
    		"created": "2021-05-08T20:07:31",
    		"status": "approved",
    		"method": "skril",
    	},
    	{
    		"id": 4,
    		"amount": 100000,
    		"created": "2021-05-07T20:07:31",
    		"status": "cancelled",
    		"method": "bank",
    	},
    	{
    		"id": 3,
    		"amount": 100000,
    		"created": "2021-05-06T20:07:31",
    		"status": "approved",
    		"method": "skril",
    	},
    	{
    		"id": 2,
    		"amount": 100000,
    		"created": "2021-05-05T20:07:31",
    		"status": "pending",
    		"method": "bank",
    	},
    	{
    		"id": 1,
    		"amount": 100000,
    		"created": "2021-05-04T20:07:31",
    		"status": "cancelled",
    		"method": "paypal",
    	},
    ]
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @onlinerir ,

    Can you please share the exact request that you sent to re-order the withdrawal requests?

    Thank you 🙂

    Thread Starter Hassan Hossinie

    (@onlinerir)

    I am developing on localhost

    This is the actual result of receiving all requests withdraws:

    [
      {
        "id": 1,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-04T20:07:31",
        "status": "cancelled",
        "method": "paypal",
        "method_title": "PayPal",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/1"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 2,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-04T20:11:29",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/2"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 3,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 100000,
        "created": "2021-05-07T19:09:58",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "با شماره پیگیری 123456789 پرداخت شد",
        "ip": "192.168.1.42",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/3"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 4,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:01:29",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/4"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 5,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:06",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/5"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 6,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:33",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/6"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 7,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:36",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/7"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 8,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T18:02:39",
        "status": "approved",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.2",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/8"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 9,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 2000,
        "created": "2021-05-08T19:41:30",
        "status": "cancelled",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/9"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      },
      {
        "id": 10,
        "user": {
          "id": 1,
          "store_name": "Rikad",
          "first_name": "soheil",
          "last_name": "pourahmadi",
          "email": "info@gmail.com",
          "social": {
            "fb": "",
            "twitter": "",
            "pinterest": "",
            "linkedin": "",
            "youtube": "",
            "instagram": "",
            "flickr": ""
          },
          "phone": "+12525594270",
          "show_email": false,
          "address": {
            "street_1": "",
            "street_2": "",
            "city": "",
            "zip": "",
            "country": "US",
            "state": ""
          },
          "location": ",",
          "banner": "",
          "banner_id": 0,
          "gravatar": "http://192.168.1.2/storina/wp-content/uploads/2021/05/cropped-rn_image_picker_lib_temp_ea626390-22e0-4651-b72a-5b9e8af8b504-1.jpg",
          "gravatar_id": 986,
          "shop_url": "http://192.168.1.2/storina/store/soheil/",
          "products_per_page": 10,
          "show_more_product_tab": true,
          "toc_enabled": false,
          "store_toc": "",
          "featured": false,
          "rating": {
            "rating": "4.50",
            "count": 2
          },
          "enabled": true,
          "registered": "2020-12-12 12:50:55",
          "payment": {
            "bank": {
              "ac_name": "1",
              "ac_number": "2",
              "bank_name": "3",
              "bank_addr": "4",
              "routing_number": "5",
              "iban": "6",
              "swift": "7"
            }
          },
          "trusted": false,
          "store_open_close": {
            "enabled": true,
            "time": {
              "sunday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "monday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "tuesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "wednesday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "thursday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "friday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              },
              "saturday": {
                "status": "close",
                "opening_time": "",
                "closing_time": ""
              }
            },
            "open_notice": "Store is open",
            "close_notice": "Store is close"
          }
        },
        "amount": 586,
        "created": "2021-05-08T19:42:02",
        "status": "cancelled",
        "method": "bank",
        "method_title": "Bank Transfer",
        "note": "",
        "ip": "192.168.1.5",
        "_links": {
          "self": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw/10"
            }
          ],
          "collection": [
            {
              "href": "http://192.168.1.2/storina/wp-json/dokan/v1/withdraw"
            }
          ]
        }
      }
    ]

    I want to be sort on the latest.
    But now the order of the show is based on the oldest.

    Hello @onlinerir ,

    It looks like we do not have an orderby feature for withdrawal requests. You can submit this as a feature request request here: https://github.com/weDevsOfficial/dokan/issues/new/choose

    Thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.