View Issue Details

IDProjectCategoryView StatusLast Update
0008770Talerspecificationpublic2024-04-26 22:19
Reportersebasjm Assigned ToResolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytextReproducibilityalways
Status implementingResolutionopen 
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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2024-04-26 22:19

manager   ~0022310

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

Issue History

Date ModifiedUsernameFieldChange
2024-04-24 17:12sebasjmNew Issue
2024-04-24 17:12sebasjmStatusnew => assigned
2024-04-24 17:12sebasjmAssigned To => Christian Grothoff
2024-04-26 22:18Christian GrothoffSeverityminor => text
2024-04-26 22:19Christian GrothoffAssigned ToChristian Grothoff =>
2024-04-26 22:19Christian GrothoffStatusassigned => implementing
2024-04-26 22:19Christian GrothoffTarget Version0.11 =>
2024-04-26 22:19Christian GrothoffNote Added: 0022310
2024-04-26 22:19Christian GrothoffProduct Version0.11 => git (master)
2024-04-26 22:19Christian GrothoffTarget Version => post-1.0