Delete Payment Mean

delete/v1/payment-means/{payment_means_id}

Soft-deletes a payment instrument within the active workspace by setting deleted_at. Side effects: the instrument stops appearing in list and retrieve responses and is unlinked from new transactions; existing transactions retain their historical reference. Idempotent on an already-deleted instrument.

Requires a bearer token: Authorization: Bearer <token>.

Path parameters

NameTypeRequiredDescription
payment_means_idstring <uuid>YesPublic UUID of the payment means to delete.e.g. 44444444-0000-4000-8000-0000000000e1

Request

cURL
curl -X DELETE https://api.wellapp.ai/v1/payment-means/{payment_means_id} \
  -H "Authorization: Bearer $WELL_API_TOKEN"

Responses

204The payment means was soft-deleted. No content is returned.

401Unauthorized

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

404Not found

{
  "code": "NOT_FOUND",
  "status": 404,
  "title": "Not Found",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}