View Issue Details

IDProjectCategoryView StatusLast Update
0008770Talerspecificationpublic2024-04-27 00:19
Reportersebasjm Assigned To 
PrioritynormalSeveritytextReproducibilityalways
Status confirmedResolutionopen 
Product Versiongit (master) 
Target Versionpost-1.0 
Summary0008770: add taler error code in merchant/exchange spec
Descriptionall REST API and wallet API call should also describe the TalerErrorCode in case of unsuccessful call.

It will be more appreciated in merchant since it will have a direct impact in merchant backoffice
https://docs.taler.net/core/api-merchant.html

but also it will be nice to have in the exchange
https://docs.taler.net/core/api-exchange.html

example of expected rest api definition:

https://docs.taler.net/core/api-bank-integration.html#post--withdrawal-operation-$WITHDRAWAL_ID

409 Conflict:
        TALER_EC_BANK_WITHDRAWAL_OPERATION_RESERVE_SELECTION_CONFLICT: The wallet selected a different exchange or reserve public key under the same withdrawal ID.
        TALER_EC_BANK_DUPLICATE_RESERVE_PUB_SUBJECT: the reserve public key is already used.
        TALER_EC_BANK_UNKNOWN_ACCOUNT: the selected exchange account was not found.


 in this way we know, not just the http status code but the EC and we can handle better in the UI (showing custom message or doing some custom logic)
TagsNo tags attached.

Activities

Christian Grothoff

2024-04-27 00:19

manager   ~0022310

Yes, reasonable, but not something I will have the time for, and certainly not for 0.11.

Issue History

Date Modified Username Field Change
2024-04-24 19:12 sebasjm New Issue
2024-04-24 19:12 sebasjm Status new => assigned
2024-04-24 19:12 sebasjm Assigned To => Christian Grothoff
2024-04-27 00:18 Christian Grothoff Severity minor => text
2024-04-27 00:19 Christian Grothoff Assigned To Christian Grothoff =>
2024-04-27 00:19 Christian Grothoff Status assigned => confirmed
2024-04-27 00:19 Christian Grothoff Target Version 0.11 =>
2024-04-27 00:19 Christian Grothoff Note Added: 0022310
2024-04-27 00:19 Christian Grothoff Product Version 0.11 => git (master)
2024-04-27 00:19 Christian Grothoff Target Version => post-1.0