Retrieve subscription history.¶
Method¶
GET https://papi.afi.ai/api/v1/orgs/{org_id}/licensing/subscriptions/history
Description¶
Returns historical usage for the organization's subscriptions over the requested period. If the licensed quantity changes during that period, the response includes multiple records for the same subscription.
Only post-pay subscriptions are included in the response.
Path params¶
|
org_id
string
required
ID of the organization whose subscription history to retrieve. |
Query params¶
|
start
date-time
Start of the reporting window. Use RFC 3339 format. The window must span 1 to 40 days. |
|
end
date-time
End of the reporting window. Use RFC 3339 format. Must be at least one hour before the current time. |
curl -X GET \
-H 'Authorization: {api-key}' \
https://papi.afi.ai/api/v1/orgs/{org_id}/licensing/subscriptions/history
Successful response (200) schema¶
|
object
SubscriptionHistoryResult is the response to a subscription history request. |
||||||||
items
array of objects
|