Apaga um lote sem vendas
DELETE/api/events/{id}/ticket-types/{typeId}/batches/{batchId}
- Auth
- Requires a token
- Who can call it:
- owner
- admin
- SuperAdmin
- API key:
- events:delete
- X-CommunityId
X-CommunityIdSend the X-CommunityId of the community the operation happens in.
Endpoint descriptions come straight from the API specification and are in Portuguese for now. The interface around them is translated.
Owner, admin ou SuperAdmin. Lote com venda: 409 `tickets.batchHasSales`; o último lote do tipo: 409 `tickets.lastBatch`.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | string (uuid) | |
typeIdrequired | path | string (uuid) | |
batchIdrequired | path | string (uuid) |
Headers
| Name | Type | Description |
|---|---|---|
X-CommunityIdoptional | string (uuid) | ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade. |
Responses
| Status | Description |
|---|---|
200 | O tipo (visão da equipe). |
401 | Token ausente, inválido ou expirado; token de outra comunidade (o `X-CommunityId` ou o `communityId` do corpo não é o do token); token antigo ou de uma sessão encerrada (troca de senha, convite aceito). Nesses casos a mensagem pede para entrar de novo (`auth.signInAgain`). |
403 | Autenticado, mas sem permissão para esta operação. |
404 | Recurso não encontrado. |
409 | Conflito com o estado atual do recurso. |
500 | Erro interno do servidor. |
curl example
curl -X DELETE "https://api.memberfy.net/api/events/<id>/ticket-types/<typeId>/batches/<batchId>" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"