# Delete a payment allocation `DELETE /api/v1/payment-allocations/{id}` Removes a credit allocation and releases its amount back to the source payment. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payments → Write**. ## Path parameters - `id` (integer, required) — ID of the credit allocation. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request DELETE \ --url "https://api.asdincloud.com/api/v1/payment-allocations/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** Returns confirmation that the allocation was removed. Example with fictional data and selected fields. ```json { "status": "success", "message": "Allocazione eliminata con successo." } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `400` — The allocation ID or allocation is invalid. - `409` — The allocation is in use or its state prevents removal.