Usage products represent products that are billed based on usage
/
Create a new usage produc...
Elevate Products API (2.13)
- Rental Product - a product or service that is billed on a fixed charge; for example, a broadband service, connection or site visit
- Usage Product - a product that is billed based on it's usage, such as calls or data; these typically fall into one of the following categories within Elevate; outbound such as CPS/IDA, Mobile or VoIP; and Inbound
Download OpenAPI description
Languages
Servers
https://rest.elevatebilling.com/v2
Query
Results to return per page
Example: pageSize=100
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Example: sort=id,name | name:desc
Comma-delimited list of the field(s) to return if only a subset is required
Example: fields=id,name
Filter by usage product category
Example: usageProductCategoryId=0
Filter by available from date
Example: availableFrom=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
Filter by available to date
Example: availableTo=yyyy-MM-dd | lt:yyyy-MM-dd | gt:yyyy-MM-dd | gtn:yyyy-MM-dd
- https://rest.elevatebilling.com/v2/usage-products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/usage-products?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&usageProductCategoryId=0&availableFrom=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&availableTo=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&nominalCode=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "id": 1, "name": "string", "nominalCode": "SALES-01QTR2", "usageProductCategoryId": 1, "direction": "INBOUND", "performLocalAndNationalCheck": true, "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "productReferenceCanBeRange": true, "serviceIdRequired": false, "customFields": [ … ], "productReferenceFormat": "[0-9]{3,11}", "serviceIdFormat": "[a-zA-Z0-9\\-]{3,100}" } ]
Bodyapplication/jsonrequired
New usage product
Usage product name
Nominal code
Example: "SALES-01QTR2"
Regular expression used to validate product references on usage product inventories
Example: "[0-9]{3,11}"
- https://rest.elevatebilling.com/v2/usage-products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v2/usage-products \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"nominalCode": "SALES-01QTR2",
"usageProductCategoryId": 1,
"direction": "INBOUND",
"performLocalAndNationalCheck": true,
"availableFrom": "2019-08-24",
"availableTo": "2019-08-24",
"productReferenceCanBeRange": true,
"serviceIdRequired": false,
"customFields": [
{
"label": "string",
"value": "string"
}
],
"productReferenceFormat": "[0-9]{3,11}",
"serviceIdFormat": "[a-zA-Z0-9\\-]{3,100}"
}'Response
application/json
{ "id": 1, "name": "string", "nominalCode": "SALES-01QTR2", "usageProductCategoryId": 1, "direction": "INBOUND", "performLocalAndNationalCheck": true, "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "productReferenceCanBeRange": true, "serviceIdRequired": false, "customFields": [ { … } ], "productReferenceFormat": "[0-9]{3,11}", "serviceIdFormat": "[a-zA-Z0-9\\-]{3,100}" }
- https://rest.elevatebilling.com/v2/usage-products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X HEAD \
'https://rest.elevatebilling.com/v2/usage-products?name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&usageProductCategoryId=0&availableFrom=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&availableTo=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&nominalCode=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- https://rest.elevatebilling.com/v2/usage-products/{usage_product_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v2/usage-products/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "id": 1, "name": "string", "nominalCode": "SALES-01QTR2", "usageProductCategoryId": 1, "direction": "INBOUND", "performLocalAndNationalCheck": true, "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "productReferenceCanBeRange": true, "serviceIdRequired": false, "customFields": [ { … } ], "productReferenceFormat": "[0-9]{3,11}", "serviceIdFormat": "[a-zA-Z0-9\\-]{3,100}" }
Bodyapplication/json-patch+jsonrequired Array [ ]
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
Enum"add""remove""replace""move""copy""test"
- https://rest.elevatebilling.com/v2/usage-products/{usage_product_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v2/usage-products/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/name",
"value": "My Product"
}
]'Response
application/json
{ "id": 1, "name": "string", "nominalCode": "SALES-01QTR2", "usageProductCategoryId": 1, "direction": "INBOUND", "performLocalAndNationalCheck": true, "availableFrom": "2019-08-24", "availableTo": "2019-08-24", "productReferenceCanBeRange": true, "serviceIdRequired": false, "customFields": [ { … } ], "productReferenceFormat": "[0-9]{3,11}", "serviceIdFormat": "[a-zA-Z0-9\\-]{3,100}" }
- https://rest.elevatebilling.com/v2/usage-product-categories
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/usage-product-categories?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "id": 1, "name": "string" } ]
Query
Results to return per page
Example: pageSize=100
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Example: sort=id,name | name:desc
Comma-delimited list of the field(s) to return if only a subset is required
Example: fields=id,name
Filter by primary reference data source id
Example: primaryReferenceDataSourceId=0
- https://rest.elevatebilling.com/v2/usage-product-suppliers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/usage-product-suppliers?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&id=0&usageProductId=0&supplierId=0&supplierAccountId=0&primaryReferenceDataSourceId=0&secondaryReferenceDataSourceId=0' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
[ { "id": 1, "usageProductId": 1, "supplierId": 1, "supplierAccountId": 1, "primaryReferenceDataSourceId": 1, "secondaryReferenceDataSourceId": 1 } ]