POST api/PurchaseHistory

Request Information

URI Parameters

None.

Body Parameters

PurchaseHistoryRequestModel
NameDescriptionTypeAdditional information
PersonId

globally unique identifier

None.

StartDate

date

None.

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonId": "8f192af1-2fc3-491d-8e07-12ea427e3997",
  "StartDate": "2025-12-06T03:48:59.116103+00:00",
  "EndDate": "2025-12-06T03:48:59.116103+00:00"
}

application/xml, text/xml

Sample:
<PurchaseHistoryRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Students">
  <EndDate>2025-12-06T03:48:59.116103+00:00</EndDate>
  <PersonId>8f192af1-2fc3-491d-8e07-12ea427e3997</PersonId>
  <StartDate>2025-12-06T03:48:59.116103+00:00</StartDate>
</PurchaseHistoryRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseHistoryRequestModel'.

Response Information

Resource Description

Collection of PurchaseHistoryModel
NameDescriptionTypeAdditional information
TransactionDate

date

None.

TransactionType

string

None.

TransactionDescription

string

None.

Amount

decimal number

None.

IsMakeItalic

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TransactionDate": "2025-12-06T03:48:59.116103+00:00",
    "TransactionType": "sample string 2",
    "TransactionDescription": "sample string 3",
    "Amount": 4.0,
    "IsMakeItalic": true
  },
  {
    "TransactionDate": "2025-12-06T03:48:59.116103+00:00",
    "TransactionType": "sample string 2",
    "TransactionDescription": "sample string 3",
    "Amount": 4.0,
    "IsMakeItalic": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseHistoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Students">
  <PurchaseHistoryModel>
    <Amount>4</Amount>
    <IsMakeItalic>true</IsMakeItalic>
    <TransactionDate>2025-12-06T03:48:59.116103+00:00</TransactionDate>
    <TransactionDescription>sample string 3</TransactionDescription>
    <TransactionType>sample string 2</TransactionType>
  </PurchaseHistoryModel>
  <PurchaseHistoryModel>
    <Amount>4</Amount>
    <IsMakeItalic>true</IsMakeItalic>
    <TransactionDate>2025-12-06T03:48:59.116103+00:00</TransactionDate>
    <TransactionDescription>sample string 3</TransactionDescription>
    <TransactionType>sample string 2</TransactionType>
  </PurchaseHistoryModel>
</ArrayOfPurchaseHistoryModel>