Create a new custom rate for a given organisation

Creates a custom rate for the organisation. If no `start_date` and `end_date` are given, the start of the current month will be used as a `start_date` and will have no `end_date` and will therefore be active indefinitely. If a custom rate for the same organisation and ratezone exists and overlaps with the validity period of the new rate, the existing custom rate will have its `end_date` set to the last day of the month before the `start_date` of the new rate.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the POST request to /api/v1/authenticate.

Path parameters

org_iddoubleRequired
Numerical ID of an organization

Request

This endpoint expects an object.
tariffobjectRequired
ratezoneobjectRequired
volumedoubleRequired
The volume in Megabytes
ratedoubleRequired
The rate in the given currency
serviceobjectRequired

This has to be set to 38 (service Data)

currencyobjectRequired
This has to be set to the currency of the child org
start_datestringOptionalformat: "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\{2}$"
end_datestringOptionalformat: "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\{2}$"

Response

Response to a POST that results in a creation, usually will return a Location header pointing to the location of the new resource

Errors