Skip to main content
POST
Create TariffProduct
A plan component (internally TariffProduct) adds one product to a plan (internally tariff) so that the product is charged on every invoice raised for contracts on that plan, and its price is added to the plan’s total price. Use it for recurring add-ons such as mail handling, lockers or parking; one-off sign-up charges use sign-up products (TariffSignupProduct) instead.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the TariffProduct-Create role.

Request Body

Required Fields

integer
required
ID of the plan this component belongs to; required, and every contract on that plan is then charged for the component’s product..
integer
required
ID of the product charged as the plan component; required, and the product’s own current price is what gets invoiced, so reuse an existing product instead of creating a duplicate..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the tariffproduct was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response