Pricing

Create rating rule

Changed on
post/v1/rating-rules

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/v1/rating-rules
  • Auth: HTTP bearer

Request body

rule_keystring required
namestring required
mode'flat' | 'graduated' | 'package' required
currencystring required
flat_amount_centsstring

Per-unit rate in cents, as a decimal string (e.g. "0.0003" = $3.00 per 1,000,000 units).

package_sizeinteger
package_amount_centsinteger
overage_unit_amount_centsstring

Package-mode per-unit overage rate in cents, as a decimal string. Fixed fees (package_amount_cents) stay integer cents.

Response

Rating rule created

Changes

    • breaking

      the request property type changed from integer to string

    • breaking

      the // request property type changed from integer to string

    • info

      added the new optional request property