Back to endpoints

Get all sold memberships

GET api/V3/{language}/org/{orgIdentifier}/memberships/sold

?from={from}

&to={to}

&page={page}

&perPage={perPage}

Get all the membership sold for this org (defaults to the last 30 days).

Request Information

URI Parameters

PARAMETERS
language (string)

Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en'

Required
orgIdentifier (string)

Amilia-specific organization identifier. This identifier can be either the organization number, such as 8008, or the organization URL identifier. You can find that by looking at the URL of your Amilia store. It may look like lower-case words separated by a dash, such as forest-explorers. Note that in v2 and v1 we call that the 'rewrite URL'.

Required
from (date)

Start date formatted as YYYY-MM-DD. Inclusive in all versions of the API. Default value is null

Optional
to (date)

End date formatted as YYYY-MM-DD. Inclusive in version 3, exclusive in previous versions of the API. Default value is null

Optional
page (integer)

Result page number that appears first.

Default value is 1

Optional
perPage (integer)

Number of results per page.

Default value is 200

Optional

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
MembershipId (integer)
InvoiceItemId (integer)
PurchasedDate (date)

Date when resource was purchased. Format is 9999-12-31

Membership (SummaryPayload)
Person (PersonSummaryApiModelV3)

Response Formats

CODE SAMPLE JSON
[
  {
    "MembershipId": 1,
    "InvoiceItemId": 2,
    "PurchasedDate": "2022-09-01T12:47:27.0369976-04:00",
    "Membership": {
      "Id": 1,
      "Name": "string 2"
    },
    "Person": {
      "Id": 1,
      "FirstName": "string 2",
      "LastName": "string 3",
      "FullName": "string 4",
      "DateOfBirth": "2022-09-01",
      "Email": "string 5",
      "Telephone": "string 6",
      "TelephoneMobile": "string 7",
      "TelephoneWork": "string 8"
    }
  },
  {
    "MembershipId": 1,
    "InvoiceItemId": 2,
    "PurchasedDate": "2022-09-01T12:47:27.0369976-04:00",
    "Membership": {
      "Id": 1,
      "Name": "string 2"
    },
    "Person": {
      "Id": 1,
      "FirstName": "string 2",
      "LastName": "string 3",
      "FullName": "string 4",
      "DateOfBirth": "2022-09-01",
      "Email": "string 5",
      "Telephone": "string 6",
      "TelephoneMobile": "string 7",
      "TelephoneWork": "string 8"
    }
  }
]