Chargeprice API Documentation

DELETE /v2/tariffs/:tariff_id

Delete a tariff.

This API follows the https://jsonapi.org specification.

Headers

Authorization Group

WriteTariffs

Request Parameters

tariff_id Id of tariff that should be deleted.

Example

Request

DELETE http://example-base-url.com/v2/tariffs/2e49b853-36fc-47ed-9826-97828b5b2fdd
Content-Type: application/json
Api-Key: my-secret-key

Response

204 No Content

400 Bad Request

Client provided invalid request.

{
  "errors": [
    {
      "status": "400",
      "title": "..."
    }
  ]
}
403 Forbidden
{
  "errors": [
    {
      "status": "403",
      "title": "api_key missing"
    }
  ]
}
500 Internal Server Error

An unexpected error happened.

{
  "errors": [
    {
      "status": "500",
      "title": "some error"
    }
  ]
}