Replies: 3 comments 6 replies
-
You can't convert a transaction into a transfer like that. So this is not a bug. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm using this a lot, I detect with a script if a withdrawal is a transfer, and I change it with the api! It works ok, but I have to inform the destination_name, because if I do it with destination_id it does not work |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support guidelines
I've found a bug and checked that ...
Description
When I do a PUT to update a trsnasaction I inform
{ "apply_rules": false, "fire_webhooks": false, "transactions": [ { "type": "transfer", "source_id": 7, "destination_id": 13 } ] }
This fails with error:
{ "message": "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\". (and 1 more error)", "errors": { "transactions.0.destination_id": [ "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\"." ], "transactions.0.destination_name": [ "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\"." ] } }
Stating that it cant find a destination account with the number 13.
But If I supply the account name destination_name, it works and the transaction is done to the account with the id 13
Thank You
Debug information
{ "message": "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\". (and 1 more error)", "errors": { "transactions.0.destination_id": [ "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\"." ], "transactions.0.destination_name": [ "Não foi possível encontrar uma conta de destino válida ao pesquisar pelo ID \"13\" ou nome \"\"." ] } }
Expected behaviour
It sould assume the destination_id 13 and do the update
Steps to reproduce
{ "apply_rules": false, "fire_webhooks": false, "transactions": [ { "type": "transfer", "source_id": <<source id>>, "destination_id": <<destination id>> } ] }
Additional info
No response
Beta Was this translation helpful? Give feedback.
All reactions