Herald
OpenapiExt

Resolve an entitlement's default price row by currency

Filters the entitlement's enabled Stripe mapping rows by the requested currency (plus optional billing type/period filters) and returns the unique match. Fail-loud by design: 404 when no row matches the currency (no secondary-currency fallback), 409 when multiple rows remain and the caller must narrow by billing type/period. # Authentication Requires valid API Key via X-API-Key header # Realm Isolation The API key must belong to the same realm as the requested realm.

GET
/api/ext/{realmId}/entitlements/{entitlementKey}/default-price

Filters the entitlement's enabled Stripe mapping rows by the requested currency (plus optional billing type/period filters) and returns the unique match. Fail-loud by design: 404 when no row matches the currency (no secondary-currency fallback), 409 when multiple rows remain and the caller must narrow by billing type/period.

Authentication

Requires valid API Key via X-API-Key header

Realm Isolation

The API key must belong to the same realm as the requested realm.

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

realmId*string

Realm ID

entitlementKey*string

Entitlement key

Query Parameters

currency*string

ISO 4217 currency code (e.g. "USD"); reserved codes rejected

billingType?string

Optional narrowing filter: recurring | one_time | non_renewing

billingPeriod?string

Optional narrowing filter: billing period (e.g. month / year)

Response Body

Unique price row resolved

application/json
  1. response

Resolved default price row, usable as an explicit target_id purchase target by third-party callers.

amount*integer

Price amount in minor units (cents).

Formatint64
billingPeriod?string|null
billingType?string|null
currency*string
entitlementKey*string
externalPriceId?string|null
mappingId*string
paymentProvider*string
Example Request
curl -X GET 'https://example.com/api/ext/string/entitlements/string/default-price?currency=string'
Example Response
{
  "amount": 0,
  "billingPeriod": "string",
  "billingType": "string",
  "currency": "string",
  "entitlementKey": "string",
  "externalPriceId": "string",
  "mappingId": "string",
  "paymentProvider": "string"
}