Monta
Monta API

Subscription Purchases


Retrieve a list of subscription purchases

GET
https://partner-api.monta.com
/api/v1/subscription-purchases

Required scope: subscriptions:read
Organization authorization: supported

Retrieve a list of subscription purchases › query Parameters

page
​integer · int32

page number to retrieve (starts with 0)

Default: 0
perPage
​integer · int32

number of items per page (between 1 and 100, default 10)

Default: 10
subscriptionId
​integer | null · int64

Filter subscription purchases by subscription id

Example: 1
includeDeleted
​boolean | null

Includes deleted resources in the response

Example: true

Retrieve a list of subscription purchases › Responses

List of subscription purchases that match the criteria

​SubscriptionPurchase[] · required
​MontaPage.Meta · required

Retrieve a subscription purchase

GET
https://partner-api.monta.com
/api/v1/subscription-purchases/{subscriptionPurchaseId}

Required scope: subscriptions:read
Organization authorization: supported

Retrieve a subscription purchase › path Parameters

subscriptionPurchaseId
​integer · int64 · required

Retrieve a subscription purchase › Responses

Subscription purchase with provided id

type
​string · enum · required

The type of this subscription purchase

Enum values:
pending
diff
unknown
Example: period
​object · required

The currency for this purchase

​object · required

The subscription this purchase refers to

createdAt
​string · date-time · required

Creation date of this subscription purchase

Example: 2022-05-12T15:56:45.99Z
id
​integer · int64

Id of the subscription purchase

Example: 1
note
​string | null

Note for this subscription purchase

Example: 1
discountPercentage
​number · double

The discount percentage applied to this purchase

Example: 25
discountAbsolute
​number · double

The absolute discount applied to this purchase

Example: 50
originalAmount
​number · double

The original amount of this purchase

Example: 100
discountAmount
​number · double

The discounted amount of this purchase

Example: 75
totalAmount
​number · double

The total amount of this purchase

Example: 25
updatedAt
​string | null · date-time

Update date of this subscription purchase

Example: 2022-05-12T16:56:45.99Z
deletedAt
​string | null · date-time

Deleted date of this subscription purchase

Example: 2022-05-12T16:56:45.99Z