# Delete a payment method `DELETE /api/v1/payment_methods/{id}` `POST /api/v1/payment_methods/{id}/delete` Deletes a payment method unless a current payment uses it. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payment methods → Write**. ## Path parameters - `id` (integer, required) — ID of the payment method. ## Request (DELETE) 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_methods/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Request (POST) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/payment_methods/${ID:?Set ID}/delete" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** Returns a successful removal response. Example with fictional data and selected fields. ```json { "message_key": "entities.payment_method.messages.deleted" } ``` ## 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 record is in use or could not be removed.