A Usage Product Inventory (UPI) is the assignment of a usage product to a Site. A UPI has 1 or more product reference (UPR)
Elevate Product Inventory API (2.24)
Product inventory controls the products and services that are assigned to Sites.
A Rental Product Inventory (RPI) is the assignment of a Rental Product to a Site, for example, a broadband service or connection charge Where Rental Products are sold to a Customer the creation of a Rental Product Inventory notifies Elevate that there is a billable asset Properties of an RPI include start and end dates, i.e. between which dates should Elevate create a charge
A Usage Product Inventory (UPI) is the assignment of a Usage Product to a Site Where Usage Products are sold to a Customer the creation of a UPI notifies Elevate that there is a billable asset Properties of UPI include start and end dates, i.e. between which dates Elevate will create a charge for any usage associated with that UPI
Unlike RPIs, the creation of charges for UPIs is dependent upon Elevate processing usage records (typically referred to as Call Detail Records or CDR) that are delivered by suppliers as files or some other mechanism. The usage records are associated with the correct UPI within Elevate
A Usage Product Reference (UPR) is an identifier for a UPI. This 'product reference' could be a telephone number or other identifier depending on the Usage Product. A single UPI can have many UPRs. Typically one of these UPRs is marked as the 'primary' (e.g. a main billing number) for the UPI. Properties of UPR include start and end dates when they are associated to the UPI
An Adhoc Inventory is used to represent a charge, discount or refund that will be applied on an adhoc basis, for example, a charge for equipment/upfront costs or a discretionary payment. These can be part of the standard billing cycle or, unlike other inventory items, can be part of a dedicated adhoc bill run at any time
Once a Rental Product Inventory has been created it can have a phone line provisioned with a number of settings. Provisioning Details serve as a representation of these settings, showing active/suspended lines, subscribed data bundles or add-ons, and smart/international-barred numbers
Results to return per page
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Comma-delimited list of the field(s) to return if only a subset is required
Filter by start date
Filter by end date
Filter by product reference
- https://rest.elevatebilling.com/v2/usage-product-inventories
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v2/usage-product-inventories?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&usageProductId=0&startDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&endDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&productReference=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&serviceId=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&siteId=0&label=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Service ID. Extra validations may be applied depending on product configurations
external order reference
external Network order reference
Default usage cap amount. Specify the value in minor currency units (i.e. pence for GBP, cents for EUR/USD)
Override the default usage cap amount temporarily. Specify the value in minor currency units (e.g. pence for GBP, cents for EUR/USD)
Do surcharge apply to this UPI? If true and a rate is found with a surchargeValue greater than 0 then an additional surcharge will be applied to the usage cost
Product reference. Extra validations may be applied depending on product configurations.
True if product reference is primary (main billing number)
Product reference
User Id
User email address
Cost centre code
[ { "id": 1, "siteId": 1, "usageProductId": 1, "startDate": "2019-08-24", "endDate": "2019-08-24", "supplierAccountId": 0, "billByServiceId": false, "serviceId": "string", "billable": true, "inFlightOrder": false, "externalOrderReference": "string", "externalNetworkOrderReference": "string", "pendingEndDate": "2019-08-24", "usageCapEnabled": false, "defaultUsageCap": 0, "overrideUsageCap": 0, "applySurcharges": false, "productReferences": [ … ], "tripwirePlanId": 0 } ]
- https://rest.elevatebilling.com/v2/usage-product-inventories
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X HEAD \
'https://rest.elevatebilling.com/v2/usage-product-inventories?usageProductId=0&startDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&endDate=yyyy-MM-dd+%2C+lt%3Ayyyy-MM-dd+%2C+gt%3Ayyyy-MM-dd+%2C+gtn%3Ayyyy-MM-dd&productReference=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&serviceId=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&siteId=0&label=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'New usage product inventory
Service ID. Extra validations may be applied depending on product configurations
external order reference
external Network order reference
Default usage cap amount. Specify the value in minor currency units (i.e. pence for GBP, cents for EUR/USD)
Override the default usage cap amount temporarily. Specify the value in minor currency units (e.g. pence for GBP, cents for EUR/USD)
Do surcharge apply to this UPI? If true and a rate is found with a surchargeValue greater than 0 then an additional surcharge will be applied to the usage cost
Product reference. Extra validations may be applied depending on product configurations.
True if product reference is primary (main billing number)
Product reference
User Id
User email address
Cost centre code
- https://rest.elevatebilling.com/v2/usage-product-inventories
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v2/usage-product-inventories \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"siteId": 1,
"usageProductId": 1,
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"supplierAccountId": 0,
"billByServiceId": false,
"serviceId": "string",
"billable": true,
"inFlightOrder": false,
"externalOrderReference": "string",
"externalNetworkOrderReference": "string",
"pendingEndDate": "2019-08-24",
"usageCapEnabled": false,
"defaultUsageCap": 0,
"overrideUsageCap": 0,
"applySurcharges": false,
"productReferences": [
{
"productReference": "string",
"primary": true,
"label": "string",
"startDate": "2019-08-24",
"endDate": "2019-08-24",
"userId": "string",
"userEmail": "string",
"costCentreCode": "string",
"departmentCode": "string",
"notes": "string"
}
],
"tripwirePlanId": 0
}'OK
Service ID. Extra validations may be applied depending on product configurations
external order reference
external Network order reference
Default usage cap amount. Specify the value in minor currency units (i.e. pence for GBP, cents for EUR/USD)
Override the default usage cap amount temporarily. Specify the value in minor currency units (e.g. pence for GBP, cents for EUR/USD)
Do surcharge apply to this UPI? If true and a rate is found with a surchargeValue greater than 0 then an additional surcharge will be applied to the usage cost
Product reference. Extra validations may be applied depending on product configurations.
True if product reference is primary (main billing number)
Product reference
User Id
User email address
Cost centre code
{ "id": 1, "siteId": 1, "usageProductId": 1, "startDate": "2019-08-24", "endDate": "2019-08-24", "supplierAccountId": 0, "billByServiceId": false, "serviceId": "string", "billable": true, "inFlightOrder": false, "externalOrderReference": "string", "externalNetworkOrderReference": "string", "pendingEndDate": "2019-08-24", "usageCapEnabled": false, "defaultUsageCap": 0, "overrideUsageCap": 0, "applySurcharges": false, "productReferences": [ { … } ], "tripwirePlanId": 0 }
- https://rest.elevatebilling.com/v2/usage-product-inventories/{usage_product_inventory_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v2/usage-product-inventories/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Usage product inventory found
Service ID. Extra validations may be applied depending on product configurations
external order reference
external Network order reference
Default usage cap amount. Specify the value in minor currency units (i.e. pence for GBP, cents for EUR/USD)
Override the default usage cap amount temporarily. Specify the value in minor currency units (e.g. pence for GBP, cents for EUR/USD)
Do surcharge apply to this UPI? If true and a rate is found with a surchargeValue greater than 0 then an additional surcharge will be applied to the usage cost
Product reference. Extra validations may be applied depending on product configurations.
True if product reference is primary (main billing number)
Product reference
User Id
User email address
Cost centre code
{ "id": 1, "siteId": 1, "usageProductId": 1, "startDate": "2019-08-24", "endDate": "2019-08-24", "supplierAccountId": 0, "billByServiceId": false, "serviceId": "string", "billable": true, "inFlightOrder": false, "externalOrderReference": "string", "externalNetworkOrderReference": "string", "pendingEndDate": "2019-08-24", "usageCapEnabled": false, "defaultUsageCap": 0, "overrideUsageCap": 0, "applySurcharges": false, "productReferences": [ { … } ], "tripwirePlanId": 0 }
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
- https://rest.elevatebilling.com/v2/usage-product-inventories/{usage_product_inventory_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v2/usage-product-inventories/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/surchargesApply",
"value": "true"
}
]'Success
Service ID. Extra validations may be applied depending on product configurations
external order reference
external Network order reference
Default usage cap amount. Specify the value in minor currency units (i.e. pence for GBP, cents for EUR/USD)
Override the default usage cap amount temporarily. Specify the value in minor currency units (e.g. pence for GBP, cents for EUR/USD)
Do surcharge apply to this UPI? If true and a rate is found with a surchargeValue greater than 0 then an additional surcharge will be applied to the usage cost
Product reference. Extra validations may be applied depending on product configurations.
True if product reference is primary (main billing number)
Product reference
User Id
User email address
Cost centre code
{ "id": 1, "siteId": 1, "usageProductId": 1, "startDate": "2019-08-24", "endDate": "2019-08-24", "supplierAccountId": 0, "billByServiceId": false, "serviceId": "string", "billable": true, "inFlightOrder": false, "externalOrderReference": "string", "externalNetworkOrderReference": "string", "pendingEndDate": "2019-08-24", "usageCapEnabled": false, "defaultUsageCap": 0, "overrideUsageCap": 0, "applySurcharges": false, "productReferences": [ { … } ], "tripwirePlanId": 0 }
- https://rest.elevatebilling.com/v2/usage-product-inventories/{usage_product_inventory_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://rest.elevatebilling.com/v2/usage-product-inventories/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
- https://rest.elevatebilling.com/v2/usage-product-references/{product_reference_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v2/usage-product-references/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/startDate",
"value": "2023-01-13"
}
]'{ "id": 1, "productReference": "string", "primary": true, "label": "string", "startDate": "2019-08-24", "endDate": "2019-08-24", "userId": "string", "userEmail": "string", "costCentreCode": "string", "departmentCode": "string", "notes": "string" }
- https://rest.elevatebilling.com/v2/usage-product-references/{product_reference_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://rest.elevatebilling.com/v2/usage-product-references/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'