Delete a payment method
delete
https://api.flactrum.com/v1/payment-methods/{method}
A method used on past orders cannot be deleted; deactivate it instead.
| Required scope | payment_methods.write |
| Success status | 204 |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| method * | 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/payment-methods/01m43myad1zhqvvmffxxqmksbp' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 204
(empty body)
curl -X DELETE 'https://api.flactrum.com/v1/payment-methods/01m43myamhjzqyny41r9s4bwg2' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "This payment method has been used on 1 order(s). Set is_active to false instead.",
"details": {
"order_count": 1
}
}
}