Skip to content

cancel_order fails "Bad Request" #13

@remarqUK

Description

@remarqUK

If you try to cancel an order through this API you get a 400 Bad Request error

I managed to track it down to the payload that is being used to authenticate the request. This is used to generate headers for the request.

headers = self._auth_headers(path, method='DELETE', body=json_data)

In a delete request the variable json_data is empty. I believe this is why the headers fail. By setting the json_data value to "{}" (empty json) then it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions