Herald
OpenapiBilling

Get a single entitlement mapping

GET
/api/bill/entitlement-mappings/{mappingId}

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

mappingId*string

Mapping ID

Formatuuid

Response Body

Entitlement mapping found

application/json
  1. response

Response for a single entitlement mapping

billingPeriod?string|null
billingType?string|null
createdAt*string
enabled*boolean
entitlementKey*string
externalPriceId?string|null
externalProductId*string
grantedRoleIds*array<>

(not skip-serializing) so the frontend always sees the field; empty array when no role grant is configured.

id*string
Formatuuid
paymentProvider*string
pointRules*array<>

Distribution rules owned by this mapping. Loaded separately and surfaced as pointRules; an empty array is a valid "no points grant" mapping (role-only / pure payment record).

providerProductInfo?null|
serviceDurationDays?|

Non-renewing service-period length (days). Present only for

Formatint64
syncedAt?string|null
updatedAt*string
Example Request
curl -X GET 'https://example.com/api/bill/entitlement-mappings/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{
  "billingPeriod": "string",
  "billingType": "string",
  "createdAt": "string",
  "enabled": true,
  "entitlementKey": "string",
  "externalPriceId": "string",
  "externalProductId": "string",
  "grantedRoleIds": [
    "d7da45c3-cf14-4d32-83d9-df3496b53a96"
  ],
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "paymentProvider": "string",
  "pointRules": [
    {
      "bucketId": "1980377d-7926-47e0-9e64-a9d0c746404d",
      "displayOrder": 0,
      "enabled": true,
      "grantMode": "string",
      "grantPeriodType": "string",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "pointsAmount": 0,
      "quotaWindows": [
        {
          "key": "string",
          "limit": 0,
          "windowSeconds": 0
        }
      ],
      "triggerSources": [
        "string"
      ],
      "validityDays": 0
    }
  ],
  "providerProductInfo": null,
  "serviceDurationDays": 0,
  "syncedAt": "string",
  "updatedAt": "string"
}