Payments
Retrieve user's usage
This API will get usage statistics for storage, delivery, and transcoding over a specified time period.
Field description:
-
storage (integer): The total storage used, in bytes.
-
storage_cost (string): The cost associated with the storage used, represented as a string.
-
delivery (integer): The total data delivered, in bytes.
-
delivery_cost (string): The cost associated with the data delivered, represented as a string.
-
transcode (integer): The total transcoding time, measured in seconds.
-
transcode_cost (string): The cost associated with transcoding, represented as a string.
Query
Headers
Response
curl --location 'https://api.aiozstream.network/api/payment/usage?from=1714232234&to=1824232234' \
--header 'accept: application/json' \
--header 'Authorization: Bearer your_access_token_here'Retrieve user's top ups
This API will get top up information for a specific user.
Field description:
-
transaction_id (string): The on-chain transaction hash of the top-up. Users can look it up on AIOZ Explorer to see full details.
-
from (string): The wallet address that initiated the top-up.
-
credit (string): The amount credited by this top-up. Kept as a string to preserve precision.
-
status (string): Processing state of the top-up, e.g. "pending", "success", or "failed".
-
created_at (string): The timestamp when the top-up was recorded.
Query
Headers
Response
curl --location 'https://api.aiozstream.network/api/payment/top_ups?limit=10&offset=0&orderBy=desc' \
--header 'accept: application/json' \
--header 'Authorization: Bearer your_access_token_here'Retrieve user's billings
This API will get billing information for a specific user.
Field description:
-
storage (integer): The total storage used, in bytes.
-
storage_cost (string): The cost associated with the storage used, represented as a string.
-
delivery (integer): The total data delivered, in bytes.
-
delivery_cost (string): The cost associated with the data delivered, represented as a string.
-
transcode (integer): The total transcoding time, measured in seconds.
-
transcode_cost (string): The cost associated with transcoding, represented as a string.
Query
Headers
Response
curl --location 'https://api.aiozstream.network/api/payment/billings?limit=10&offset=0&orderBy=desc' \
--header 'accept: application/json' \
--header 'Authorization: Bearer your_access_token_here'