3.186.0 release notes
1 day ago by ReadMe API
- ✨ New features
- Added expanded restriction options to energy coupon templates. The
restrictionsobject now supportslocationRestriction,locationTagRestriction,userGroupRestriction,minSessionEnergyWh, andmaxSessionEnergyWh(alongside the existing country and partner restrictions) as optional request properties onPOST /public-api/resources/energy-coupon-templates/v1.0andPATCH /public-api/resources/energy-coupon-templates/v1.0/{energyCouponTemplate}, and as response properties onGET /public-api/resources/energy-coupon-templates/v1.0,GET /public-api/resources/energy-coupon-templates/v1.0/{energyCouponTemplate},POST /public-api/resources/energy-coupon-templates/v1.0, andPATCH /public-api/resources/energy-coupon-templates/v1.0/{energyCouponTemplate}. - Added restriction support to energy coupons.
POST /public-api/resources/energy-coupons/v1.0now accepts an optionalrestrictionsobject covering country, partner, location, location tag, and user group restrictions, personal-charge-points-only, and min/max session energy. Therestrictionsobject is now also returned onGET /public-api/resources/energy-coupons/v1.0,POST /public-api/resources/energy-coupons/v1.0,GET /public-api/resources/energy-coupons/v1.0/{energyCoupon}, andPOST /public-api/actions/energy-coupon/v1.0/redeem-code. - Added the optional
pendingReasonproperty to Transaction responses onGET /public-api/resources/transactions/v1.0,POST /public-api/resources/transactions/v1.0,GET /public-api/resources/transactions/v1.0/{transaction}, andPATCH /public-api/resources/transactions/v1.0/{transaction}. It is included only when the transaction is pending. Also added a newpendingReasonfilter toGET /public-api/resources/transactions/v1.0. - Added the optional
suppressSelfNotificationsproperty to the Notifications request body onPOST /public-api/notifications/v2.0andPUT /public-api/notifications/v2.0/{notification}, and as a response property onGET /public-api/notifications/v2.0,POST /public-api/notifications/v2.0,GET /public-api/notifications/v2.0/{notification}, andPUT /public-api/notifications/v2.0/{notification}. - Added the optional
invoiceNumberPrefix,startingInvoiceNumber,receiptsPrefix,receiptsStartingNumber,options.allowToControlCpConfigurations, andoptions.supplierOnInvoicesproperties to the Partners request body onPOST /public-api/resources/partners/v2.0andPATCH /public-api/resources/partners/v2.0/{partner}, and as response properties onGET /public-api/resources/partners/v2.0,POST /public-api/resources/partners/v2.0,GET /public-api/resources/partners/v2.0/{partner}, andPATCH /public-api/resources/partners/v2.0/{partner}.
- Added expanded restriction options to energy coupon templates. The
- 🔧 Improvements
- Changed the
statusfield on Consent responses to reflect the true agreed, rejected, or pending state derived from both the agreement and rejection timestamps, instead of defaulting torejectedwhenever no agreement timestamp was present. - Changed
POST /public-api/actions/users/v1.0/{user}/activate-subscriptionto return a clear404"plan not found" error when the supplied subscription plan does not exist, instead of an unclear failure response.
- Changed the