mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
964 B
964 B
title
| title |
|---|
| Transaction Destroy |
Transaction Destroy Endpoint
The transaction destroy endpoint soft deletes a transaction and returns the deleted transaction resource.
For example, the /transaction/1 endpoint will soft delete the transaction of id '1' and return the deleted transaction resource.
URL
DELETE /transaction/{id}
Authentication
Required Permission: delete transaction
Roles with Permission: Admin
Other Requirements: Transaction must not be soft deleted
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"
}
}
Example
curl -X DELETE -H "Authorization: Bearer {token}" https://api.animethemes.moe/transaction/1