NiCE Billing - ProductUsage API
The Billing - ProductUsage API from NiCE — 2 operation(s) for billing - productusage.
The Billing - ProductUsage API from NiCE — 2 operation(s) for billing - productusage.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nice:nice-billing-productusage-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nice Billing - ProductUsage API
version: v1
description: 'Operations tagged Billing - ProductUsage across 2 of this provider''s published API definitions: nice-cxone-billing.json, nice-cxone-billing-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Billing - ProductUsage
paths:
/billing/v1.0/product-usage:
post:
tags:
- Billing - ProductUsage
summary: Submit product usage
description: This API supports both service-token-based and user-token-based requests. For service-token requests, a valid partnerBillingId is required. For user-token requests, a valid JWT token with claims 'sub' and 'tenantId' is required.
operationId: submitProductUsages
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ProductUsageRequest'
required: false
responses:
'202':
description: Request Accepted
content:
application/json:
schema:
$ref: '#/components/schemas/ProductUsage'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProductUsageErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'503':
description: Service Temporarily Unavailable
content: {}
x-codegen-request-body-name: body
/billing/v1.0/product-usage/{productTypeId}:
get:
tags:
- Billing - ProductUsage
summary: Fetch product usage by ID
description: Fetches submitted product usage data based on productTypeId with pagination. Supports only user-token-based requests.
operationId: getProductUsageById
parameters:
- name: productTypeId
in: path
description: The unique ID of the ProductType for which to fetch submitted usage data.
required: true
schema:
type: number
- name: skip
in: query
description: Number of records to skip for pagination. Default is 0.
schema:
type: integer
format: int32
default: 0
- name: top
in: query
description: Maximum number of records to return per request. Default is 100.
schema:
type: integer
format: int32
default: 100
- name: startDate
in: query
description: Start date (inclusive) in yyyy-MM-dd format. Must not be before two years from today.
required: true
schema:
type: string
- name: endDate
in: query
description: End date (inclusive) in yyyy-MM-dd format. Must not be before startDate.
required: true
schema:
type: string
responses:
'200':
description: Request Successful
content:
application/json:
schema:
$ref: '#/components/schemas/ProductUsageFetchResponse'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components:
schemas:
ProductUsageErrorResponse:
type: object
properties:
code:
type: integer
description: Number represent api response code.
format: int32
success:
type: boolean
description: Boolean value represent whether the usage has been submitted successfully or not.
error:
type: string
description: String represent error, due to which api has failed to process the request.
errorDetail:
type: string
description: String represent error detail, due to which api has failed to process the request.
invalidFields:
type: array
description: Represent list of a map contain the object along with invalid or missing required fields.
items:
type: object
additionalProperties:
type: object
properties: {}
description: Error Response Object for Usage submission
ProductUsageGetResponse:
type: object
properties:
tenantId:
type: string
description: Tenant id for which the usages has submitted.
format: uuid
productTypeId:
type: number
description: Id of the product type.
partnerBillingId:
type: number
description: Billing id of the partner.
productUsageId:
type: string
description: Unique identifier of the usages submitted per request.
format: uuid
productQuantity:
type: number
description: Represent the the amount or quantity.
format: double
queryDate:
type: string
description: Represent the date for which the usage has submitted.
format: date-time
submittedBy:
type: string
description: Represent who has submitted the request, in a uuid form retrieved from the token.
createdTimeStamp:
type: string
description: Represent the time when it was added into the system.
format: date-time
modifiedTimeStamp:
type: string
description: Represent the time when usages was added into the system.
format: date-time
productUsageTrackingId:
type: string
description: Represent the unique identifier when usages submitted into a request.
format: uuid
partnerTenantId:
type: string
description: Represent tenant id of the partner.
format: uuid
description: Response object, which will hold information related to submitted usages.
ProductUsageFetchResponse:
type: object
properties:
totalRecords:
type: integer
description: Represent total number of records present in the system for the provided filter.
format: int32
productUsage:
type: array
description: Represent array of object, present in the system.
items:
$ref: '#/components/schemas/ProductUsageGetResponse'
skip:
type: integer
description: The number of records to skip for pagination. Default is 0.
format: int32
top:
type: integer
description: The maximum number of records to return. Default is 100.
format: int32
links:
type: object
additionalProperties:
type: string
description: Represent the object, which invalid or incorrect fields.
description: Product Usage response object, which will hold get api response.
ProductUsage:
type: object
properties:
success:
type: boolean
ProductUsageRequest:
required:
- productQuantity
- productTypeId
- queryDate
- tenantId
type: object
properties:
tenantId:
type: string
description: TenantId for which the usage will be submitted.
format: uuid
productTypeId:
type: number
description: ProductTypeId for which the usages will be submitted.
productQuantity:
type: number
description: Product quantity for which the usages will be submitted.
format: double
queryDate:
type: string
description: Date for which the usages will be submitted.
format: date-time
partnerBillingId:
type: number
description: Partner Billing Id, will only be applicable for service token based request.
description: Product Usage request object
ErrorResponse:
type: object
properties:
code:
type: integer
description: Number represent api response code.
format: int32
error:
type: string
description: String represent error, due to which api has failed to process the request.
errorDetail:
type: string
description: String represent error detail, due to which api has failed to process the request.
description: Error Response Object
x-refined-from:
- nice-cxone-billing.json
- nice-cxone-billing-openapi.yml