Minhas encomendas
GET/api/parcels/me/parcels
- Auth
- Requires a token
- 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.
Qualquer membro: **só as próprias** encomendas, em `pending` (as `RECEIVED`, todas) e `history` (as fechadas, as mais recentes, até `historyLimit`). Traz o local (`lockerLabel`), o **código de retirada** (`lockerPickupCode`, só enquanto pendente) e as fotos com link assinado de 1 hora. Só dos spaces que o membro ainda consegue abrir. `spaceId` opcional restringe a um space.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
spaceIdoptional | query | string (uuid) | |
historyLimitoptional | query | integer |
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 | Pendentes e histórico. |
400 | Requisição inválida — falha de validação. |
401 | Token ausente, inválido ou expirado. |
403 | Autenticado, mas sem permissão para esta operação. |
500 | Erro interno do servidor. |
curl example
curl -X GET "https://api.memberfy.net/api/parcels/me/parcels" \
-H "Authorization: Bearer $TOKEN" \
-H "X-CommunityId: $COMMUNITY_ID"