Delete a revenue source
Deletes a revenue source and the facts it reported.
Deletes a revenue source and the facts it reported. The money source cannot be deleted; pause it instead.
- Path
DELETE https://api.sylphx.com/v1/orgs/acme/revenue_sources/revenue-source - Scope
revenue:write - Effect
destructive— a successful call removes data; the CLI asks before it runs. - Collection revenue_sources
- Query
etag,validate_only
Request
| Field | Type | What it is |
|---|---|---|
name | string | The source to delete, with the facts it reported. The money source cannot be deleted (pause it instead). Required. |
etag | string | The current etag; when set, the delete happens only if it matches. |
validate_only | bool | Validate only; delete nothing. |
Response
The call answers with an empty object.
Errors
UNAUTHENTICATED— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.RESOURCE_NOT_FOUND— The named Resource does not exist or is not visible.INVALID_STATE— The Resource is in a state that forbids the call.ETAG_MISMATCH— The etag sent does not match the Resource's current etag.IDEMPOTENCY_KEY_REUSED— An Idempotency-Key was reused with another body.IDEMPOTENCY_IN_PROGRESS— The first call with this Idempotency-Key is still running.
Every error arrives in the body Errors describes.
Examples
curl -X DELETE "https://api.sylphx.com/v1/orgs/acme/revenue_sources/revenue-source" \
-H "Authorization: Bearer $SYLPHX_API_KEY"