Skip to content
Oclavex is in private preview, available to selected users. Public signup is blocked. Request access at [email protected].

Retrieves the entitlement's billing record.

GET
/api/v1/provision/admin/entitlements/{entitlementId}/billing
curl --request GET \
--url https://example.com/api/v1/provision/admin/entitlements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/billing
entitlementId
required
string format: uuid

Entitlement id.

OK

The billing record of an entitlement, or the billing template of an offer: who bills it and how, the invoice recipient, the customer’s own reference, an amount recorded for the vendor’s overview, and the provider’s identifiers. Provision writes the provider anchors and the subscription state from the connector’s events; everything else is the operator’s.

object
id
string format: uuid
entitlementId
string format: uuid
provider

One of BillingProviders, or a value a connector registered.

string
mode

Who drives the entitlement’s plan. A member this client does not know reads as BillingModeDto.Unknown.

Allowed values: ProviderManaged OperatorManaged NotBillable Unknown
modeReason

Why an operator manages the plan by hand; set with BillingModeDto.OperatorManaged.

string
method

How money is collected for the entitlement. A member this client does not know reads as BillingMethodDto.Unknown.

Allowed values: Unspecified Subscription OneTime Invoice Free Unknown
interval

How often the entitlement bills. A member this client does not know reads as BillingIntervalDto.Unknown.

Allowed values: Unspecified Day Week Month Year Once Unknown
amount

Informational: what the vendor recorded for their own overview. Never used to charge, never checked against plan prices.

null | number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
currency

ISO 4217 code of decimal? EntitlementBillingDto.Amount.

string
providerCustomerReference

The provider’s own customer id (cus_…); written by Provision from the subscription event.

string
providerSubscriptionReference

The provider’s own subscription id (sub_…); unique per tenant and provider, written by Provision.

string
billingReference

The customer’s purchase order number or cost centre — what must appear on the invoice.

string
notes
string
contactName
string
contactEmail
string
contactPhone
string
addressLine1
string
addressLine2
string
postalCode
string
city
string
stateOrProvince
string
countryCode

ISO 3166-1 alpha-2.

string
details

Provider-specific key-values, keys prefixed by provider (stripe.price_lookup_key).

object
key
additional properties
string
state

Where the provider’s subscription stands, as Provision last recorded it from the subscription event. The connector holds the live picture; this is the copy the entitlement list filters on.

Allowed values: Unknown None Active Paid InvoiceOpen Trialing PastDue Paused Incomplete Canceled
stateObservedAt
null | string format: date-time
currentPeriodEnd
null | string format: date-time
pastDueSince

Start of the open past-due episode, when a payment failed and none has succeeded since.

null | string format: date-time
lapsedPendingSince

When a lapse was recorded that could not be applied yet because another plan override stands.

null | string format: date-time
lapsedAt

When the payment lapse was applied to the plan; null once a payment or an operator lifts it.

null | string format: date-time
createdAt
string format: date-time
updatedAt
string format: date-time

Not Found

object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string