3.276.0 release notes
about 2 hours ago by ReadMe API
- ⚠️ Breaking changes
- Made
partner.idrequired for sub-operator tokens onPOST /public-api/resources/tariffs/v1.0andPUT /public-api/resources/tariffs/v1.0/{tariff}, andpartnerIdrequired onPOST /public-api/resources/tariff-groups/v1.0andPUT /public-api/resources/tariff-groups/v1.0/{tariffGroup}. The partner must be assignable by the token's administrator; tariff requests that assign a different partner now also reject deleted partners and partners belonging to another operator. - Changed tariff validation on
POST /public-api/resources/tariffs/v1.0,PUT /public-api/resources/tariffs/v1.0/{tariff}, andPATCH /public-api/resources/tariffs/v1.0/{tariff}to reject non-objectpartnervalues. Sub-operator tokens cannot clear the partner assignment throughPATCH. - Made
partnerIdrequired for sub-operator tokens onPOST /public-api/resources/vehicles/v1.0andPOST /public-api/resources/reimbursement-policies/v1.0, and non-null when supplied onPATCH /public-api/resources/vehicles/v1.0/{vehicle}andPATCH /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}. Requests made with partner tokens now use the token's own partner when creating these resources or supplyingpartnerIdon an update. - Changed partner validation on
POST /public-api/resources/reimbursement-policies/v1.0andPATCH /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}to require newly assigned partners to be assignable by the token's administrator and newly assignedpartnerContractIdvalues to belong to the effective partner. - Removed access to
POST /public-api/resources/users/v1.0for sub-operator tokens. - Removed
integrationIdandexternalIdfrom responses to installation and maintenance company tokens onGET /public-api/resources/installation-and-maintenance-companies/v1.0,GET /public-api/resources/installation-and-maintenance-companies/v1.0/{imCompany}, andPATCH /public-api/resources/installation-and-maintenance-companies/v1.0/{imCompany}. These tokens can no longer submitbusinessName,integrationId, orexternalIdon updates, or usefilter[integrationId]andfilter[externalId]on the listing; those requests return422. - Changed
filter[method]validation onGET /public-api/resources/authorizations/v2.0andGET /public-api/resources/authorizations/v2.1to return422for unsupported authorization methods. - Changed
userIdvalidation onPOST /public-api/actions/charge-point/v1.0/{chargePoint}/change-ownerto require a user visible to the token's administrator, rather than any existing user. - Changed charge point assignment and sharing to return
409when a new assignment targets an offboarding or disabled partner. Affected endpoints arePOST /public-api/resources/charge-points/v1.0,PATCH /public-api/resources/charge-points/v1.0/{chargePoint},POST /public-api/resources/charge-points/v2.0, andPUT /public-api/resources/charge-points/v2.0/{chargePoint}/shared-partners. - Changed partner contract, invite, and administrator creation to return
409when the partner is offboarding or disabled. Affected endpoints arePOST /public-api/resources/partner-contracts/v1.0,POST /public-api/resources/partner-invites/v1.0,POST /public-api/resources/partner-invites/v2.0, andPOST /public-api/resources/partners/v2.0/{partner}/admins; moving an invite to such a partner is also rejected onPATCH /public-api/resources/partner-invites/v1.0/{partnerInvite}andPATCH /public-api/resources/partner-invites/v2.0/{partnerInvite}. - Changed
POST /public-api/actions/partner-contract/v1.0/{partnerContract}/reactivateto return409while the partner is offboarding or disabled, andPOST /public-api/actions/admin/v1.0/{admin}/activateto return409when the administrator belongs to a disabled partner or sub-operator. Enable the organization before retrying. - Changed
POST /public-api/actions/partner-invite/v1.0/{partnerInvite}/restoreto return409when restoration is blocked by the partner or the original expiration date keeps the invite expired. Changes toexpiresOnonPATCH /public-api/resources/partner-invites/v2.0/{partnerInvite}are also rejected with409when they would restore an invite blocked by the partner. - Changed
POST /public-api/actions/session/v1.0/{session}/retry-paymentto return409when corporate billing refuses the retry and there is no unpaid driver amount to retry. When an unpaid driver amount exists, that amount can still be retried without charging the partner's refused amount to the driver's payment method. - Changed
GET /public-api/resources/users/v1.0/{user}/invoice-detailsandPOST /public-api/resources/users/v1.0/{user}/invoice-detailsto enforce invoice-detail permissions for the token's administrator. Partner and sub-operator tokens receive404for users outside their scope.
- Made
- ✨ New features
- Added experimental partner lifecycle actions:
POST /public-api/actions/partner/v1.0/{partner}/start-offboarding,POST /public-api/actions/partner/v1.0/{partner}/disable, andPOST /public-api/actions/partner/v1.0/{partner}/enable. Offboarding requiresendsOnandchurnReason; disabling supportsdisableChargePoints, requireschurnReasonunless offboarding is already in progress, and both actions supportkeepViewOnlyAccess. - Added experimental sub-operator lifecycle actions at
POST /public-api/actions/sub-operator/v1.0/{subOperator}/disableandPOST /public-api/actions/sub-operator/v1.0/{subOperator}/enable. Disabling accepts the optionalkeepViewOnlyAccessfield. - Added read-only
status(enabled,offboarding, ordisabled) and optionaloffboardingEndsOnfields to partner responses onGET /public-api/resources/partners/v2.0,POST /public-api/resources/partners/v2.0,GET /public-api/resources/partners/v2.0/{partner},PATCH /public-api/resources/partners/v2.0/{partner}, andPOST /public-api/actions/partner/v1.0/{partner}/set-custom-fields. TheoffboardingEndsOnfield is present only during offboarding and gives the last day before the partner becomes disabled. - Added a read-only
statusfield (enabledordisabled) to sub-operator responses onGET /public-api/resources/sub-operators/v2.0,POST /public-api/resources/sub-operators/v2.0,GET /public-api/resources/sub-operators/v2.0/{subOperator}, andPATCH /public-api/resources/sub-operators/v2.0/{subOperator}. - Added
filter[status]toGET /public-api/resources/partners/v2.0andGET /public-api/resources/sub-operators/v2.0to filter by lifecycle status. Unsupported status values return422. - Added administrator endpoints at
GET /public-api/resources/admins/v1.1,GET /public-api/resources/admins/v1.1/{admin},PATCH /public-api/resources/admins/v1.1/{admin},GET /public-api/resources/admins/v1.1/{admin}/permissions, andGET /public-api/resources/admins/v1.1/{admin}/sessions. In v1.1,expiresOnrepresents the last day of access, inclusive, in the administrator's operator timezone, rather than the deactivation date used by v1.0; updates accept today's date, andnullclears the expiration date. - Added
partnerIdto the request body onPOST /public-api/resources/issues/v1.0to associate an issue with a partner available to the token's administrator. The field is required for sub-operator tokens, optional for operator and global tokens, and cannot be supplied onPATCH /public-api/resources/issues/v1.0/{issue}.
- Added experimental partner lifecycle actions:
- 🔧 Improvements
- Changed malformed request handling on
POST /public-api/oauth/tokenandPOST /public-api/oauth/revoketo return an OAuthinvalid_requesterror when request fields fail validation. - Changed
PATCH /public-api/resources/tariffs/v1.0/{tariff}to preserve the existing partner assignment whenpartneris omitted or supplied without anid. Updates that resubmit the existing partner ID can retain that assignment without revalidating it as a new assignment. - Changed charge point ownership validation errors on
POST /public-api/resources/charge-points/v1.0,PATCH /public-api/resources/charge-points/v1.0/{chargePoint},POST /public-api/resources/charge-points/v2.0, andPATCH /public-api/resources/charge-points/v2.0/{chargePoint}to associate additional ownership-contract errors with the corresponding public request field.
- Changed malformed request handling on
- 🗑️ Deprecations
- Deprecated
GET /public-api/resources/admins/v1.0,GET /public-api/resources/admins/v1.0/{admin},PATCH /public-api/resources/admins/v1.0/{admin},GET /public-api/resources/admins/v1.0/{admin}/permissions, andGET /public-api/resources/admins/v1.0/{admin}/sessionsin favor of their v1.1 equivalents. The v1.0 endpoints remain available. - Deprecated the v1.0
expiresOnrequest and response field on the administrator endpoints above, and theexpiresOnresponse field onPOST /public-api/actions/admin/v1.0/{admin}/activateandPOST /public-api/actions/admin/v1.0/{admin}/deactivate. Use the v1.1 administrator resource endpoints for last-day-of-access semantics.
- Deprecated
