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",
      "code": "BAD_REQUEST",
      "title": "..."
    }
  ]
}
403 Forbidden
{
  "errors": [
    {
      "status": "403",
      "code": "FORBIDDEN",
      "title": "api_key missing"
    }
  ]
}
500 Internal Server Error

An unexpected error happened.

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