Zum Inhalt springen

Apaga um lote sem vendas

DELETE/api/events/{id}/ticket-types/{typeId}/batches/{batchId}

Auth
Token erforderlich
Wer darf:
owner
admin
SuperAdmin
API-Schlüssel:
events:delete
X-CommunityId
X-CommunityId Sende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.

Owner, admin ou SuperAdmin. Lote com venda: 409 `tickets.batchHasSales`; o último lote do tipo: 409 `tickets.lastBatch`.

Parameter

NameOrtTypBeschreibung
idPflichtpathstring (uuid)
typeIdPflichtpathstring (uuid)
batchIdPflichtpathstring (uuid)

Header

NameTypBeschreibung
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Antworten

StatusBeschreibung
200O tipo (visão da equipe).
401Token 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`).
403Autenticado, mas sem permissão para esta operação.
404Recurso não encontrado.
409Conflito com o estado atual do recurso.
500Erro interno do servidor.

curl-Beispiel

curl -X DELETE "https://api.memberfy.net/api/events/<id>/ticket-types/<typeId>/batches/<batchId>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID"