Discussions

Ask a Question
Back to All

Parametros al invocar Property Search con filtros

Que tal, estoy intentando consumir la API de search de properties.
Estoy armando la url desde java.

Cuando invoco a la API sin encodear:
https://www.tokkobroker.com/api/v1/property/search?lang=es_ar&format=json&key=APIKEY&data={"current_localization_id":1,"current_localization_type":"country","price_from":0,"price_to":10000000,"operation_types":[1,2,3],"property_types":[1,2,3,4,5,6,7],"filters":[["branch_id","=","66038"]]}

Me tira el error

Exception: IllegalArgumentException
Code: DGB-500-FW
DevMessage: Internal server error
excMessage: Not enough variable values available to expand '"current_localization_id"'
Path: /api/test/66038
traceId: df6d25fb-24e6-4e60-8458-e2e44cd19d52
Date: Wed May 01 20:21:14 ART 2024

Y cuando encodeo el atributo data:

https://www.tokkobroker.com/api/v1/property/search?lang=es_ar&format=json&key=APIKEY&data=%7B%22current_localization_id%22%3A1%2C%22current_localization_type%22%3A%22country%22%2C%22price_from%22%3A0%2C%22price_to%22%3A10000000%2C%22operation_types%22%3A%5B1%2C2%2C3%5D%2C%22property_types%22%3A%5B1%2C2%2C3%2C4%2C5%2C6%2C7%5D%2C%22filters%22%3A%5B%5B%22branch_id%22%2C%22%3D%22%2C%2266038%22%5D%5D%7D

Me da el error:

Exception: BadRequest
Code: DGB-500-FW
DevMessage: Internal server error
excMessage: 400 Bad Request: "Error parsing search data object: No JSON object could be decoded"
Path: /api/test/66038
traceId: 18577134-e292-4e48-8bd2-e468472c9865
Date: Wed May 01 20:25:16 ART 2024

Que estaria haciendo mal...?
Desde ya muchas gracias!