Add a fee to a plan
Attaches a fixed (flat) or usage-based (per_unit / cost_plus) fee to a plan. The product and price can be referenced by ID or created inline in the same call. Multiple versions of a fee for the same product are allowed as long as their effective date ranges do not overlap.
Authentication
AuthorizationBearer
API key obtained from the Grant dashboard
Path parameters
id
Request
This endpoint expects an object.
product_id
Existing product to attach the fee to
product
Create a new product inline instead of using product_id
price_id
Existing price to bill. The fee is attached to the price’s product, so product_id/product must be omitted.
price
Create a new price inline instead of using price_id
effective_from
Date the fee becomes effective (YYYY-MM-DD in the company’s timezone, or ISO datetime). Null or omitted = effective immediately.
effective_to
Date the fee stops being effective. Null or omitted = open-ended.
Response
Fee created
success
fee
request_id
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error
