Skip to main content
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

MethodPathAuth Required
POST/api/membershipsUSER, 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

userId
string
The ID of the user receiving the membership. Typically resolved from the authenticated token.
type
string
required
The membership type. Must be exactly Mensual or Anual.
price
decimal
required
The price paid for the membership.
startDate
string (ISO 8601)
required
The date the membership begins.
endDate
string (ISO 8601)
required
The date the membership expires.

Response Fields

status
boolean
Indicates whether the request was successful.
statusCode
integer
HTTP status code of the response.
message
string
Human-readable message describing the result.
data
object
The newly created membership object.

Example

curl -X POST "https://api.meetpoint.com/api/memberships" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "user-id-string",
    "type": "Mensual",
    "price": 2.99,
    "startDate": "2026-03-22T00:00:00Z",
    "endDate": "2026-04-22T00:00:00Z"
  }'

GET /api/memberships/state/

Returns whether a user currently has an active membership. Auth: Bearer token required. Roles: USER, ADMIN, or ORGANIZER.

Path Parameters

userId
string
required
The ID of the user whose membership state to check.

Response Fields

status
boolean
Indicates whether the request was successful.
statusCode
integer
HTTP status code of the response.
message
string
Human-readable message describing the result.
data
boolean
true if the user has an active membership, false otherwise.

Example

curl -X GET "https://api.meetpoint.com/api/memberships/state/user-id-string" \
  -H "Authorization: Bearer <token>"

Build docs developers (and LLMs) love