Update a plan fee

View as Markdown

Updates a fee’s price or effective dates. The fee’s product cannot be changed; add a new fee instead. A new price can be created inline on the same product.

Authentication

AuthorizationBearer
API key obtained from the Grant dashboard

Path parameters

idstringRequiredformat: "cuid"
feeIdstringRequiredformat: "cuid"

Request

This endpoint expects an object.
price_idstringOptionalformat: "cuid"
Existing price to switch the fee to. Must belong to the fee's product.
priceobjectOptional
Create a new price on the fee's product inline and switch the fee to it
effective_fromstring or nullOptionalformat: "^\d{4}-\d{2}-\d{2}(T.*)?$"

New effective start date; null clears it

effective_tostring or nullOptionalformat: "^\d{4}-\d{2}-\d{2}(T.*)?$"

New effective end date; null clears it

Response

Fee updated
successboolean
feeobject
request_idstring

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error