Usages
Create a usage
POST
https://api.piriod.com/usages/
Creates a new Usage object.
Request Body
Name
Type
Description
subscription_line
string
ID of a Subscription Line object.
date_time
string
Datetime of usage record. Format YYYY-MM-DD HH:mm:ss
quantity
number
The usage quantity for the specified datetime.
List usages
GET
https://api.piriod.com/usages/
Retrieves a list of Usages objects.
Query Parameters
Name
Type
Description
date_time
string
Datetime to filter usage records.
subscription_line
string
ID to filter usage records by Subscription Line object.
Destroy a usage
DELETE
https://api.piriod.com/usages/{{id}}/
Destroy a Usage object.
Path Parameters
Name
Type
Description
id
string
ID of the Usage object.
Last updated