Skip to main content
DELETE
Delete deduction
This endpoint permanently deletes a deduction record by its unique identifier. Use this method to remove a previously created deduction that was entered in error or is no longer needed. Deletion removes only the deduction record itself — it does not affect any driver, or truck data. Once deleted, the deduction cannot be recovered through the API. A successful deletion will immediately remove the deduction from all search and detail responses.

Request Parameters

The following parameters are required in the URL path:

Permissions Required

Only users or client credentials with Delete access to the Deductions resource can perform deletions. If the API client lacks sufficient privileges, a 403 Forbidden response will be returned.

Example CURL Request


Example Response (Success)


Example Response (Error)


Versioning

The version parameter in the URL path specifies which version of the API you are using. Including the version number ensures that your integration remains stable as the API evolves. For more details, refer to the Versioning page.

Rate Limits

All endpoints are subject to standard rate limits to ensure consistent API performance. For details, see the Rate Limits section.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

id
string
required
version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Response

OK

Id
string
required
Type
string
required
GroupId
string
required
Description
string
required
Category
string
required
Amount
object
required
Date
string<date-time>
required
IsPaid
boolean
required
CreatedAt
string<date-time>
required
DriverId
string | null
TruckId
string | null
OwnerOperatorId
string | null
CreatedBy
string | null