mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-25 08:24:00 +02:00
title
| title |
|---|
| Transaction Destroy |
Transaction Destroy Endpoint
The transaction destroy endpoint soft deletes a transaction and returns the deleted transaction resource.
For example, the /api/transaction/1 endpoint will soft delete the transaction of id '1' and return the deleted transaction resource.
URL
DELETE /api/transaction/{id}
Authentication
Required Permission: delete transaction
Roles with Permission: Admin
Parameters
None
Response
{
transaction: {
id: id,
date: "date",
service: "service",
description: "description",
amount: amount,
external_id: external_id,
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
}