Skip to content

Get Charity Campaign Donations - wrong key on the amount #838

@BarryCarlyon

Description

@BarryCarlyon

Brief description

The API says target_amount that should be amount

How to reproduce

Call Get Charity Campaign Donations

    {
      "campaign_id": "2E7IjWnmxUdGrIeu1H6OUEW6kPb",
      "id": "2E7IjWnmxUdGrIeu1H6OUEW6kPb-15185913-2022-11-30T14:28:47Z",
      "target_amount": {
        "currency": "USD",
        "decimal_places": 2,
        "value": 100
      },
      "user_id": "15185913",
      "user_login": "barrycarlyon",
      "user_name": "BarryCarlyon"
    }

Expected behavior

Should be

    {
      "campaign_id": "2E7IjWnmxUdGrIeu1H6OUEW6kPb",
      "id": "2E7IjWnmxUdGrIeu1H6OUEW6kPb-15185913-2022-11-30T14:28:47Z",
      "amount": {
        "currency": "USD",
        "decimal_places": 2,
        "value": 100
      },
      "user_id": "15185913",
      "user_login": "barrycarlyon",
      "user_name": "BarryCarlyon"
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    product: apiAPI endpoints in the "helix" namespace

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions