Protocol - Plans
Activate/Deactivate Plan
Lists (activate=true) or unlists (activate=false) a plan. This is a flag stored by Nevermined, not an on-chain change. An unlisted plan is hidden from discovery and can no longer be purchased. Checkout, crypto order and the card-delegation x402 settle are refused with the error BCK.PROTOCOL.0062; the other x402 refusals (every verify, and the erc4337 settle of an auto-order or pay-as-you-go call) answer isValid: false / success: false with that error's message as the reason, without a code field. Subscribers keep spending the credits they already hold while their balance covers a call.
put/protocol/plans/{planId}/list/{activate}
Request
- Base URL: https://api.sandbox.nevermined.app/api/v1
- URL: https://api.sandbox.nevermined.app/api/v1/protocol/plans/{planId}/list/{activate}
- Auth: HTTP bearer
Path parameters
planIdinteger required
The plan's unique identifier
activateboolean required
true to list, false to unlist
Response
Status updated
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.