Subscription usage billing

Filter usages for a subscription

get
Path parameters
SubscriptionReferencestringRequired

Unique code which represents a subscription

Query parameters
IntervalStartstringRequired

The IntervalStart date in YYY-MM-DD HH:MM:SS format to filter by

IntervalEndstringRequired

The IntervalEnd date in YYY-MM-DD HH:MM:SS format to filter by

PageintegerRequired

The page to be returned

LimitintegerRequired

The number of results per page. [MAX 100]

OptionCodestringOptional

The additional price option code to filter by.

RenewalOrderReferenceintegerOptional

The renewal order unique identifier.

Responses
200

The filtered usages

application/json
get
/subscriptions/{SubscriptionReference}/usages

Save usages for a subscription

post
Path parameters
SubscriptionReferencestringRequired

Unique code which represents a subscription

Bodyobject[]
OptionCodestringRequired

The price option group code

Example: scale
UsageStartstringRequired

The date the usage came in effect.

Example: 2018-09-03 17:28:32
UsageEndstringRequired

The date the usage was stopped being used.

Example: 2018-09-03 17:28:32
Unitsinteger · int32RequiredExample: 15
DescriptionstringOptionalExample: Subscription usage for September
Responses
200

The saved usages

application/json
UsageReferenceintegerOptional

The unique usage identifier

Example: 123459876
SubscriptionReferencestringRequired

The subscription code

Example: 83FE4FEF2
OptionCodestringRequired

The price option group code

Example: scale
UsageStartstringRequired

The date the usage came in effect.

Example: 2018-09-03 17:28:32
UsageEndstringRequired

The date the usage was stopped being used.

Example: 2018-09-03 17:28:32
Unitsinteger · int32RequiredExample: 15
DescriptionstringOptionalExample: Subscription usage for September
post
/subscriptions/{SubscriptionReference}/usages

Deletes one or more usage entries based on the provided criteria

delete
Path parameters
SubscriptionReferencestringRequired

Unique code which represents a subscription

Responses
200

No content

No content

delete
/subscriptions/{SubscriptionReference}/usages

No content

Update a specific usage entry

put
Path parameters
SubscriptionReferencestringRequired

Unique code which represents a subscription

UsageReferenceintegerRequired

Unique integer which represents a subscription usage

Body
UnitsintegerOptional

The new units to be updated on the subscription usage.

DescriptionstringOptional

The new description to be updated on the subscription usage.

Responses
200

The updated usage

application/json
UsageReferenceintegerOptional

The unique usage identifier

Example: 123459876
SubscriptionReferencestringRequired

The subscription code

Example: 83FE4FEF2
OptionCodestringRequired

The price option group code

Example: scale
UsageStartstringRequired

The date the usage came in effect.

Example: 2018-09-03 17:28:32
UsageEndstringRequired

The date the usage was stopped being used.

Example: 2018-09-03 17:28:32
Unitsinteger · int32RequiredExample: 15
DescriptionstringOptionalExample: Subscription usage for September
put
/subscriptions/{SubscriptionReference}/usages/{UsageReference}

Last updated

Was this helpful?