Zum Inhalt springen

Lista ou consulta me

GET/api/subscriptions/me

Auth
Token erforderlich
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.

Traz `commitmentEndsAt`, `cancelEffectiveAt` e `product.commitmentMonths` (F-35). F-37: um adicional cobrado junto com um plano (`billedWithId`) nunca é a assinatura devolvida aqui; o plano é. A resposta traz `billedWithId`, `addOns` e `nextChargeTotal` (ver `GET /api/subscriptions`). Traz também `pendingRenewal`, a cobrança de renovação em aberto, ou `null` (ver `GET /api/subscriptions`): é o que a tela de "Pagar agora" e o PIX de renovação mostram.

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
200Operação realizada com sucesso.
400Requisição inválida — falha de validação.
401Token ausente, inválido ou expirado.
404Recurso não encontrado.
500Erro interno do servidor.

curl-Beispiel

curl -X GET "https://api.memberfy.net/api/subscriptions/me" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID"