3.170.0 release notes
about 7 hours ago by ReadMe API
- ✨ New features
- Added Energy Coupons resource endpoints:
GET /resources/energy-coupons/v1.0(list with filters foroperatorId,userId,status,type,createdAfter,createdBefore,externalId),POST /resources/energy-coupons/v1.0(create), andGET /resources/energy-coupons/v1.0/{energyCoupon}(read). Energy coupons represent pre-allocated energy allowances with properties includingid,operatorId,userId,code,type,status,energyWh,remainingEnergyWh,evseType,validFrom,validTo,externalId, andcreatedAt. - Added the
POST /actions/energy-coupon/v1.0/{energyCoupon}/cancelaction endpoint to cancel an active energy coupon. Accepts an optionalreasonfield. Returns409 Conflictif the coupon is currently locked. - Added the
GET /actions/users/v1.0/{user}/get-total-eligible-coupon-energyaction endpoint to retrieve the total remaining energy and coupon count for a user's eligible coupons at a given EVSE. Requires anevseIdquery parameter. - Added the
GET /resources/energy-coupons/v1.0/{energyCoupon}/session-consumption-recordsendpoint to retrieve session-level energy consumption records for a specific coupon. Each record includessessionIdandconsumedEnergyWh. - Added the
PATCH /resources/tariffs/v1.0/{tariff}endpoint for partial tariff updates. Only the fields included in the request body are updated; omitted fields retain their current values. Note: thetypefield cannot be changed via PATCH — usePUTfor tariff type changes. - Added the optional
invoiceDetailsMandatoryboolean property to Payment Terminal responses onGET /resources/payment-terminals/v1.1,POST /resources/payment-terminals/v1.1,GET /resources/payment-terminals/v1.1/{paymentTerminal}, andPATCH /resources/payment-terminals/v1.1/{paymentTerminal}. Present on Valina, Web Portal, Adyen Castles, Printec Castles, and Cardlink Castles terminal types.
- Added Energy Coupons resource endpoints:
- 🔧 Improvements
- Made the
stopSession.timeLimitMinutesandstopSession.stopWhenEnergyExceedsKwhfields nullable onPOST /resources/tariffs/v1.0andPUT /resources/tariffs/v1.0/{tariff}. These fields previously required a numeric value when present; they now also acceptnullto explicitly clear the setting.
- Made the