Prices

Prices: amount, currency, one-time or recurring.

View as Markdown

A price belongs to a product and determines the amount, currency, and whether it's OneTime or Recurring. amount is an integer: for a zero-decimal currency like TWD, amount is the value itself.

GET/api/Price— List prices, optionally filtered by productId
PropertyValue
Required scopeprices:read
Idempotency-KeyNot required
ParameterInTypeRequired
pagequeryinteger (int32)
pageSizequeryinteger (int32)
orderByquerystring
orderDirectionquerystring
createdFromquerystring (date-time)
createdToquerystring (date-time)
productIdquerystring
POST/api/Price— Create a new price for a product
PropertyValue
Required scopeprices:write
Idempotency-KeyNot required
ParameterInTypeRequired
activebodyboolean
amountbodyinteger (int32)
currencybodystring
intervalbodystring
intervalCountbodyinteger (int32)
productIdbodystring
trialDaysbodyinteger (int32)
typebodystring
GET/api/Price/{priceId}— Retrieve a single price
PropertyValue
Required scopeprices:read
Idempotency-KeyNot required
ParameterInTypeRequired
priceIdpathstringRequired
PUT/api/Price/{priceId}— 更新價格。
PropertyValue
Required scopeprices:write
Idempotency-KeyNot required
ParameterInTypeRequired
priceIdpathstringRequired
activebodyboolean
GET/api/Price/{priceId}/EntitlementPolicy— 價格:EntitlementPolicy。
PropertyValue
Required scopeentitlements:read
Idempotency-KeyNot required
ParameterInTypeRequired
priceIdpathstringRequired
pagequeryinteger (int32)
pageSizequeryinteger (int32)
orderByquerystring
orderDirectionquerystring
createdFromquerystring (date-time)
createdToquerystring (date-time)
POST/api/Price/{priceId}/EntitlementPolicy— 價格:EntitlementPolicy。
PropertyValue
Required scopeentitlements:write
Idempotency-KeyNot required
ParameterInTypeRequired
priceIdpathstringRequired
allowedbodystring
creditGrantAmountbodyinteger (int32)
limitbodyinteger (int32)
limitAmountbodyinteger (int32)