Skip to content

Delete Currency

Soft delete a currency.

Endpoint

DELETE /v1/products/currency/?id={currency_id}

Authentication

Required (Admin role)

Query Parameters

Parameter Type Required Description
id integer Yes Currency ID

Response

Success (200 OK)

Returns the deleted currency:

{
  "id": 3,
  "name": "EUR",
  "value": 1.90,
  "created": "2025-01-15T10:30:00Z"
}

Error Responses

Currency Not Found (404)

{
  "error": "Currency not found"
}

Missing ID Parameter (400)

{
  "message": "Param not send!"
}

Example Request

curl -X DELETE "https://api.luxmart.site/v1/products/currency/?id=3" \
  -H "Authorization: Token your_access_token"

Notes

  • Performs a soft delete (sets is_deleted: true)
  • Deleted currencies cannot be retrieved or used