GET Subscriber/{subscriberId}/Purchases/Contracts/Summary?ConsumerId={ConsumerId}&Skip={Skip}&Top={Top}&PurchaseStartDate={PurchaseStartDate}&PurchaseEndDate={PurchaseEndDate}

Gets contracts purchase history summary

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ConsumerId

integer

None.

Skip

integer

None.

Top

integer

None.

PurchaseStartDate

date

None.

PurchaseEndDate

date

None.

subscriberId

string

None.

Body Parameters

None.

Response Information

Resource Description

ContractsPurchaseHistorySummary
NameDescriptionTypeAdditional information
Summaries

Collection of PurchasedContractSummary

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Summaries": [
    {
      "Id": 1,
      "OrderId": 1,
      "Name": "sample string 2",
      "PurchaseDate": "2024-11-21T05:45:29.3535853-08:00",
      "Active": true,
      "Pricing": {
        "OrderPaymentAmount": 1.0,
        "Autopay": 2.0
      }
    },
    {
      "Id": 1,
      "OrderId": 1,
      "Name": "sample string 2",
      "PurchaseDate": "2024-11-21T05:45:29.3535853-08:00",
      "Active": true,
      "Pricing": {
        "OrderPaymentAmount": 1.0,
        "Autopay": 2.0
      }
    }
  ],
  "Count": 1
}

application/xml, text/xml

Sample:
<ContractsPurchaseHistorySummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.PurchaseHistory">
  <Count>1</Count>
  <Summaries>
    <PurchasedContractSummary>
      <Active>true</Active>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <OrderId>1</OrderId>
      <Pricing>
        <Autopay>2</Autopay>
        <OrderPaymentAmount>1</OrderPaymentAmount>
      </Pricing>
      <PurchaseDate>2024-11-21T05:45:29.3535853-08:00</PurchaseDate>
    </PurchasedContractSummary>
    <PurchasedContractSummary>
      <Active>true</Active>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <OrderId>1</OrderId>
      <Pricing>
        <Autopay>2</Autopay>
        <OrderPaymentAmount>1</OrderPaymentAmount>
      </Pricing>
      <PurchaseDate>2024-11-21T05:45:29.3535853-08:00</PurchaseDate>
    </PurchasedContractSummary>
  </Summaries>
</ContractsPurchaseHistorySummary>