Get a membership
GET /memberships/{id}
Requires the memberships:read permission. Returns memberships belonging to the authenticated organisation.
Authorization
X-API-Key required
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Membership _id, also returned as memberMembershipId on linked passes |
Membership status and billing
status is the stored RemyPass membership state, updated through payment webhooks. It is separate from pass status and is not a live Stripe subscription lookup. Scheduled cancellation keeps the existing status and sets cancelAtPeriodEnd to true.
Amounts use minor currency units. Dates and relationship IDs may be absent or null when unavailable. stripe contains account, customer and subscription IDs for reconciliation; paymentRecovery contains action-required, attempt-count, next-attempt and grace-period details. Checkout secrets, buyer information and internal metadata are excluded.
Request Examples
curl -X GET "https://api.remypass.com/api/v1/public/memberships/507f1f77bcf86cd799439011" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"Use Case Examples
Get membership by ID
curl -X GET "https://api.remypass.com/api/v1/public/memberships/507f1f77bcf86cd799439011" \
-H "X-API-Key: YOUR_API_KEY"
Responses
| Status | Description |
|---|---|
200 | Success |
400 | Invalid parameters |
401 | Invalid API key |
403 | Missing permission or plan access |
404 | Membership not found |
429 | Rate limit exceeded. |
500 | Server error |
200 Response Example
{
"success": true,
"message": "Success",
"data": {
"_id": "507f1f77bcf86cd799439011",
"member": "507f1f77bcf86cd799439012",
"membershipType": "507f1f77bcf86cd799439013",
"passInstance": "507f1f77bcf86cd799439014",
"status": "active",
"paymentMode": "subscription",
"amount": 25000,
"currency": "dkk",
"autoRenews": true,
"cancelAtPeriodEnd": true,
"currentPeriodStart": "2026-10-01T00:00:00.000Z",
"currentPeriodEnd": "2026-11-01T00:00:00.000Z",
"expiresAt": "2026-11-01T23:59:59.999Z",
"activatedAt": "2026-01-01T12:00:00.000Z",
"lastPaymentAt": "2026-10-01T00:00:00.000Z",
"cancellationRequestedAt": "2026-10-06T12:00:00.000Z",
"createdAt": "2026-01-01T12:00:00.000Z",
"updatedAt": "2026-10-06T12:00:00.000Z",
"stripe": {
"accountId": "acct_example",
"customerId": "cus_example",
"subscriptionId": "sub_example"
},
"paymentRecovery": {
"actionRequired": false,
"attemptCount": 0,
"nextPaymentAttempt": null,
"gracePeriodEndsAt": null
}
}
}
Response Fields
| Field | Type | Description | Attributes |
|---|---|---|---|
success | boolean | ||
data | object | Show child attributes
| |
message | string |