delete_api-p-v-version-deductions-id

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
idStringYesThe unique identifier (Id) of the deduction to delete.

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

curl --location --request DELETE 'https://integrations.alvys.com/api/p/v1/deductions/3243fdfd-7403-0000-b8ea-e028cd36e7d7' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Example Response (Success)

{
  "Id": "00000000-dd44-0000-0000-8a1fa91b607a",
  "Type": "Deduction",
  "GroupId": "344571de-57b4-4163-a0cc-d7981fa65994",
  "Description": "Drug Test Fee",
  "Category": "Drug Test",
  "Amount": {
    "Amount": -50,
    "Currency": 840
  },
  "DriverId": "DR2517534557938191",
  "OwnerOperatorId": "DR25165000003445290",
  "Date": "2025-10-07",
  "IsPaid": false,
  "CreatedAt": "2025-10-09T08:30:54.873Z",
  "CreatedBy": "MhAeS5345435fbvccvbfUdTdXOMgVSGyp"
}

Example Response (Error)

{
    "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
    "title": "Not Found",
    "status": 404,
    "traceId": "00-2ea901xgrtg4et43ab20a37057df4c54-8fe88954ae45a964-01"
}

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.


Path Params
string
required
string
required
Defaults to 1.0
Headers
string
enum
Defaults to application/json
Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json