Get Started with Pricing API

Read through the following information to integrate our web browser REST API:

Authentication

The Pricing API does not require authentication.

Header Values

The most relevant REST request header values for our Pricing API are the following:

Field NameDescriptionExample ValuesRequired
AcceptFormat of the function call response that is desired.application/json or application/xmlYes
Accept-LanguageContact's language preferences, in order of priority.fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5No

In this example, the requested resource is a json object and the preferred languages are Swiss French, French, English, and German, respectively:

curl --request GET \
  --url 'https://pricingapi.cleverbridge.com/prices?client_id=864&product_id=97772&internalproduct_id=&currency=USD&country=US&coupon=BD3-1KK-UN3&price_rule=' \
  --header 'accept: application/json' \
  --header 'accept-language: fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5'

Status Codes

All Cleverbridge REST-based APIs use conventional HTTP response codes.

Status CodeDescription
200Successful completion of the call.
400Bad Request (incomplete message, required fields missing, incorrectly formatted XML/JSON).
401Unauthorized Request. Authentication with Cleverbridge failed (ID/password issue). Not applicable to Pricing API.
402Request failed: Invalid parameters.
404Not Found: The other unique identifier set and passed in the call is invalid or does not exist (the subscription ID, for example).
429Too Many Requests: Rate limit reached.
500Request failed due to server error on the Cleverbridge side.

Rate Limits

The Cleverbridge platform limits you to a maximum of 30 requests per second from an IP address or range.

All API requests count towards the rate limit. For more details, see Rate Limits in Get Started for REST APIs.