GET api/Spendwise?categoryID={categoryID}

Retrieves Spendwises based on the provided category.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
categoryID

The ID of the category to filter the Spendwises.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of Spendwises matching the provided category ID.

Collection of Spendwise
NameDescriptionTypeAdditional information
Id

The unique identifier of the Spend.

integer

None.

Description

The description of the Spend.

string

None.

Amount

The amount of the Spend.

decimal number

None.

Date

The date of the Spend.

date

None.

CategoryID

The category of the Spend.

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Description": "sample string 2",
    "Amount": 3.0,
    "Date": "2025-04-29T15:54:39.5027453+00:00",
    "CategoryID": 5
  },
  {
    "Id": 1,
    "Description": "sample string 2",
    "Amount": 3.0,
    "Date": "2025-04-29T15:54:39.5027453+00:00",
    "CategoryID": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfSpendwise xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <Spendwise>
    <Amount>3</Amount>
    <CategoryID>5</CategoryID>
    <Date>2025-04-29T15:54:39.5027453+00:00</Date>
    <Description>sample string 2</Description>
    <Id>1</Id>
  </Spendwise>
  <Spendwise>
    <Amount>3</Amount>
    <CategoryID>5</CategoryID>
    <Date>2025-04-29T15:54:39.5027453+00:00</Date>
    <Description>sample string 2</Description>
    <Id>1</Id>
  </Spendwise>
</ArrayOfSpendwise>