cal-itp/littlepay

Implement PUT funding source expiry date endpoint

Closed this issue · 0 comments

Supports updating an existing (i.e. already linked) funding source in a concession group, to provide the expiry date.

Works the same way / same parameters as #17

Response codes:

  • 200 on success
  • 400 if the request is badly formatted
  • 404 if the group does not exist

Response body is similar to that in #28 (only the funding source information for the one that was updated is returned):

{
  "list": [
    {
      "id": "9002b586-9c53-43c6-b274-5615adb856ee",
      "participant_id": "test_participant",
      "concession_expiry": "2024-07-03T00:00:00Z",
      "concession_created_at": "2024-07-03T00:00:00Z",
      "concession_updated_at": "2024-07-03T00:00:00Z"
    }
  ],
  "total_count": 1
}