When updating a Card by doing the following request:
PUT https://api.bunq.com/v1/user/<user_id>/card/<card_id>
{
status: "DEACTIVATED"
}
I get the following error:
Client error: `PUT https://api.bunq.com/v1/user/<user_id>/card/<card_id>` resulted in a `404 Not Found` response:
{"Error":[{"error_description":"The item you requested could not be found.","error_description_translated":"The item you (truncated...)
You might think that the id of the card simply does not exist, but I've checked this again and again. The easiest way to show this is that updating the card_limit does work perfectly.
PUT https://api.bunq.com/v1/user/<user_id>/card/<card_id>
{
"card_limit":
{
"value":"1124",
"currency":"EUR"
}
}
The result something like:
[
{
"CardDebit":{"id":<card_id>,
"created":"2019-05-13 08:50:42.268182",
"updated":"2019-11-26 21:01:07.858004",
"public_uuid":"xxxxxxxxxxxxxxx",
......<skipped output>...... ,
"card_limit":
{"currency":"EUR","value":"1124.00"},
"card_limit_atm": {"currency":"EUR","value":"500.00"}
......<skipped output>...... ,
}
}
]
So, either the error message that is returned is wrong AND what I am sending is wrong.. but it's strange that it returns a 404 while it's the same card that is updated. I can also confirm that the card_limit is updated.
Note that Im not using the SDK but simply using the docs to get it working.
Thanks,
Richard Torenvliet