Membership purchases on MeetPoint are processed through PayPal. Complete the PayPal payment flow to obtain an order confirmation before calling the
POST /api/memberships endpoint.Endpoints
| Method | Path | Auth Required |
|---|---|---|
| POST | /api/memberships | USER, ADMIN, or ORGANIZER |
| GET | /api/memberships/state/{userId} | USER, ADMIN, or ORGANIZER |
POST /api/memberships
Creates a new membership for a user. Use this endpoint after completing the PayPal payment flow to record the membership in MeetPoint. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.Request Body
The ID of the user receiving the membership. Typically resolved from the authenticated token.
The membership type. Must be exactly
Mensual or Anual.The price paid for the membership.
The date the membership begins.
The date the membership expires.
Response Fields
Indicates whether the request was successful.
HTTP status code of the response.
Human-readable message describing the result.
The newly created membership object.
Example
GET /api/memberships/state/
Returns whether a user currently has an active membership. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.Path Parameters
The ID of the user whose membership state to check.
Response Fields
Indicates whether the request was successful.
HTTP status code of the response.
Human-readable message describing the result.
true if the user has an active membership, false otherwise.