Get Package Price by Package, Period, and Currency
This endpoint retrieves the price definition for a specific product package based on the package ID, period, and currency. The user must ensure that the package exists and provide the correct parameters.
Endpoint Information
URL:
https://account.testinium.com/account/public/pricing/package_id/{package_id}/period/{period}/currency/{currency}
Method:
GET
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Path Parameters
package_id
Long
Yes
The unique ID of the product package.
period
String
Yes
The billing period (e.g., A
, B
, etc.).
currency
String
Yes
The currency used for the price (e.g., USD
).
Response
The response contains the price definition and associated details for the requested product package, period, and currency.
Response Fields
entityId
Long
The unique ID of the package price definition.
productPackage
Object
Details of the product package (including properties and pricing).
period
String
The billing period for the price.
currency
String
The currency used for the price.
price
Double
The price for the specified package, period, and currency.
customerId
Long
The customer ID associated with the package.
_links
Object
Links to related resources such as self and package.
Error Codes
400
INVALID_REQUEST
The request was malformed or contained errors.
404
PACKAGE_NOT_FOUND
No package was found for the specified ID.
500
INTERNAL_SERVER_ERROR
An unexpected error occurred on the server side.
Example Request
Last updated