Cancel an enrollment
Cancels an invite that hasn’t been accepted yet and returns its seat to the pool. With refund: true, refunds the seat to the card that paid for it instead. The enrollment remains, with status CANCELLED. Requires the enrollments:write scope.
Scopes: enrollments:write
tmh enrollments cancel <enrollmentId> [flags]
-d, --data stringArray body field as key=value (dotted keys nest, key[]=v appends, key:=<json> sends JSON), or the whole body as @file, @- for stdin, or a JSON document; repeatable. Flags override -d fields, which override the document
-h, --help help for cancel
--refund false Refund the seat to the card that paid for it instead of returning it to the pool. Defaults to false.
--idempotency-key string Idempotency-Key for the write, instead of a generated one
--live use the "live" profile
--max-retries int times to retry a transient failure of a request that is safe to replay (default 2)
--profile string profile to use: "sandbox" (default) or "live"
--show-headers print each HTTP response's status and headers to stderr
--verbose print method, path, status, latency and request id of each HTTP attempt to stderr