View Issue Details

IDProjectCategoryView StatusLast Update
0011689Talermerchant backendpublic2026-07-27 20:48
Reportersebasjm Assigned ToFlorian Dold  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0011689: getting orders with positive limits returns empty
Description$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=1' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": []
}

I expected to return with the latest order inserted.
TagsNo tags attached.

Activities

sebasjm

2026-07-27 20:48

developer   ~0029238

$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": [
    {
      "order_id": "2026.208-4X51GRG000000",
      "row_id": 5,
      "timestamp": {
        "t_s": 1785173238
      },
      "amount": "CHF:1",
      "summary": "we",
      "refundable": false,
      "paid": false
    },
    {
      "order_id": "2026.208-G8C7E60000000",
      "row_id": 4,
      "timestamp": {
        "t_s": 1785169704
      },
      "amount": "CHF:1",
      "summary": "we",
      "refundable": false,
      "paid": false
    },
    {
      "order_id": "2026.208-RCMDYB8000000",
      "row_id": 3,
      "timestamp": {
        "t_s": 1785164451
      },
      "amount": "CHF:1",
      "refund_amount": "CHF:0",
      "pending_refund_amount": "CHF:0",
      "summary": "asdf2",
      "refundable": false,
      "paid": true
    }
  ]
}

This is bad, row id 5 is unpaid
$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": []
}

Without filter works
$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": [
    {
      "order_id": "2026.208-4X51GRG000000",
      "row_id": 5,
      "timestamp": {
        "t_s": 1785173238
      },
      "amount": "CHF:1",
      "summary": "we",
      "refundable": false,
      "paid": false
    }
  ]
}

This is ok, row id 3 is paid
$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?paid=NO&limit=-1&offset=4' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": []
}


$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=-1&offset=4' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": [
    {
      "order_id": "2026.208-RCMDYB8000000",
      "row_id": 3,
      "timestamp": {
        "t_s": 1785164451
      },
      "amount": "CHF:1",
      "refund_amount": "CHF:0",
      "pending_refund_amount": "CHF:0",
      "summary": "asdf2",
      "refundable": false,
      "paid": true
    }
  ]
}

$ curl 'https://stage.my.taler-ops.ch/instances/tops/private/orders?limit=1&offset=4' -H 'Authorization: Bearer secret-token:xxx'
{
  "orders": [
    {
      "order_id": "2026.208-4X51GRG000000",
      "row_id": 5,
      "timestamp": {
        "t_s": 1785173238
      },
      "amount": "CHF:1",
      "summary": "we",
      "refundable": false,
      "paid": false
    }
  ]
}

Issue History

Date Modified Username Field Change
2026-07-27 20:41 sebasjm New Issue
2026-07-27 20:41 sebasjm Status new => assigned
2026-07-27 20:41 sebasjm Assigned To => Florian Dold
2026-07-27 20:41 sebasjm Description Updated
2026-07-27 20:48 sebasjm Note Added: 0029238