Status 400 - bad_request: "Bad JSON format”
{ "message": "Bad JSON format -> utils.converters.exceptions.ConverterException: utils.converters.JSON: Error parsing json: {\n \"additional_info\": {\n \"items\": [\n {\n \"id\": \"1\",\n \"title\": \"Point Mini\",\n \"description\": \"Point product for card payments via Bluetooth.\",\n \"installments\": 1,\n \"metadata\": null,\n \"payer\": {\n \"entity_type\": \"individual\",\n \"type\": \"customer\",\n \"email\": \"test_user_851323980@testuser.com\"\n },\n \"payment_method_id\": \"master\",\n \"token\":\"f1ca53f1ced59919f2eb954e5d94cea9\",\n \"transaction_amount\": 23,\n})", "error": "bad_request", "status": 400, "cause": [] } |
Causa: El post a la API se envió con un error de sintaxis.
Solución: Corroborar la sintaxis del post para realizar el request de forma correcta.