3.187.0 release notes
about 7 hours ago by ReadMe API
- ✨ New features
- Added support for creating and updating tariffs of type
discountonPOST /resources/tariffs/v1.0andPUT /resources/tariffs/v1.0/{tariff}via the new optionaldiscountTariffSettingsrequest object. The object acceptsdiscountReferenceType,referencedTariffId(required whendiscountReferenceTypeisspecific_tariff), anddiscountMode. WhendiscountModeisglobal, providediscountPercentage(0–100). WhendiscountModeisper_element, providediscountElements— an array of items, each withserviceFeeType,discountType, anddiscountValue(capped at 100 whendiscountTypeispercentage). - Added the
discountTariffSettingsresponse object to Tariff payloads returned byGET /resources/tariffs/v1.0,GET /resources/tariffs/v1.0/{tariff},POST /resources/tariffs/v1.0, andPUT /resources/tariffs/v1.0/{tariff}. It is present only when the tarifftypeisdiscountand mirrors the request structure.
- Added support for creating and updating tariffs of type
- 🔧 Improvements
- The
pricingobject on Tariff responses now reflects the derived (post-discount) pricing for tariffs of typediscount, allowing consumers to read the effective price structure directly instead of resolving the referenced tariff and applying the discount client-side.
- The