I need to filter order data based on shipping and billing address name and telephone through rest api

For example In order to filter data through status my request url would be something like this:


let say this is my json decoded response from api, I only take the relevant part of response.

[billing_address] => Array
                   [address_type] => billing
                   [city] => Karachi
                   [country_id] => PK
                   [customer_address_id] => 20
                   [email] => [email protected]
                   [entity_id] => 718
                   [firstname] => Test
                   [lastname] => User
                   [parent_id] => 360
                   [postcode] => 
                   [region] => Azad Kashmir
                   [region_code] => JK
                   [region_id] => 569
                   [street] => Array
                            [0] => Dha phase 5 , near anees Hussain phase 6

                   [telephone] => `1234567890

Now I need to firstname, lastname and telephone in search criteria filter. So What would be my request url in order to filter data shipping and billing address name and telephone number

Any help, experience and knowledge sharing would be appreciated

  • I think for that GraphQL is better option than REST api. Commented Jul 30, 2019 at 7:08
  • Yes may be you are right but I eagerly need a solution through rest api and I am sure there should be a solution for this Commented Jul 30, 2019 at 7:11


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.