Delete an entry
delete
https://api.flactrum.com/v1/transactions/{transaction}
An entry produced by an order cannot be deleted on its own — the till would stop matching reality. Refund the order instead.
| Required scope | transactions.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| transaction * | path | string | ULID of the record. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X DELETE 'https://api.flactrum.com/v1/transactions/01m43my9rpmdhdyjfqd973zjvf' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/transactions/01m43mya095d5ncmhgb2j7x5s5' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This entry belongs to an order and cannot be deleted on its own. Refund the order instead.",
"details": {
"order_id": "01m43my9zwm7hq57cjeg7rafse"
}
}
}