Skip to content

API Returns 400 “Please bind the device first” Error Even Though Device Is Already Bound #56

@Benyaq

Description

@Benyaq

Description:

I’m encountering an issue with the device binding API. Although the device is already bound via the official Zendure App, making a POST request to the API endpoint still returns a 400 error with the message:

{"code":400,"success":false,"data":{},"msg":"Please bind the device first"}

Steps to Reproduce:
1. Bind your device using the official Zendure App.
2. Verify that the device appears as bound within the app.
3. Execute the following cURL command (using the exact serial number and email as shown in the app):

curl -H "Content-Type: application/json" -X POST -d '{"snNumber": "YOUR_DEVICE_SERIAL", "account": "YOUR_EMAIL"}' https://app.zendure.tech/eu/developer/api/apply

4.	Observe that the API returns a 400 error.

Expected Behavior:

The API should return a successful response containing the MQTT connection details (appKey, secret, mqttUrl, and port) when the device is already bound.

Actual Behavior:

A 400 error is returned with the message:
{"code":400,"success":false,"data":{},"msg":"Please bind the device first"}

Environment Details:
• Device Model: [Hyper 2000]
• Zendure App Version: [5.4.1]
• API Endpoint Used: https://app.zendure.tech/eu/developer/api/apply
• Account Email: [my email as used in the app]
• Serial Number: [the exact serial number from the app]

Additional Notes:
• I have confirmed that both the serial number and the email address exactly match the details shown in the app.
• I have also allowed time for system synchronization after binding, but the issue persists.
• Any guidance on further debugging or additional information required would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions