View Issue Details

IDProjectCategoryView StatusLast Update
0010577Talermerchant backendpublic2026-11-02 17:28
Reporterhtgoebel Assigned ToResolution deadline
ImplementerChristian Grothoff ReviewerFlorian Dold  
Release signed byChristian Grothoff Deployed byvecirex  
Verifierhtgoebel Communicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)30Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityalways
Status implementingResolutionopen 
Target Versionpost-1.0 
Summary0010577: Refund needs identifier or such
DescriptionWhen managing orders and refunds by a web-shop or ERP system, one needs to keep orders and refunds in sync between the ERP system and the backend. For orders this is done by the API returning an order-ID. For refunds there is no such thing. An ERP system can just guess the mapping passed on the data.

Expected: Some way to identify the refund.

Propsed solution:
Since the RefundDetails already contain a timestamp, I propose to add an optional timestamp field to RefundRequest (much like OrderCommon.timestamp). While still not 100% perfect due to duplicate refunds at the very same time, I expect this to be good enough.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2025-11-11 11:29

manager   ~0026372

We could just return the row ID of the refund operation, that'd be unique.

Christian Grothoff

2025-11-22 07:50

manager   ~0026577

Note that a single refund may result in multiple DB entries, one per coin impacted. So this would be multiple row IDs.

htgoebel

2026-06-30 11:02

developer   ~0029026

I'm pushing on this, since I have concrete user story:

Orders and refunds are managed by the ERP system. Now (for whatever reason) a refund is created directly in the Merchant Backend. Any refund created this way needs to be mirrored in the ERP system to ensure accounting matches the Merchatn Backend. For this, the ERP system needs some refund identifier. The refund timestamp would be okay, since refunds are always related to a order.

Since the RefundDetails already include a timestamp. I propose to return this timestamp - or return a RefundDetails struct.

Christian Grothoff

2026-06-30 21:34

manager   ~0029031

I'm aware you have a use-case. I don't like timestamps for this, time is not always monotonous. Fixing this properly will take more time than I have right now, but happy to discuss *clean* designs.

htgoebel

2026-07-19 10:45

developer   ~0029194

The RefundDetails already include a timestamp. I propose to return this timestamp - or return a RefundDetails struct.

Issue History

Date ModifiedUsernameFieldChange
2025-11-10 21:54htgoebelNew Issue
2025-11-11 11:29Christian GrothoffNote Added: 0026372
2025-11-11 11:41Christian GrothoffStatusnew => implementing
2025-11-11 11:41Christian GrothoffTarget Version => 1.6
2025-11-11 11:41Christian GrothoffAssigned To => Christian Grothoff
2025-11-11 11:41Christian GrothoffStatusimplementing => assigned
2025-11-11 11:41Christian GrothoffStatusassigned => implementing
2025-11-22 07:50Christian GrothoffNote Added: 0026577
2025-11-28 21:14Christian GrothoffSummaryRefund needs identifier or such => Refund needs identifier or such [4d]
2025-12-07 00:00Christian GrothoffTarget Version1.6 => post-1.0
2025-12-21 19:01Christian GrothoffAssigned ToChristian Grothoff =>
2026-01-26 06:04Christian GrothoffAssigned To => Christian Grothoff
2026-01-26 06:04Christian GrothoffStatusimplementing => assigned
2026-01-26 06:05Christian GrothoffStatusassigned => implementing
2026-02-07 12:45Christian GrothoffAssigned ToChristian Grothoff =>
2026-06-30 11:02htgoebelNote Added: 0029026
2026-06-30 21:34Christian GrothoffNote Added: 0029031
2026-07-19 10:45htgoebelNote Added: 0029194
2026-08-12 23:06Christian GrothoffAssigned To => Christian Grothoff
2026-08-12 23:06Christian GrothoffStatusimplementing => assigned
2026-08-12 23:06Christian GrothoffStatusassigned => implementing
2026-11-02 17:25Christian GrothoffAssigned ToChristian Grothoff =>
2026-11-02 17:25Christian GrothoffImplementer => Christian Grothoff
2026-11-02 17:25Christian GrothoffReviewer => Florian Dold
2026-11-02 17:25Christian GrothoffRelease signed by => Christian Grothoff
2026-11-02 17:25Christian GrothoffDeployed by => vecirex
2026-11-02 17:25Christian GrothoffVerifier => htgoebel
2026-11-02 17:28Christian GrothoffEstimated effort (hours) => 30
2026-11-02 17:28Christian GrothoffSummaryRefund needs identifier or such [4d] => Refund needs identifier or such